ScanbotSDKInitializer

Initializes Scanbot SDK library. Use it to set up desired components and then call initialize.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
Link copied to clipboard
inner class PrepareBlobsTask(val application: Application)

Functions

Link copied to clipboard

Enables/disables GPU acceleration for TensorFlow ML models

Link copied to clipboard

Enables/disables XNNPACK acceleration for TensorFlow ML models, which provides highly optimized implementations of floating-point neural network operators. By default - true.

Link copied to clipboard
fun documentDraftExtractor(extractor: DocumentDraftExtractor): ScanbotSDKInitializer

Adjust this parameter to specify snapped pages should be combined into documents and in which format

Link copied to clipboard
Link copied to clipboard
open override fun initialize(application: Application): SdkLicenseInfo

Initializes Scanbot SDK library. Can be called only once.

Link copied to clipboard
fun licenceErrorHandler(licenseErrorHandler: IScanbotSDKLicenseErrorHandler): ScanbotSDKInitializer

Register callback for handling all sdk license errors after sdk initialisation

Link copied to clipboard
fun license(application: Application, license: String): ScanbotSDKInitializer

Set Scanbot SDK license

Link copied to clipboard
open override fun logger(logger: Logger): ScanbotSDKInitializer

Adjust this parameter to specify which Logger should be used. To set a custom logger withLogging must be set to true.

Link copied to clipboard
fun ocrBlobsPath(application: Application, ocrBlobsPath: String): ScanbotSDKInitializer

Set Scanbot SDK OCR blobs path

Link copied to clipboard
fun precompileGpuMlModels(precompilingCallback: () -> Unit = {}): ScanbotSDKInitializer

Performs GPU ML models precompiling

Link copied to clipboard

Set Scanbot SDK to prepare OCR languages blobs. Prepares language train data blobs for io.scanbot.sdk.mcscanner.MedicalCertificateScanner and io.scanbot.sdk.hicscanner.HealthInsuranceCardScanner

Link copied to clipboard
fun sdkFilesDirectory(application: Application, sdkFilesDirectory: File): ScanbotSDKInitializer

Set the custom directory for pages and documents storage

Link copied to clipboard

Enable or disable CPU acceleration.

Link copied to clipboard
fun useFileEncryption(enableFileEncryption: Boolean, fileIOProcessor: FileIOProcessor? = null): ScanbotSDKInitializer

Sets a global Scanbot SDK flag which enables/disables a usage of encrypted file IO processor for all image and pdf files. By default - false.

Link copied to clipboard
fun useOcrSettings(ocrSettings: OcrSettings): ScanbotSDKInitializer

Set Scanbot SDK to use given OCR settings

Link copied to clipboard

Adjust this parameter to specify which io.scanbot.sdk.persistence.PageStorageSettings should be used.

Link copied to clipboard
open override fun withLogging(useLog: Boolean, enableNativeLogging: Boolean): ScanbotSDKInitializer

Enables or disables logs in Scanbot SDK.