Get depth from dual camera Android smartphone

Android P will be supporting multicamera mode so that developers/users can access both physical cameras. Depth calculation from monochrome is not a problem because most algorithms use the stereo pictures after converting them to gtay scale. In current versions the difficulty is only getting access to both physical cameras. I am too waiting for this Android release.

This one is written in OpenCV python using grayscale image as input. https://docs.opencv.org/3.0-beta/doc/py_tutorials/py_calib3d/py_depthmap/py_depthmap.html


In certain Xiaomi phones, I have tested in Poco F1, it is possible to access the second depth sensing camera.

By tapping on the Kernel version multiple times, we can get to phone testing. There, we can access the second rear camera. The zoom level seems to be around 2X in my model and surprisingly it is a colour sensor. No autofocus though, but the depth is set at infinity so the photos aren't very bad.

The only way to save the pic seems to be taking a screenshot, unfortunately.

Tags:

Android

Camera