Word

data class Word(val text: String, val confidence: Double, val roi: List<PointF>, val glyphs: List<Glyph>) : OcrElement, Parcelable

Represents a single word. A word is made up of glyphs.

Constructors

Link copied to clipboard
constructor(source: Map<String, Any?>)
constructor(json: JSONObject)
constructor(text: String, confidence: Double, roi: List<PointF>, glyphs: List<Glyph>)

Properties

Link copied to clipboard
open override val _type: String
Link copied to clipboard
open override val confidence: Double

Text confidence. Range is 0-1.

Link copied to clipboard

List of glyphs.

Link copied to clipboard
open override val roi: List<PointF>

Quad where the text was found in image coordinates. The order of the points is clockwise starting from the top left.

Link copied to clipboard
open override val text: String

The recognized text.

Functions

Link copied to clipboard
open override fun clone(): Word
Link copied to clipboard
open override fun toJson(config: ToJsonConfiguration): JSONObject