iPhone 15 pro can't focus close up documents when using the scan utility.🐛 #2246
Closed
3 of 5 tasks
Labels
🐛 bug
Something isn't working
What's happening?
Since purchased the new iPhone 15 pro, it seems that the iOS app can't automatically switch to the macro lens (the ultra wide lens), so it can't focus small documents (like tickets or barcodes).
This same error occurs in other third party apps.
Apple says is the "developer fault" because they are making the wrong call to the camera function, and so it only uses the main camera, that in the 14 and 15 pro models can't close focus.
This topic has been addressed in a session at WWDC 2021: https://developer.apple.com/videos/play/wwdc2021/10047/?time=133
Essentially the solution is to use the minimumFocusDistance property of the capture device to derive a videoZoomFactor to make sure the users hold the phone at a larger distance than the minimumFocusDistance. This is also illustrated in this sample code: https://developer.apple.com/documentation/avfoundation/capture_setup/avcambarcode_detecting_barcodes...
Reproduceable Code
Relevant log output
Camera Device
None
Device
iPhone15 pro
VisionCamera Version
3.6.12
Can you reproduce this issue in the VisionCamera Example app?
I didn't try (⚠️ your issue might get ignored & closed if you don't try this)
Additional information
The text was updated successfully, but these errors were encountered: