omkar-mohanty / opencv-wasm

6 stars 0 forks source link

opencv-wasm

Requirements

Build

cargo build --target=wasm32-wasi  --release

Run an example

cp test/relax.jp2 target/wasm32-wasi/release
cd target/wasm32-wasi/release
wasmedge --dir=. read.wasm ./relax.jp2  

Write example

cp test/relax.jp2 target/wasm32-wasi/release
cd target/wasm32-wasi/release
wasmedge --dir=. write.wasm ./relax.jp2