自定义文档解析获取作业结果
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
GET
/v2/ocr/custom_document_parsing_async/{public_id}
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://dev-cn.your-api-server.com/v2/ocr/custom_document_parsing_async/?response_as_dict=true&show_original_response=false' \
--header 'Authorization;'
响应示例响应示例
200 - 成功示例
{
"public_id": "c212c96f-2c53-4f9d-a374-ff35d7a1b78f",
"status": "finished",
"error": null,
"results": {
"extracta": {
"error": null,
"id": "64ce9b85-8fd0-4c87-b5d0-b77da8959583",
"final_status": "finished",
"items": [
{
"confidence": 1,
"value": "jwsmith@colostate.edu",
"query": "What is the resume's email address?",
"bounding_box": {
"left": 0,
"top": 0,
"width": 0,
"height": 0
},
"page": 0
},
{
"confidence": 1,
"value": "Determined work placement for 150 special needs adult clients.",
"query": "What is the first Adult Care experience?",
"bounding_box": {
"left": 0,
"top": 0,
"width": 0,
"height": 0
},
"page": 0
}
]
},
"amazon": {
"error": null,
"id": "a1e2bfe7-e06e-41f3-9497-0503b4e4e8a1",
"final_status": "finished",
"items": [
{
"confidence": 97,
"value": "jwsmith@colostate.edu",
"query": "What is the resume's email address?",
"bounding_box": {
"left": 0.40480345487594604,
"top": 0.13232094049453735,
"width": 0.18646040558815002,
"height": 0.014690706506371498
},
"page": 1
},
{
"confidence": 89,
"value": "Determined work placement for 150 special needs adult clients.",
"query": "What is the first Adult Care experience?",
"bounding_box": {
"left": 0.17573566734790802,
"top": 0.27843594551086426,
"width": 0.4986802041530609,
"height": 0.014926792122423649
},
"page": 1
}
]
}
}
}
请求参数
Path 参数
public_id
string
必需
Query 参数
response_as_dict
string
可选
示例值:
true
show_original_response
string
可选
示例值:
false
Header 参数
Authorization
string
必需
默认值:
Bearer <your_key>
返回响应
修改于 2024-04-11 07:09:21