Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Comments

@SSSSShore
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant