[Java] 纯文本查看 复制代码 Request:
POST https://aip.baidubce.com/rest/2.0/ocr/v1/accurate?access_token=24.9dd8bc1680d45c8b8cec312f9a2a84af.2592000.1667486887.282335-18897731
User-Agent: Apache-HttpClient/4.5.6 (java 1.5), bce-sdk-java/0.10.132/Linux/3.10.0_3-0-0-22/Java_HotSpot(TM)_64-Bit_Server_VM/25.45-b02/1.8.0_45/en/
x-bce-request-id: 228771b0667d48878fdde9dda626f945
Content-Length: 81
Date: Tue, 04 Oct 2022 14:51:27 GMT
Content-Type: application/x-www-form-urlencoded
url=https://att.125.la/data/attachment/forum/202210/04/204345yym1zz1hm31134y1.bmp
Response:
200 OK
Server: Apache
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, GET, DELETE, OPTIONS, DELETE
Connection: keep-alive
P3p: CP=" OTI DSP COR IVA OUR IND COM "
Access-Control-Allow-Headers: Content-Type, x-requested-with, X-Custom-Header
Date: Tue, 04 Oct 2022 14:51:30 GMT
X-Baidu-Request-Id: f3ae63eeeace5319e6809d92ced33eb31000017
Appid: 18897731
X-B3-Spanid: 062347a2-43f4-11ed-b5e7-29eee61a631c
Set-Cookie: BAIDUID=0DC8C2B2DFC818FE4FFB1D65B4B4D4F9:FG=1; expires=Thu, 31-Dec-37 23:55:55 GMT; max-age=2145916555; path=/; domain=.baidu.com; version=1
Vary: Accept-Encoding
X-B3-Traceid: 062347a3-43f4-11ed-b5e7-29eee61a631c
Content-Type: application/json
{"words_result": [{"words": "学","location": {"top": 4,"left": 23,"width": 71,"height": 93}},{"words": "跳","location": {"top": 23,"left": 209,"width": 40,"height": 39}},{"words": "底芬","location": {"top": 84,"left": 87,"width": 97,"height": 51}}],"words_result_num": 3,"log_id": 1577310435660846055}
|