Search code examples
google-project-tango

Google Tango Lenovo Phab 2 Camera Intrinsics


I was trying to extract the camera intrinsics and distortion coefficients from my Lenovo Phab 2 via the documented: ret = TangoService_getCameraIntrinsics(TANGO_CAMERA_COLOR, &ccIntrinsics);

Weirdly enough, the distortion coefficients are coming back 0 for every one. However, there is data for the intrinsics, with what I think is very low precision.

I thought at first it could have been a casting error, but with the %f, %lf and %E flags (LOGE();), the values don't change.

I know that on the previous Google Tango Tablet dev kit, the calibration coefficients and distortion modle was in a file called calibration.xml. Is this also true of the Lenovo Phab 2?

EDIT: After dumping the contents of the camera intrinsics struct to file, there is for sure no distortion coefficients being returned for the device. I.e. All distortion entries are 0.0000.


Solution

  • This was an issue with my device! It was resolved by receiving an updated device. Somehow the calibration data was missing.

    Make sure to check your device for the calibration.xml file. If this file is not in-place, contact costumer support!