Object Detection (D-FINE)
This function block performs real-time object detection on an input image. It lets you choose a model size (trade-off between speed and accuracy), filter which object classes to detect, set a confidence threshold, and optionally draw color-coded bounding boxes on the output image.
π₯ Inputs
Image The image to analyze for object detections.
π€ Outputs
Result Annotated image with bounding boxes and labels (present if drawing is enabled).
Boxes A list of bounding box coordinates for each detection (format: [x1, y1, x2, y2]).
Labels Class names for each detected object.
Scores Confidence score for each detection.
πΉοΈ Controls
Model Choose model size (examples: Nano / Small / Medium / Large / XLarge) to balance inference speed vs accuracy.
Select Classes Table to tick only the COCO classes you want the block to report (leave all unchecked to allow all classes).
Draw Boxes Toggle to enable/disable drawing colored bounding boxes and labels on the output image.
Threshold Slider to set the confidence score threshold (0β100) for accepting detections.
π¨ Features
Model size selection to prioritize speed or accuracy.
Class filtering so you only get detections you care about.
Confidence threshold control to reduce false positives.
Optional visual output with color-coded bounding boxes and readable labels.
Returns both visual (image) and structured detection data (boxes, labels, scores) for downstream processing.
π Usage Instructions
Connect an image-producing block to the
Imageinput.Choose a
Modelsize based on whether you need faster results or higher accuracy.Use
Select Classesto limit detection to only the object types you need (or leave empty to accept all).Adjust the
Thresholdslider to tune detection sensitivity.Enable
Draw Boxesif you want a visual result returned on theResultoutput.Use the
Boxes,Labels, andScoresoutputs in subsequent processing or logging blocks.
π Evaluation
When run, this block processes the incoming image according to the chosen Model and Threshold and outputs detections. If Draw Boxes is enabled, an annotated image will be available on Result; detection metadata is always available on the other outputs.
π‘ Tips and Tricks
If small objects are missed, try feeding a higher-detail input using
Super Resolutionor avoid downscaling the input withImage Resize.To reduce processing time, pick a smaller
Model(Nano/Small) at the cost of some accuracy.Crop the area of interest before detection with
Image ROI SelectorImage ROIto improve speed and reduce false positives.For visual debugging, connect the
Resultoutput toShow Imageso you can inspect detections interactively.If you need to keep detections across frames (tracking), combine outputs with
Object_Detection_Tracker.Save frames with detections using
Image Logger,Image Write, orRecord Videofor later review.Export detection metadata (boxes / labels / scores) with
CSV ExportorData to JSONfor analytics and reporting.When experimenting, monitor system usage with
GPU Statisticsto choose an appropriateModelsize for your hardware.If you want different detection behavior or to try other models, compare outputs with
Object Detection - Customor other object detection alternatives.
π οΈ Troubleshooting
If you see no detections, lower the
Thresholdor make sure the desired class is checked inSelect Classes.If detections are noisy, raise the
Thresholdor limit classes inSelect Classes.If processing is too slow, choose a smaller
Modelor crop the input image usingImage ROI Select.If the output image is empty while other outputs contain data, ensure
Draw Boxesis enabled to get a visual result.
Last updated