ppu-paddle-ocr
Version:
Lightweight, probably the fastest PaddleOCR SDK in TypeScript. Runs anywhere JavaScript runs: Node.js, Bun, Deno, mobile react-native, web browsers, and browser extensions. Docker & CLI supported. The official SDK is browser-only. Accurate text detection
8 lines (7 loc) • 339 B
TypeScript
/** On-disk directory for cached model and dictionary files. */
export declare const CACHE_DIR: string;
/**
* Downloads a resource from `url` and writes it to {@link CACHE_DIR}, or reads
* from the cache if the file already exists.
*/
export declare function fetchAndCacheResource(url: string, verbose?: boolean): Promise<ArrayBuffer>;