OpenCV- An awesome tool for computer vision in python
To those who don’t know what OpenCV is, it is a library for image/video processing, machine learning and computer vision. This tool also supports C++ and Java, but I am a little biased towards python and you all know the reason why. Also, this is my first post on this platform since I am new here and in this post, we are going to take a look at what this library is capable to do. Let’s get started!
Image ProcessingNumPy array (3D array if RGB image is being read or 2D array if Grayscale image is being read). Face-recognition is the best example of things that OpenCV can do. From many useful tools to QR code reader, you can create literally tons of awesome projects with it. Below is the video demonstration of a simple QR code reader program that I made using OpenCV.
By using various NumPy methods you can experiment around the image properties like the specific color at any pixel/region. Below is a video demonstration of a simple color picker kind of program that opens an image and on left click, shows the hex color code of the area which is clicked and also copies the hex code to the clipboard!
This is a simple #python program that creates a QR code of a URL, displays it, takes the screenshot of the screen, finds and decodes the QR Code on the screen and loads the site in the browser🤩#100DaysOfCode #DEVCommunity #DevCommunityIN #programming pic.twitter.com/H2cvd98Skl— Aditya Chaudhary👨💻 (@AdityaGameDev) October 13, 2020
Made a simple #python program that opens an image and on left click shows the hex color code of the area which is clicked and also copies the hex code to clipboard🙂#100DaysOfCode #programming #DEVCommunity #DevCommunityIN— Aditya Chaudhary👨💻 (@AdityaGameDev) October 10, 2020
Video-Demonstration : pic.twitter.com/B7xVnkGQM2
Video-ProcessingA video is nothing but tons of frames of the image. So basically things which you can do with the image can also be done with video files. OpenCV provides you to read videos from two streams. You can either pass your webcam as a video source and experiment around your camera properties or pass a valid file path of the compatible video file. One of the best projects which I saw on video-processing was Raghav Khanna’s invisible cloak project. Here is the video demonstration of his project
Apart from these things OpenCV is widely used in game-automation, self-driving cars, smart CCTV cameras etc. Now imagine if you have thousands of QR code images on your PC and you are given to draw the histogram graph of sites to which the different QR code belongs to. As a human being, you can’t scan each and every image to get the information about the QR code. That’s where programming and OpenCV play key role. Just crawl through that folder using os module, read and scan the image using OpenCV and by some algorithms plot a graph using matplotlib. Thanks for reading!
The Invisible Cloak— Raghav Khanna (@erRaghavKhanna) July 21, 2020
This is a simple python program that make you invisible when you use a RED colour cloth.
Everyone has watched harry potter!
So, Harry pass on this cloak to us :p
Below attached video is the example of the Invisible Cloak!
Give a ⭐ if you like this :) pic.twitter.com/yD5wH8bihc
Did you enjoy reading or think it can be improved? Don’t forget to leave your thoughts in the comments section below! If you liked this article, please share it with your friends, and read a few more!