开发者

what is the recommended approach for taking multiple pictures with UIImagePickerController -takePicture

The docs hint at the ability of takePicture to run multiple times in a single modal view. Particularly "This supports taking more than one picture without leaving the interface, but requires that you hide the default image picker controls."

I'd like to take 25 pictures in roughly 4 seconds, however from what I've read, there are issues with doing that in a tight loop. I'd be sleeping for ~ .16 seconds between photos and I suspect that won't be a sufficient amount of time between photos: iPhone: taking a picture programmat开发者_开发百科ically

I'd use UIGetScreenImage(), but from the discussion here, it looks like that will prevent the app from getting into the store: takepicture() vs UIGetScreenImage()

If anyone has any suggestions it would be greatly appreciated.


UIGetScreenImage(); is now allowed and should suit your needs for more rapid-fire photos.

Edit: dredful below is correct. Apple has opened access to an official real-time video data stream.


if you call takePicture, expect to wait around two seconds before a picture is returned to you via didFinishPickingMediaWithInfo. I'm am pretty sure that if you call takePicture again before your first picture is returned, it won't work, and you'll see a message in the debug output saying something like "takePicture called when already taking a picture", but you can easily try that experiment for yourself.

In any case, I'd be very surprised if you managed to get six pictures/second to work.

There's currently no way to programmatically start video capture, but depending on what you're trying to accomplish you could perhaps have the user capture a video and then use a library like FFmpeg to extract the frames you want from the resulting video clip.


http://www.redlaser.com/SDK.aspx

"UPDATE: 11/18/2009 Apple is now allowing applications that use the Realtime SDK through the review process. If you are using the Photo-Burst SDK, switch to the Realtime SDK."

...Suggests that you can now use UIGetScreenImage, or some similar low level call to snap pictures faster than the takePicture method.


@property (nonatomic) NO showsCameraControls

allows to take multiple photos without automatically dismissing the camera.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜