Realtime Color Detection (Webcam) [8] | OpenCV Python Tutorials for Beginners 2020
HTML-код
- Опубликовано: 4 июн 2024
- In this video, we will learn how to detect any color in an image using the HSV space with the help of OpenCV Trackbars. We will also stack the images together to make the workflow smoother.
🚀🚀 My Urdu/Hindi AI RUclips Channel 🚀🚀
/ @murtazahassan01
Code & Complete Course:
www.computervision.zone/cours...
Premium Courses:
✔️ Computer Vision Game Development Course:
bit.ly/3ttLZ2s
✔️ Computer Vision with Arduino Course:
bit.ly/3wzLB4m
✔️ Advanced Drone Programming Course:
bit.ly/3qs3v5g
✔️ Learn to Build Computer Vision Mobile Apps:
bit.ly/3uioY1J
✔️ Jetson Nano Premium Course:
bit.ly/3L8uIlF
⚙️⚙️⚙️--My Gear - ⚙️⚙️⚙️
👉 Complete Gear 💈: www.computervision.zone/tech-...
👉 My PC Specs 🖥️: www.computervision.zone/tech-...
👉 My Video Shooting Gear📽️ : www.computervision.zone/tech-...
👉 My Laptops 💻: www.computervision.zone/tech-...
👉 Educational Products🧑🎓: www.computervision.zone/tech-...
👉 RUclips Starter Kit 🔴: www.computervision.zone/tech-...
Follow Me:
TikTok: bit.ly/3Vo76OQ
Facebook Group: bit.ly/3irDcb7
Discord: bit.ly/3JvyxAM
Facebook Page: bit.ly/3IvpU7W
Instagram : bit.ly/3NdGME3
Website: bit.ly/3ICFTS0
Github: bit.ly/3woU6PS
#ComputerVision
#OpenCV
#CVZone
Gracias Murtaza! Excelente Tutorial.
keep making videos!! u are a gr8 teacher
Awesome tutorial, easy to understand
Great tutorial!
Fantastic tutorial. It was soo useful...
Hi! Could you explain the line: cv2.bitwise_and(img, img, mask=mask)? why are the inputs same and what is the role of the mask in the function
Thanks, Murtaza, that 's cool! i like your tutorials...
Ur welocme
thank you so much, you give me a way so good
Awesome tutorial, I was just wondering if you could share the settings for the main colors (such as blue, red, green, etc.)
you can use a HSV color picker to find the ranges: e.g. alloyui.com/examples/color-picker/hsv.html
just remember to scale the values to 179 255 255 bcz normally its 360 100 100
Great Man
Quality work....Don't know why you have less views & likes???
Thank you brother , I love you so much.
Very good
This tutorial is very good. I know you are able to extract color, but i wondering that we know that it is orange and yellow color but how computers understand by adjusting trackbars that it is orange and yellow?. All i want to detect color and print color name.
Cool, Why didn't you merge the trackbar....like min and max have separate tracks....one track should go from min to max???
tks pro
are going to use any object detection algorithm like Faster RCNN ?
yes planning on doing Yolo3
how to do a function when the object is a certain color?
Really good video!
Could you please post a repository with the code?
I think the site from the description got migrated and i can't find any of the code there!
Would love to play with it myself!
yes same with me
Can you explain why HSV was used there??
Why did we create the empty function?
Is anyone else getting this error like i tried searching alot but cant seem to find a way out of it :
cv2.error: OpenCV(4.7.0) D:\a\opencv-python\opencv-python\opencv\modules\highgui\src\window.cpp:866: error: (-215:Assertion failed) trackbar in function 'cv::getTrackbarPos'
I dont know why but i keep having errors. So strange but i couldn't figure out. MAybe the tutorial is old. I did everything the same but i keep having error.
cv2.error: OpenCV(4.8.1) D:\a\opencv-python\opencv-python\opencv\modules\highgui\src\window.cpp:971: error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'cv::imshow'
What is the uses
do you have the github code ?
I'm receiving this error:
Traceback (most recent call last):
File "e:/Desktop Data/Programs/ColorDetector.py", line 38, in
mask = cv2.inRange(imgHsv, lowerb, upper)
TypeError: Expected Ptr for argument 'lowerb'
What should I do?
If u have doubts search google first. Here is a Stackoverflow answer for it stackoverflow.com/questions/54249728/opencv-typeerror-expected-cvumat-for-argument-src-what-is-this
Uhm maybe your spelling of lower is wrong?
why is my mask coming all black right from the start