Contents
Computer vision best satisfies artificial intelligence and machine learning tasks that would otherwise be solved with human eyesight. Hence, face detection is a typical application of computer vision.
This article will show you how to build your face detection system, focusing on identifying faces from a video stream. In particular, you will learn how to develop your face detection system using ProX PC Platform.
The output of the application will provide you with the number and location of the detected faces. This information, together with other computer vision techniques, can be used in a diverse set of use cases. For example, recognizing facial features and facial expressions, and identifying people in biometrics, facial attributes, emotion analysis, or crowd analytics.
Face Detection application built with ProX PC.
How to Use Face Detection with Computer Vision and Deep Learning
Face Detection
The facial recognition system I will build in this tutorial is based on real-time object detection to detect faces using neural networks. I will deploy a pre-trained computer vision algorithm to a device. The AI algorithms process images fetched from a connected camera or video source.
The camera could be any CCTV, IP camera, USB camera, webcam, or even a video file played in a loop to simulate a camera stream. You can also start with a video file and replace it later with a physical camera.
The pre-trained algorithm (and the ready-to-use application) can be downloaded from the ProX PC's website. You can customize and edit the facial recognition software application or extend it with your code or integrations.
Pre-Trained Models
The object detection module provided by ProX PC comes with pre-trained algorithms to detect various objects, including faces. These algorithms were trained on massive datasets, some containing 1 million annotated images. There are multiple models available for the use case in this tutorial.
You can select an AI model and test different settings quickly to benchmark various algorithms without writing a single line of code. This makes it possible to spend more time building iteratively testing and optimizing the face detector solution.
Visual Programming
To build the system presented in this tutorial, I will use the ProX PC Builder, which provides a visual programming interface. This allows me to create a visual workflow describing the application process using illustrations instead of writing code from scratch. Note: You can still add custom Javascript code if you want to.
Connect Pre-Built Modules To Build the Face Detection Application
For this tutorial, you need a ProX PC account and workspace for your Computer Vision project. Logged into ProX PC, I want to create my face detection system using a pre-trained model available in the ProX PC's website.
The application-building process is done in the ProX PC Builder, a visual programming interface for building computer vision applications. The face detection system will contain several connected nodes, each performing a specific task toward accomplishing the final application.
How to Build the Face Detection Application
The ProX PC Builder makes it easy to add nodes to an application. I drag and drop the nodes mentioned above into the workspace grid, and they are ready to be configured without any additional programming.
For the system to work correctly, the nodes need to be connected in the right way. The video source should send the input frames to the Object Detection node to be further processed. At the same time, the frames should be sent to the Output Preview node, where the results will be displayed for debugging.
Hovering over the connection dots shows the output of each node which makes it simple to choose the right connections. The resulting stream of the Object Detection node will be sent to the Preview node so that we can see the detection boxes in real time.
Configure the Face Detection Application
After the nodes are connected using the ProX PC Builder canvas, I want to configure each node to suit my needs. All selected nodes are directly configured in the ProX PC Builder without coding.
And that’s it! I can save my application, and it will create the first version ready to be deployed to an edge device of my choice.
Check the Face Detection Result Preview
The face detection system is now ready to run. The program’s output can be reviewed with the Output Preview module, which was added to the workflow. Once the application is created successfully, it can be deployed to edge devices at the click of a button. Additionally, the data can be sent to a custom cloud dashboard directly within ProX PC's Platform..
What’s Next?
Facial recognition technology is applicable in sectors across industries including law enforcement, crowd control, and more. By identifying human faces in digital images and videos, organizations can engage in improved security measures and data-driven decision making.
Related Products
Share this: