Request for selecting Camera by ID / feature set

266 views
Skip to first unread message

Pavel Sliusar

unread,
Jul 17, 2019, 8:02:30 AM7/17/19
to Android CameraX Discussion Group
I have LG G6 phone which has 2 back facing cameras. One of them is wide-lens without auto focus. It is not possible to use this camera to scan QR code -- QR is out of focus when too close, or becomes too small when too far.

So in different circumstances I suppose there should be preferences on which camera to choose. The simplest way is to scan all the cameras on device, choose appropriate and pass the ID into builder for Preview/Capture use cases.

CameraX aims for simplicity, so it might be better to pass a set of features into builder (like lens facing, auto focus, etc.), and cameras with these features will have the priority when CameraX choses the camera.

In other words, any approach that might help differentiate two same-facing cameras would be nice to have.

Thanks!

Vinit Modi

unread,
Jul 17, 2019, 11:49:47 AM7/17/19
to Pavel Sliusar, Android CameraX Discussion Group
Hi Pavel,

Thanks for your feedback. We are working on a way where developers will be able to select different cameras via camera2 interoperability; note that with this functionality CameraX test guarantees are not as stringent and behavior may be device dependent. 

Re: lens without AF, blurriness too close to the lens is common since the focal distance is too small; it's a characteristic of the type of lens and not the API. Most non-AF lenses on phones have an infinite focal length set and are typically perform best when the subject/object is roughly an arm's length away. Is there any specific reason why you want to use the non-AF lens for QR code scanning?  

Thanks!
Vinit

--
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/352f7da2-0e2e-46b9-8d40-b5ef8299206d%40android.com.

Pavel Sliusar

unread,
Jul 18, 2019, 6:47:47 AM7/18/19
to Android CameraX Discussion Group, sles...@gmail.com
Hi Vinit, 

Thanks for your answer. I was referring to QR just as an example where I would want to use specific camera. There might be a case where I, as a developer, would want to give user a choice which camera to use to perform some action. Like, to take a photo in messenger app. Sometimes, wide lens may be preferable.

Thanks,
Pavel


On Wednesday, July 17, 2019 at 6:49:47 PM UTC+3, Vinit Modi wrote:
Hi Pavel,

Thanks for your feedback. We are working on a way where developers will be able to select different cameras via camera2 interoperability; note that with this functionality CameraX test guarantees are not as stringent and behavior may be device dependent. 

Re: lens without AF, blurriness too close to the lens is common since the focal distance is too small; it's a characteristic of the type of lens and not the API. Most non-AF lenses on phones have an infinite focal length set and are typically perform best when the subject/object is roughly an arm's length away. Is there any specific reason why you want to use the non-AF lens for QR code scanning?  

Thanks!
Vinit

On Wed, Jul 17, 2019 at 5:02 AM Pavel Sliusar <sle...@gmail.com> wrote:
I have LG G6 phone which has 2 back facing cameras. One of them is wide-lens without auto focus. It is not possible to use this camera to scan QR code -- QR is out of focus when too close, or becomes too small when too far.

So in different circumstances I suppose there should be preferences on which camera to choose. The simplest way is to scan all the cameras on device, choose appropriate and pass the ID into builder for Preview/Capture use cases.

CameraX aims for simplicity, so it might be better to pass a set of features into builder (like lens facing, auto focus, etc.), and cameras with these features will have the priority when CameraX choses the camera.

In other words, any approach that might help differentiate two same-facing cameras would be nice to have.

Thanks!

--
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.

Vinit Modi

unread,
Jul 18, 2019, 11:37:19 AM7/18/19
to Pavel Sliusar, Android CameraX Discussion Group
Got it, thanks. We are working to add the capability to select a camera ID as part of camera2 interop (again note the lack of test guarantees). As more manufacturers migrate to the LOGICAL_MULTI_CAMERA API we will be able to provide capabilities like smooth zoom, optical zoom, etc. out of the box in a well tested manner. 

To unsubscribe from this group and stop receiving emails from it, send an email to camerax-develop...@android.com.

--
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/97dc67f2-ed7a-4844-923f-9aa898eccfc3%40android.com.
Reply all
Reply to author
Forward
0 new messages