This mini-project recreates the Harry Potter–style Invisible Cloak effect using OpenCV and NumPy in Python.
By detecting a specific color (blue here) from the webcam and replacing that color with the background, it creates an illusion of invisibility in real time.
cloak_video.mp4
- The camera first captures the background (without the person).
- When the person enters the frame wearing a specific color cloak (default: blue), the program detects that color using the HSV color space.
- That colored region is replaced with the previously captured background, making the cloak area appear invisible.
- The result is shown live using OpenCV’s video window.
- Python
- OpenCV
- Numpy
- A working webcam
