Open rsainiWin opened 3 months ago
Guten Tag, Hans here! 🍻
Thank you for reporting this issue. From your description, it seems like the camera focus functionality has an unexpected behavior on the iPad. However, I notice that while you provided quite a bit of detail, there are no specific logs related to the camera's behavior. For us to better assist mrousavy, please include the iOS logs you can find in Xcode's console when reproducing the issue. This information will help pinpoint where the problem lies.
If you haven't already, you can gather logs by running your app in Xcode and observing the console output. This is crucial for debugging.
If there’s nothing further, you might consider sponsoring the project to help ensure faster support moving forward, check out the sponsorship options here!
Looking forward to your update!
Note: If you think I made a mistake, please ping
@mrousavy
to take a look.
These are logs from xcode only @mrousavy
What format
are you using
This is what we use in general {autoFocusSystem: 'phase-detection'}, {photoAspectRatio: 1}, { photoResolution: Platform.OS === 'ios' ? 'max' : {width: 1080, height: 1080}, },
I've tried different focus system and removed other settings as well
No, I'm saying show me your format. Log it. Print it's content. Not the format filter.
Sorry for the confusion
Kind of working ( not properly) when autoFocusSystem = contrast-detection
{"autoFocusSystem": "contrast-detection", "fieldOfView": 104.81095123291016, "maxFps": 60, "maxISO": 1728, "minFps": 2, "minISO": 18, "photoHeight": 1512, "photoWidth": 2016, "supportsDepthCapture": false, "supportsPhotoHdr": false, "supportsVideoHdr": false, "videoHeight": 480, "videoStabilizationModes": ["auto", "off"], "videoWidth": 640}
NOt working when autoFocusSystem = phase-detection
{"autoFocusSystem": "phase-detection", "fieldOfView": 97.53304290771484, "maxFps": 60, "maxISO": 1728, "minFps": 1, "minISO": 18, "photoHeight": 3024, "photoWidth": 3696, "supportsDepthCapture": false, "supportsPhotoHdr": false, "supportsVideoHdr": false, "videoHeight": 288, "videoStabilizationModes": ["auto", "off"], "videoWidth": 352}
Also when i set to autoFocusSystem phase-detection
the photo capture when using fails with below error
Failed to take photo! [capture/unknown: Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could not be completed" UserInfo={NSUnderlyingError=0x302c23e40 {Error Domain=NSOSStatusErrorDomain Code=-16802 "(null)"}, NSLocalizedFailureReason=An unknown error occurred (-16802), AVErrorRecordingFailureDomainKey=4, NSLocalizedDescription=The operation could not be completed}]
Also the Blur view has increased further on the latest version of library vs 4.3.1
one of my Iphone 15 pro user also reported the same
@mrousavy Findings: If i pass empty array to filter in format then Blurry issue is present If i dont pass the format prop itself then there's no blur issue
@rsainiWin I'm getting reports from users using iPhone 15 pro, that focus isn't working at all. Have you experienced anything such as that?
@lukebars I switched to native camera implementation. As camera was one of the very key feature for us.
What's happening?
I'm encountering problems with camera focus before taking a picture. The camera attempts to focus but consistently fails.
I've implemented tap-to-focus functionality, but it's returning undefined unexpectedly.
Expected Behavior: The Camera should focus successfully before taking a picture. Tap-to-focus should be able to focus at point.
Actual Behavior: The Camera fails to focus. Tap-to-focus returns undefined.
This is an issue with most users using IPad, I'd this issue on 4.3.1 as well
I tried Installing shadowlens it's working fine over there
Reproduceable Code
Relevant log output
Camera Device
Device
IPad pro 11 inch 2gen
VisionCamera Version
4.5.1
Can you reproduce this issue in the VisionCamera Example app?
Yes, I can reproduce the same issue in the Example app here
Additional information