Brainy Pi

Available to select audience (currently beta)

In today’s world, where social distancing has become an essential practice, leveraging computer vision and artificial intelligence (AI) can play a vital role in monitoring and ensuring safe distancing measures. In this blog, we will showcase a Social Distancing Monitoring Demo using OpenVINO and Brainy Pi, a powerful combination for developers and entrepreneurs looking to build computer vision products. We will guide you through the installation process, compiling the demos, and running the demo application, allowing you to determine the distance between individuals in a video/camera-feed. Lets implement Social Distance Monitoring Product !

Installing OpenVINO

To begin, we need to install OpenVINO and its dependencies on BrainyPi. Open a terminal and run the following command:
sudo apt install openvino-toolkit libopencv-dev
This command will install OpenVINO and the necessary OpenCV development files on your system.

Compiling Demos

Once OpenVINO is installed, we can proceed to compile the demos. These demos provide a great starting point for understanding and exploring the capabilities of OpenVINO. Follow the steps below:
  1. Set up the OpenVINO environment by sourcing the setupvars.sh script:
    source /opt/openvino/setupvars.sh
  2. Clone the Open Model Zoo repository, which contains the demos, using the following command:
    git clone --recurse-submodules https://github.com/openvinotoolkit/open_model_zoo.git
    cd open_model_zoo/demos/
  3. Build the demos by executing the build_demos.sh script:
    ./build_demos.sh
This will compile the demo applications and make them ready for execution.

Running the Demo for Social Distance Monitoring

With the demos compiled, we can now download the required models and run them using OpenVINO. Follow these steps:
  1. Download the models needed for the demo by running the following command:
    omz_downloader --list ~/open_model_zoo/demos/social_distance_demo/cpp/models.lst -o ~/models/ --precision FP16
  2. Download the test video:
    cd ~/
    wget https://raw.githubusercontent.com/intel-iot-devkit/sample-videos/master/face-demographics-walking.mp4
  3. Once the models and the test video are downloaded, you can run the object detection demo using the following command:
    ~/omz_demos_build/aarch64/Release/social_distance_demo -i ~/face-demographics-walking.mp4 -m_det ~/models/intel/person-detection-retail-0013/FP16/person-detection-retail-0013.xml -m_reid ~/models/intel/person-reidentification-retail-0277/FP16/person-reidentification-retail-0277.xml

Reference:

https://docs.openvino.ai/2022.3/omz_demos_social_distance_demo_cpp.html

Conclusion:

In this blog, we have demonstrated how to build a Social Distancing Monitoring product using OpenVINO and BrainyPi. First and foremost, by combining AI and computer vision, you can determine the distance between individuals in a video, providing valuable insights for ensuring safe social distancing. Furthermore, developers and entrepreneurs looking to incorporate this technology into their computer vision products now have a starting point to explore and enhance the capabilities of OpenVINO. Additionally, by following the steps outlined in this blog, you can get started on your journey to building innovative solutions for a safer future.
Remember, social distancing plays a crucial role in our collective well-being because it helps maintain safe distances and prevents the spread of contagious diseases. Additionally, technology can be a powerful ally in achieving these goals, so it is important to leverage its capabilities effectively.
0 Comments

Leave a reply

Your email address will not be published. Required fields are marked *

*