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
OpenCv Python Numpy MediaPipe Os
Video Stream
New Video Stream with Virtual Background
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)
https://user-images.githubusercontent.com/83566027/148197075-22605773-2615-491a-bb13-e15d91c6fb5e.mp4