Skip to content

hayashikun/wasabi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.