【发布时间】:2012-10-10 21:19:38
【问题描述】:
我设法用 Python 和 CV2 库拍了一张照片,但我想改变图像的尺寸,得到一些质量不高的东西,并将其缩小到 640。
我的代码是:
cam = VideoCapture(0) # 0 -> index of camera
s, img = cam.read()
if s: # frame captured without any errors
imwrite(filename,img) #save image
我尝试过使用set的方法,但它不起作用。
【问题讨论】:
标签: python dimension computer-vision