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

Комментарии • 7

  • @randebuu1
    @randebuu1 14 дней назад

    this is the best thing ever you just saved me about 7h of manual work ily

  • @salh2665
    @salh2665 Месяц назад

    ❤❤❤❤❤❤

  • @mirahan5491
    @mirahan5491 2 года назад

    Can you tell me what algorithm you are using?

    • @giovannicode9393
      @giovannicode9393  2 года назад +1

      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 :)

    • @mirahan5491
      @mirahan5491 2 года назад

      @@giovannicode9393 Thank you for the answer

  • @zekhethelosnethemba4191
    @zekhethelosnethemba4191 Год назад

    Where can I get the final code?

    • @giovannicode9393
      @giovannicode9393  Год назад +2

      Hi! In video description as usual: github.com/codegiovanni/Counting_by_color.git