ComfyUI Node
Mask to BBox
Calculates the bounding box(es) of a mask. Can combine all regions or separate them with NMS.
Mask to BBox
- mask
- BBOX
◄threshold0.50►
◄combinefalse►
◄nms_threshold0.50►
Categoryimgutils/bbox
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| mask | MASK | — | |
| threshold | FLOAT | 0.500–1 | Threshold to binarize the mask before finding bbox |
| combine | BOOLEAN | false | If True, combine all mask regions into one bbox. If False, output separate bboxes for each connected component. |
| nms_threshold | FLOAT | 0.500–1 | IoU threshold for Non-Maximum Suppression. Higher values merge more overlapping boxes. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| BBOX | BBOX | — |