ComfyUI Node
CV Filter Contours
Keeps the contours whose measured property lies in [min_value, max_value] - 'round things' (circularity close to 1), 'wide things' (aspect ratio), 'solid blobs vs. squiggles' (solidity)... Chain several to combine criteria. The 'values' output holds the property of each KEPT contour, aligned with the output set - to tune the range, widen it and read the values with 'Inspect CV Data'. Zero matches is a valid result (count = 0), not an error.
CV Filter Contours
- contours
- contours
- count
- values
◄propertyarea (px^2)►
◄min_value0.00►
◄max_value1000000000.00►
Categoryimage/CV/contours
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| contours | CV_CONTOURS | From 'CV Find Contours'. | |
| property | COMBO | area (px^2) | What to measure on each contour. Circularity, extent and solidity are scale-free ratios in 0-1; area/perimeter are in pixels. |
| min_value | FLOAT | 0.00-1000000000–1000000000 | Smallest accepted property value (inclusive). |
| max_value | FLOAT | 1000000000.00-1000000000–1000000000 | Largest accepted property value (inclusive). |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| contours | CV_CONTOURS | The kept contours, in the incoming order. |
| count | INT | — |
| values | NPARRAY | float32 property value per kept contour (aligned with the contour output). |