Packagecom.tuarua.firebase.ml.vision.text
Classpublic class CloudTextElement
InheritanceCloudTextElement Inheritance Object

A text element recognized in an image. A text element is roughly equivalent to a space-separated word in most Latin-script languages.



Public Properties
 PropertyDefined By
  confidence : Number
The confidence of the recognized text element.
CloudTextElement
  cornerPoints : Vector.<Point>
The four corner points of the text element in clockwise order starting with the top left point relative to the image in the default coordinate space.
CloudTextElement
  frame : Rectangle
The rectangle that contains the text element relative to the image in the default coordinate space.
CloudTextElement
  lines : Vector.<CloudTextLine>
An array of text lines that make up the block.
CloudTextElement
  recognizedLanguages : Vector.<TextRecognizedLanguage>
An array of recognized languages in the text element.
CloudTextElement
  text : String
String representation of the text element that was recognized.
CloudTextElement
Property Detail
confidenceproperty
public var confidence:Number

The confidence of the recognized text element. The value is 0 for all text recognizers except for cloud text recognizers with model type VisionCloudTextModelType.dense.

cornerPointsproperty 
public var cornerPoints:Vector.<Point>

The four corner points of the text element in clockwise order starting with the top left point relative to the image in the default coordinate space. The objects are flash.geom.Points.

frameproperty 
public var frame:Rectangle

The rectangle that contains the text element relative to the image in the default coordinate space.

linesproperty 
public var lines:Vector.<CloudTextLine>

An array of text lines that make up the block.

recognizedLanguagesproperty 
public var recognizedLanguages:Vector.<TextRecognizedLanguage>

An array of recognized languages in the text element. On-device text recognizers only detect Latin-based languages, while cloud text recognizers can detect multiple languages. If no languages are recognized, the array is empty.

textproperty 
public var text:String

String representation of the text element that was recognized.