WordBox

data class WordBox(val text: String, val boundingRect: Rect, val recognitionConfidence: Double = 0.0) : Parcelable

Structure containing recognized word text and bounds.

Constructors

Link copied to clipboard
constructor(source: Map<String, Any?>)
constructor(json: JSONObject)
constructor(text: String, boundingRect: Rect, recognitionConfidence: Double = 0.0)

Properties

Link copied to clipboard

Bounding rectangle of the recognized word.

Link copied to clipboard

Confidence of the recognition.

Link copied to clipboard

Recognized word text.

Functions

Link copied to clipboard
fun clone(): WordBox
Link copied to clipboard
fun toJson(config: ToJsonConfiguration = ToJsonConfiguration.default()): JSONObject