Image capture with Processing and OpenCV

I need to take a photo from WebCamera. How to do it using OpenCV and Processing ?

Use Gregs opencv lib for processing.

I know , but I can’t find a function to make a photo , not video . Can you write it , please ?

You may find some ideas how to do that in an older processing forum.

https://forum.processing.org/one/topic/save-an-image-from-webcam-capture.html

Not checked but you may find an approach to get it solved. OpenCV is not needed.

Thank you ! It seems to be that I found how to do it !

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