I have been working on an app which uses OpenCV and a USB webcam to run some GPU-based processing on live images. When I use OpenCV’s capture classes to get a frame from the webcam, it takes 30-50 ms to get a frame. This seems insanely long, so I’m wondering what fast configurations of hardware and software are recommended. I think that part of the problem is that the camera is interfacing over USB (so a faster camera solution would be helpful), but the bigger issue as far as I can tell is software: a simple OpenCV app that just reads camera frames (without displaying it or doing anything else) is much slower than a default camera viewer app, even at much smaller resolutions.
So, what cameras are known to be fast and work on the Jetson? And how can I capture video frames and store them in OpenCV structures without having such a huge delay?