【发布时间】:2020-11-12 07:35:49
【问题描述】:
您好,我想从相机中取出一帧并将其保存在“图像”文件夹中,我希望图像具有名称+当前时间戳+.jpg,这样输入时出错:
cv2.imwrite(os.path.join(path2 , rn), img)
path2='images'
和rn=str(rightnow.strftime("%I:%M:%p"))
我收到此错误: could not find a writer for the specified extension in function 'cv::imwrite_'
请问我该怎么做,我搜索了但没有找到答案,而且我是 python 新手,在此先感谢
【问题讨论】:
标签: python opencv operating-system