virtual-background-by-depthai

This is a script to create a virtual background for a web conference using DepthAI. It uses StereoDepth's disparity to create the mask.

Composite Image

Pre-requisites

  1. OpenCV AI Kit - Lite (OAK-D-Lite)
  2. Install requirements
    python3 -m pip install -r requirements.txt

Usage

usage: main.py [-h] [-b BACKGROUND]

optional arguments:
  -h, --help            show this help message and exit
  -b BACKGROUND, --background BACKGROUND
                        Path to background image file

Related blog posts (in Japanese)