Opencv+v4l2 set resolution

asked 2017-05-30 04:28:27 -0500

fedexav gravatar image

Hello, I am using Opencv 2.4.9 on my Raspberry PI2 and I am trying to change the resolution width and height using v4l2 through command line.

command = 'v4l2-ctl -d --set-fmt-video=width= ,height= ';

The raspberry set the proper resolution but when I try to make a video stream using VideoCapture, the resolution returns to the default values. Has already someone encount and solve the same problem?

Thank you in advance.

edit retag flag offensive close merge delete