You're looking at a specific version of this model. Jump to the model overview.

jaweii /hisam:8d672798

Input schema

The fields you can use to run this model with an API. If you don’t give a value for a field its default value will be used.

Field Type Default value Description
image
string
Input image for text segmentation
mode
None
stroke
Segmentation mode: 'stroke' for pixel-level text masks, 'hierarchical' for word/line/paragraph masks from a point prompt
point_x
integer
X coordinate of prompt point (required for hierarchical mode)
point_y
integer
Y coordinate of prompt point (required for hierarchical mode)
patch_mode
boolean
False
Use sliding-window inference for better small-text results (stroke mode only)

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{'format': 'uri', 'title': 'Output', 'type': 'string'}