freAK14 / Invisibility-Cloak-Python

A cool way to implement Harry Potter's Invisibility Cloak using simple Python and OpenCV techniques.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invisibility-Cloak-Python

Requirements:

Python Libraries

  • NumPy
  • OpenCV
  • time

Physical Requirements:

  • Red colored cloth(saturated and solid)
Note: Incase you wish to use a different colored cloth, you would need to change the hsv(hue saturation value) parameters in the code.
I've used a solid red colored cloth. Preferably use pure Red, Green or Blue colors since they are the most saturated options.

How To Use:

  • Run the script and wait for around 3-5 seconds without you being in the frame.(To capture the background which we will use later to replace the pixels of cloth.)
  • Then, try out the output yourself with your newly cretaed Invisiblity Cloak, just like Harry Potter.

Reference:

Kaustubh Sadekar's Github Repository: https://github.com/kaustubh-sadekar/ (He has a well explained tutorial in his respository as well.)

About

A cool way to implement Harry Potter's Invisibility Cloak using simple Python and OpenCV techniques.

License:MIT License


Languages

Language:Python 100.0%