ComfyUI Node
RapidOCR JSON Polygon To Mask
Rasterizes RapidOCR JSON items such as {"text": "...", "polygon": [[x, y], ...]} as polygon masks. Coordinates are pixels by default; an optional IMAGE supplies width, height, and batch size.
RapidOCR JSON Polygon To Mask
- image
- mask
◄json_data—►
◄image_width0►
◄image_height0►
◄coord_base0►
◄invert_maskfalse►
CategoryRapidOCR
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| json_data | STRING | — | |
| image_width | INT | 00–100000 | — |
| image_height | INT | 00–100000 | — |
| coord_base | INT | 00–100000 | — |
| invert_mask | BOOLEAN | false | — |
| imageopt | IMAGE | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| mask | MASK | — |