Object Detection
This function block detects common objects in an image and returns both visual and structured detection results. Use it to locate and count items such as people, vehicles, and many COCO classes. It offers quick configuration for confidence and class selection so you can tailor detection to your scenario.
π₯ Inputs
Image AnyThis input accepts the image you want to analyze.
π€ Outputs
Image AnyImage annotated with detection boxes and labels.Object CountNumber of detected objects.Object Center LocationsLocations (centers) of detected objects (can be multiple).Object Sizes (w, h)Width/height pairs for each detected object (can be multiple).Object ClassClass names for each detected object (can be multiple).RectanglesBounding rectangle coordinates for each detection (can be multiple).
πΉοΈ Controls
Confidence Threshold %Slider to set minimum confidence for accepting detections. Raising this will reduce false positives; lowering it may detect more objects but include less certain results.Select Detection ClassDropdown to choose a predefined group of classes (for example: All, Human, Animals, Indoor, Outdoor). Selecting a narrower class group speeds up and focuses detection.
βοΈ How it runs
When the block runs it processes the incoming image with the internal detector and applies the selected confidence and class filter.
The annotated image is returned together with structured outputs: count, center positions, sizes, class names, and rectangle coordinates.
If the detector is still loading, the block provides an informative message and waits until the detector is ready before producing results.
π― Features
Ready-to-use object detection for many common classes.
Class-group presets to quickly focus on humans, animals, indoor objects, outdoor objects, or all classes.
Annotated visual output plus detailed numeric/structured outputs for automation or logging.
Simple controls to balance detection sensitivity and select desired classes.
π Usage Instructions
Connect a camera or image source to the
Image Anyinput.Choose a suitable
Select Detection Classpreset to limit detection to relevant classes.Adjust
Confidence Threshold %to get the right balance between missing objects and false positives.Use outputs to drive downstream logic, tracking, visualization, or storage.
π‘ Tips and Tricks
For live camera input use one of the image input blocks such as Camera sources or stream readers to feed the detector: Camera options include
Camera USB,Camera IP (ONVIF),Stream Reader, orLoad Imagefor offline testing.To visualize detections in the UI or a dashboard, connect the annotated image output to
Show Imageor draw overlays withDraw Detections.For tracking objects across frames, feed detection outputs into
Object_Detection_Trackerto get stable IDs and trajectories.If you only care about a specific area, crop the input first with
Image ROIorImage ROI Selectto reduce false detections and improve performance.When working with very large images, use
Image ResizeorImage Resizerbefore detection to speed up processing.Save interesting frames or records by piping the annotated image into
Image Logger,Multi Image Write, orRecord Videowhen a detection count or specific class appears. Combine with logic blocks (for example, manualLogic Inputor threshold checks) to trigger saving only on events.Combine with analysis blocks such as
Measure Position Distanceor ROI checks likeCheck Areato build alerts or analytics (for example, count people in a zone or measure spacing).
π οΈ Troubleshooting
If you see too many false positives: increase
Confidence Threshold %or narrowSelect Detection Class.If detection is slow: resize the input with
Image Resizeor reduce the number of classes searched by selecting a narrower class group.If the annotated image looks empty but other outputs show detections: verify the display block (for example
Show Image) is connected and receiving the annotated image.
Last updated
Was this helpful?