我是opencv和python的初學者。 我剛剛安裝了opencv2.4.9和enthought canopy-32bit。我收到錯誤以下:獲取錯誤 - '找不到作家'給imshow,imwrite命令opencv
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_