Nodes/ComfyUI-API-DockerCPU/Draw Numbered BBoxes
ComfyUI Node

Draw Numbered BBoxes

Draws bounding boxes with legible number labels (optionally left to right) and returns the boxes in drawn order.

By trustypangolin·Created 7 months ago·Updated 11 days ago· 0
Draw Numbered BBoxes
  • image
  • bboxes
  • image
  • bboxes
  • labels_json
◄sortas_given►
◄start_index1►
◄line_width0►
◄font_scale0.000►
◄color#ff2020►
◄show_scorefalse►
Category🎨 DockerCPU API/Face

Inputs (8)

NameTypeDefaultDescription
imageIMAGE—
bboxesBOUNDING_BOX—
sortCOMBOas_givenas_given keeps the input order; left_to_right orders by box centre-x.
start_indexINT10–100000—
line_widthINT00–640 = auto (0.3% of the short edge, min 2).
font_scaleFLOAT0.0000–0.5Label height as a fraction of the short edge. 0 = auto (0.025, min 14 px).
colorSTRING#ff2020Box and label colour (hex or CSS name).
show_scoreBOOLEANfalse—

Outputs (3)

NameTypeDescription
imageIMAGE—
bboxesBOUNDING_BOX—
labels_jsonSTRING—