A social distancing detector built with OpenCV using YOLO(COCO model) object detector
Social distancing is a method used to control the spread of contagious diseases such as the COVID-19 Disease. It implies that people physically distance themselves from one another, reducing close contact, and thereby reducing the spread.
- Object detection using the YOLO COCO model to detect only people in a video stream.
- Computes the pairwise distances between all detected people.
- Based on the computed distances, we determine whether social distancing rule is being violated or not.
- Clone the repo
git clone https://github.com/MuntahaShams/social-distance-detector.git
cd social-distance-detector
- Install dependencies
pip install -r requirements.txt
- Run the social-distance-detector.ipynb
- YOLO COCO weights
The weight file exceeds the github limits but can be download from here.
Add the weight file to the weight folder.