报错:OpenCV(4.7.0) D:\a\opencv-python\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp:692: error: (-2:Unspecified error) could not find a writer for the specified extension in function 'cv::imwrite_' 显示找不到指写入的扩展器
往前推发现是明明写错了
filename_last = img_ + "jpg”
改成:filename_last = img_ + ".jpg"