Ask Your Question

Elliott's profile - activity

2013-11-12 02:54:00 -0600 answered a question How to actualize windows events without cvWaitKey

Thank you for your help.

2013-11-09 04:58:19 -0600 received badge  Student (source)
2013-11-08 10:21:08 -0600 asked a question How to actualize windows events without cvWaitKey

Hello,

I read on this page than cvWaitKey has two actions :

  1. It waits for x milliseconds for a key press. If a key was pressed during that time, it returns the key's ASCII code. Otherwise, it returns -1.

  2. It handles any windowing events, such as creating windows with cv::namedWindow(), or showing images with cv::imshow()..

I have to use cvWaitKey to execute the second action, but I don't want the first (I've a multithreaded program and it's taking the input focus, which I don't want).

Is there a function to execute only the second action ? The thread can wait with a usleep.

Thanks for your help,

Best regards