Nodes/comfyui-dsocr-bbox/GLM BBox JSON To Mask
ComfyUI Node

GLM BBox JSON To Mask

Converts GLM desc/class/bbox JSON to a native ComfyUI MASK. coordinate_order selects x-first or y-first bbox values; coord_base 0 means pixels; expansion values are image-size percentages.

By maomaozi·Created about a month ago·Updated about a month ago· 0
GLM BBox JSON To Mask
  • image
  • mask
bbox_json
horizontal_expand0.0
vertical_expand0.0
coord_base1000
coordinate_order
Categorydsocr_bbox/GLM Vision BBox

Inputs (6)

NameTypeDefaultDescription
imageIMAGE
bbox_jsonSTRING
horizontal_expandFLOAT0.00–100
vertical_expandFLOAT0.00–100
coord_baseINT10000–100000
coordinate_orderCOMBO2 options: x1,y1,x2,y2, y1,x1,y2,x2

Outputs (1)

NameTypeDescription
maskMASK