简体   繁体   English

UIImagePickerController:如何拍摄> 1张照片?

[英]UIImagePickerController: how to take >1 photo?

I've been trying to build a UI that's as similar as possible to the built in iPhone 'camera' app as possible. 我一直在努力构建尽可能与内置iPhone“相机”应用程序尽可能相似的UI。 Necessarily I've been using the UIImagePickerController class. 我一直在使用UIImagePickerController类。

It imposes on me two constraints that I wish to overcome... 它给我带来了两个我希望克服的限制因素......

  1. I'd like to be able to take more than one photo (currently mine takes one then comes to a sudden stop. 我希望能够拍摄多张照片(目前我拍的照片会突然停止拍摄。

  2. I wish to skip the 'photo verification' stage where the photo/movie can be vetted by the user before committing it to the photo library. 我希望跳过“照片验证”阶段,用户可以在将照片/电影提交到照片库之前对其进行审查。

Both of these are currently beyond me, and I know they're both possible as 'ClearCam' on the store does it perfectly. 这两个目前都超出了我的范围,我知道它们都是可能的,因为商店里的'ClearCam'完美无缺。

Your clues & boos are all welcome! 你的线索和嘘声都是受欢迎的!

You probably wont be able to do it with UIImagePickerController ... However, look at AVFoundation `. 您可能无法使用UIImagePickerController ...但是,请查看AVFoundation` You will have much more control over the camera and its actions, and you can use it to take more than one still image at a time with no interruption. 您可以更好地控制相机及其操作,并且可以使用它一次拍摄多张静止图像而不会中断。

Specifically, look at AVCaptureDevice , AVCaptureInput and the subclasses of AVCaptureOutput . 具体来说,看AVCaptureDeviceAVCaptureInput和子类AVCaptureOutput Additionally, AVCaptureStillImageOutput allows you to grab images from the current camera session asynchronously... I hope this helps! 此外, AVCaptureStillImageOutput允许您异步从当前相机会话中获取图像...我希望这有帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 是否有触发UIImagePickerController拍照的函数? - Is there a function that triggers UIImagePickerController to take a photo? 使用 UIImagePickerController 拍照后如何调整图像大小? - How to adjust a image size after using UIImagePickerController take a photo? UIImagePickerController拍摄照片时要求“使用”确认 - UIImagePickerController to take photo with out asking for “use” confirmation 强制UIImagePickerController以纵向/尺寸iOS拍摄照片 - Force UIImagePickerController to take photo in portrait orientation/dimensions iOS 如何在UIImagePickerController上添加照片库按钮? - How to add photo library button on a UIImagePickerController? ARToolkit,UIImagePickerController和cameraOverlayView:如何拍照? - ARToolkit, UIImagePickerController & cameraOverlayView: How to take a picture? 如何使用iPhone拍照 - How to just take a photo with iPhone 如何告诉UIImagePickerController照片的最大相机分辨率是多少? - How to tell UIImagePickerController what's the maximum camera resolution for a photo? 如何设置使用UIImagePickerController拍摄的照片进行查看/修改为自定义UIViewController? - How to set photo taken with UIImagePickerController to be viewed/modified into a custom UIViewController? 如何更改重拍并在图像中使用UIImagePickerController的照片按钮 - how to change retake and use photo buttons of UIImagePickerController with images
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM