~~~[api]
post:http://api.xfyun.cn/v1/service/v1/ocr/handwriting
*X-Appid=123456#应用ID
*X-CurTime=123456#时间戳
*X-Param=123456#配置参数json串base64编码
*X-CheckSum=123456#令牌
*image=xxxx#图片数据base64编码
<<<
success
{
"code": "0",
"desc": "success",
"data": {
"block": [
{
"location": {
"top_left": {
"x": 0,
"y": 0
},
"right_bottom": {
"x": 10,
"y": 10
}
},
"type": "text",
"line": [
{
"confidence": 0.89,
"location": {
"top_left": {
"x": 0,
"y": 0
},
"right_bottom": {
"x": 10,
"y": 10
}
},
"word": [
{
"location": {
"top_left": {
"x": 0,
"y": 0
},
"right_bottom": {
"x": 10,
"y": 10
}
},
"content": "hello"
}
]
}
]
}
]
},
"sid": "wcr0000bb3f@ch3d5c059d83b3477200"
}
<<<
error
{
"code": "10106",
"desc": "invalid parameter|invalid X-Appid",
"data": "",
"sid": "wcr0000bb3f@ch3d5c059d83b3477200"
}
~~~