waitkey in loop [closed]
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;
}
}
this sounds weird.
nonetheless, can you show, what you're doing in "Some code ..." ? (maybe you're doing something funny there)
Hi,
I removed "Some code" of my test and I have the same problem. I put some prints in my code and always stop before waitkey:
I changed the version of OpenCV to 2.4.13 and my loop works well.
Here my "some code", nothing special, just an example of manipulation of histogram. If this sample has anything wrong, send me comments please: