CamerAwesome
CamerAwesome copied to clipboard
"1x" and "2x" cameras not auto-focusing on iOS
Steps to Reproduce
Use the 1x or 2x zoom on an iPhone and slowly move the phone closer to the object you're photographing.
I was able to reproduce this issue using the example app on both 1.4.0
and 2.0.0-dev.1
.
Here is a video showing the issue: https://share.getcloudapp.com/RBuJNlBw
Expected results
The camera should attempt to autofocus as you get closer to the object.
Actual results
The 1x and 2x cameras do not autofocus, which causes the object to appear blurry.
Note that this does not occur when using the 0.5x camera or when using the iOS native camera.
About your device
Brand | Model | OS |
---|---|---|
Apple | iPhone 14 Pro | 16.3.1 |
Your flutter version
Flutter 3.10.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 9cd3d0d9ff (8 days ago) • 2023-05-23 20:57:28 -0700
Engine • revision 90fa3ae28f
Tools • Dart 3.0.2 • DevTools 2.23.1
Thats intended behaviour from the camera hardware. The native camera app switches to the 0.5 lens when the object is close-up.
It is called "macro mode". More info here: https://support.apple.com/en-gb/guide/iphone/iphfaacf2eb0/ios
Thanks. Is it reasonable to expect the same behavior with CamerAwesome?Sent from my iPhoneOn Jun 5, 2023, at 2:21 PM, cuzyoucant @.***> wrote: Thats intended behaviour from the camera hardware. The native camera app switches to the 0.5 lens when the object is close-up. It is called "macro mode". More info here: https://support.apple.com/en-gb/guide/iphone/iphfaacf2eb0/ios
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>
@istornz any thoughts on this one as someone who worked on the ability to switch cameras on iOS?
I'm thinking the package would need to leverage builtInTripleCamera
and its counterparts to get the automatic lens switching, but admittedly, I'm not very familiar with how the implementation functions.
From the docs, it says:
Automatic switching from one camera to another when zoom factor, light level, and focus position allow.
The same goes for its counterparts:
- https://developer.apple.com/documentation/avfoundation/avcapturedevice/devicetype/2727142-builtindualcamera
- https://developer.apple.com/documentation/avfoundation/avcapturedevice/devicetype/3377620-builtindualwidecamera
@istornz any thoughts here? Thank you!
Hi @istornz any news about it? 🤔 Thanks