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.
This project can be used to detect the presence of people by detecting their faces and their body.
Steps1 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 Environment1 Install virtual environment
pip install virtualenv
virtualenv --system-site-packages -p python openvinoenv
2 Activate virtual environment
openvinoenv\Scripts\activate
3 Running "setupvars.bat" file to set up the OpenVINO environment variables
cd "C:\Program Files (x86)\IntelSWTools\openvino_2020.1.033\bin\"setupvars.bat
4 Installing all the requirements from the "requirements.txt" file
cd "C:\Program Files (x86)\IntelSWTools\openvino_2020.1.033\deployment_tools\model_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 "openvinoenv\Scripts\activate"call "C:\Program Files (x86)\IntelSWTools\openvino_2020.1.033\bin\setupvars.bat"
With a single line, the python virtual environment for OpenVINO toolkit can be created and the OpenVINO environment variables can be initialized.
openvinoenv.batPre-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)\IntelSWTools\openvino\deployment_tools\open_model_zoo\tools\downloader\downloader.py"
Demonstration Videos used from the sample videos of intel-iot-devkit Github Repository.
System specifications usedProcessor - 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)
Email ID used- same as the one with the hackster.io
Comments