ComfyUI Node
Bbox Converter
Convert between a layout JSON and bounding boxes. Outputs the layout JSON (percent boxes when converting bboxes), pixel bounding boxes and Create Bounding Boxes elements.
Bbox Converter
- bboxes
- layout_json
- bboxes
- elements
◄width1024►
◄height1024►
◄use_bboxesfalse►
◄layout_json—►
CategoryPrompt Manager
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| width | INT | 102416–16384 | Canvas size the pixel boxes refer to, e.g. the layout builder's width/height outputs. |
| height | INT | 102416–16384 | Canvas size the pixel boxes refer to, e.g. the layout builder's width/height outputs. |
| use_bboxes | BOOLEAN | false | Input to convert when both are connected (shown only then). |
| layout_jsonopt | STRING | Layout JSON (MOSS-native, percent or 0-1000 boxes), an Ideogram 4 caption or Krea 2 grounding lines. Passed through to the layout_json output. | |
| bboxesopt | BOUNDING_BOX,ARRAY,STRING | Bounding boxes, Create Bounding Boxes elements, or their JSON. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| layout_json | STRING | — |
| bboxes | BOUNDING_BOX | — |
| elements | ARRAY | — |