jichengdu
/
got-ocr-2
Towards OCR-2.0 via a Unified End-to-end Model
Run jichengdu/got-ocr-2 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_file |
string
|
输入的图像文件路径
|
|
format |
boolean
|
False
|
是否启用格式化处理和渲染 HTML
|
{
"type": "object",
"title": "Input",
"required": [
"image_file"
],
"properties": {
"format": {
"type": "boolean",
"title": "Format",
"default": false,
"x-order": 1,
"description": "\u662f\u5426\u542f\u7528\u683c\u5f0f\u5316\u5904\u7406\u548c\u6e32\u67d3 HTML"
},
"image_file": {
"type": "string",
"title": "Image File",
"format": "uri",
"x-order": 0,
"description": "\u8f93\u5165\u7684\u56fe\u50cf\u6587\u4ef6\u8def\u5f84"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "object",
"title": "Output",
"required": [
"text"
],
"properties": {
"file": {
"type": "string",
"title": "File",
"format": "uri"
},
"text": {
"type": "string",
"title": "Text"
}
}
}