Jump to top

VisionTextBase

interface

A shared type that all Vision Text components inherit from

Properties

boundingBox

</>

Returns the bounding rectangle of the detected text.

boundingBox: VisionRectangle;

confidence

</>

The confidence of the recognized text. It only return valid result from cloud recognizers. For on-device text recognition, the confidence is always null.

confidence: null | number;

cornerPoints

</>

Gets the four corner points in clockwise direction starting with top-left. Due to the possible perspective distortions, this is not necessarily a rectangle. Parts of the region could be outside of the image.

cornerPoints: VisionPoint[];

recognizedLanguages

</>

Gets a list of recognized languages. (Cloud API only. On-Device returns empty array)

recognizedLanguages: string[];

text

</>

Gets the recognized text as a string. Returned in reading order for the language. For Latin, this is top to bottom within a VisionTextBlock, and left-to-right within a VisionTextLine.

text: string;