1 | initial version |
problem is here:
waitKey(0); // -- will wait **forever**.
rather use:
waitKey(10); // -- sleep for 10 microseconds
2 | No.2 Revision |
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;