Package | com.tuarua.firebase.ml.vision.text |
Class | public class CloudTextBlock |
Inheritance | CloudTextBlock ![]() |
Property | Defined 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 |
confidence | property |
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
.
cornerPoints | property |
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.
frame | property |
public var frame:Rectangle
The rectangle that contains the text block relative to the image in the default coordinate space.
lines | property |
public var lines:Vector.<CloudTextLine>
An array of text lines that make up the block.
recognizedLanguages | property |
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.
text | property |
public var text:String
String representation of the text block that was recognized.