Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Changing camera resolution in Python

Hello,

I´m trying to change my camera resolution to 320X240 on Raspberry Pi using Python. This link http://docs.opencv.org/master/doc/py_tutorials/py_gui/py_video_display/py_video_display.html#display-video says that one can type the following to change the parameters

ret = cap.set(3,320) and ret = cap.set(4,240)

I have not figured out how this work. Has anyone faced the same situation?