/virtualizeBg.py

replace an video background with another image (like zoom or meet background filter)

Primary LanguagePython

PyVirtualBackground

PyVirtualBackground is a Python script that eliminates the background from a video and replaces it with another video. This can be utilized in various applications, such as video editing or virtual conferencing.

Usage Video

Installation

Install the required packages using pip:

    pip3 install -r requirements.txt

usage

    python pyvirtualbackground.py -fore <input_video_file> -back <background_video_file> 
Replace <input_video_file> with the path to the video file you want to process, and <background_video_file> with the path to the video you want to use as the new background.