Nodes/comfyui-dsocr-bbox/RapidOCR JSON Polygon To Mask
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.

By maomaozi·Created about a month ago·Updated about a month ago· 0
RapidOCR JSON Polygon To Mask
  • image
  • mask
json_data
image_width0
image_height0
coord_base0
invert_maskfalse
CategoryRapidOCR

Inputs (6)

NameTypeDefaultDescription
json_dataSTRING
image_widthINT00–100000
image_heightINT00–100000
coord_baseINT00–100000
invert_maskBOOLEANfalse
imageoptIMAGE

Outputs (1)

NameTypeDescription
maskMASK