I am very new to python programming. I use enthought canopy (windows 7, 32-bit, version 1.3.1). Very recently I stumbled upon opencv and its capabilities. I have installed opencv but when i use it in a module, i get the following error message. I have installed opencv using this post Best way to install OpenCV on Windows with Enthought Canopy Python?
When i try running this piece of code:
picture = cv2.imread("image1.png")
picture2 = cv2.cvtColor(picture, cv2.COLOR_BGR2GRAY)
it gives an error message:
error: ..\..\..\..\opencv\modules\imgproc\src\color.cpp:3739: error: (-215) scn == 3 || scn == 4 in function cv::cvtColor
Let me know if you would need additional info