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.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| bbox_json | STRING | — | |
| horizontal_expand | FLOAT | 0.00–100 | — |
| vertical_expand | FLOAT | 0.00–100 | — |
| coord_base | INT | 10000–100000 | — |
| coordinate_order | COMBO | 2 options: x1,y1,x2,y2, y1,x1,y2,x2 |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| mask | MASK | — |