Giter Site home page Giter Site logo

shlok-crypto / zoom-virtial-background-remover Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 3.0 1.26 MB

Zoom and MsTeams like background changer/remover. Now you can remove and change your image or video background for free. Also added support for custom videos as background

Python 100.00%
zoom virtual-background teams opencv virtual-reality video background-removal meeting background-changer image-segmentation

zoom-virtial-background-remover's Introduction

Zoom-Virtial Background / Remover

Zoom and MsTeams like background changer/remover. Now you can remove and change your image or video background for free. Also added support for custom videos as background

Prerequisite/libraries

OpenCv Python Numpy MediaPipe Os

Input

Video Stream

Output

New Video Stream with Virtual Background

How it Works

Selfie Segmentation segments the prominent humans in the scene. It can run in real-time on laptops. The intended use cases include selfie effects and video conferencing, where the person is close (< 2m) to the camera.

Read in the live frame Read in the replacement frame(background) pass the Frame through machine learning model Dilate the thresholded frame find Contoues in the dilated frame optimize/process the contours Draw(fill) the contour => this will be the foreground roi separate the foreground from Background (cv.bitwize_and) remove the foreground Roi from the New Background (cv.bitwize_and(inverseRoi, NewBackground) Combine the New Background Roi and foreground Roi (cv.bitwize_or(NewBackground, Foreground)

Output

image https://user-images.githubusercontent.com/83566027/148197075-22605773-2615-491a-bb13-e15d91c6fb5e.mp4

zoom-virtial-background-remover's People

Contributors

shlok-crypto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.