Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Camera differences between UIImagePickerController and AVCaptureSession on iPhone

I'm trying to build a replacement for UIImagePickerController, using AVCaptureSession with AVCaptureDeviceInput and AVCaptureStillImageOutput, as input/output respectively.

To preview the camera stream I'm using AVCaptureVideoPreviewLayer.

It's now working correctly for capturing and storing photos just like the default camera.

However, I found 3 problems I was unable to solve:

  • photos captured don't get the same quality the default camera provides
  • the viewing/capture angle is shortened, just like using the video capture on the default camera
  • no way to control camera specific options like flash

Is there any way to get to the level of UIImagePickerController using a more customizable approach (i.e. AVFoundation or any other)?

like image 751
paulo Avatar asked Feb 01 '11 19:02

paulo


1 Answers

Check out "Session 409 - Using the Camera with AV Foundation" in the WWDC 2010 videos. Based on the video, it looks like you can resolve all three of your issues with AVFoundation.

Hope this helps!

like image 143
donkim Avatar answered Oct 23 '22 18:10

donkim