0
votes

I need to get the Android Camera parameters like focal & exposure from Unity.

I'm using the Tango AR Camera in my Project and using the Unity AndroidJavaClass I can get the Camera class, get number of cameras, and open a camera for more options. However, when I call the Camera.open() method the app camera stops showing the feed, probably since the open() method disconnect the camera from the Tango AR Camera.

Can the Camera shared/accessed both from my code only to get cam. parameters?

Thanks.

1

1 Answers

0
votes

You shouldn't use the Tango API and Android Camera API together. Tango occupies the camera hardware, which means that the Camera.open would not get a handle of the camera.

To get intrinsics, you might want to go through the Tango API.

TangoCameraIntrinsics intrinsics = new TangoCameraIntrinsics();    
VideoOverlayProvider.GetIntrinsics(TangoEnums.TangoCameraId.TANGO_CAMERA_COLOR, intrinsics);

TangoARScreen is doing something similar, see here.