/** * paddleocr-webgpu — PP-OCRv6 small text recognition in the browser via WebGPU. * * Usage (HuggingFace): * * import { PaddleOcrEngine } from 'paddleocr-webgpu'; * * const engine = new PaddleOcrEngine(); * await engine.init({ * hfRepo: 'PaddlePaddle/PP-OCRv6_small_rec_onnx', * }); * * Usage (custom URLs): * * const engine = new PaddleOcrEngine(); * await engine.init({ * modelUrl: '/inference.onnx', * vocabUrl: '/inference.yml', * }); * * const img = document.querySelector('img')!; * const { text, confidence } = await engine.recognize(img); * console.log(text, confidence); */ export { PaddleOcrEngine } from './engine-ppocr.js'; export { TextDetectionEngine, dbPostProcess } from './engine-detect.js'; export type { PaddleOcrOptions, RecognizeResult, ModelType } from './types.js'; export type { DetectionBox, DetectionOptions, DetectionResult } from './engine-detect.js'; export { preprocessImage, preprocessImageRGB } from './preprocess.js'; export type { PreprocessedImage } from './preprocess.js'; export { ctcDecode } from './ctc-decode.js'; export { loadVocab } from './vocab.js'; export * from './shaders-ppocr.js'; //# sourceMappingURL=index.d.ts.map