Image capture with Processing and OpenCV

Capturing a frame is a basic part of the Processing Video library.

There is an example in the Examples of PDE under the Video library – and documentation of capture is here:

https://processing.org/reference/libraries/video/Capture.html