Nodes/comfyui-ideogram4-bbox-editor/Ideogram4 Bbox Editor
ComfyUI Node

Ideogram4 Bbox Editor

Visual bbox editor for the Ideogram-4 caption JSON. Outputs the caption string, a preview image, pixel-space bounding boxes (SAM3/crop), and the resolved size.

By quzopl·Created 2 months ago·Updated 2 months ago· 1
Ideogram4 Bbox Editor
  • image
  • florence_data
  • prompt
  • preview
  • bboxes
  • width
  • height
caption_json{}
width0
height0
import_json
florence_caption
florence_regions
CategoryIdeogram4

Inputs (8)

NameTypeDefaultDescription
caption_jsonSTRING{}
widthINT00–16384Target width. 0 = use the aspect ratio set in the editor. When both width and height are > 0 they override aspect_ratio (W:H) and set the pixel grid for the bboxes/preview outputs.
heightINT00–16384Target height. 0 = use the aspect ratio set in the editor.
imageoptIMAGEOptional reference image: dimmed behind the preview output and shown as the editor backdrop (loads on run).
import_jsonoptSTRINGOptional caption JSON loaded into the editor on run. The output always reflects the editor, never this raw input.
florence_captionoptSTRINGFlorence2Run `caption` -> high_level_description (auto-fill on run).
florence_dataoptJSONFlorence2Run `data` (region/OCR boxes). Auto-placed as elements; needs the `image` input connected (boxes are in image pixel space). Note: kijai's `data` has no per-region labels for OD/dense — use `florence_regions` for labeled boxes.
florence_regionsoptSTRINGA region task's raw `caption` (label<loc_..> string). Parsed into labeled boxes (desc = label) — recovers labels that `data` drops. Coords are normalized, so no `image` needed.

Outputs (5)

NameTypeDescription
promptSTRING
previewIMAGE
bboxesBOUNDING_BOX
widthINT
heightINT