Be aware that you won't be able to access a webcam connected to the Perspective client machine. But if you mean to connect to a gateway machine, then you want this:
When OpenCV and FFmpeg are installed properly on the gateway, this module will load the Java versions of OpenCV's libraries as system.cv2. Unfortunately, OpenCV's use of numpy doesn't translate--you have to use OpenCV's Mat types.