Color detection using python and OpenCV | Color Detection with Python
Title: Multiple Color Detection in Real-Time using Python-OpenCV Introduction: ● Colour detection is the process of detecting the name of any colour. Simple isn’t it? Well, for humans this is an extremely easy task but for computers, it is not straightforward. Human eyes and brains work together to translate light into colour. Light receptors that are present in our eyes transmit the signal to the brain. Our brain then recognizes the colour. Since childhood, we have mapped certain lights with their colour names. We will be using the somewhat same strategy to detect colour names. ● For a robot to visualize the environment, along with the object detection, detection of its colour in real-time is also very important. Why this is important? : Some Real-world Applications ●In a self-driving car, to detect the traffic signals. Multiple colour detection is used in some industrial robots, to performing pick-and-place task in separating different coloured objects. ●This is an implementation of detecting multiple colours (here, only red, green and blue colours have been considered) in real-time using Python programming language. Python Libraries Used: ●NumPy ●OpenCV-Python Work Flow Description: ●Step 1: Input: Capture video through webcam. ●Step 2: Read the video stream in image frames. ●Step 3: Convert the image frame in BGR(RGB colour space represented as three matrices of red, green and blue with integer values from 0 to 255) to HSV(hue-saturation-value) colour space. Hue describes a colour in terms of saturation , represents the amount of grey colour in that colour and value describes the brightness or intensity of the colour. This can be represented as three matrices in the range of 0-179, 0-255 and 0-255 respectively. ●Step 4: Define the range of each colour and create the corresponding mask. ●Step 5: Morphological Transform: Dilation, to remove noises from the images. ●Step 6: bitwise_and between the image frame and the mask is performed to specifically detect that particular colour and discard others. ●Step 7: Create contour for the individual colours to display the detected coloured region distinguish. ●Step 8: Output: Detection of the colours in real-time. Source Code & Link: Link - https://drive.google.com/drive/folders/1nU2WJfIErrzsA_BspmShIQmuLHf_w6bn?usp=sharing #Colourdetection, #Colordetectionopencv, #Colourdetectionusingpython, #Colordetection, #Opencv ====*==== ✔ Now donation is open, you can donate to help us grow ✔ Paypal - https://www.paypal.me/soosai01 Google Pay - 7418713984 ====*==== For More Videos: ● Sentiment Analysis using Python https://youtu.be/F8rSI-kUAOA ● Make Your Own Haar Cascade Object Detector Using GUI In Windows https://youtu.be/4BVDR7ggseI ● How to Encrypt and Decrypt in Python https://youtu.be/thIcSwEqLwI ● Blur human face Real-Time using OpenCV and Python https://youtu.be/XDlqHJ1WJwY ● How to create link shortener using python https://youtu.be/b1rtuhfMd1Q ● CREATING STUDENT MARKSHEET APPLICATION IN PYTHON https://youtu.be/hYZy2cEn378 ● How to download YouTube videos using python https://youtu.be/onKyK8rsEbE ● How to convert an image into a PDF file using Python https://youtu.be/PZXL3mf6Tjk ● Create Street Maps with Folium and Python https://youtu.be/5L-XhrLJzXI ● 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.
Download
0 formatsNo download links available.