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

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

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

    Gracias Murtaza! Excelente Tutorial.

  • @kumarshubham2812
    @kumarshubham2812 4 года назад +2

    keep making videos!! u are a gr8 teacher

  • @choirozyadmhafidz8809
    @choirozyadmhafidz8809 3 года назад +1

    Awesome tutorial, easy to understand

  • @goshyu4088
    @goshyu4088 3 года назад +1

    Great tutorial!

  • @a.k_film_kingdom
    @a.k_film_kingdom 2 года назад

    Fantastic tutorial. It was soo useful...

  • @prabaldutta1935
    @prabaldutta1935 4 года назад +1

    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

  • @jackyli6716
    @jackyli6716 4 года назад +1

    Thanks, Murtaza, that 's cool! i like your tutorials...

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

    thank you so much, you give me a way so good

  • @woosal-kc7tr
    @woosal-kc7tr 4 года назад +4

    Awesome tutorial, I was just wondering if you could share the settings for the main colors (such as blue, red, green, etc.)

    • @murtazasworkshop
      @murtazasworkshop  4 года назад +3

      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

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

    Great Man

  • @hafizmuhammadabdullahbhatt9047
    @hafizmuhammadabdullahbhatt9047 3 года назад +2

    Quality work....Don't know why you have less views & likes???

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

    Thank you brother , I love you so much.

  • @GolemTH9
    @GolemTH9 3 года назад

    Very good

  • @VishalChauhan-wg3ud
    @VishalChauhan-wg3ud 3 года назад +2

    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.

  • @hafizmuhammadabdullahbhatt9047
    @hafizmuhammadabdullahbhatt9047 3 года назад

    Cool, Why didn't you merge the trackbar....like min and max have separate tracks....one track should go from min to max???

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

    tks pro

  • @rebeenali917
    @rebeenali917 4 года назад +1

    are going to use any object detection algorithm like Faster RCNN ?

  • @heisenolf13
    @heisenolf13 3 года назад +1

    how to do a function when the object is a certain color?

  • @krzysztofkrol5374
    @krzysztofkrol5374 2 года назад +3

    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!

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

    Can you explain why HSV was used there??

  • @davemystic1485
    @davemystic1485 3 года назад

    Why did we create the empty function?

  • @user-sf6kj1me1u
    @user-sf6kj1me1u 11 месяцев назад

    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'

  • @evagok3698
    @evagok3698 5 месяцев назад

    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'

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

    What is the uses

  • @z2.060
    @z2.060 3 года назад

    do you have the github code ?

  • @hafizmuhammadabdullahbhatt9047
    @hafizmuhammadabdullahbhatt9047 3 года назад

    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?

    • @vijayanand7270
      @vijayanand7270 3 года назад

      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

    • @whoknows3093
      @whoknows3093 3 года назад +1

      Uhm maybe your spelling of lower is wrong?

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

    why is my mask coming all black right from the start