我设法采取与Python和CV2库中的图片,但我想改变图像的尺寸和得到的东西质量不高和调整下来在640的Python - CV2改变尺寸和质量
我的代码是:
cam = VideoCapture(0) # 0 -> index of camera
s, img = cam.read()
if s: # frame captured without any errors
imwrite(filename,img) #save image
我曾尝试使用的方法set
,但它不工作。