My webcam only support 640×480 resolution. But I want to change 1280×720 resolution
I use webcam in my game and I want people who has not support 1280×720 resolution can play my game.
How can I get it?
I tried to use set(cv2.CAP_PROP_FRAME_WIDTH, 1280) and set(cv2.CAP_PROP_FRAME_HEIGHT, 720), but it’s still 640×480.
I think it’s because CV can only change the frame size to the resolution supported by the camera. I don’t mind that the video looks stretched horizontally, so I’d like to know how I can force this conversion.
user25148102 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.