Packagecom.tuarua.firebase.ml.vision.text
Classpublic class CloudTextBlock
InheritanceCloudTextBlock Inheritance Object

A text block recognized in an image that consists of an array of text lines.



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

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

cornerPointsproperty 
public var cornerPoints:Vector.<Point>

The four corner points of the text block in clockwise order starting with the top left point relative to the image in the default coordinate space.

frameproperty 
public var frame:Rectangle

The rectangle that contains the text block 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 block. 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 block that was recognized.