Simple Mask background project using Opnecv and numpy in Python
This project is basically mask the current video which has a color(We specify) to an Another Image
- Opencv version : 3.1.14
- Numpy version : 1.20.0
The Cloak.py
file will mask the white color to back.jpg
image.
You can even mask the color as you want by making changes in the below code:
In the above code, change the range in which your hsv color lies.
low_val_b = np.array([0,0,0])
up_val_b = np.array([0, 0, 255])
Make your changes here.
My Actual Background:
After Execution:
- Twitter : @saisrinivenkat
- Mail : [email protected]