Charge Description: This interface is charged according to the actual usage. Please refer to the charging instructions for specific pricing.
URL description: /ocr/ supports handwriting.
/ocr/ handwriting
Then just publish the data in the corresponding format to it (connect with socket and send HTTP request).
-
Request mode
Request title title
Parameter Name Required Value Description
Host is the domain name of recognition.image.myqcloud.com Tencent Cloud Character Recognition Server.
Content-length No, the total length of the package is limited to 6MB per request, and the animation length is. Gif type is not supported.
Depending on the interface, the content type is application /json or multipart/form data:
1. Use the image url and select the application/JSON; ;
2. Use images and select multipart/form data.
Authorization is a multiple valid signature of authentication signature, which is used for authentication. For the generation method, see Authentication Signature Method.
note:
If multipart/form-data is selected, please use the method recommended by http framework/library to set the requested content type. It is not recommended to call method settings such as setheader directly, otherwise the boundary may be lost and the request may fail.
Request parameter
The required type description of the parameter name.
Appid is the unique identifier of the string access item, which can be viewed in the account information or cloud API key.
Images have no binary image files, and multiple images are supported.
The Url does not have a string image, just provide the URL; If both are provided, only the url is used.
Returns a description of the content field type.
Code Int returns the status value.
The message string returned an error message.
All field information identified by the data.items array (item)
Project description:
Field type description
Itemstring string field string
Pixel coordinates of the itemcoord object field in the image, including the upper left corner coordinates x, y, width and height.
Information of each word identified by a word field.
Text description:
Field type description
Single-character character for character string recognition
Confidence The confidence corresponding to a single character recognized by float, with the range of [0, 100].