Can't access properties of cv::VideoCapture with Logitech C920

后端 未结 2 1490
误落风尘
误落风尘 2021-01-13 16:40

I am developing a small webcam application with Logitech C920 and OpenCV.

I can actually get images from camera without any problem with given resolution. But excep

2条回答
  •  深忆病人
    2021-01-13 17:14

    Fixed the problem by rebuilding OpenCV after getting dshow and ffmpeg installed. I can even set some of the values such as frame rate now, but the camera working as specified seems to be a separate matter. In my case, after setting resolution without setting frame rate, camera resolution goes to 640 x 480. Although my computer has H264 decoder installed, 1920 x 1080 produces 5-7 fps with OpenCV.

提交回复
热议问题