Ask Your Question

Revision history [back]

You need to retrieve the source code of your program, go to the line of code that calls the command waitKey('intValue') and change the internal value to an amount of milliseconds you want to perform a wait.

However, be aware that this waiting is mostly to give the window the change to call its internal repaint method, in order to visualize everything correctly. Probably the cause of your slower framerate is either

  • A too large resolution frame as input to the algorithm
  • An exhaustive algorithm for tracking, not able to get a higher framerate

I do not believe that waitKey, which has mostly a value of like 30 milliseconds, would be the bad guy here.