title: ASSERT: "false" in file qasciikey.cpp, line 495
body: <p>I am using openCV to display some image in a loop. I use imshow() to display image and then uses cv::waitKey(10) for allowing to draw window.</p>
  
  <p>I get error ASSERT: "false" in file qasciikey.cpp, line 495, whenever I press keys to dim screen light. Basically If I keep pressed light key(F2 or F1) while waitKey(10) is running it throws error.
  I have tried all other combinations but I get error on some keys. I want my code error proof, so that if someone accidentally press key my code should not abort. I also tried to catch error and ignore it using try_catch but it doesn't catch ASSERT error.</p>
  
  <p>Note: I only get error if I select image window as active window and then press some keys. Though I can run code without pressing keys, but it is a machine learning setup and it requires 10-12 hours to train. I don't want sudden abortion of code due to some key press.</p>
  
  <p>Please help. </p>