Social Distancing Detection, a computer vision example.
In this example, I wanted to implement concepts of Computer Vision.
This work is inspired by Andrew Ng’s Landing AI team, who created a Social Distancing Tool. I’ll be using the YOLO v3 Object Detection Algorithm and OpenCV library.
This tool has the following features:
- Transform the perspective of view to a bird’s-eye (top-down) view.
- Detect persons in the frame with yolov3 and project the points in bird’s eye view.
- Compute Euclidean distance between every point.
- Calculate the percentage of persons who do not respect social distancing.
Original video -

Bird´s eye

The complete code can be viewed at here