"characteristics.get(CameraCharacteristics.LENS_INTRINSIC_CALIBRATION)" returns null
Closed this issue · 2 comments
sir, it seems that I can't get phone intrinsic directly by using "characteristics.get(CameraCharacteristics.LENS_INTRINSIC_CALIBRATION)" https://github.com/rpng/android-camera-calibration/blob/a80ce7a4f257f265bb7219d7142bbdfc5bb03dba/app/src/main/java/io/rpng/calibration/managers/CameraManager.java#L173 ; and as a result, I get NULL or [0,0,0,0]. The phone I used is Google Pixel. So I wonder can this work well for you?
--Best regards
So that is just asking for the "internal" calibration.
This is something that isn't tested, but should be specified if the device is factory calibrated.
I have personally never got it to work, but I thought it was an interesting API endpoint, so I thought I would put it in.
Now, if you perform normal camera calibration (collecting images of the grid) then this package will solve for a camera matrix for you (Calibration Matrix:
vs Device Matrix (api 23):
on the results screen).