total-disruption/dots-mocr
Public
200
runs
Run total-disruption/dots-mocr with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
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
|
Страница документа или картинка (PNG/JPEG/WebP)
|
|
| prompt_mode |
None
|
prompt_layout_all_en
|
Режим промпта dots.mocr
|
| custom_prompt |
string
|
|
Свой промпт, только для prompt_general
|
| max_new_tokens |
integer
|
12000
Min: 1 Max: 24000 |
Лимит генерируемых токенов
|
| min_pixels |
integer
|
3136
|
Минимум пикселей после ресайза
|
| max_pixels |
integer
|
11289600
|
Максимум пикселей после ресайза
|
{
"type": "object",
"title": "Input",
"required": [
"image"
],
"properties": {
"image": {
"type": "string",
"title": "Image",
"format": "uri",
"x-order": 0,
"description": "\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0438\u043b\u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 (PNG/JPEG/WebP)"
},
"max_pixels": {
"type": "integer",
"title": "Max Pixels",
"default": 11289600,
"x-order": 5,
"description": "\u041c\u0430\u043a\u0441\u0438\u043c\u0443\u043c \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439 \u043f\u043e\u0441\u043b\u0435 \u0440\u0435\u0441\u0430\u0439\u0437\u0430"
},
"min_pixels": {
"type": "integer",
"title": "Min Pixels",
"default": 3136,
"x-order": 4,
"description": "\u041c\u0438\u043d\u0438\u043c\u0443\u043c \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439 \u043f\u043e\u0441\u043b\u0435 \u0440\u0435\u0441\u0430\u0439\u0437\u0430"
},
"prompt_mode": {
"enum": [
"prompt_layout_all_en",
"prompt_layout_only_en",
"prompt_ocr",
"prompt_web_parsing",
"prompt_scene_spotting",
"prompt_image_to_svg",
"prompt_general"
],
"type": "string",
"title": "prompt_mode",
"description": "\u0420\u0435\u0436\u0438\u043c \u043f\u0440\u043e\u043c\u043f\u0442\u0430 dots.mocr",
"default": "prompt_layout_all_en",
"x-order": 1
},
"custom_prompt": {
"type": "string",
"title": "Custom Prompt",
"default": "",
"x-order": 2,
"description": "\u0421\u0432\u043e\u0439 \u043f\u0440\u043e\u043c\u043f\u0442, \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f prompt_general"
},
"max_new_tokens": {
"type": "integer",
"title": "Max New Tokens",
"default": 12000,
"maximum": 24000,
"minimum": 1,
"x-order": 3,
"description": "\u041b\u0438\u043c\u0438\u0442 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u0442\u043e\u043a\u0435\u043d\u043e\u0432"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "string",
"title": "Output"
}