Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added an implementation to add different virtual backgrounds #1618

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Inferno2211
Copy link
Contributor

Related Issues or bug

Added Virtual Backgrounds

This is a real-time filter that creates a virtual background of our choice on a live feed using using Mediapipe's selfie segmentation model.

Fixes: #1216

Proposed Changes

-Added virtual background in Awesome face operations, which includes files:
bg.py, README.md, requirements.txt, bg.jpg and output: output.gif

Additional Info

The filter utilizes Mediapipe's selfie segmentation model to create a mask for the foreground using a threshold value

The background is then slightly blurred and merged with the video stream, using the mask generated

Screenshots

output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a implementation to add different virtual backgrounds across faces like in google meets, zoom etc.
1 participant