Social Distance Detector
This function block is designed to monitor social distancing in a scene by detecting people and measuring the distances between them using computer vision techniques.
📥 Inputs
Image Any
A stream or image from which individuals will be detected and analyzed for social distancing.
Perspective Matrix
A matrix used for perspective transformations to correct the view based on the camera setup.
Distance Threshold
A numerical value defining the minimum allowable distance between individuals. If this threshold is breached, it is considered a violation.
📤 Outputs
Image Any
The output image that shows the positions of detected individuals and lines connecting those who are too close.
Person Count
The total number of persons detected in the image.
Violation Count
The number of pairs of individuals that are breaching the defined social distance.
Is Violated ?
A boolean output that indicates whether any violations of social distancing have occurred.
🕹️ Controls
Confidence Ratio
A slider that allows you to set the confidence level required for detection to be considered valid.
🎨 Features
Real-Time Detection
The block processes incoming video streams or images to detect individuals and assess their distances.
Distance Measurement
Automatically measures distances between detected individuals, noting any violations of the threshold.
Visual Feedback
Displays circles around detected individuals and lines indicating violations.
📝 Usage Instructions
Connect Input: Link an image or video stream to the
Image Any
input.Set Perspective Matrix: If necessary, provide a perspective transformation matrix to ensure accurate distance measurements.
Define Threshold: Set a desired distance threshold using the
Distance Threshold
input.Adjust Confidence Ratio: Use the slider to set the confidence required for detection. A higher ratio increases the strictness of the detection.
Analyze: Run the block to monitor social distancing among detected individuals.
📊 Evaluation
When executed, this function block analyzes the input image, detecting individuals and evaluating their distances to provide visual and quantitative feedback regarding social distancing.
💡 Tips and Tricks
🛠️ Troubleshooting
Last updated