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, Parcelable

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, Parcelable

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, Parcelable

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

Link copied to clipboard
sealed class OcrElement : Parcelable

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, Parcelable

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

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

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