OcrElement

sealed class OcrElement

Base class for units of text, e.g. glyphs, words, lines, blocks, pages.

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val _type: String
Link copied to clipboard
abstract val confidence: Double

Text confidence. Range is 0-1.

Link copied to clipboard
abstract 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
abstract val text: String

The recognized text.

Functions

Link copied to clipboard
abstract fun toJson(config: ToJsonConfiguration = ToJsonConfiguration.default()): JsonObject