jetson-screencasts-sources icon indicating copy to clipboard operation
jetson-screencasts-sources copied to clipboard

At running of "9-cv-stereo-calibrate", There is runtime error.

Open bemoregt opened this issue 9 years ago • 4 comments
trafficstars

Hi, Itseez At running of "9-cv-stereo-calibrate" There is runtime error.
What'w wrong with me?

My error message is here:

sgi:9-cv-stereo-calibrate sgi$ ./build/cv_stereo_calibrate WARNING: Couldn't read movie file left%02d.jpg WARNING: Couldn't read movie file right%02d.jpg OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cvtColor, file /tmp/opencv-20160626-26273-1a7s2xo/opencv-2.4.13/modules/imgproc/src/color.cpp, line 3739 libc++abi.dylib: terminating with uncaught exception of type cv::Exception: /tmp/opencv-20160626-26273-1a7s2xo/opencv-2.4.13/modules/imgproc/src/color.cpp:3739: error: (-215) scn == 3 || scn == 4 in function cvtColor

bemoregt avatar Aug 11 '16 08:08 bemoregt

Hey, @bemoregt !

My guess would be that highgui module in your OpenCV build can't read the .jpg images. Can you double-check that?

snosov1 avatar Aug 11 '16 09:08 snosov1

Thanks

I will check it

나의 iPhone에서 보냄

      1. 오후 6:27 Sergei Nosov [email protected] 작성:

Hey, @bemoregt !

My guess would be that highgui module in your OpenCV build can't read the .jpg images. Can you double-check that?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

bemoregt avatar Aug 11 '16 10:08 bemoregt

I've solved image reading problems, may be.

But, there is another error occurs.

like this:

OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cvtColor, file /tmp/opencv-20160626-26273-1a7s2xo/opencv-2.4.13/modules/imgproc/src/color.cpp, line 3739 libc++abi.dylib: terminating with uncaught exception of type cv::Exception: /tmp/opencv-20160626-26273-1a7s2xo/opencv-2.4.13/modules/imgproc/src/color.cpp:3739: error: (-215) scn == 3 || scn == 4 in function cvtColor

Abort trap: 6

What's wrong with me? Jetson TX1, Ubuntu 14.04 x64

bemoregt avatar Aug 12 '16 02:08 bemoregt

I've solved image reading problems, may be.

I suggest to figure it out for sure =) It still looks like the input image to cvtColor is empty. You can, probably, check that by inserting

cv::imshow("image[0]", image[0]);
cv::imshow("image[1]", image[1]);
cv::waitKey(0);

prior to cvtColor calls.

snosov1 avatar Aug 12 '16 06:08 snosov1