Apparence-io / CamerAwesome

📸 Embedding a camera experience within your own app shouldn't be that hard. A flutter plugin to integrate awesome Android / iOS camera experience.
https://ApparenceKit.dev
MIT License
911 stars 200 forks source link

"1x" and "2x" cameras not auto-focusing on iOS #354

Open jamesdixon opened 1 year ago

jamesdixon commented 1 year ago

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

cuzyoucant commented 1 year ago

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

jamesdixon commented 1 year ago

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: @.***>

jamesdixon commented 1 year ago

@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:

jamesdixon commented 11 months ago

@istornz any thoughts here? Thank you!

GastonTestay commented 5 months ago

Hi @istornz any news about it? 🤔 Thanks