I just tried the suggestion from Processing to get access to the webcam:
However, the program does not recognize:
import processing.video.*;
And I can not find the Library anywhere.
Error message: The package processing.video does not exist!
The latest version of Processing is 4.1.3 and also available on the Processing website.
There were issues with earlier versions and you should update to the latest.