wasi
The source code is ported from https://github.com/nu-book/zxing-cpp.
mkdir build
cd build
cmake ..
cmake --build .
Install wasmer, wasmtime or wapm.
Run zxing_barcode_reader.wasm
:
wasmer
wasmer run zxing_barcode_reader.wasm --dir=<image folder> <image file>
wasmtime
wasmtime zxing_barcode_reader.wasm --dir=<image folder> <image file>
wapm
wapm install yushulx/zxing_barcode_reader
wapm run zxing_barcode_reader --dir=<image folder> <image file>