Ask Your Question

Revision history [back]

how to solve cv2.error: C:\projects\opencv-python\opencv\modules\imgproc\src\demosaicing.cpp:1632: error: (-215) scn == 1 && dcn == 1 in function cv::demosaicinguse

i am trying to use cv2 to detect the faces in a photo and i am getting the following error cv2.error: C:\projects\opencv-python\opencv\modules\imgproc\src\demosaicing.cpp:1632: error: (-215) scn == 1 && dcn == 1 in function cv::demosaicing the code is as in the image image description and error page is image description

click to hide/show revision 2
None

updated 2018-01-20 11:24:12 -0600

berak gravatar image

how to solve cv2.error: C:\projects\opencv-python\opencv\modules\imgproc\src\demosaicing.cpp:1632: error: (-215) scn == 1 && dcn == 1 in function cv::demosaicinguse

i am trying to use cv2 to detect the faces in a photo and i am getting the following error cv2.error: C:\projects\opencv-python\opencv\modules\imgproc\src\demosaicing.cpp:1632: error: (-215) scn == 1 && dcn == 1 in function cv::demosaicing the code is as in the image image description ... and error page is image description...