OpenCV: can't set resolution of video capture

后端 未结 4 2086
离开以前
离开以前 2020-12-14 22:20

I am using OpenCV 2.4.5 on Ubuntu 12.04 64-bit. I would like to be able to set the resolution of the input from my Logitech C310 webcam. The camera supports up to 1280x960 a

4条回答
  •  囚心锁ツ
    2020-12-14 22:40

    You can use v4l2-ctl to set frame size of captured video like below.

    v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=1
    

    You can find more information at this link

提交回复
热议问题