I managed to take a picture with Python and CV2 library, but I'd like to change the dimension of the image and get something not high quality and resize it down at 640.
My code is:
cam = VideoCapture(0) # 0 -> index of camera
s, img = cam.read()
if s: # frame captured without any errors
imwrite(filename,img) #save image
I have tried to use the method set
but it doesn't work.