Social distancing, also called “physical distancing, ” means keeping a safe space (stay at least 3 feet) between yourself and other people who are not from your household in both indoor and outdoor spaces.
The objective is to reduce transmission, reducing the size of the epidemic peak, and spreading cases over a longer time to relieve pressure on the healthcare system.
Social distancing aims to decrease or interrupt transmission of COVID-19 in a population by minimizing contact between potentially infected individuals and healthy individuals, or between population groups with high rates of transmission and population groups with no or low levels of transmission.
Prepare the board (kira kv260)First we need to prepare the SD card for the Kria KV260 Vision AI Starter Kit.
In the box, a 16GB SD card is provided, but I recommend using at least 32GB instead, since the setup may exceed 16GB of space.
We will download using Ubuntu 20.04.3 LTS. Download the image from the website and save it on your computer.
On your PC, download the Balena Etcher to write it to your SD card.
Once done, your SD card is ready and you can insert it into your Kria.
Hardware Components- Krai KV260 with Basic accessory pack
- HDMI Monitor.
- Webcam
A c++ based application is written to run the distance measurement algorithms into kira board.
We used vits ai lib for detection person.
Compile the source:
g++ -std=c++17 -O3 ~/human_detect/people.cpp -o ~/human_detect/human_detection \
-I/usr/include/opencv4 \
-lpthread \
-lopencv_core \
-lopencv_video \
-lopencv_videoio \
-lopencv_imgproc \
-lopencv_imgcodecs \
-lopencv_highgui \
-lvitis_ai_library-ssd
Run the program:
sudo xlnx-config --xmutil loadapp nlp-smartvision
./human_detection /dev/video0 // the video source
Refer git repo for details --- demo
Comments