UNPKG

capacitor-plugin-scanbot-sdk

Version:

Scanbot Document and Barcode Scanner SDK for Capacitor

36 lines (35 loc) 1.12 kB
import { ToJsonConfiguration } from '../core/common/JsonSerializationTypes'; import { OcrPage } from '../core/ocr/OcrTypes'; import type { DeepPartial } from '../core/utils/utils'; /** OCR configurations result. */ export declare class OcrConfigsResult { /** The OCR languages data path. */ readonly languageDataPath: string; /** The list of installed OCR languages. */ readonly installedLanguages: string[]; /** @param source {@displayType `DeepPartial<OcrConfigsResult>`} */ constructor(source?: DeepPartial<OcrConfigsResult>); serialize(config?: ToJsonConfiguration): DeepPartial<OcrConfigsResult>; } /** The result of OCR recognition. */ export declare class PerformOcrResult { /** The OCR result as plain text. */ readonly recognizedText: string; /** The array of recognized OCR pages. */ readonly pages: OcrPage[]; /** @param source {@displayType `DeepPartial<PerformOcrResult>`} */ constructor(source?: DeepPartial<PerformOcrResult>); serialize(config?: ToJsonConfiguration): DeepPartial<PerformOcrResult>; }