【报错解决办法】could not find a writer for the specified extension in function ‘cv::imwrite_‘

出现错误:
error: OpenCV(4.5.1) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-oduouqig\opencv\modules\imgcodecs\src\loadsave.cpp:682: error: (-2:Unspecified error) could not find a writer for the specified extension in function ‘cv::imwrite_’

原因是因为写入的图片没有加后缀。

你可能感兴趣的:(报错汇总专栏,python,opencv,报错解决)