Line

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

Represents a single line. A line is made up of words.

Constructors

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

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.

Link copied to clipboard

List of words.

Functions

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