robertknight / ocrs

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

Support building CLI for wasm32-wasi #78

Closed robertknight closed 3 months ago

robertknight commented 3 months ago

This provides a more convenient way to test a WebAssembly build of the library compared to the Node demo, with the downside that it isn't the same runtme. Performance seems roughly comparable though.

When running the wasm32-wasi build, models must be loaded from the filesystem, as the infrastructure to download from an HTTPS URL is missing in this platform.