Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Set width and height to correct size of frame. I guess that frame size could be 640x480, 720x576 or 720x480

cap = cv2.VideoCapture()
cap.set(cv2.CAP_PROP_FRAME_WIDTH, 640)
cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 480)
cap.open(video_port)
................................................................

Or you can set frame size after calling cap.open(video_port). I'm not sure about opencv api.