Page

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

Represents result of performing OCR on an image. A page is made up of blocks.

Constructors

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

Properties

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

List of blocks.

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