Nodes/ComfyUI-4A-BoundingBoxes/Create Bounding Boxes
ComfyUI Node

Create Bounding Boxes

Draw bounding boxes in a canvas. Outputs Ideogram prompt elements, pixel-space bounding boxes, and a preview image.

By tsukino4a·Created a day ago·Updated a day ago· 2
Create Bounding Boxes
  • editor_state
  • background
  • bboxes
  • last_incoming
  • preview
  • bboxes
  • elements
◄width1024►
◄height1024►
Category4A-BoundingBoxes

Inputs (6)

NameTypeDefaultDescription
widthINT102464–16384Width of the canvas and the pixel grid for the bounding boxes.
heightINT102464–16384Height of the canvas and the pixel grid for the bounding boxes.
editor_stateBBOX4A_EDITORDraw bounding boxes and set each box type, text, description, color palette. Start with background element first and foreground last.
backgroundoptIMAGEOptional image used as background in the canvas and preview.
bboxesoptBOUNDING_BOX,ARRAY,STRINGBounding 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_incomingoptBBOX4A_STATEInternal state managed by the canvas: the upstream bboxes value that last initialized it.

Outputs (3)

NameTypeDescription
previewIMAGE—
bboxesBOUNDING_BOX—
elementsARRAY—