filmov
tv
Python OpenCV Color Detection Example
Показать описание
Join PyQt6 13 Hours Course in Udemy
Support me in Patreon
My Affiliate Books:
Mastering OpenCV4 with Python
Learn OpenCV4 with Python
In this Python OpenCV video i want to show you Python OpenCV Color Detection.
How does color work on a computer?
So we represent colors on a computers by color-space or color models which basically describes range of colors as tuples of numbers.
Instead of going for each color, we’ll discuss most common color-space we use .i.e. RGB(Red, Green, Blue) and HSV (Hue, Saturation, Value).
RGB basically describes color as a tuple of three components. Each component can take a value between 0 and 255, where the tuple (0, 0, 0) represents black and (255, 255, 255) represents white. For example, if we were to show a pure blue pixel on-screen, then the R value would be 0, the G value would be 0, and the B value would be 255.
Source code:
Support me in Patreon
My Affiliate Books:
Mastering OpenCV4 with Python
Learn OpenCV4 with Python
In this Python OpenCV video i want to show you Python OpenCV Color Detection.
How does color work on a computer?
So we represent colors on a computers by color-space or color models which basically describes range of colors as tuples of numbers.
Instead of going for each color, we’ll discuss most common color-space we use .i.e. RGB(Red, Green, Blue) and HSV (Hue, Saturation, Value).
RGB basically describes color as a tuple of three components. Each component can take a value between 0 and 255, where the tuple (0, 0, 0) represents black and (255, 255, 255) represents white. For example, if we were to show a pure blue pixel on-screen, then the R value would be 0, the G value would be 0, and the B value would be 255.
Source code:
Комментарии