In my project I am capturing point cloud and based on that I create a binary mask, which I want to apply to captured image from Tango tablet main camera, so that the final image is a cutout of the detected points of point cloud.
I tried to use the tango examples for getting the camera image so that further postprocessing can be made, but I had no success. (temporary hack includes a camera to render texture and then applying a masking shader to the render)
What is the easiest method to obtain the tango main camera image in a Unity?
Take a look at the
VideoOverlayProvider.cs
file, there are two static methods SetCallback(..) which sound like what you are looking for:You can get access to both the TANGO_CAMERA_COLOR camera and the TANGO_CAMERA_FISHEYE camera frames