拍照速算识别 API
开发环境
开发环境
POST
http[s]: //rest-api.xfyun.cn/v2/itr
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'http://dev-cn.your-api-server.comhttp[s]: //rest-api.xfyun.cn/v2/itr' \
--header 'Content-Type: application/json' \
--data-raw '{
"common":{
"app_id":"xxxxxxxx"
},
"business":{
"ent":"math-arith",
"aue" :"raw"
},
"data":{
"image":"/9j/4AAQSkZJRgABAQAAAQABAAD/2..."
}
}'
响应示例响应示例
{
"code": 0,
"message": "string",
"sid": "string",
"data": {
"ITRResult": {
"attr_exception": 0,
"category": "string",
"multi_line_info": {
"imp_line_info": [
{
"imp_line_rect": {
"left_up_point_x": 0,
"left_up_point_y": 0,
"right_down_point_x": 0,
"right_down_point_y": 0
},
"rec_rejection": 0,
"strict_score": 0,
"total_score": 0
}
]
},
"recog_result": [
{
"line_char_result": null,
"line_word_result": [
{
"beg_pos": [
0
],
"beg_pos_x": [
0
],
"beg_pos_y": [
0
],
"end_pos": [
0
],
"end_pos_x": [
0
],
"end_pos_y": [
0
],
"word_content": [
"string"
],
"word_gwpp": [
0
]
}
]
}
],
"version": "string"
}
}
}
请求参数
Body 参数application/json
返回响应
修改于 2023-12-21 02:05:11