UNPKG

capacitor-plugin-scanbot-sdk

Version:

Scanbot Document and Barcode Scanner SDK for Capacitor

18 lines 695 B
import { PerformOcrResult, handleImageInput, withSBErrorHandling } from '../types'; import { ScanbotSDKPlugin } from './Definitions'; /** * @internal * @hidden */ export const ScanbotOcrEngineImpl = { async recognizeOnImages(params) { return withSBErrorHandling(async () => new PerformOcrResult(await ScanbotSDKPlugin.recognizeOcrOnImages({ configuration: params.configuration, images: handleImageInput(params.images), }))); }, async recognizeOnDocument(params) { return withSBErrorHandling(async () => new PerformOcrResult(await ScanbotSDKPlugin.recognizeOcrOnDocument(params))); }, }; //# sourceMappingURL=OcrEngineImpl.js.map