First time here? Check out the FAQ!
answered Feb 5 '14
You can try waitKey(0). That should work well.