2
votes

I am kind of new to android developement and would like to use the data captured by the depth sensor of my phab 2 pro. (IR sensor) I know, that accessing the standard camera is possible via the Camera API using the camera2 class. But I do not know how to do so, or is it even possible, by using the phab 2's depth camera!? I already got familiar with the Tango C API but it does not provide the raw depth data, where depth is represented according to the image plane pixels.

Long story short question: Can I work with the depth camera of my smarthphone similar to the standard one?

1
Unclear why you need to access the depth camera via camera api when you can get access to the data in a Tango Point Cloud developers.google.com/tango/apis/c/reference/struct/… - Morrison Chang
I do not need the point cloud representation of the depth data. Rather I need the depth information as "raw" pixel data. Where each pixel of the image plane is assigned with a depth value (equal e.g. using the kinect) - mrks
There's no raw depth image from Tango's stand of point. All data comes from HAL is as points. stackoverflow.com/questions/41572682/… - xuguo
That tango url no longer works. - pete
You can find the SDK docs on archive.org. - Droid Coder

1 Answers

1
votes

The best you can do is to capture a point cloud and use TangoSupport_upsampleImageBilateral() to interpolate the depth, for each pixel.

See:

Note that if you're trying to pair a depth image with an image from the color camera, they will possibly (always, in the case of the Yellowstone tablet) be captured at different times.