Possible Duplicate:
OpenCV - cvWaitKey( )
I want to filter the video frame.
for(;;)
{
cap.read( frame);
medianBlur(frame,framedst,5);
imshow("frame",frame);
imshow("framedst",framedst);
if( waitKey (30) >= 0) break;
}
What does the waitKey(30)
mean? Because if I comment out the line if( waitKey (30) >= 0) break;
, the above code doesn't work!