1 | initial version |
After this part of the code:
namedWindow( "LK Demo", 1 );
Put,
waitKey(1000);
So that it becomes,
namedWindow( "LK Demo", 1 ); waitKey(1000); setMouseCallback( "LK Demo", onMouse, 0 );
Try building afterwards.
2 | No.2 Revision |
After this part of the code:
namedWindow( "LK Demo", 1 );
Put,
waitKey(1000);
So that it becomes,
namedWindow( "LK Demo", 1 );
waitKey(1000);
);
waitKey(1000);
setMouseCallback( "LK Demo", onMouse, 0 );
Try building afterwards.