Search code examples
opencvdelay

OpenCV delay in camera output on the screen


I noticed a strange thing about OpenCV. I used one of the basic sample C programs delivered with OpenCV to show the camera output on the screen. I, however, see the output on the screen with a tiny delay compared to what the camera sees. So if I move my hand in front of the camera, it will show up on the screen with about 0.1 second delay. We are developing an application that is very sensitive to these delays. Is there a way to remove this delay such that the image transfer is instantaneous? I don't see tiny delay when I look at my camera output via Skype, for example.

Thank you very much! P.


Solution

  • The openCV highgui display window is only meant for simple display of image processing results - it's not optimised for high performance or low latency.

    You will have to write something to talk between the videoinput library and whatever display lib you want to use.