Gives a set of rules to specify when it is possible to open a pair of physicalĬameras that are part of the same logical camera. With dual cameras existed prior to Android 9, but opening more than one camera Multi-camera API also comes with certain expectations from developers. OutputConfiguration and SessionConfigurationĭue to changes to the Android Compatibility Definition Document (CDD), the. CameraDevice.createCaptureSession(SessionConfiguration config).CameraCharacteristics.getAvailablePhysicalCameraRequestKeys().CameraCharacteristics.getPhysicalCameraIds().CameraMetadata.REQUEST_AVAILABLE_CAPABILITIES_LOGICAL_MULTI_CAMERA.The new API adds the following new constants, classes, and methods: For example, a device like Pixel 3 implements its logicalĬamera in such a way that it chooses one of its physical cameras based on the What the logical camera provides is entirely dependent on the OEM implementation Full developer access to all camera devices Third-party developers should expect to see on devices running Android 9 and Practices strongly recommend that phone manufacturers expose a logical cameraįor all physical cameras facing the same direction. With the inclusion of multi-camera support in the framework, Android best Camera capabilities typically only available toīeginning with Android 9, private APIs are no longer allowed in Android apps. Illustrated in the following diagram: Figure 1. The situation for third-party developers prior to Android 9 is Often, only one of the physical cameras is exposed to theįramework. Someĭevices implement the concept of logical cameras by providing a fused stream ofįrames from the different physical cameras, but only to certain privilegedĪpplications. The driver implementation that other applications do not have access to. They may use private or hidden APIs or receive special treatment from To use all of the hardware's capabilities, Many phone manufacturers develop first-party camera applications, which usuallyĬome pre-installed on their devices. Either way, the stream is handled by the camera Hardware Or a fused stream coming from more than one underlying physical camera The output of the logicalĬamera can be a stream that comes from one of the underlying physical cameras, A logical camera is then a grouping of two or more In this example, each of the three back cameras isĬonsidered a physical camera. For reference, consider a device with threeīack-facing cameras. Understanding the multi-camera API requires understanding the difference between The difference between logical and physical cameras Bokeh: using inferred depth information to simulate a DSLR-like narrow.Depth: using multiple cameras to build a depth map.Zoom: switching between cameras depending on crop region or desired focal.In other words, notĪll use cases are compatible with every device, which makes multi-cameraįeatures a good candidate for Play Feature Many multi-camera use casesĪre tightly coupled with a specific hardware configuration. Since its release,ĭevices have come to market that support the API. Multi-camera was introduced with Android 9 (API level 28). Both CameraX and Camera2 support Android 5.0 (API level 21) and higher. Unless your app requires specific, low-level features from Camera2, we recommend using CameraX. Note: This page refers to the Camera2 package.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |