robertknight / ocrs

Rust library and CLI tool for OCR (extracting text from images)
Apache License 2.0
1.09k stars 44 forks source link

Add package.json and README.md file for npm package #50

Closed robertknight closed 4 months ago

robertknight commented 4 months ago

Relocate the build outputs and examples for the WASM build under js/dist. This is needed so that js/ can serve as the root of an npm package with its own README.

It is now possible to run the WASM build again by first runing the ocrs CLI tool to download models, and then running:

make wasm
node js/examples/ocr-node/index.js ~/.cache/ocrs/text-detection.rten ~/.cache/ocrs/text-recognition.rten ocrs-cli/test-data/why-rust.png