Optical Character Recognition (OCR)

Last Updated on : 2021-07-16 07:46:48download

Identify the characters and coordinates on an image to analyze the image data.

API address

POST: /v1.0/iot-03/ai-vision/text/actions/discern

Request parameter

Return parameter

Parameter name Type Description
result List The returned result.

Description of result

Parameter name Type Description
words String The characters on a specific image.
coordinate CoordinatesRes The information about coordinates.
confidence Float The confidence.

Description of coordinate

Parameter name Type Description
left Integer The left margin.
top Integer The top margin.
right Integer The right margin.
bottom Integer The bottom margin.

Request example

POST: /v1.0/iot-03/ai-vision/text/actions/discern
{ "image": "/9j/4AAQSkxxxxxxxxxxxxxxxx" }

Return example

{ "result": [ { "coordinate": { "bottom": 116, "right": 192, "top": 86, "left": 1 }, "confidence": 0.988182, "words": "Abc" } ], "t": 1624864045157, "success": true }

Error code

For more information, see error code.