Object Counting by Color | OpenCV
HTML-код
- Опубликовано: 21 июл 2024
- Learn how to count selected color objects using OpenCV and Python.
--RESOURCES--
github.com/codegiovanni/Count...
OpenCV
MouseCallback function:
docs.opencv.org/4.x/d7/dfc/gr...
--TIMESTAMPS--
00:00 | Intro
00:32 | Camera setup
01:56 | Color selection
04:56 | Mask
06:59 | Contours
09:42 | Centroids
10:35 | Trackbars
13:06 | Outro
--MUSIC--
Icelandic Arpeggios - DivKid
--PLAYLIST--
• Image Pixelisation wit...
--SOCIAL MEDIAS--
GitHub: github.com/codegiovanni
FaceBook: profile.php?...
--TAGS--
GiovaniCode
Python
OpenCV
Object
Color
Counting by color
this is the best thing ever you just saved me about 7h of manual work ily
❤❤❤❤❤❤
Can you tell me what algorithm you are using?
Hi, the tutorial parts is the algorithm :) There's no specific algorithm for this task, I selected the same color objects by extracting hue value where the mouse pointer is (also added some range to it because the same color has different brightness). Having the hue value range I created the mask for the same color objects. And that's it :)
@@giovannicode9393 Thank you for the answer
Where can I get the final code?
Hi! In video description as usual: github.com/codegiovanni/Counting_by_color.git