我是opencv和python的初学者。我刚刚安装了opencv2.4.9并考虑了canopy-32bit。我收到以下错误:
import cv2
image = cv2.imread('Lena.jpg')
cv2.imwrite('Mypic',image)
这就是我得到的:
c:\users\nam\appdata\local\temp\tmpokspbt.py in <module>()
3
4 image = cv2.imread('Lena.jpg')
----> 5 cv2.imwrite('Mypic',image)
error: ..\..\..\..\opencv\modules\highgui\src\loadsave.cpp:275: error: (-2) could not find a writer for the specified extension in function cv::imwrite_