Blob Detector
This function block detects blob-like features (bright/dark roundish objects) in an image. Use the sliders to tune detection sensitivity and shape filters so the block finds only the blobs you care about.
π₯ Inputs
Image Any Image to analyze for blobs.
π€ Outputs
Image Any Visual result image with detected blobs marked.
Number of Blobs Count of detected blobs.
Blobs Positions List of blob center positions (x, y).
Blobs Sizes Sizes (diameter) of detected blobs.
πΉοΈ Controls
Threshold Range Minimum and maximum intensity thresholds used to detect candidate blobs.
Area Range Minimum and maximum blob area as a percentage of the image scale.
Circularity Range Allowed circularity range to favor round shapes.
Convexity Range Allowed convexity range to exclude highly concave shapes.
Inertia Range Allowed inertia ratio range to filter elongated vs. round blobs.
π― Features
Visual feedback: detected blobs are drawn on the output image so you can inspect results immediately.
Shape filtering: narrow detections using area, circularity, convexity and inertia sliders to reduce false positives.
Live tuning: slider adjustments take effect on the next evaluation so you can iterate quickly.
π Usage Instructions
Provide an image to
Image Any.Start with a broad
Threshold Rangeand adjust until most blob candidates appear on the output image.Use
Area Rangeto remove very small or very large detections relative to your object size.Tune
Circularity Range,Convexity RangeandInertia Rangeto exclude shapes that are not blob-like.Inspect results in the output image and read the numeric outputs for automation or logging.
π Evaluation
When run, the block analyzes the input image and returns a marked image plus the number, positions and sizes of detected blobs. Use these outputs downstream for measurement, counting or decision logic.
π‘ Tips and Tricks
Preprocess noisy images with
BlurorDenoisingto reduce spurious small detections.Convert complex scenes to a clearer foreground with
Image ThresholdorHSV Filterbefore feeding this block.If you only need to analyze a region, crop first using
Image ROI Selectto speed up detection and avoid background blobs.For large images, try
Image Resizerto lower resolution and increase processing speed while keeping meaningful blob sizes.Visualize or save results using
Show ImageandImage Loggerwhen tuning or to keep records.Combine with drawing blocks such as
Draw Detectionsto overlay counts or rectangular markers on the image for operator displays.
(hint: use these related blocks to improve robustness and speed: Blur, Image Threshold, Image ROI Select, Image Resizer, Denoising, Show Image, Image Logger, Draw Detections)
π οΈ Troubleshooting
No blobs detected: widen the
Threshold Rangeand increase theArea Range; check the input image contrast.Too many small false blobs: increase the minimum in
Area Rangeor applyBlur/Image Thresholdto remove noise.Detecting elongated or irregular shapes: tighten
Circularity Rangeand/or adjustInertia Rangeto favor round blobs.Inconsistent detections across frames: use consistent lighting, or apply preprocessing (
Auto Contrast/Denoising) to stabilize input images.
Last updated
Was this helpful?