| status | String | 'Analyze Receipt' operation status. Possible values:- NotStarted: The receipt analysis process has not started.
- Running: The receipt is being analyzed.
- Failed: The receipt analysis process has failed.
- Succeeded: The receipt analysis process has succeeded.
If the status is Succeeded, the response JSON will include the receipt understanding and text recognition results. The receipt understanding result is organized as a dictionary of named field values, where each value contains the extracted text, normalized value, and corresponding OCR word elements. The text recognition result is organized as a hierarchy of Lines and Words, with text, bounding box and confidence information. |
|---|
| recognitionResults | [Object] | An array of objects, each representing the OCR result for a page in the input document. |
|---|
| understandingResults | [Object] | An array of objects, each representing a receipt detected in the input document. |
|---|
| pages | [Integer] | List of pages where the receipt is found. Currently, only single-page receipts are supported. |
|---|
| fields | Object | Dictionary of analyzed field values. If a field is not detected, the corresponding field value will be set to null. |
|---|
| valueType | String | Data type of the field value. Currently, possible types include \\\"stringValue\\\" and \\\"numberValue\\\". |
|---|
| value | String/Number | Semantic value of the recognized field. If the text value cannot be converted, value will be set to \"\" for stringValue or null for numberValue. |
|---|
| text | String | Extracted field text in understandingResults, or a recognized word/line in recognitionResults. |
|---|
| elements | [Object] | List of references to OCR words comprising the detected field value. |
|---|
| $ref | String | JSON pointer to an OCR word element. For example, \"#/recognitionResults/0/lines/1/words/2\" refers to 3rd word in the 2nd line of the 1st page in the document. |
|---|
| lines | [Object] | An array of objects, each representing a line of recognized text. The maximum number of lines returned is 300 per page. The lines are sorted top to bottom, left to right, although in certain cases proximity is treated with higher priority. As the sorting order depends on the detected text, it may change across images and OCR version updates. Thus, business logic should be built upon the actual line location instead of order. |
|---|
| words | [Object] | An array of objects, each representing a recognized word. |
|---|
| boundingBox | [Number] | The bounding box of a recognized line or word, depending on the parent object. It is represented by an array of eight numbers corresponding to four points, clockwise from the top-left corner. For image, the (x, y) coordinates are measured in pixels from the top-left corner of the image. For PDF, the (x, y) coordinates are measured in inches from the top-left corner of the each page. |
|---|
| confidence | String | This flag appears when the recognition of a word is of low confidence. |
|---|
| width | Number | The width of the image/PDF in pixels/inches, respectively. |
|---|
| height | Number | The height of the image/PDF in pixels/inches, respectively. |
|---|
| clockwiseOrientation | Number | The orientation of the image in clockwise direction, measured in degrees between [0, 360). |
|---|
| page | Integer | The 1-based page number of the recognition result. |
|---|
| unit | String | The unit used by the width, height and boundingBox properties. For images, the unit is \"pixel\". For PDF, the unit is \"inch\". |
|---|