UNPKG

@gutenye/ocr-react-native

Version:

Guten OCR is a high accurate text detection (OCR) Javascript/Typescript library that runs on Node.js, Browser, React Native and C++. Based on PaddleOCR and ONNX runtime

29 lines 758 B
import type { InferenceSession } from 'onnxruntime-common'; export interface OcrOptions { models?: { detectionPath: string; recognitionPath: string; dictionaryPath: string; }; isDebug?: boolean; recognitionImageMaxSize?: number; detectionThreshold?: number; detectionBoxThreshold?: number; detectionUnclipRatiop?: number; detectionUseDilate?: boolean; detectionUsePolygonScore?: boolean; useDirectionClassify?: boolean; onnxOptions?: InferenceSession.SessionOptions; } export interface TextLine { text: string; score: number; frame: Frame; } export interface Frame { top: number; left: number; width: number; height: number; } //# sourceMappingURL=types.d.ts.map