Skip to content

Repository files navigation

Real Time Background Substitution

License: MIT Requires.io

There many situations in daily life that people had to move to a particular place to do a video call when it's really important to do one. But not always we find a place when it's an emergency. We use a video capturing device ( camera/ webcam in this case ) to acquire images for real- time analysis and processing. Histogram Equalization is used to enhance the video quality as the frames might have low contrast and resolution. Segmentation is done to identify the foreground and masking is done to replace the background with another background of our choice.

Running App

Activate virtual environment

python3 -m venv env
source env/bin/activate

Install Dependancies

pip install -r requirements
python app.py

Testing BG-code

python test.py

Results

Background mask

After Applying mask

After Histogram Equalization

About

Real time streaming background substitution through cv2 and streaming it to flask web server

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages