Skip to content

sandhya-tomar/Invisibility-Cloak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿง™โ€โ™€๏ธ Invisibility Cloak using Python & OpenCV

โœจ Ever wished you could disappear like Harry Potter under his invisibility cloak?
With this Python + OpenCV project, you can! It detects a specific color (like red) and replaces it with the background in real time โ€” creating an invisibility illusion using your webcam.


๐ŸŽฅ Demo

Demo Screenshot or GIF


๐Ÿš€ How It Works

  1. Captures the background frame
  2. Detects the cloak color using HSV masking (e.g., red)
  3. Masks the cloak and replaces it with the saved background
  4. Real-time display makes the person appear invisible!

๐Ÿ› ๏ธ Tech Stack

  • Python ๐Ÿ
  • OpenCV ๐ŸŽฅ
  • NumPy โž•
  • (Optional) playsound for magical sound effects โœจ

๐Ÿ“ฆ Installation & Run Instructions

๐Ÿ”ง Setup

git clone https://github.com/sandhya-tomar/InvisibilityCloak.git
cd InvisibilityCloak
pip install -r requirements.txt

๐ŸŽฎ Run the App
python app.py

๐Ÿงฅ Wear a red cloak (or any target color set in code) ๐ŸŽฅ Stand in front of your webcam ๐Ÿช„ Watch yourself disappear!

Press q to quit.

๐Ÿ“š References & Credits Inspired by Harry Potterโ€™s iconic invisibility cloak ๐Ÿง™โ€โ™‚๏ธ Based on tutorials by CodeWithHarry, Murtaza's Workshop, and OpenCV docs

๐Ÿค“ What I Learned Real-time video capture with OpenCV

Color detection using HSV space

Masking and bitwise operations for creative effects

Blending creativity with code = โœจ MAGIC โœจ

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages