OcrEngineManager

Types

Link copied to clipboard

Represents the OCR and PDF engine modes.

Link copied to clipboard
data class OcrConfig @JvmOverloads constructor(var engineMode: OcrEngineManager.EngineMode = EngineMode.SCANBOT_OCR, var languages: Set<Language> = emptySet())

Represents additional the OCR configurations.

Functions

Link copied to clipboard
Link copied to clipboard
abstract fun getLanguageDataPath(): File
Link copied to clipboard
abstract fun recognizeFromBitmap(bitmap: Bitmap): Result<OcrResult>

Performs OCR only (without PDF result) from the bitmap with provided languages.

Link copied to clipboard

Performs OCR only (without PDF result) from the document with provided languages.

Link copied to clipboard

Performs OCR only (without PDF result) from ImageRefs with provided languages.

Link copied to clipboard
abstract fun recognizeFromPages(pages: List<Page>): Result<OcrResult>

Performs OCR only (without PDF result) from pages with provided languages.

Link copied to clipboard
abstract fun recognizeFromUris(imageFileUris: List<Uri>, sourceFilesEncrypted: Boolean = false): Result<OcrResult>

Performs OCR only (without PDF result) from Images with provided languages.

Link copied to clipboard
abstract fun setOcrConfig(ocrConfig: OcrEngineManager.OcrConfig)

Sets the OCR and PDF engine mode configuration.