Scanbot Ocr Engine Manager
class ScanbotOcrEngineManager(context: Context, blobManager: BlobManager, sapManager: SapManager, blobStoreStrategy: BlobStoreStrategy, pageFileStorage: PageFileStorage, fileIOProcessor: FileIOProcessor, ocrSettings: OcrSettings, bitmapBinarizer: BitmapBinarizer) : OcrEngineManager
Default implementation of OcrEngine for Scanbot SDK.
Constructors
Link copied to clipboard
constructor(context: Context, blobManager: BlobManager, sapManager: SapManager, blobStoreStrategy: BlobStoreStrategy, pageFileStorage: PageFileStorage, fileIOProcessor: FileIOProcessor, ocrSettings: OcrSettings, bitmapBinarizer: BitmapBinarizer)
Types
Link copied to clipboard
data class BitmapInput(val bitmap: Bitmap, val engineMode: OcrEngineManager.EngineMode = OcrEngineManager.EngineMode.SCANBOT_OCR, val pdfConfig: PdfConfiguration? = null, val outputFile: File? = null, val sourceOcrPages: List<Page> = emptyList()) : ScanbotOcrEngineManager.EngineInput
Allows to set OCR input as a bitmap.
Link copied to clipboard
data class DocumentInput(val document: Document, val engineMode: OcrEngineManager.EngineMode = OcrEngineManager.EngineMode.SCANBOT_OCR, val pdfConfig: PdfConfiguration? = null, val outputFile: File? = null, val sourceOcrPages: List<Page> = emptyList()) : ScanbotOcrEngineManager.EngineInput
Allows to set OCR input as Document of encrypted or normal images.
Link copied to clipboard
Input for the OCR process.
Link copied to clipboard
data class ImageRefsInput(val images: List<ImageRef>, val engineMode: OcrEngineManager.EngineMode = OcrEngineManager.EngineMode.SCANBOT_OCR, val pdfConfig: PdfConfiguration? = null, val outputFile: File? = null, val sourceOcrPages: List<Page> = emptyList()) : ScanbotOcrEngineManager.EngineInput
Allows to set OCR input as a list of io.scanbot.sdk.image.ImageRefs images.
Link copied to clipboard
data class PagesInput(val pages: List<Page>, val engineMode: OcrEngineManager.EngineMode = OcrEngineManager.EngineMode.SCANBOT_OCR, val pdfConfig: PdfConfiguration? = null, val outputFile: File? = null, val sourceOcrPages: List<Page> = emptyList()) : ScanbotOcrEngineManager.EngineInput
Allows to set OCR input as a list of pages.
Link copied to clipboard
data class UrisInput(val uris: List<Uri>, val encryptedInput: Boolean = false, val engineMode: OcrEngineManager.EngineMode = OcrEngineManager.EngineMode.SCANBOT_OCR, val pdfConfig: PdfConfiguration? = null, val outputFile: File? = null, val sourceOcrPages: List<Page> = emptyList()) : ScanbotOcrEngineManager.EngineInput
Allows to set OCR input as a list of URIs of encrypted or normal images.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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
Link copied to clipboard
Performs OCR only (without PDF result) from pages with provided languages.
Link copied to clipboard
Link copied to clipboard
Sets the OCR and PDF engine mode configuration.