Hi,
I am trying to change the capture resolution in cv2 in python. I already looked up some posts about it, like http://opencv-python-tutroals.readthedocs.org/en/latest/py_tutorials/py_gui/py_video_display/py_video_display.html , but the command sequence there doesn't seem to work for me.
Here is my piece of code:
channel = 0
camera = _cv2.VideoCapture(channel)
camera.set(_cv2.cv.CV_CAP_PROP_FRAME_WIDTH, 1280)
camera.set(_cv2.cv.CV_CAP_PROP_FRAME_HEIGHT, 1024)
print camera.get(_cv2.cv.CV_CAP_PROP_FRAME_WIDTH)
print camera.get(_cv2.cv.CV_CAP_PROP_FRAME_HEIGHT)
And the print out is:
640.0
480.0
Can anyone help me with this issue?
Thanks in advance!
Max