ComfyUI Node
Create Bounding Boxes
Draw bounding boxes in a canvas. Outputs Ideogram prompt elements, pixel-space bounding boxes, and a preview image.
Create Bounding Boxes
- editor_state
- background
- bboxes
- last_incoming
- preview
- bboxes
- elements
◄width1024►
◄height1024►
Category4A-BoundingBoxes
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| width | INT | 102464–16384 | Width of the canvas and the pixel grid for the bounding boxes. |
| height | INT | 102464–16384 | Height of the canvas and the pixel grid for the bounding boxes. |
| editor_state | BBOX4A_EDITOR | Draw bounding boxes and set each box type, text, description, color palette. Start with background element first and foreground last. | |
| backgroundopt | IMAGE | Optional image used as background in the canvas and preview. | |
| bboxesopt | BOUNDING_BOX,ARRAY,STRING | Bounding boxes, elements, or a JSON string to initialize the canvas. A new upstream value initializes the canvas; edits made on the canvas take priority and are kept until the upstream value changes again. | |
| last_incomingopt | BBOX4A_STATE | Internal state managed by the canvas: the upstream bboxes value that last initialized it. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| preview | IMAGE | — |
| bboxes | BOUNDING_BOX | — |
| elements | ARRAY | — |