OpenCV Error: Unspecified error (could not find a writer for the specifi
ed extension) in cv::imwrite_, file C:\ci\opencv_1512688052760\work\modu
les\imgcodecs\src\loadsave.cpp, line 677
Traceback (most recent call last):
File "save_person_pic.py", line 44, in <module>
catchPICFromcamera("catchpic",int(sys.argv[1]),int(sys.argv[2]),sys.
argv[3])
File "save_person_pic.py", line 24, in catchPICFromcamera
cv2.imwrite(img_name,image)
cv2.error: C:\ci\opencv_1512688052760\work\modules\imgcodecs\src\loadsav
e.cpp:677: error: (-2) could not find a writer for the specified extensi
ed extension) in cv::imwrite_, file C:\ci\opencv_1512688052760\work\modu
les\imgcodecs\src\loadsave.cpp, line 677
Traceback (most recent call last):
File "save_person_pic.py", line 44, in <module>
catchPICFromcamera("catchpic",int(sys.argv[1]),int(sys.argv[2]),sys.
argv[3])
File "save_person_pic.py", line 24, in catchPICFromcamera
cv2.imwrite(img_name,image)
cv2.error: C:\ci\opencv_1512688052760\work\modules\imgcodecs\src\loadsav
e.cpp:677: error: (-2) could not find a writer for the specified extensi
on in function cv::imwrite_
原
cv2.imwrite(image_name,image)
改
cv2.imwrite(imagge_name.jpg,image)
缺了格式而已,修改半天