开发者

iPhone: get image from camera without UIImagePickerController

开发者 https://www.devze.com 2023-04-08 05:32 出处:网络
Please help me with my question. Is there any way to get image from camera without UIImagePickerController?

Please help me with my question.

Is there any way to get image from camera without UIImagePickerController?

I need to render current image开发者_如何学Python(from camera) into image on my view and update it by timer. May be AVCaptureStillImageOutput? I didn't find any examples.

Any ideas?


Yes, you can do it easily using AVCamCaptureManager and AVCamRecorder classes. Apple has a demo program build on its developer site here. It is named AVCam. In simple words what it does is when you click to open the camera, it calls the classes and methods which are responsible for opening the iPhone's camera and record video or capture audio. It calls the same classes which are called by UIImagePickerController.

I hope it helps.

0

精彩评论

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