An open API service indexing awesome lists of open source software.

https://github.com/cserajdeep/background-replacement-mediapipe

An easy python code for replacing the background using mediapipe and cvzone packages
https://github.com/cserajdeep/background-replacement-mediapipe

background cvzone deep-learning image-processing mediapipe opencv python

Last synced: about 1 month ago
JSON representation

An easy python code for replacing the background using mediapipe and cvzone packages

Awesome Lists containing this project

README

          

Install the following packages:
```ruby
$pip install mediapipe
$pip install cvzone
```
Use the following parameters to select an image from the ImageReplacements* folder/a solid color background only
```ruby
SelectImg = 4 # 4-> Library 3 background image
SolidBG = True # True-> one color background, otherwise background image[SelectImg]
```
*- Images have been downloaded from google and used only for research/non-comercial use

For more details:

Mediapipe: https://github.com/google/mediapipe

CVZONE: https://github.com/cvzone/cvzone

# Background Replacement with an Image:
![MyBackgroundImage](https://user-images.githubusercontent.com/18000553/125149425-8a614680-e156-11eb-849f-ced36b8c40cd.png)

# Background Replacement with a Solid Color (e.g., White):
![MyBackgroundSolid](https://user-images.githubusercontent.com/18000553/125149441-9220eb00-e156-11eb-8ea2-4ad734b456b0.png)

# Background Replacement Mediapipe