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?
First of all you need to be sure that your camera allows the changing of the resultion through its connection. Secondly I suggest using the correct parameters instead of using integer values. If the changed in the process, then it won't work anymore. Try this code
Good luck!