Companion

object Companion

Companion for static members.

Properties

Link copied to clipboard

Whether Tesseract OSD (Orientation and Script Detection) is currently available.

Link copied to clipboard

Whether Tesseract OCR is ready to process requests.

Functions

Link copied to clipboard

Detects the orientation of the given image using Tesseract's OSD.

Link copied to clipboard
fun performOcr(imageBytes: ByteArray, mode: String, options: Map<String, String> = emptyMap()): String

Performs OCR directly on the given image bytes, returning a JSON result.