4
나는 1 초에 최대 20 장의 사진을 찍을 수있는 하나의 사진 캡처 앱을 만들고 있습니다. 나는 이미 사과의 AVCam 샘플 코드를 시험해 보았지만 20FPS에서 여전히 Image를 가져갈 수는 없습니다.객관적인 C를 사용하여 1 초에 20 장의 사진을 찍고 저장하는 방법
이 속도로 사진을 찍는 다른 방법이 있습니까?
나는 1 초에 최대 20 장의 사진을 찍을 수있는 하나의 사진 캡처 앱을 만들고 있습니다. 나는 이미 사과의 AVCam 샘플 코드를 시험해 보았지만 20FPS에서 여전히 Image를 가져갈 수는 없습니다.객관적인 C를 사용하여 1 초에 20 장의 사진을 찍고 저장하는 방법
이 속도로 사진을 찍는 다른 방법이 있습니까?
는 timedTakePhoto
방법 OverlayViewController.m
클래스에서 ...이 데모는 데모에 .. Photo Picker
바로 확인하거나이 두 클래스를 참조
참조 벨로우즈 같은 요구 사항을 가진 타이머를 설정하십시오 ..
- (IBAction)timedTakePhoto:(id)sender
{
// these controls can't be used until the photo has been taken
self.cancelButton.enabled = NO;
self.takePictureButton.enabled = NO;
self.timedButton.enabled = NO;
self.startStopButton.enabled = NO;
if (self.cameraTimer != nil)
[self.cameraTimer invalidate];
_cameraTimer = [NSTimer scheduledTimerWithTimeInterval:0.03
target:self
selector:@selector(timedPhotoFire:)
userInfo:[NSNumber numberWithInt:kOneShot]
repeats:YES];
// set time with your requirement above
// start the timer to sound off a tick every 1 second (sound effect before a timed picture is taken)
if (self.tickTimer != nil)
[self.tickTimer invalidate];
_tickTimer = [NSTimer scheduledTimerWithTimeInterval:1.0
target:self
selector:@selector(tickFire:)
userInfo:nil
repeats:YES];
}
당신이에서 아이디어를 얻을 또한 귀하의 요구 사항이 데모를 사용 .. 난이 도움이 당신을 희망
... 답장을
감사하지만이에 저를 허용하지 여전히 수 있습니다 20 FPS로 사진을 찍으십시오. 또한 각 이미지에 더 많은 시간이 걸립니다. – 1085353
0.05 또는 무언가로 timeinterval을 설정 하시겠습니까 ?? 그리고 또한 사용자 정의 코드 친구와 함께 시도하십시오 ... –
감사합니다 budie,하지만 나는 또한 시도했지만 그 시간 간격으로 사진을 찍을 수 없습니다 – 1085353