How to take and save 20 photos in one second using a lens c

I am creating one photo capture application in which a user can take up to 20 photos in one second. I already tried the AVCam sample code for Apple, but it doesn’t allow you to make a still image at 20 FPS.

Is there any other way to take a photo at that speed.

+4
source share
1 answer

see this demo .. Photo Picker

in this demo, just check or send these two classes.

in OverlayViewController.m class in timedTakePhoto method simply sets a timer with your requirement, for example, below.

 - (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]; } 

Can you get some ideas from this, and also use this demo for your requirement.

Hope this helps you ...

0
source

All Articles