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

error: (-215:Assertion failed) VScn::contains(scn) && VDcn::contains(dcn) && VDepth::contains(depth) in function 'CvtHelper' #18

Closed
rahulsharma11 opened this issue Dec 12, 2018 · 1 comment

Comments

@rahulsharma11
Copy link

Hi,
i am using this project to calibrate my stereo camera.
I have successfully make cam_left.yml and cam_right.yml through-
"./calibrate -w 8 -h 6 -n 165 -s 0.108 -d "../calib_imgs/right/" -i "right" -o "cam_right.yml" -e "png""
"./calibrate -w 8 -h 6 -n 165 -s 0.108 -d "../calib_imgs/left/" -i "left" -o "cam_left.yml" -e "png""

but for stereo_calibratio "./calibrate_stereo -n 165 -u cam_left.yml -v cam_right.yml -L ../calib_imgs/left/ -R ../calib_imgs/right/ -l left -r right -o cam_stereo.yml"

it is throghing error-
terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(3.4.2) /home/rahul/opencv/opencv/modules/imgproc/src/color.hpp:253: error: (-215:Assertion failed) VScn::contains(scn) && VDcn::contains(dcn) && VDepth::contains(depth) in function 'CvtHelper'

Aborted (core dumped)

Any suggestion?
I have collected the stereo images through ROS. "http://wiki.ros.org/camera_calibration/Tutorials/StereoCalibration".
Thanks.

@rahulsharma11
Copy link
Author

Hi,
It is solved.
I have to change the raw input pixel format to mjepg.

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