UNPKG

react-native-executorch

Version:

An easy way to run AI models in React Native with ExecuTorch

15 lines (14 loc) 681 B
import { VerticalOCRController } from '../../controllers/VerticalOCRController'; import { ResourceSource } from '../../types/common'; import { OCRLanguage } from '../../types/ocr'; export declare class VerticalOCRModule { static module: VerticalOCRController; static load(model: { detectorLarge: ResourceSource; detectorNarrow: ResourceSource; recognizerLarge: ResourceSource; recognizerSmall: ResourceSource; language: OCRLanguage; }, independentCharacters: boolean, onDownloadProgressCallback?: (progress: number) => void): Promise<void>; static forward(input: string): Promise<import("../../types/ocr").OCRDetection[]>; }