Human segmentation on video/stream using Mediapipe
- Python v3.9 or newer (works on v3.12 as well)
- vc_redist latest (windows only)
- CUDA v10.2 or newer (optional)
The script uses background and foreground animations stored in their
dedicated directories in the assets
directory.
Every directory should contain animation frames in .png
format.
The script should automatically determine your default camera and connect to it.
The script will automaticall use your Nvidia GPU if you have one and all the necessery drivers are installed.
Setup virtual environment and install dependencies:
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python main.py
init-camera-1.bat
Q
- quit the application.F
- enter fullscreen mode.N
- enter normal mode.