Glyph

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

Represents a single glyph, i.e. a character.

Constructors

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

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
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(): Glyph
Link copied to clipboard
open override fun toJson(config: ToJsonConfiguration): JSONObject