UNPKG

@gutenye/ocr-node

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

9 lines (7 loc) 219 B
import fs from 'node:fs/promises' import { FileUtilsBase } from '@gutenye/ocr-common' export class FileUtils extends FileUtilsBase { static async read(path: string) { return await fs.readFile(path, 'utf8') } }