我已安装 opencv版本1.0.1 ,当我使用 cv2.imwrite()方法时,它会抛出我的错误
OpenCV Error: Unspecified error (could not find a writer for the
specified extension) in imwrite_, file
/io/opencv/modules/imgcodecs/src/loadsave.cpp, line 604 Traceback
(most recent call last): File "scan.py", line 78, in <module>
findContours(image,screenCnt,orig,ratio,outputPath) File /home/Verchaska/dev/aneesh/contours.py", line 26, in findContours
cv2.imwrite(filename,warped) cv2.error: /io/opencv/modules/imgcodecs/src/loadsave.cpp:604: error: (-2) could
not find a writer for the specified extension in function imwrite_
答案 0 :(得分:0)
您需要对以下文件使用扩展名:
ContentDisposition