OCR
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/v2/ocr/ocr
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/v2/ocr/ocr' \
--header 'Authorization;' \
--header 'content-type: application/json' \
--data-raw '{
"response_as_dict": true,
"attributes_as_list": false,
"show_original_response": false
}'
响应示例响应示例
200 - 成功示例
{
"google": {
"text": "I 福州科技馆 福州科技馆空调线路改造项目工程 施工招标公告 招标项目福州科技馆空调线路改造项目工程已批准建设, 招标人为福州科技馆,建设资金来源自筹。项目已具备 招标条件,现对该项目的施工进行公开招标。 1.项目概况与招标范围 建设地点: 福州市仓山区橘园洲桥下公园内 工程招标控 制价: 29135 元;计划工期: 15日历天质量要求:合 按招标范围:详见工程量清单为准, 2. 投标人资格要求 2.1 投标人须具备人员,设备,资金等方面具有相应的设 计经验及施工能力。 2. 2 本次招标不接受联合体投标。 3. 投标报名、开标时间 投标报名截止时间至2018年12月4日12时00分,开标",
"bounding_boxes": [
{
"text": "I",
"left": 0.5178571428571429,
"top": -0.004132231404958678,
"width": 0,
"height": 0.012396694214876033
},
{
"text": "福州",
"left": 0.13095238095238096,
"top": 0.13429752066115702,
"width": 0.22321428571428573,
"height": 0.04338842975206612
},
{
"text": "科技",
"left": 0.46726190476190477,
"top": 0.13429752066115702,
"width": 0.2261904761904762,
"height": 0.04338842975206612
},
{
"text": "馆",
"left": 0.8065476190476191,
"top": 0.13429752066115702,
"width": 0.05357142857142857,
"height": 0.04338842975206612
},
{
"text": "福州",
"left": 0.20535714285714285,
"top": 0.25413223140495866,
"width": 0.0744047619047619,
"height": 0.024793388429752067
},
{
"text": "科技",
"left": 0.28273809523809523,
"top": 0.25413223140495866,
"width": 0.0744047619047619,
"height": 0.024793388429752067
},
{
"text": "馆",
"left": 0.3601190476190476,
"top": 0.25413223140495866,
"width": 0.03571428571428571,
"height": 0.024793388429752067
},
{
"text": "空调",
"left": 0.39880952380952384,
"top": 0.25413223140495866,
"width": 0.07142857142857142,
"height": 0.024793388429752067
},
{
"text": "线路",
"left": 0.47619047619047616,
"top": 0.25413223140495866,
"width": 0.07142857142857142,
"height": 0.024793388429752067
},
{
"text": "改造",
"left": 0.5535714285714286,
"top": 0.25413223140495866,
"width": 0.07142857142857142,
"height": 0.024793388429752067
}
]
},
"clarifai": {
"text": "HFXST HETA MT 1.5 T 29115 T 2 21 +I 2 3. 2018121200",
"bounding_boxes": [
{
"text": "HFXST",
"left": 0.21406248211860657,
"top": 0.2548806965351105,
"width": 0.5703125894069672,
"height": 0.024945765733718872
},
{
"text": "HETA",
"left": 0.3828125,
"top": 0.3101952373981476,
"width": 0.2281249761581421,
"height": 0.029284149408340454
},
{
"text": "MT",
"left": 0.18437500298023224,
"top": 0.4078091084957123,
"width": 0.6671874970197678,
"height": 0.02060738205909729
},
{
"text": "1.5",
"left": 0.12656250596046448,
"top": 0.5216919183731079,
"width": 0.2906250059604645,
"height": 0.018438279628753662
},
{
"text": "T",
"left": 0.18281249701976776,
"top": 0.5650758743286133,
"width": 0.6812499314546585,
"height": 0.01843816041946411
},
{
"text": "29115",
"left": 0.12812499701976776,
"top": 0.6030368804931641,
"width": 0.7390625029802322,
"height": 0.02169191837310791
},
{
"text": "T",
"left": 0.12656250596046448,
"top": 0.6431670188903809,
"width": 0.48749998211860657,
"height": 0.021691977977752686
},
{
"text": "2",
"left": 0.12343750894069672,
"top": 0.6811279654502869,
"width": 0.23906250298023224,
"height": 0.021691977977752686
},
{
"text": "21",
"left": 0.18125000596046448,
"top": 0.7223426699638367,
"width": 0.6828124225139618,
"height": 0.018438220024108887
},
{
"text": "+I",
"left": 0.12812499701976776,
"top": 0.7603037357330322,
"width": 0.23125000298023224,
"height": 0.02169191837310791
}
]
},
"sentisight": {
"text": "# M # # @ 4 {042547.E 14171 UM: 223SIL; ##IM: JLEA 0464 #rMh 12# 00 9.#7",
"bounding_boxes": [
{
"text": "# M # # @",
"left": 0.13095238095238096,
"top": 0.19008264462809918,
"width": 0.761904761904762,
"height": 0.06611570247933884
},
{
"text": "4",
"left": 0.6160714285714286,
"top": 0.4731404958677686,
"width": 0.07738095238095233,
"height": 0.028925619834710703
},
{
"text": "{042547.E",
"left": 0.1636904761904762,
"top": 0.5475206611570248,
"width": 0.26190476190476186,
"height": 0.02892561983471076
},
{
"text": "14171",
"left": 0.7232142857142857,
"top": 0.5929752066115702,
"width": 0.15476190476190477,
"height": 0.03305785123966942
},
{
"text": "UM:",
"left": 0.12202380952380952,
"top": 0.6301652892561983,
"width": 0.0773809523809524,
"height": 0.028925619834710647
},
{
"text": "223SIL; ##IM:",
"left": 0.2113095238095238,
"top": 0.6301652892561983,
"width": 0.2678571428571429,
"height": 0.028925619834710647
},
{
"text": "JLEA",
"left": 0.49107142857142855,
"top": 0.6301652892561983,
"width": 0.15476190476190482,
"height": 0.028925619834710647
},
{
"text": "0464",
"left": 0.15178571428571427,
"top": 0.8657024793388429,
"width": 0.11904761904761904,
"height": 0.028925619834710647
},
{
"text": "#rMh",
"left": 0.28869047619047616,
"top": 0.8657024793388429,
"width": 0.125,
"height": 0.028925619834710647
},
{
"text": "12# 00 9.#7",
"left": 0.6577380952380952,
"top": 0.9028925619834711,
"width": 0.22023809523809523,
"height": 0.02892561983471076
}
]
},
"microsoft": {
"text": "2. 2.2",
"bounding_boxes": [
{
"text": "2.",
"left": 0.12797619047619047,
"top": 0.6838842975206612,
"width": 0.017857142857142856,
"height": 0.01652892561983471
},
{
"text": "2.2",
"left": 0.18154761904761904,
"top": 0.8016528925619835,
"width": 0.041666666666666664,
"height": 0.01652892561983471
}
]
},
"api4ai": {
"text": "I\n福州科技馆\n福州科技馆空调线路改造项目工程\n施工招标公告\n招标项目福州科技馆空调线路改造项目工程已批准建设,\n招标人为福州科技馆,建设资金来源自筹。项目已具备\n招标条件,现对该项目的施工进行公开招标。\n1.项目概况与招标范围\n建设地点: 福州市仓山区橘园洲桥下公园内 工程招标控\n制价: 29135 元;计划工期: 15日历天质量要求:合\n按招标范围:详见工程量清单为准,\n2. 投标人资格要求\n2.1 投标人须具备人员,设备,资金等方面具有相应的设\n计经验及施工能力。\n2. 2 本次招标不接受联合体投标。\n3. 投标报名、开标时间\n投标报名截止时间至2018年12月4日12时00分,开标",
"bounding_boxes": [
{
"text": "I\n福州科技馆\n福州科技馆空调线路改造项目工程\n施工招标公告\n招标项目福州科技馆空调线路改造项目工程已批准建设,\n招标人为福州科技馆,建设资金来源自筹。项目已具备\n招标条件,现对该项目的施工进行公开招标。\n1.项目概况与招标范围\n建设地点: 福州市仓山区橘园洲桥下公园内 工程招标控\n制价: 29135 元;计划工期: 15日历天质量要求:合\n按招标范围:详见工程量清单为准,\n2. 投标人资格要求\n2.1 投标人须具备人员,设备,资金等方面具有相应的设\n计经验及施工能力。\n2. 2 本次招标不接受联合体投标。\n3. 投标报名、开标时间\n投标报名截止时间至2018年12月4日12时00分,开标",
"left": -0.004132231404958678,
"top": 0.12202380952380952,
"width": 0.7440476190476191,
"height": 0.8987603305785123
}
]
},
"amazon": {
"text": "JH # . ****** are ***** . 1. ********* IN## : 29135 #RIM: **** $ # : ######### 2. ####### 2.1 . RE. *********** . 3. **** ######### 2018 *",
"bounding_boxes": [
{
"text": "JH",
"left": 0.3082338869571686,
"top": 0.13518710434436798,
"width": 0.04629765450954437,
"height": 0.04273286834359169
},
{
"text": "#",
"left": 0.6437202095985413,
"top": 0.13354769349098206,
"width": 0.04994326829910278,
"height": 0.044661857187747955
},
{
"text": ".",
"left": 0.250115305185318,
"top": 0.44582700729370117,
"width": 0.15961581468582153,
"height": 0.023941639810800552
},
{
"text": "******",
"left": 0.4236774146556854,
"top": 0.4461418688297272,
"width": 0.16829903423786163,
"height": 0.02276456542313099
},
{
"text": "are",
"left": 0.6215114593505859,
"top": 0.44597354531288147,
"width": 0.05179109424352646,
"height": 0.02195529267191887
},
{
"text": "*****",
"left": 0.7265733480453491,
"top": 0.4462999105453491,
"width": 0.14002187550067902,
"height": 0.021753868088126183
},
{
"text": ".",
"left": 0.12542514503002167,
"top": 0.48515304923057556,
"width": 0.12193533033132553,
"height": 0.022544588893651962
},
{
"text": "1.",
"left": 0.12524548172950745,
"top": 0.5207677483558655,
"width": 0.022567208856344223,
"height": 0.019478561356663704
},
{
"text": "*********",
"left": 0.16472700238227844,
"top": 0.5190067887306213,
"width": 0.2541719079017639,
"height": 0.023697713389992714
},
{
"text": "IN##",
"left": 0.7296434044837952,
"top": 0.5625028610229492,
"width": 0.1382470726966858,
"height": 0.022239895537495613
}
]
}
}
请求参数
Header 参数
content-type
string
必需
示例值:
application/json
Authorization
string
必需
默认值:
Bearer <your_key>
Body 参数application/json
返回响应
修改于 2024-04-11 07:13:33