Nodes/ComfyUI-Krea-API/Krea Regions
ComfyUI Node

Krea Regions

Draw boxes for Krea Region Edit. Each box's description becomes its note. Boxes can also come from core bounding boxes, KJNodes BBOX, a JSON string, or a mask. Chain nodes to add boxes on other images.

By fraudrice·Created a day ago·Updated a day ago· 0
Krea Regions
  • editor_state
  • background
  • bboxes
  • mask
  • last_incoming
  • regions
  • regions
  • preview
◄width1024►
◄height1024►
◄image_index1►
◄mask_boxesbox per blob►
◄bbox_tuple_formatxyxy►
CategoryKrea/utils

Inputs (11)

NameTypeDefaultDescription
widthINT102464–16384—
heightINT102464–16384—
editor_stateBOUNDING_BOXESDraw boxes; write each box's instruction in its description.
image_indexINT11–8Which of the edit node's images these boxes are on (1 = the image being edited).
mask_boxesCOMBObox per blob2 options: box per blob, one box
bbox_tuple_formatCOMBOxyxyLayout of KJNodes BBOX tuples (Points Editor defaults to xyxy).
backgroundoptIMAGEThe image the boxes are drawn on.
bboxesoptBOUNDING_BOX,BBOX,ARRAY,STRINGBoxes to start from: core BOUNDING_BOX or elements, KJNodes BBOX, or JSON. A new upstream value replaces the canvas; canvas edits are kept until it changes again.
maskoptMASKAdds the bounding box(es) of this mask.
last_incomingoptBOUNDING_BOXESInternal state of the canvas.
regionsoptKREA_REGIONSRegions from another Krea Regions node to add to.

Outputs (2)

NameTypeDescription
regionsKREA_REGIONS—
previewIMAGE—