Invisible Cloak Using Python & OpenCV | Python Project | Invisible cloak from Harry Potter
Project:
●Invisible Cloak using OpenCV and Python
Software used:
●Python IDLE
Library Used:
●cv2
●numpy
●time
How to install:
Step 1: Open command prompt
Step 2: Copy and paste the below commands and install that.
●pip install opencv-python
●pip install opencv-contrib-python
●pip install numpy
●pip install times
Source code & Link:
https://drive.google.com/drive/folders/14jABDlKyRcfMu1HOwsVbZ9WY4Gkzwmcp?usp=sharing
Introduction:
If you are a Harry Potter fan, you would know what an Invisibility Cloak is. Yes! It’s the cloak that Harry Potter uses to become invisible. Of course, we all know that an invisibility cloak is not real, it’s all graphics tricks.
In this video, we will learn how to create our own ‘Invisibility Cloak’ using simple computer vision techniques in OpenCV and python. It is a popular project yet interesting application for image processing.
Here we are going to do a real invisible cloak using a red cloth. We will first capture, store the background frame and later we will detect the red colour using a detection and segmentation algorithm. Then we will segment out the red colour cloth by using a mask.
Overal content:
Have you ever seen Harry Potter’s Invisible Cloak; Was it wonderful? Have you ever wanted to wear that cloak? If Yes!! then in this video, we will build the same cloak which Harry Potter uses to become invisible. Yes, we are not building it in a real way but it is all about graphics trickery.
In this video, we will learn how to create our own ‘Invisibility Cloak’ using simple computer vision techniques in OpenCV. Here we have written this code in Python because it provides an exhaustive and sufficient library to build this program.
Here, we will create this magical experience using an image processing technique called Color detection and segmentation. In order to run this code, you need an mp4 video named “video.mp4“. You must have a cloth of the same colour and no other colour should be visible in that cloth. We are taking the red cloth. If you are taking some other cloth, the code will remain the same but with minute changes.
Why Red? Green is my favourite?
Sure, we could have used green, isn’t Red the magician’s colour? Jokes aside, colours like green or blue will also work fine with a few changes in code.
This technique is opposite to the Green Screening. In green screening, we remove the background but here we will remove the foreground frame. So let’s start our code.
Algorithm:
1. Capture and store the background frame [ This will be done for some seconds ]
2. Detect the red coloured cloth using a colour detection and segmentation algorithm.
3. Segment out the red coloured cloth by generating a mask. [ used in code ]
4. Generate the final augmented output to create a magical effect. [ video.mp4 ]
#Cloak, #Invisiblecloak, #Invisiblecloakpython, #Invisibilitycloakusingpython,
#harrypotter, #Harrypotterinvisiblecloak, #Computervision, #Python, #opencv
====*====
For more videos:
● Real-Time Face recognition
https://youtu.be/Ip79Q9dFbG8
● Smile Detector Using python
https://youtu.be/6PXL5H2Tw-M
● Face and Eye detection Using python
https://youtu.be/67QlF8KxmCI
● Fire detection using python
https://youtu.be/ipRSl5kRZnE
● Bird Detection Using python
https://youtu.be/Uoh1m0GBhf4
● Python Tutorial In Detail
https://www.youtube.com/playlist?list=PLUDEJJkD7C6Q3-iEX2Np3vBzLoRF1kpln
● Data Visualisation Running Graph
https://www.youtube.com/playlist?list=PLUDEJJkD7C6QPtw_ANm6CnxwJ786HrAAG
● Computer Hacks and Tricks
https://www.youtube.com/playlist?list=PLUDEJJkD7C6RtWDmY59-y_wwU-dZlHNUR
====*====
Follow Me Here For More Help or Queries
Facebook - https://www.facebook.com/Falcon-Infomatic-108235664061988/
Instagram - https://www.instagram.com/falconinfomatic/
====*====
SUBSCRIBE NOW for weekly videos on Python Tutorial, Computer Hacks and Tricks, Data Visualisation, Technology, and Many More.
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Invisible Cloak Using Python & OpenCV | Python Project | Invisible cloak from Harry Potter», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.