UNPKG

react-native-executorch

Version:

An easy way to run AI models in react native with ExecuTorch

9 lines 462 B
import type { TurboModule } from 'react-native'; import { OCRDetection } from '../types/ocr'; export interface Spec extends TurboModule { loadModule(detectorSource: string, recognizerSourceLarge: string, recognizerSourceMedium: string, recognizerSourceSmall: string, symbols: string): Promise<number>; forward(input: string): Promise<OCRDetection[]>; } declare const _default: Spec | null; export default _default; //# sourceMappingURL=NativeOCR.d.ts.map