opencv-wasm

Requirements

  • Wasi-SDK is assumed to be installed at /opt

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