First time here? Check out the FAQ!
answered 2012-10-23 01:27:42 -0600
You should call cvWaitKey with some delay:
cvWaitKey
cvWaitKey(10);
When you call cvWaitKey without parameter it means "wait forever while not key pressed".