Skip to content

A small python program simulating invisibility cloak using OpenCV library

License

Notifications You must be signed in to change notification settings

anuragjoshi3519/invisibility-cloak-opencv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Invisibility-cloak-opencv

A small and simple python program simulating invisibility cloak using OpenCV library

To run:

Open terminal and run:

git clone https://github.com/anuragjoshi3519/invisibility-cloak-opencv.git
cd invisibility-cloak-opencv
python3 -m venv env
source env/bin/activate
pip install -r requirements.txt
python3 invisibleCloak.py

Note:

Default cloak color is red.

After running the program you'll have to get out of frame for a couple of second (neccessary for the program to run as expected)

Available options:

  • -c or --color : to set color of cloak to be used
  • --save : save video (inside 'invisibility-cloak-opencv/Videos' folder)
  • --output or -out : specify path to directory for saving video (if --save mentioned)
python3 invisibleCloak.py -c <color_name> --save -out path/to/directory

<color_name> can be chosen from 'red' , 'green' , or 'blue'

Example:

Using Green color and saving to videos folder in same directory

python3 invisibleCloak.py -c green --save

Using Blue color and saving the video to 'Downloads' directory

python3 invisibleCloak.py -c blue --save -out /home/your_user_name/Downloads

About

A small python program simulating invisibility cloak using OpenCV library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages