From what I’ve seen you can alter the resolution of a frame using the following code using OpenCV:
cap = cv2.VideoCapture(0) # Adjust index if necessary
cap.set(cv2.CAP_PROP_FRAME_WIDTH, 640)
cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 480)
But when I do this it essentially crops the image, zooming in so to speak. I want the acquisition field to remain the same size and lower the resolution. Are the commands listed not how one achieves this?
I also tried to lower resolution using
cap.set(3,480)
cap.set(4,640)
but the result is the exact same unfortunately
New contributor
Arnar Gylfi Haraldsson is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.