Distinguish between wide, regular, telephoto lens

277 views
Skip to first unread message
Assigned to tonyt...@google.com by wuj...@google.com

Adarsh Revankar

unread,
Sep 5, 2022, 8:08:25 AM9/5/22
to Android CameraX Discussion Group
Hi people,

I'm currently working on a feature which uses other lenses apart from the regular lens of a camera

Now while going through the documentation I found that we are able to get the logical camera ids and using those we can access cameras

But, I have confused if which camera is what. I meant if the camera id (let's assume )  is a wide lens of back camera. I'm able to identify if it's a back camera type. But there is no way to identify if it's a wide lens or telephoto!

After going through some articles I found that we can use
- Field of view
- Zoom range
- Focal length

To identify relatively if the camera is wide/telephoto. But, I want to know if there is any standard method for this?

tonyt...@google.com

unread,
Sep 14, 2022, 5:10:41 AM9/14/22
to Android CameraX Discussion Group, adar...@servify.in
Hi,
Thanks for the question. IIUC, you are working on a device that has logical multi-camera capability, correct? In that case, it's suggested to use CameraControl.setZoomRatio to switch between cameras smoothly.

For your question about determining the lens type, you may reference to the SO post for calculating the FOV with focal length and sensor size. Also, we understand that this could be a useful feature and will consider adding it.

Adarsh Revankar

unread,
Sep 19, 2022, 2:38:00 AM9/19/22
to Android CameraX Discussion Group, tonyt...@google.com, Adarsh Revankar
Hi,
 Thanks for the info. Switching the cameras based on the zoom ratio was not in my interest, but will definitely try to use the formula wrt. main lens of the back / front camera

Adarsh Revankar

unread,
Nov 7, 2023, 10:28:53 AM11/7/23
to Android CameraX Discussion Group, tonyt...@google.com, Adarsh Revankar
Hi Tony,

Thanks for sharing the details. Indeed the method seems to be working fine with CameraControl.setZoomRatio and for identifying camera SO Post is useful
Hoping to get the feature to access physical camera & it's details !


On Wednesday, September 14, 2022 at 2:40:41 PM UTC+5:30 tonyt...@google.com wrote:

Ultima Ratio

unread,
Nov 8, 2023, 11:25:56 AM11/8/23
to Android CameraX Discussion Group, tonyt...@google.com, adar...@servify.in
Hi!

Replying here, because I was interested, if that should work? 

If I switch to the wide-lens and then zoom, the picture is way uglier, compared to switching to normal lense and then zoom.

BR, Joerg

tonyt...@google.com

unread,
Nov 13, 2023, 6:53:30 PM11/13/23
to Android CameraX Discussion Group, beh...@gmail.com, tonyt...@google.com, adar...@servify.in
Yeah, that's expected if the cameras are not logical cameras. To achieve similar FOV, more digital zoom has to be applied on the wide-angle lens compared to the normal lens, resulting in a worse quality.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages