Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Apr 28, 2024
Merged

Conversation

robertknight
Copy link
Owner

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

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
```
@robertknight robertknight merged commit db19a6f into main Apr 28, 2024
2 checks passed
@robertknight robertknight deleted the js-package branch April 28, 2024 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant