AVCaptureSessionと、デリゲートメソッドを使用して複数の画像をキャプチャする方法について学習しています
- (void)captureOutput:(AVCaptureOutput *)captureOutput
didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
fromConnection:(AVCaptureConnection *)connection
私の目標は、1秒あたりの事前定義されたレートで1つまたは複数の画像をキャプチャすることです。たとえば、1秒あたり1枚または2枚の画像。だから私は設定しました
AVCaptureVideoDataOutput *captureOutput = [[AVCaptureVideoDataOutput alloc] init];
captureOutput.alwaysDiscardsLateVideoFrames = YES;
captureOutput.minFrameDuration = CMTimeMake(1, 1);
が[self.captureSession startRunning];
開始されると、ログファイルにデリゲートが1秒間に20回呼び出されていることが示されます。それはどこから来て、意図した間隔で画像をキャプチャする方法は?