Safety Equipment Detection
This function block checks for common safety equipments on an input image and returns an annotated image plus per-class counts. It is intended for visual inspection workflows where helmets, vests, goggles and gloves must be detected and counted.
π₯ Inputs
Image Provide the image you want analyzed (single image frames, stream frames, or loaded images).
π€ Outputs
Output Image Annotated image with detections drawn for visualization.
Helmet Count Number of detected helmets.
Safety Vest Count Number of detected safety vests.
Safety Goggle Count Number of detected safety goggles.
Safety Glove Count Number of detected safety gloves.
No Helmet Count Number of detected people without helmets.
No Safety Vest Count Number of detected people without vests.
No Safety Goggle Count Number of detected people without goggles.
No Safety Glove Count Number of detected people without gloves.
πΉοΈ Controls
Confidence Ratio Adjust detection confidence threshold. Higher values make detections stricter (fewer false positives); lower values increase sensitivity (more detections, possibly more false positives).
Tip: start around 0.7β0.9 and fine-tune based on your scene.
π― Features
Real-time visual feedback with annotated detections on
Output Image.Per-class counting for both presence and absence of required safety items.
Adjustable detection confidence using
Confidence Ratioto suit varying lighting and scene conditions.Designed to work with live camera frames or pre-recorded images.
βοΈ How it runs
When an image is provided on the Image input, the block analyzes the image, marks detected safety items on a visual output image and returns numeric counts for each class. The block may require a short loading time on first run (model preparation), after which it processes images continuously as they arrive.
π Usage Instructions
Provide an image source to the
Imageinput (live camera feed or loaded image).Adjust
Confidence Ratioto suit your scene (lighting, scale, occlusions).Use the annotated
Output Imageto visually confirm detections and read numeric outputs for automation or logging.
π‘ Tips and Tricks
Combine with live camera inputs for continuous monitoring: e.g.,
Camera USB,Camera IP, orStream Readerto feed frames into this block.To visualize and inspect frames interactively, connect the visual output to
Show Imageand use theSee Imageviewer.Improve detection focus and reduce false positives by cropping to the area of interest using
Image ROI Selectbefore feeding images to this block.Speed up processing when full resolution is unnecessary by inserting
Image Resizerbefore this block.Overlay or emphasize detection boxes using
Draw Detectionsfor clearer on-screen presentation.For multi-frame workflows, combine with tracking: feed detection outputs (rectangles / classes) into
Object_Detection_Trackerto maintain IDs over time and count unique persons.Log and export results: use
Image LoggerorImage Writeto save frames, andCSV ExportorData to JSONto store counts. For real-time alerts integrate withMQTT PublishorSend Mailfor notifications.For crowd or distancing analysis, use together with
Social Distance DetectororPose Estimationto correlate PPE usage with person location or posture.
π οΈ Troubleshooting
No detections or too many false positives: adjust
Confidence Ratioand re-evaluate. Try values between 0.6 and 0.9.Poor results in low-light or low-contrast scenes: improve lighting, use
Contrast OptimizationorDenoisingprior to this block.Detections outside the area of interest: add
Image ROI Selectto limit the search area.Slow performance: reduce input image size with
Image Resizeror lower frame rate upstream. Performance also depends on available hardware.If the block is not ready on first use, allow a short time for model preparation (loading) before expecting outputs.
Last updated
Was this helpful?