NNCam is a Unity sample project that implements a virtual background feature (background removal for webcams) using the Barracuda inference engine.
NNCam uses the BodyPix human segmentation model for background removal. This sample shows how to run similar models without CPU-side overhead.
- Unity 2020.2
- Barracuda 1.2
The ONNX model files are not contained in this repository to avoid hitting the storage quota. You can download them from the Releases page. Or you can use this Colab notebook to convert the original BodyPix models to ONNX.