Skip to main content
This node provides a canvas interface for drawing bounding boxes around objects or text regions in an image. It outputs the bounding box coordinates in pixel space, structured element data compatible with Ideogram prompt formatting, and a preview image showing the drawn boxes with labels and color palettes.

Inputs

ParameterDescriptionData TypeRequiredRange
backgroundOptional image used as background in the canvas and preview.IMAGENo-
widthWidth of the canvas and the pixel grid for the bounding boxes (default: 1024).INTYes64 to 16384 (step: 16)
heightHeight of the canvas and the pixel grid for the bounding boxes (default: 1024).INTYes64 to 16384 (step: 16)
editor_stateDraw bounding boxes and set each box type, text, description, color palette. Start with background element first and foreground last.BOUNDING_BOXESYes-

Outputs

Output NameDescriptionData Type
previewAn RGB image showing the canvas with all bounding boxes rendered, including labels, color palette swatches, and descriptive text.IMAGE
bboxesA list of bounding boxes in pixel coordinates, with each box containing x, y, width, and height values.BOUNDING_BOX
elementsA structured array of element objects, each containing type, bounding box coordinates (normalized 0-1000), text (for text type), description, and color palette.ARRAY
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): a63939f13edc6c6507590a390dcd6d0a3321febb5831baab1655d9952228612c