- Built on-top of the MediaPipe project.
- The Emscripten mapping and the BUILD files for the project are in
hello-world
. - Summary of the work done during GSOC 2021 is here.
- Set up MediaPipe using the official instructions.
- The WebGL rendering via WASM uses GPU, so we need GPU version of MediaPipe setup.
- The development environment for the project was Linux.
- From the root directory of the project, run the command in the terminal:
make build && make run
- The scripts that are executed are in
scripts/...
andMakefile
. make build
compiles the WASM binaries:bazel build -c opt //hello-world:hello-world-simple --config=wasm
make run
copies the required outputs and runs a NodeJS server to run the WASM binaries locally.- Output files are copied from
bazel-out/wasm-opt/bin/hello-world/...
- Output files are copied from
- WASM versions of face detection, selfie segmentation and face mesh are demonstated in the following web app.