mirror of
https://github.com/status-im/react-native-camera.git
synced 2025-02-24 17:58:20 +00:00
The correct capture preset for photos is AVCaptureSessionPresetPhoto
AVCaptureSessionPresetHigh sometimes means the camera is too zoomed in
This commit is contained in:
parent
bf22df1517
commit
6b3bbe1e05
@ -776,8 +776,8 @@ static NSDictionary *defaultFaceDetectorOptions = nil;
|
||||
[_faceDetectorManager maybeStartFaceDetectionOnSession:_session withPreviewLayer:_previewLayer];
|
||||
#endif
|
||||
|
||||
if (self.session.sessionPreset != AVCaptureSessionPresetHigh) {
|
||||
[self updateSessionPreset:AVCaptureSessionPresetHigh];
|
||||
if (self.session.sessionPreset != AVCaptureSessionPresetPhoto) {
|
||||
[self updateSessionPreset:AVCaptureSessionPresetPhoto];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user