Text

object Text

Optical Character Recognition (OCR) models.

Types

Link copied to clipboard
data class Block(val text: String, val boundingBox: LiteRTExt.BoundingBox, val lines: List<LiteRTExt.Text.Line>)

Represents a block of text composed of multiple lines.

Link copied to clipboard
data class Element(val text: String, val boundingBox: LiteRTExt.BoundingBox, val score: Float)

Represents a single text element (typically a word).

Link copied to clipboard
data class Line(val text: String, val boundingBox: LiteRTExt.BoundingBox, val elements: List<LiteRTExt.Text.Element>)

Represents a line of text composed of multiple elements.

Link copied to clipboard
data class Result(val text: String, val blocks: List<LiteRTExt.Text.Block>)

The final result of an OCR task.