Ask Your Question
0

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

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

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 -0600

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

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

Question Tools

1 follower

Stats

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

Seen: 417 times

Last updated: Dec 31 '14