Package-level declarations

Types

Link copied to clipboard
data class Block(val text: String, val confidence: Double, val roi: List<PointF>, val lines: List<Line>) : OcrElement

Represents a single block, e.g. a paragraph. A block is made up of lines.

Link copied to clipboard
data class Glyph(val text: String, val confidence: Double, val roi: List<PointF>) : OcrElement

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

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

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

Link copied to clipboard
sealed class OcrElement

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

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

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

Link copied to clipboard
data class PerformOcrResult(var plainText: String, var pages: List<Page>)
Link copied to clipboard
data class Word(val text: String, val confidence: Double, val roi: List<PointF>, val glyphs: List<Glyph>) : OcrElement

Represents a single word. A word is made up of glyphs.