Person and Face Detection using Intel OpenVINO toolkit

About the project

People and Face Detection in Video for Security Surveillance using the Intel Distribution of OpenVINO toolkit.

Project info

Difficulty: Moderate

Platforms: Intel

Estimated time: 1 hour

Items used in this project

Software apps and online services

Intel OpenVINO toolkit Intel OpenVINO toolkit

Hand tools and fabrication machines

Python 3 Python 3 x 1

Story

This project can be used to detect the presences of people in a room. It uses the pre-trained models downloaded using the OpenVINO model downloader.

Demonstration Video

This project can be used to detect the presence of people by detecting their faces and their body.

Steps

1 Download and install Anaconda Distribution of Python

2 Install all the dependencies

3 Download the Intel Distribution of OpenVINO toolkit.(My OpenVINO version - 2020.0.1.033)

Python Virtual Environment

1 Install virtual environment

pip install virtualenv virtualenv --system-site-packages -p python openvinoenv

2 Activate virtual environment

openvinoenvScriptsactivate

3 Running "setupvars.bat" file to set up the OpenVINO environment variables

cd "C:Program Files (x86)IntelSWToolsopenvino_2020.1.033bin"setupvars.bat

4 Installing all the requirements from the "requirements.txt" file

cd "C:Program Files (x86)IntelSWToolsopenvino_2020.1.033deployment_toolsmodel_optimizer>" pip install -r requirements.txt

5 Once done with OpenVINO, deactivate the environment

deactivate

NOTE - I have created a batch file named "openvinoenv.bat" to run the following steps in one singe line.

call "openvinoenvScriptsactivate"call "C:Program Files (x86)IntelSWToolsopenvino_2020.1.033binsetupvars.bat"

With a single line, the python virtual environment for OpenVINO toolkit can be created and the OpenVINO environment variables can be initialized.

openvinoenv.bat

Pre-trained Models

It uses the pre-trained models from the Intel OpenVino pre-trained models.

The following pre-trained models were downloaded using the model downloader

python "C:Program Files (x86)IntelSWToolsopenvinodeployment_toolsopen_model_zootoolsdownloaderdownloader.py"
  • face-detection-adas-0001 - link
  • person-detection-retail-0013 - link

Demonstration Videos used from the sample videos of intel-iot-devkit Github Repository.

System specifications used

Processor - Intel Core i7 9750H

Ram - 16 GB

OS - Windows 10 64 bit

Final Code Github Repository Link - here

Date of Download of Intel® Distribution of OpenVINO toolkit for Windows - January, 2020 (w_openvino_toolkit_p_2020.1.033.exe)

Code

main.py

Main Code for People and Face Detection Using Intel OpenVINO toolkit

Main Repository - person_and_face_detection - Nilutpol Kashyap

Credits

Photo of nilutpolkashyap

nilutpolkashyap

A multidisciplinary engineering graduate with expertise in designing and building intelligent robotics systems. Profound knowledge in ROS, SLAM, Path Planning, Motion Planning and Computer Vision. Have a systematic approach towards research with experience in technical documentation aiming to carry out high impact research work.

   

Leave your feedback...