Packagecom.tuarua.firebase.ml.vision.text
Classpublic class CloudTextLine
InheritanceCloudTextLine Inheritance Object

A text line recognized in an image that consists of an array of elements.



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

The confidence of the recognized text line. The value is null 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 line in clockwise order starting with the top left point relative to the image in the default coordinate space. The objects are flash.geom.Points.

elementsproperty 
public var elements:Vector.<CloudTextElement>

An array of text elements that make up the line.

frameproperty 
public var frame:Rectangle

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

recognizedLanguagesproperty 
public var recognizedLanguages:Vector.<TextRecognizedLanguage>

An array of recognized languages in the text line. 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 line that was recognized.