Uploaded June 2020 | Updated December 2026, 14 hours ago
For the first time I decided to try detecting people in images and video streams with OpenCV.
This is a demonstration of social distance evaluating test based on:
- YOLO object detection (coco dataset).
- distancing detector, which is strictly based on the pixel distances, which won’t necessarily be as accurate. That's mean that for different camera angle and zoom factor different pixel callibration to measure a distance is required.
The steps to build a social distancing detector include:
- Apply object detection to detect all people (and only people) in a video stream (see this tutorial on building an OpenCV people counter)
- Compute the pairwise distances between all detected people
- Based on these distances, check to see if any two people are less than N pixels apart.
Test location: New York city, Time square (youtube.com/watch?v=mRe-514tGMg)
Thanks for watching!
#computervision
#safedistance
#opencv
For the first time I decided to try detecting people in images and video streams with OpenCV.
This is a demonstration of social distance evaluating test based on:
- YOLO object detection (coco dataset).
- distancing detector, which is strictly based on the pixel distances, which won’t necessarily be as accurate. That's mean that for different camera angle and zoom factor different pixel callibration to measure a distance is required.
The steps to build a social distancing detector include:
- Apply object detection to detect all people (and only people) in a video stream (see this tutorial on building an OpenCV people counter)
- Compute the pairwise distances between all detected people
- Based on these distances, check to see if any two people are less than N pixels apart.
Test location: New York city, Time square (youtube.com/watch?v=mRe-514tGMg)
Thanks for watching!
#computervision
#safedistance
#opencv










