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?
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.
Connect your phone and your RE. Go to Settings. Tap Camera settings. Turn the Ultra-wide angle switch on or off.
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.
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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With