Image capture with Processing and OpenCV

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