Low framerate using DSHOW

asked 2020-06-13 22:19:12 -0600

I am working on a vision project using OpenCVSharp, my webcam I am testing with is a C925e

If I open my camera with VideoCapture capture = new VideoCapture(0); then I can get my 30fps @ 1080p or 60fps @ 720p as expected. However it takes 20-30 seconds for the camera to open initially.

If I use VideoCapture capture = new VideoCapture(0, VideoCaptureAPIs.DSHOW); as I have seen recommended around the place the camera opens instantly. However then I can only get 30FPS @ 480p, 10FPS @ 720p and 5fps @1080p

I am pretty new to OpenCV, how can I troubleshoot this to be able to both open the camera in a reasonable amount of time, as well as to get the full frame-rate out of my camera.

While trying to troubleshoot this I have no processing in my loop, and are not even displaying the images.

edit retag flag offensive close merge delete