Ask Your Question

sjnegi's profile - activity

2017-11-28 20:47:39 -0600 asked a question How to fix this error: grayscaled = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) cv2.error: /io/opencv/modules/imgproc/src/color.cpp:10638: error: (-215) scn == 3 || scn == 4 in function cvtColor?

How to fix this error: grayscaled = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) cv2.error: /io/opencv/modules/imgproc/src/color