Skip to content

Latest commit

 

History

History
48 lines (38 loc) · 1.4 KB

README.md

File metadata and controls

48 lines (38 loc) · 1.4 KB

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