Invisibility Cloak

Satyam Goyal

Satyam Goyal

Chennai, Tamil Nadu

0 0
  • 0 Collaborators

Being a harry potter fan I always had a childhood fantasy of using an invisibility cloak. Well, it turns out that you can create this magical experience using an image processing technique called color detection and segmentation. And the good news is, you don’t need to be part of Hogwarts for that! ...learn more

Project status: Published/In Market

Artificial Intelligence, Cloud

Code Samples [1]

Overview / Usage

Being a harry potter fan I always had a childhood fantasy of using an invisibility cloak. Well, it turns out that you can create this magical experience using an image processing technique called color detection and segmentation. And the good news is, you don’t need to be part of Hogwarts for that! All you need is a Red colored cloth and follow this repository. This [code] turns a red colour cloth into an invisibility cloak.

It's a fun application which you will enjoy using.
You can learn some key functions of opencv from this project.

Methodology / Approach

The algorithm is very similar in principle to green screening. But unlike green screening where we remove the background, in this application, we remove the foreground! We are using a red colored cloth as our cloak. Why red? Why not green? Sure, we could have used green, isn’t red the magician’s color? Jokes aside, colors like green or blue will also work fine with a little bit of tweaking.

The basic idea is given below:

Capture and store the background frame.
Detect the red colored cloth using color detection algorithm.
Segment out the red colored cloth by generating a mask.
Generate the final augmented output to create the magical effect.

Technologies Used

The code is written in Python (Python3) You need the following libraries

  • numpy
  • OpenCV
  • time

Repository

https://github.com/SatYu26/Invisibility-Cloak

Comments (0)