The correct capture preset for photos is AVCaptureSessionPresetPhoto

AVCaptureSessionPresetHigh sometimes means the camera is too zoomed in
This commit is contained in:
Thomas Parslow 2018-05-03 18:59:53 +01:00 committed by GitHub
parent bf22df1517
commit 6b3bbe1e05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -776,8 +776,8 @@ static NSDictionary *defaultFaceDetectorOptions = nil;
[_faceDetectorManager maybeStartFaceDetectionOnSession:_session withPreviewLayer:_previewLayer]; [_faceDetectorManager maybeStartFaceDetectionOnSession:_session withPreviewLayer:_previewLayer];
#endif #endif
if (self.session.sessionPreset != AVCaptureSessionPresetHigh) { if (self.session.sessionPreset != AVCaptureSessionPresetPhoto) {
[self updateSessionPreset:AVCaptureSessionPresetHigh]; [self updateSessionPreset:AVCaptureSessionPresetPhoto];
} }
} }