2

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?

mrks
  • 141
  • 2
  • 15
  • 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 https://developers.google.com/tango/apis/c/reference/struct/tango-point-cloud – Morrison Chang Jan 11 '17 at 14:46
  • 1
    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 Jan 11 '17 at 14:54
  • There's no raw depth image from Tango's stand of point. All data comes from HAL is as points. http://stackoverflow.com/questions/41572682/tango-raw-depth-data-update – xuguo Jan 18 '17 at 02:02
  • That tango url no longer works. – pete May 21 '19 at 01:33
  • You can find the SDK docs on archive.org. – Droid Coder Jul 14 '19 at 00:13

1 Answers1

1

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.

Droid Coder
  • 381
  • 2
  • 10
  • Tango has shut down. How to access this data without tango? – pete May 23 '19 at 10:02
  • If you're using a Tango device, you can find the SDK documentation via archive.org and the runtime libraries in https://github.com/6DoFF/tango-examples-c , however I'm not aware of any other API for accessing the depth sensor on these devices. – Droid Coder Jul 14 '19 at 00:10
  • There are some Tango developers still hanging around arcore.slack.com. You could try asking there. – Droid Coder Jul 14 '19 at 00:12