ComfyUI Node
CV BBoxes to Masks
Filled rectangle masks from bounding boxes - the inverse of 'CV Masks to BBoxes'. Turns detections (YuNet, YOLO, Match Template, SAM3) into masks you can feed to inpainting, 'CV Crop by Masks', or any mask arithmetic. Empty input yields an empty MASK batch (rule 4 - never raises).
CV BBoxes to Masks
- space
- bboxes
- masks
- count
◄mergefalse►
Categoryimage/CV
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| space | NPARRAY,IMAGE,MASK,LATENT | Reference the boxes were measured on - only its height/width are used, so any IMAGE, MASK, NPARRAY or LATENT works. For a LATENT that is the latent-cell grid ('CV Scale BBoxes' converts between spaces). | |
| bboxes | BOUNDING_BOX | [object Object] | Core BOUNDING_BOX data: per-frame lists of {x, y, width, height} dicts - compatible with Draw BBoxes, Crop By Bounding Boxes, Image Crop, etc. |
| mergeopt | BOOLEAN | false | Union every box into ONE mask instead of emitting one mask per box. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| masks | MASK | One full-size mask per box (or a single merged mask), white inside the rectangle. |
| count | INT | — |