Finding simple programming project ideas that interest pre-teens and teenagers can be tricky, especially when learning a programming language for the first time. Like if you have red cloth or blue cloth that you want to make invisible than you will need to set value accordingly. Instead of magic, you are learning computer science and coding languages like JavaScript and Python. The final step will be the replacement of the pixels of the detected blue colour region in the frames with the pixel values of the static background which was saved earlierLooks like you’re enjoying the post!Here is the result which I was able to generate with a few lines of codeLet’s first try it with an imageNow as we know what steps to take in a single image, we can follow the same for the video.We will be implementing this using the OpenCV library in Python.As you can see it is perfectly detecting the blue colour in the “original” image and masking it properly.A few days back when I saw this gif, I was so excited to build something similar using computer vision.To find the HSV value of the defined colour we can use this trick:Here we will be using the colour blue and will be using the HSV value of the colour and not the RBG as HSV values are less sensitive to illumination.
If Yes!! Simple. It’s the cloak that makes Harry Potter invisible.
For doing this, we have to store the background image for each frame.Value works in conjunction with saturation and describes the brightness or intensity of the colour, from 0–100 percent, where 0 is completely black, and 100 is the brightest and reveals the most colour.Now, we have a red part of the video in the ‘mask’ image, we will segment the mask part from the frames.
Code from the class and slides will be shared with students following the class, along …
Yes! )In this level, you are able to draw conclusions, make connections, and compare and contrast.Thank you for taking the time to read this post.
Interested in getting your child into computer programming but unsure of where to start?
If you found it informative, please hit the heart or clap button.In this level, you are able to use, implement, and demonstrate.One thing Harry has that we all need is friends to share the burden.
The hat resembles a wide-brimmed wizard's hat, with folds … You don’t know where they are in the levels of hierarchy.In this level, you are able to critique, assess, select, and justify. Focus on experiences that will move you through the hierarchy of learning.In this level, you are able to explain, discuss, describe, and report.I’m always interested in hearing other people’s stories about learning to code, so I challenge you to write a comment or send me an email telling me which level in the hierarchy you are working on right now.In this level, you are able to recall, recite, define and list.In this level, you are able to develop, design, work, and assemble.But what does Harry Potter have to do with the learning objectives and coding? Instead of a cauldron and wand, you are using a text editor and Chrome Developer Tools.
Yes, we are not building it in a real way but it is all about graphics trickery. It won’t happen over night. The harry potter coding wand has arrived!
:-) Maybe Guido himself: then in this post, we will build the same cloak which Harry Potter uses to become invisible.
But be patient with people. Pythons are a group of nonvenomous snakes found in Africa, Asia and Australia.
I’m sure you would have either seen or heard about the Harry Potter cloak which he wore to be invisible. Reducing this component toward zero introduces more grey and produces a faded effect.
A few…