ComfyUI Node
CV Paste by BBox
Pastes crops back at the given bounding boxes - the inverse of 'CV Crop by Masks' / 'CV Crop by BBoxes'. It needs NO policy: it flattens whatever the crop node emitted - one stacked batch or one item per region - and pairs crop i with box i, so both output shapes come home the same way. Works in the target's own type (IMAGE, MASK, NPARRAY or LATENT) and writes the values through untouched, so an unmodified crop round-trips exactly. Connect the crop_masks to paste only the masked region (with optional feathering) instead of the full rectangle.
CV Paste by BBox
- image
- crops
- bboxes
- masks
- image
◄feather0.0►
Categoryimage/CV
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| image | COMFY_MATCHTYPE_V3 | What to paste into. Frame 0 is used; the crops must be the same type. | |
| crops | COMFY_MATCHTYPE_V3 | The crop node's 'crops' output, in either shape. | |
| 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. The crop node's 'bboxes' output (the SNAPPED boxes) - one per crop, in the same order. |
| feather | FLOAT | 0.00–100 | Gaussian blur sigma applied to the paste masks for soft seams. |
| masksopt | MASK | Optional crop-space masks (white = paste); the full rectangle is pasted if omitted. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| image | COMFY_MATCHTYPE_V3 | The target with every crop pasted in, in its own type. |