OpenCV Python Tutorial #5 - Colors and Color Detection

preview_player
Показать описание
Welcome to this video in the OpenCV tutorial series! In this one, I'll be talking about colors and how to detect them. We can even detect specific colors from our video feed and only display those colors. We'll also go over color display methods like RGB, BGR, and HSV.

⭐️ Timestamps ⭐️
00:00 | Introduction
00:45 | HSV Color
06:40 | Masks

◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
💰 Courses & Merch 💰

🔗 Social Medias 🔗

🎬 My YouTube Gear 🎬

💸 Donations 💸
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️

⭐️ Tags ⭐️
- Color detection in OpenCV
- Colors OpenCV
- HSV OpenCV
- Python
- Computer vision
- Cameras and video capture

⭐️ Hashtags ⭐️
#OpenCV #Python #CameraCapture
Рекомендации по теме
Комментарии
Автор

For others like me who struggled to create the numpy array:
I kept getting
> Unsupported depth of input image:
> 'VDepth::contains(depth)'
> where
> 'depth' is 4 (CV_32S)
This indicates that the numpy array consists of 32 bit signed integers which are not supported by cvtColor.
You should create your array like this, specifying datatype uint8:
bgr_color = np.array([[[blue, green, red]]], dtype=np.uint8)

SadSack
Автор

1:11
HSV = Hue, Saturation, Value
HSL = Hue, Saturation, Lightness
Both are a bit different from each other.

labscience
Автор

HSV stands for hue, saturation, value. 1:10

arjunsahlot
Автор

I was looking into machine vision and this video's content on mask and hsv inspired me on the direction i should move in.
If this had appeared earlier, i would not have wasted time figuring out canny and harris corner detection.
Not that they are bad, just that I prefer simple solutions that I have full understanding of.
Keep up the great work.

TheDtkxiang
Автор

Another amazing video Tim, thank you!

CubixCreations
Автор

Hello Tim you’re such an amazing youtuber keep it up👏👏👏👏. From Kenya love you❤️💖

smoothrain
Автор

now i finally know how green screen works, yay!

naokimc
Автор

You deserve this 🙏 Tim proud to be your subscriber

Doraredora
Автор

Episode 5: Hello everyone, today we are going to be detecting colors.
Episode 15: HACKING INTO A DRONE AND SPYING ON THE GOVERNMENT...

rkade
Автор

Thank you so much for your tutorials !!!!

timsosnora
Автор

Love the way you explain things, well done!!!

ntechplayz
Автор

the HSV colors do not match what all the color pickers say, and i cant find one that goes from 0-255, all use degrees and %. i dont know how to get any correct HSV colors

JuANdELAMANaNA
Автор

Hello Tim, how are you ? Last time you talked about MS VSC and it was very helpful. Many thanks ^_^

edwardedward
Автор

This is such a well made tutorial series.

alexanderwang
Автор

I do visual effects work and I'm trying to write an openCV that will detect diffuse maps out of a group of normal maps and bump maps and diffuse maps and occlusion maps and roughness maps and metal maps I can't place examples of these images here you could Google and find them but can you show me how to write an open CV that will do that?

toapyandfriends
Автор

Great set of tutorials!! I guess that before displaying the images regular on the screen the color scheme should be converted back from HSV to BGR?

johngroebe
Автор

Hey Tim, I have an idea for a tutorial I would love it if you would consider it. How to get open cv and a pyttsx3 python chat bot working together. I'm trying on my own as a beginner programmer to build a personal assistant robot that can function offline, I want to be able to ask it to identify an object, not having to display it on a screen but to verbally respond to what the object is. also, I want to incorporate s.l.a.m. into it ( I already bought 2 identical webcams for stereo vision), so it can map its environment and remember that map and update that map each time it passes through that location. It might be a bit of a challenge I'm sure, but you really have simplified so much for me so far, I really hope you will accept this!

drydenstewartenterprises
Автор

youre awesome dude, please keep going

SAMETELMACI
Автор

next video tutorial series How to solve the rubics cube?

lifesgood
Автор

@TechWithTim V in HSV mean value for value of brightness

lukajeliciclux