ここで、以下のようにavfoundationを使用して画像をキャプチャできます。しかし、イメージ(例えば、20または30イメージ)を連続的にキャプチャするにはどうすればよいですか?あなたが記述シナリオが最も簡単にタイマーのいくつかの並べ替えを使用することによって解決されるだろうiPhoneでAVFoudationを使用した連続キャプチャ画像
:
[stillImageOutput captureStillImageAsynchronouslyFromConnection:videoConnection completionHandler: ^(CMSampleBufferRef imageSampleBuffer, NSError *error)
{
CFDictionaryRef exifAttachments = CMGetAttachment(imageSampleBuffer, kCGImagePropertyExifDictionary, NULL);
if (exifAttachments)
{
// Do something with the attachments.
NSLog(@"attachements: %@", exifAttachments);
}
else
NSLog(@"no attachments");
NSData *imageData = [AVCaptureStillImageOutput jpegStillImageNSDataRepresentation:imageSampleBuffer];
UIImage *image = [[UIImage alloc] initWithData:imageData];
// use the image
}];
(D)SLRの「バースト」モードのような意味ですか? – danyowdee
いいえ、danyowdee。私はちょうど1つのイメージをスナップしたい、そしてもう1秒後に... –