machenmusik / NNCam

Virtual background with Unity Barracuda

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NNCam

gif gif

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.

System requirements

  • Unity 2020.2
  • Barracuda 1.2

How to try the project

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.

About

Virtual background with Unity Barracuda

License:Apache License 2.0


Languages

Language:C# 74.6%Language:ShaderLab 25.4%