Ask Your Question
0

I get this error - when trying to convert image using COLOR_BGR2GRAY

asked 2014-12-31 04:35:31 -0500

OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cv::cvtColor, file ........\opencv\modules\imgproc\src\color.cpp,

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
3

answered 2014-12-31 04:42:07 -0500

updated 2014-12-31 04:42:23 -0500

This assert tells you that your source image contains neither 3(BGR) nor 4(BGRA) channels. Check it before.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2014-12-31 04:35:31 -0500

Seen: 213 times

Last updated: Dec 31 '14