You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "E:\new stereo\camera_calibration.py", line 75, in read_images rt, self.M1, self.d1, self.r1, self.t1 = cv2.calibrateCamera( cv2.error: OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv\modules\calib3d\src\calibration.cpp:3339: error: (-2:Unspecified error) in function 'void __cdecl cv::collectCalibrationData(const class cv::_InputArray &,const class cv::_InputArray &,const class cv::_InputArray &,int,class cv::Mat &,class cv::Mat &,class cv::Mat *,class cv::Mat &)' > (expected: 'nimages == (int)imagePoints1.total()'), where > 'nimages' is 7 > must be equal to > '(int)imagePoints1.total()' is 0
#10
Open
SSSSShore opened this issue
Jul 29, 2022
· 0 comments
when I run the code, I got this error. and I have 7 pairs of the images.
File "E:\new stereo\camera_calibration.py", line 75, in read_images
rt, self.M1, self.d1, self.r1, self.t1 = cv2.calibrateCamera(
cv2.error: OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv\modules\calib3d\src\calibration.cpp:3339: error: (-2:Unspecified error) in function 'void __cdecl cv::collectCalibrationData(const class cv::_InputArray &,const class cv::_InputArray &,const class cv::_InputArray &,int,class cv::Mat &,class cv::Mat &,class cv::Mat *,class cv::Mat &)'
(expected: 'nimages == (int)imagePoints1.total()'), where
'nimages' is 7
must be equal to
'(int)imagePoints1.total()' is 0
The text was updated successfully, but these errors were encountered:
when I run the code, I got this error. and I have 7 pairs of the images.
The text was updated successfully, but these errors were encountered: