如何使用OpenCV,Python检索或写入具有列表索引10的图像
filenames = [img for img in glob.glob("./Testing/2019*.jpg")
filenames.sort
cv2.imwrite("img.jpg",filenames[10])
它返回错误:
TypeError: Expected Ptr<cv::UMat> for argument '%s'
如何从列表中检索具有特定索引值的图像并将其保存
如何使用OpenCV,Python检索或写入具有列表索引10的图像
filenames = [img for img in glob.glob("./Testing/2019*.jpg")
filenames.sort
cv2.imwrite("img.jpg",filenames[10])
它返回错误:
TypeError: Expected Ptr<cv::UMat> for argument '%s'
如何从列表中检索具有特定索引值的图像并将其保存