Contents
In this article, you will learn how to build a person detection system with deep learning in about 5 minutes using ProX PC infrastructure. Read how you can use the latest and best performing deep learning algorithms to create a person detector vision system that you can easily connect to other systems, visualize data in dashboards, or send alerts by email.
About us: ProX PC is the end-to-end computer vision infrastructure for enterprises. By simplifying the machine learning lifecycle, businesses can start realizing value with in only three days. Learn more by booking a demo with our team.
How to Detect People With Computer Vision
Computer vision involves AI technology being used to make computers see and imitate human vision. Therefore, video streams of cameras are analyzed with machine learning (ML) algorithms. The state-of-the-art machine learning method is deep learning recently brought great advances in the field of image recognition. Deep learning uses deep neural networks (deep means multiple connected layers) to perform image processing, similar to how the human brain employs connected neurons to understand visual information.
People or person detection is a typical computer vision task; technically, it is a subtype of object detection. Use cases of people detection involve the automation of manual tasks that would otherwise be solved with human eyesight.
The output of the application will provide you with the number and location of the detected people. This information can be used in a diverse set of use cases. For example, to detect persons in restricted or dangerous areas, perform crowd analytics. It is a typical application of computer vision that is being used across industries to increase the security or safety of employees, analyze and enhance operational efficiency, and automate products or services.
Human detection with computer vision
Person Detection With Any Camera and Deep Learning
Person Detection
The person detection system I will build in this tutorial is based on object detection to detect people using neural networks. I will deploy a pre-trained computer vision algorithm to a device (on-device machine learning, Edge AI). The 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. The pre-trained algorithm (and the ready-to-use application) can be downloaded from the ProX PC's website.
Pre-Trained Models
The object detection module provided by ProX PC comes with pre-trained algorithms to detect various objects, including persons. These algorithms were trained on high-quality, massive datasets. There are multiple models available for the use case in this tutorial; you can test different settings quickly and benchmark various algorithms without a single line of code. The AI models are also provided for different hardware architectures such as CPU, VPU, GPU, or TPU. You can later exchange the AI model you use with one click.
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 intuitively model the application workflow by visually combining modules that can be configured from drop-down menus. While developers can still add custom code (low-code development), there is no need to write everything from scratch, leaving more time to test and tweak the parameters. Hence, updating and maintaining the application, even as it becomes more complex, becomes a lot easier and faster.
Build the Person Detection Application
For this tutorial, you need a ProX PC account and workspace. The workspace provides all the tools you need to develop a person detection system. You can use any digital video stream and process with basically any computer that you enroll in the workspace. Everything can be done without coding.
Install the Required Modules
Logged into ProX PC, I want to create my person 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 person detection system will contain several connected nodes, each performing a specific task towards accomplishing the final 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.
Wire Together Pre-built Modules
For the system to work correctly, the nodes need to be connected in the right way.
Configure the Person 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. You can set the parameters with the visual interface, no coding is required.
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 Person Detection Result Preview
The person 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.
Build Logic Around the Person Detector
You can further add if-this-then rules and set rules to trigger alerts, send emails, Slack messages, SMS, and more. Also, you can send the insights directly to third-party systems. The visual editor makes it possible to build custom people counting systems, with rules and logic depending on your use case. Thus, you can simply modify the application you built and experiment with new application versions.
Computer vision to detect humans
Related Products
Share this: