-
Notifications
You must be signed in to change notification settings - Fork 239
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
Error when using calibration #23
Comments
What worked for me was to make a code to take images and resize to 640x360 and save as "jpg" just the same size and type as the test images and using a chessboard with the same size as the test: 6x9 24.23mm left: But now I have trouble with the calibrate_stereo function: |
I found a solution. Here I had my left files in folder 1 and my right files in folder 2, solve it by changing the right folder to "2". Conlusion:
|
Getting error when running the calibration for pictures that I have taken.
./calibrate -w 11 -h 16 -n 10 -s 0.015 -d "../calib_imgs/1/" -i "left" -o "cam_left.yml" -e "jpg"
Starting Calibration
OpenCV Error: Assertion failed (nimages > 0) in calibrateCamera, file /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/modules/calib3d/src/calibration.cpp, line 3334
terminate called after throwing an instance of 'cv::Exception'
what(): /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/modules/calib3d/src/calibration.cpp:3334: error: (-215) nimages > 0 in function calibrateCamera
Aborted (core dumped)
I used this code to take images:
rosrun image_view image_view image:=/kinect2/hd/image_color_rect
Because i wasn't able to use Kincet v2 with the read function.
The text was updated successfully, but these errors were encountered: