Enable Auto Focus

708 views
Skip to first unread message

Leevi Graham

unread,
Sep 3, 2019, 11:35:31 PM9/3/19
to Android CameraX Discussion Group
Is it possible to enable auto-focus in CameraX.

I'm testing on a Samsung SM-G900I which supports auto focus but images in the CameraX Basic example app are blurry. The camera app on the device auto focusses but suspect this is due to the camera app.

Cheers Leevi

Eric Ng

unread,
Sep 3, 2019, 11:48:28 PM9/3/19
to Leevi Graham, Android CameraX Discussion Group
Hi Leevi,

Thanks for asking! CameraX's default behavior for AF mode is CAF (Continuous Auto Focus) mode if the focus mode is supported on device. There are some Samsung devices we have found in our testing that advertise support for CONTROL_AF_MODE_CONTINUOUS_PICTURE but they actually do not. We have an internal issue (ID 123316704) which tracks these behaviors. We'll look into it more after we release our Beta library.

Thanks!
-Eric

--
You received this message because you are subscribed to the Google Groups "Android CameraX Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camerax-develop...@android.com.
To view this discussion on the web visit https://groups.google.com/a/android.com/d/msgid/camerax-developers/393b1e46-d6cf-4262-b782-e8fa5e0bfeda%40android.com.


--
-Eric Ng

Leevi Graham

unread,
Sep 3, 2019, 11:52:09 PM9/3/19
to Android CameraX Discussion Group, le...@newism.com.au
Thanks for the reply Eric. What you've outlined could very well be the case on this old Galaxy S5.

Looking forward to the beta.

Cheers

On Wednesday, September 4, 2019 at 1:48:28 PM UTC+10, Eric Ng wrote:
Hi Leevi,

Thanks for asking! CameraX's default behavior for AF mode is CAF (Continuous Auto Focus) mode if the focus mode is supported on device. There are some Samsung devices we have found in our testing that advertise support for CONTROL_AF_MODE_CONTINUOUS_PICTURE but they actually do not. We have an internal issue (ID 123316704) which tracks these behaviors. We'll look into it more after we release our Beta library.

Thanks!
-Eric

On Tue, Sep 3, 2019 at 8:35 PM Leevi Graham <le...@newism.com.au> wrote:
Is it possible to enable auto-focus in CameraX.

I'm testing on a Samsung SM-G900I which supports auto focus but images in the CameraX Basic example app are blurry. The camera app on the device auto focusses but suspect this is due to the camera app.

Cheers Leevi

--
You received this message because you are subscribed to the Google Groups "Android CameraX Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camerax-developers+unsub...@android.com.


--
-Eric Ng
Reply all
Reply to author
Forward
0 new messages