Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 848 Bytes

README.md

File metadata and controls

38 lines (28 loc) · 848 Bytes

wasabi

Run

Before building, you need to get the onnx file.

curl "https://raw.githubusercontent.com/Star-Clouds/CenterFace/master/models/onnx/centerface.onnx" \
	 	-o centerface.onnx --create-dirs

Simple detection (just a program of rust)

cargo run --package wasabi --bin detect image.jpg

Run in browser (wasm)

https://hayashikun.github.io/wasabi/

cd web
npm run dev

web-wasm

Run in envoy-proxy (wasm)

cd proxy-wasm
cargo build --release -p proxy-wasm --target wasm32-unknown-unknown
docker-compose up
curl -X POST -H 'Content-Type: image/jpeg' \
  --data-binary @resource/image.jpg http://localhost:10000

proxy-wasm

Only JPEG image (640x480 px) is supported.