Invisibility Claok Using Open-CV Library:

Inspired by Harry Potter, I felt of creating one for me, just for fun, so I just dived into it and came up with the same using OpenCV. Follow this to create your own invisible cloak.

Obviously, it will not be any real but will be graphical. It will be based on the image processing approach i.e. color detection and masking which means it will work for some particular colors as per our choice.

For a brief, let’s suppose you have chosen the red color, then after you run the code. After two seconds bring any red color cloth and hide your self in that, and then you will not be visible on the screen.

We will be using both the web-camera and android camera for the testing of Invisible Cloak.

Working of the project:

  1. Importing needed libraries and generate the output video
  2. Recording and caching the background for each frame.
  3. Detecting the RED portion in each frame
  4. Replacing the RED portion with a MASK image in each frame
  5. Displaying the output

Built With

Share this project:

Updates

Submission history