Skip to content

This mini-project recreates the Harry Potter–style Invisible Cloak effect using OpenCV and NumPy in Python.

Notifications You must be signed in to change notification settings

rajnil9/Invisibilty-Cloak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧙‍♂️ Harry Potter Invisibility Cloak

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.


🎬 Demo Video

cloak_video.mp4

🖼 Image

🧠 How It Works

  1. The camera first captures the background (without the person).
  2. When the person enters the frame wearing a specific color cloak (default: blue), the program detects that color using the HSV color space.
  3. That colored region is replaced with the previously captured background, making the cloak area appear invisible.
  4. The result is shown live using OpenCV’s video window.

⚙️ Requirements

  • Python
  • OpenCV
  • Numpy
  • A working webcam

About

This mini-project recreates the Harry Potter–style Invisible Cloak effect using OpenCV and NumPy in Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages