Git Product home page Git Product logo

invisibility-cloak's Introduction

Invisibility_Cloak

For all the Harry Potter and SiFi fan!! Now you can finally go completely INVISABLEQ !! Utilizing the power of OpenCV and python

CHECK OUT Final Output Below :) !!

Input

  • Initial frame
    • Background
  • Live Video Frame

Output

  • Harry's Invisable Cloak

Pseudocode

  1. Capture an Initial frame, this will be the background
  2. Capture Live Video.
  3. Optimize it for processing: *Convert BGR to HSV , Apply GaussianBlur
  4. Calcualte HVS values of the Cloak
  5. Create a mask of the ROI(cloak)
  6. Inverse the mask utlizing cv2.Threshold type cv.THRESH_BINARY_INV
  7. Apply cv2.bitwise_and operation onto the frames
    • LiveFrame = cv.bitwise_and(maskInv, frame)
      • This will remove the ROI(cloak) area from the live frame.
    • cloakArea = cv.bitwise_and(frameINT, mask)
      • This will remove all non ROI(cloak) area from the Initial frame.
  8. Apply cv2.bitwise_OR operation onto the frames
    • FinalFrame = cv.bitwise_or(LiveFrame, cloakArea)
      • This will mask the frames togeather.

FINAL OUTPUT

Invisablity_Cloak.1.mp4

DONE

invisibility-cloak's People

Contributors

shlok-crypto avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

yonte9

invisibility-cloak's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.