POST api/BaiDuAI/CharacterRecognition
Request Information
URI Parameters
None.
Body Parameters
Binarization| Name | Description | Type | Additional information |
|---|---|---|---|
| Base64 | string |
None. |
|
| X | integer |
None. |
|
| Y | integer |
None. |
|
| width | integer |
None. |
|
| height | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Base64": "sample string 1",
"X": 2,
"Y": 3,
"width": 4,
"height": 5
}
text/html
Sample:
{"Base64":"sample string 1","X":2,"Y":3,"width":4,"height":5}
application/xml, text/xml
Sample:
<Binarization xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YLS.Common.Models"> <Base64>sample string 1</Base64> <X>2</X> <Y>3</Y> <height>5</height> <width>4</width> </Binarization>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
JsonRtnOfObject| Name | Description | Type | Additional information |
|---|---|---|---|
| state | RtnState |
None. |
|
| message | string |
None. |
|
| data | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"state": 200,
"message": "sample string 1",
"data": {}
}
text/html
Sample:
{"state":200,"message":"sample string 1","data":{}}
application/xml, text/xml
Sample:
<JsonRtnOfanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YLS.Common"> <data /> <message>sample string 1</message> <state>sucess</state> </JsonRtnOfanyType>