Search code examples
androidcamera

Get depth from dual camera Android smartphone


There are many dual camera Android phones in the market which can take image with bokeh effect. Is it possible to create an Android app to make use of dual camera and get the depth of each pixel in image? Or accessing two camera at the same time to produce stereo image?


Solution

  • The modern dual-camera devices don't allow user control the way they use the lenses. I explained the situation also in an answer to Capturing a photo from only one lens, in dual-camera phones?. These devices have different cameras, e.g. color and mono (in case of Huawei P9), so reconstruction of stereo image would be difficult if not impossible even if you somehow get control of the two sensors.

    On the other hand, the HTC Evo 3D phone comes with SDK that lets you do exactly this: work with the stereo picture.