Skip to content

Build Harry Potter's Cloak using Open CV and Numpy in Pyton

Notifications You must be signed in to change notification settings

KrishVora2912/Harry-Potters-Cloak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Harry-Potters-Cloak

Build Harry Potter's Cloak using Open CV and Numpy in Pyton

This project uses two popular python libraries - Open CV and Numpy to recreate the effect of Harry Potter's Cloak of invisibility. Using live feed from the webcam, first the user must run the code to take a picture of the background without being in it. This picture without the user, would act as the reference picture to show what is behind the person, hence recreating the invisibility effect.

Secondly, the person can use the various sliders present above to adjust the HSV values to the color of the object that will be acting as the cloak. This can be verified by displaying the mask and mask_inv properties along with the original webcam view and final webcam views.

The final result is achieved using bitwise operators with the masks produced using the above step.

harry.s.cloak.mov

About

Build Harry Potter's Cloak using Open CV and Numpy in Pyton

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages