Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

use cvWaitKey function:

cvNamedWindow("window")
for(;;)
{
    char key = (char) cvWaitKey(10);
    if (key == 27 /*escape*/)
        break;
}