I am a beginner at opencv and python. I have just installed opencv2.4.9 and enthought canopy-32bit. I am getting error for the following:
import cv2 image =
Add an extension for the output file like .jpg, .png, etc based on the application.
For example in this case you could use,
import cv2 image = cv2.imread('Lena.jpg') cv2.imwrite('Mypic.jpg',image)