Ask Your Question

Revision history [back]

Using OpenCV to calibrate Pi Camera always gives me the same fx and fy for focal length

Hi all,

I'm doing camera calibration using OpenCV's tutorial code from here.

As we know, the output camera matrix should in the following matrix:
[fx, 0, cx
0, fy, cy
0, 0, 1]

From that, the camera intrinsic matrix I got always has the same fx and fy. For example: data:
[ 6.5746697810243404e+002, 0., 1560, 0., 6.5746697810243404e+002, 1232, 0., 0., 1. ]

From the sample given by OpenCV, it also has the same fx and fy.

I don't understand why the calculated fx and fy will be the same, since the resolution for x and y is different, the sensor width and height is also different.

Is there anybody can explain this for me???

Thanks a lot.

Arlene