Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

On Android - how to capture image/video from the wide angle camera?

How to capture images or videos from the camera2 api wide angle camera? or the telescopic camera? I know how to handle camera capture for front & back camera. I just can't understand how to open the camera and choose the wide/telescopic camera?

I guess it has something to do with setting one of the following :

CameraMetadata.REQUEST_AVAILABLE_CAPABILITIES_LOGICAL_MULTI_CAMERA
CameraCharacteristics.getPhysicalCameraIds()
CameraCharacteristics.getAvailablePhysicalCameraRequestKeys()
CameraDevice.createCaptureSession(SessionConfiguration config)
CameraCharactersitics.LOGICAL_MULTI_CAMERA_SENSOR_SYNC_TYPE

But I fail to understand the scenario of setting it up and I didn;t find any good explanation. I will appreciate any kind of tutorial or explanation. Last question - how to test it with no phsical device? I mean - how to setup the Avd/emulator?

like image 881
kfir Avatar asked Jan 04 '20 11:01

kfir


People also ask

How do you use wide-angle on Android?

From the main screen, tap the "Camera" icon. You can hold your phone horizontally or vertically for photos and videos. For a wide-angle photo, tap the "Wide-angle" icon indicated by 2 leaves.

How do I set my Android camera to wide-angle?

Connect your phone and your RE. Go to Settings. Tap Camera settings. Turn the Ultra-wide angle switch on or off.

Does Android have wide-angle camera?

They offer a field of view that's wider than traditional digital cameras. For example, the Samsung Galaxy S22 has a 50MP main camera with a field of view (FoV) of roughly 85 degrees. Meanwhile, ultrawide cameras go even wider than that, with the S22's ultrawide sensor offering a 120-degree FoV.


1 Answers

So I asked this on the CameraX discussion group and here is the reply from google:

For CameraX to support wide angle cameras we are working with manufacturers to expose those via camera2 first. Some devices indeed do so today in an non-determinstic manner. Will keep you posted as we progress, thanks!

like image 92
Steeve Favre Avatar answered Oct 04 '22 18:10

Steeve Favre