Skip to content

Thsis Live video background remover program is written in Python using OpenCV and it can replace the background image with the desired image and provide a live background image replacement.

Notifications You must be signed in to change notification settings

boy-who-codes/Background-Remover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Live Background Remover in OpenCV Python

Getting started

We first need to create a Npy file that detects a specific color in order to subtract that color from our main video and replace it with our image

$ python3 trackbar.py

Select your desired colors using Trackbars and hit 'S' to save

$ python3 test.py 

Now check to see if the npy file is detecting your desired color

$ python3 main.py

This command will start the main program

you can replace bg.jpg with your desired image type

video = cv2.VideoCapture(0)
image = cv2.imread("bg.jpg")

change cv2.imread("bg.jpg") path with your desired image path

Feel Free To Contribute

About

Thsis Live video background remover program is written in Python using OpenCV and it can replace the background image with the desired image and provide a live background image replacement.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published