You're looking at a specific version of this model. Jump to the model overview.
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
|
-1
|
X coordinate of prompt point (required for hierarchical mode; use -1 to omit)
|
| point_y |
integer
|
-1
|
Y coordinate of prompt point (required for hierarchical mode; use -1 to omit)
|
| 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'}