Nodes/comfyui_cv/CV Region Property Flags
ComfyUI Node

CV Region Property Flags

Authors an 'CV Region Properties' column selection once and fans it out: wire the 'properties' STRING output into the properties input of any number of Region Properties nodes - or into the promoted 'properties' input of a subgraph that wraps one ('CV K-Means Mask Clusters'), which is a bare socket with no widget of its own. The position choice is exclusive; every other box is an independent toggle. 'names' and 'columns' describe the matrix the selection will produce, without running anything.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
CV Region Property Flags
    • properties
    • names
    • columns
    propertiescentroid (x, y)
    Categoryimage/CV/contours

    Inputs (1)

    NameTypeDefaultDescription
    propertiesSTRINGcentroid (x, y)Pipe-joined column names, e.g. "no position | area" to cluster by size alone, or "no position | hu moments (log magnitude)" to cluster by SHAPE alone. In the UI this renders as the position dropdown plus one toggle per property, each with its own tooltip.

    Outputs (3)

    NameTypeDescription
    propertiesSTRINGThe pipe-joined selection - wire it into the 'properties' input of an 'CV Region Properties' node or of a subgraph that promotes one.
    namesSTRINGThe column names the selection expands to, comma separated and in emission order (the two orientation pairs, 'centroid offset in bbox' and 'min-area rect centroid clearance' are two columns each, 'mean colour' three, 'hu moments (log magnitude)' seven - hu1..hu7). Wire it into 'Preview as Text'.
    columnsINTD, the width of the feature matrix - the number of names, not the number of boxes ticked.