0
我希望的一个相当简单的问题;我正在尝试使用以下openCV命令;cv.CalibrateCamera2(python)“两个矩阵必须具有相同的点数”
cv.CalibrateCamera2(object_points2, image_points2, point_counts2, cv.GetSize(image), intrinsic_matrix, distortion_coeffs, rvecs, tvecs, 0)
但我收到以下错误;
cv.error: Both matrices must have the same number of points
使用numpy.shape和numpy.array,数组的形状是;
print shape(array(object_points2)) --> (980, 3)
print shape(array(image_points2)) --> (980, 2)
print shape(array(point_counts2)) --> (20, 1)
print shape(array(intrinsic_matrix)) --> (3, 3)
print shape(array(distortion_coeffs)) --> (5, 1)
print shape(array(rvecs)) --> (20, 3)
print shape(array(tvecs)) --> (20, 3)
我明显错过了一些东西,但一直试图弄清楚这一天! 我是不是很笨?
非常感谢提前! :) Josh
你使用CvMat作为矩阵吗? –