cv2.error: OpenCV(3.4.1) /io/opencv/modules/imgproc/src/color.cpp:11115: error: (-215) scn == 3 || scn == 4 in function cvtColor
genius9527 opened this issue · 1 comments
genius9527 commented
Hi, when I trained with your code, I encountered the following problem:
cv2.error: OpenCV(3.4.1) /io/opencv/modules/imgproc/src/color.cpp:11115: error: (-215) scn == 3 || scn == 4 in function cvtColor
xizero00 commented
@genius9527
Hi,
Do you have gray image(one channel) in your dataset?
Please check the image and make sure the image have 3 or 4 channels.