Ask Your Question

Revision history [back]

waitkey in loop

Hi All,

I am try this code below (OpenCV 3.1, Win10 and C++ VS 2015). This works and shows de image in windows, but after some interaction or seconds, the loop stop always in waitkey. No messages erros shows and i have close the application in VS. Any suggestions?

while (true) 
{

  //Some code ....

  imshow("Gray", gray);

  if (waitKey(100) >= 0)
  {
    break;
  }

 }