UNPKG

@gutenye/ocr-browser

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

11 lines (8 loc) 403 B
import Ocr, { registerBackend } from '@gutenye/ocr-common' import { splitIntoLineImages } from '@gutenye/ocr-common/splitIntoLineImages' import { InferenceSession } from 'onnxruntime-web' import { FileUtils } from './FileUtils' import { ImageRaw } from './ImageRaw' registerBackend({ FileUtils, ImageRaw, InferenceSession, splitIntoLineImages }) export * from '@gutenye/ocr-common' export default Ocr