AV Foundation camera preview level is increasing, how to zoom out?

The application that I use now has the main function for continuous scanning of QR / Bar codes using the Zxing library ( http://code.google.com/p/zxing/ ). For continuous frame capture, I used to initialize AVCaptureSession and AVCaptureVideoOutput, AVCaptureVideoPreviewLayer described in Apple Q & A http://developer.apple.com/iphone/library/qa/qa2010/qa1702.html .

My problem is that when I used the camera preview, the image that I see through the video device is much larger (1.5x) than the image that we can see through the iPhone’s fixed camera. Our client should keep the iPhone at a distance of about 5 cm from the barcode when it scans, but if you hold the iPhone off this parameter, the entire QR code will not be visible and decoding will fail. Why is the camcorder in iPhone 4 zoomed in (by viewing AVCaptureVideoPreviewLayer)?

+5
source share
3 answers

. Apple Dev, Apple, , , . , .

+4

AVCaptureSession, .sessionPreset. , captureSession, ,

captureSession.sessionPreset = AVCaptureSessionPresetPhoto;

:

iOS

1280x720 ( ), , , . "", .

+13

iPhone Camera. , , . , .

, . , , 30 . "" .

+5

All Articles