WebCam

Example 1: WebCam access with OpenCV

Example 1: WebCam access with OpenCV Introduction In this example, we are using the PythonImage module and access your WebCam to show the video in a View2D. Steps to do Creating the network to be used for testing Add the modules to your workspace and connect them as seen below. Example Network The viewer is empty because the image needs to be set via Python scripting. Info:  More information about the PythonImage module can be found here Create a macro module Now you need to create a macro module from your network.

Example 2: Face Detection with OpenCV

Example 2: Face Detection with OpenCV Introduction This example uses the OpenCV WebCam Python script and adds a basic face detection. Info:  The Python code used in this example has been taken from Towards Data Science. Steps to do Open Example 1 Add the macro module developed in Example 1 to your workspace. Download trained classifier XML file Initially you need to download the trained classifier XML file. It is available in the OpenCV GitHub repository.

Example 3: Segment persons in webcam videos

Example 3: Segment persons in webcam videos Introduction This tutorial is based on Example 2: Face Detection with OpenCV. You can re-use some of the scripts already developed in the other tutorial. Steps to do Add the macro module developed in the previous example to your workspace. WebCamTest module Open the internal network of the module via middle mouse button and right click on the tab of the workspace showing the internal network.