Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

problem is here:

  waitKey(0);  //  -- will wait **forever**.

rather use:

  waitKey(10);  //  -- sleep for 10 microseconds

problem is here:

  waitKey(0);  //  -- will wait **forever**.

rather use:

 waitKey(10); if (waitKey(10) == 27)  //  -- sleep for 10 microseconds
microseconds, wait for "esc".
        break;