Authorization: Bearer ********************
{
// http 图片
"image": "http://i0.hdslb.com/bfs/archive/c8fd97a40bf79f03e7b76cbc87236f612caef7b2.png"
// 本地图片
// "image": "file://d:\\1.jpg"
// base64图片
// "image": "base64://xxxxxx"
}
curl --location --request POST 'http://127.0.0.1:3000/ocr_image' \
--header 'Content-Type: application/json' \
--data-raw '{
// http 图片
"image": "http://i0.hdslb.com/bfs/archive/c8fd97a40bf79f03e7b76cbc87236f612caef7b2.png"
// 本地图片
// "image": "file://d:\\1.jpg"
// base64图片
// "image": "base64://xxxxxx"
}'
{"status":"ok","retcode":0,"data":{"texts":[{"text":"Sssr","confidence":1,"coordinates":[{"x":32,"y":20},{"x":185,"y":18},{"x":187,"y":89},{"x":34,"y":92}]}],"language":""},"message":"","wording":""}