Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

See the documentation of waitKey to see how to wait for the key to be pressed.

See imwrite for how to save an image.

And HERE is a tutorial that does part of what you want.