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
- Host: GitHub
- URL: https://github.com/cserajdeep/background-replacement-mediapipe
- Owner: cserajdeep
- License: mit
- Created: 2021-07-10T02:40:39.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-10T02:59:32.000Z (almost 5 years ago)
- Last Synced: 2025-08-25T02:29:14.379Z (10 months ago)
- Topics: background, cvzone, deep-learning, image-processing, mediapipe, opencv, python
- Language: Jupyter Notebook
- Homepage:
- Size: 3.81 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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:

# Background Replacement with a Solid Color (e.g., White):

# Background Replacement Mediapipe