OpenCV Python Tutorial For Beginners 13 – Object Detection and Object Tracking Using HSV Color Space

///OpenCV Python Tutorial For Beginners 13 – Object Detection and Object Tracking Using HSV Color Space

OpenCV Python Tutorial For Beginners 13 – Object Detection and Object Tracking Using HSV Color Space

FavoriteLoadingAdd to favorites

In this video on OpenCV Python Tutorial For Beginners, I am going to show How to do Object Detection and Object Tracking Using HSV Color Space. So we will be Implementing color and shape-based object detection and tracking using hue-saturation-value (HSV) color model. For Choosing the correct upper and lower HSV boundaries for color detection with`cv::inRange` (OpenCV) we will use trackbar.

Gist of code I used in this video (Python | Simple object tracking with OpenCV ) –

OpenCV is an image processing library created by Intel and later supported by Willow Garage and now maintained by Itseez. opencv is available on Mac, Windows, Linux. Works in C, C++, and Python.
it is Open Source and free. opencv is easy to use and install.

Starting with an overview of what the course will be covering, we move on to discussing morphological operations and practically learn how they work on images. We will then learn contrast enhancement using equalization and contrast limiting. Finally we will learn 3 methods to subtract the background from the video and implement them using OpenCV.

At the end of this course, you will have a firm grasp of Computer Vision techniques using OpenCV libraries. This course will be your gateway to the world of data science.

Feel the real power of Python and programming! The course offers you a unique approach of learning how to code by solving real world problems.

#ProgrammingKnowledge #ComputerVision #OpenCV
★★★Top Online Courses From ProgrammingKnowledge ★★★
Python Programming Course ➡️ ⚫️
Java Programming Course ➡️ ⚫️
Bash Shell Scripting Course ➡️ ⚫️
Linux Command Line Tutorials ➡️ ⚫️
C Programming Course ➡️ ⚫️
C++ Programming Course ➡️ ⚫️
PHP Programming Course ➡️ ⚫️
Android Development Course ➡️ ⚫️
C# Programming Course ➡️ ⚫️
JavaFx Programming Course ➡️ ⚫️
NodeJs Programming Course ➡️ ⚫️
Jenkins Course For Developers and DevOps ➡️ ⚫️
Scala Programming Tutorial Course ➡️ ⚫️
Bootstrap Responsive Web Design Tutorial ➡️ ⚫️
MongoDB Tutorial Course ➡️ ⚫️
QT C++ GUI Tutorial For Beginners ➡️

★★★ Online Courses to learn ★★★
Get 2 FREE Months of Unlimited Classes from skillshare –
Data Science – |
Machine Learning – |
Artificial Intelligence – |
MERN Stack E-Degree Program – |
DevOps E-degree – |
Data Analytics with R – |
AWS Certification Training – |
Projects in Java – |
Machine Learning With TensorFlow – |
Angular 8 – Complete Essential Guide –
Kotlin Android Development Masterclass –
Learn iOS Programming Building Advance Projects –

★★★ Follow ★★★
My Website –

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!

source

By |2020-02-18T01:52:16+00:00February 18th, 2020|Python Video Tutorials|36 Comments

36 Comments

  1. lilian Kotvan February 18, 2020 at 1:52 am - Reply

    I loved this video. Thank you very much!

  2. Luke A.C.A. Rieff February 18, 2020 at 1:52 am - Reply

    Why did you read the image every iteration, Is this like, not good for your hard drive ?

  3. Ashutosh Kumar February 18, 2020 at 1:52 am - Reply

    what is mask?

  4. Ashutosh Kumar February 18, 2020 at 1:52 am - Reply

    can you send the image? plz

  5. Rida El-Mehdawe February 18, 2020 at 1:52 am - Reply

    so informative lesson, appreciated

  6. MX Hockey February 18, 2020 at 1:52 am - Reply

    Hello, Great video! Can this method be used to track a small black object (7.5cm radius) over a white background going at 75mph(33.5m/s) over a 10 meter frame length captured by the camera? Do you think it would be able to track such a fast small object?

  7. Giovani Aricetti February 18, 2020 at 1:52 am - Reply

    Wow, it was a excelent video. I'm going to follow your videos. I have a beginner question: how python IDE are you using?? Thank you.

  8. Shashank Sharmadon February 18, 2020 at 1:52 am - Reply

    Thanks bro.,…

  9. Abhishek Pandey February 18, 2020 at 1:52 am - Reply

    I'm getting a
    TypeError: Expected Ptr<cv::UMat> for argument '%s'
    –> res= cv.bitwise_and(frame,frame,mask=mask)

    Pls resolve it

  10. bhavy ganatra February 18, 2020 at 1:52 am - Reply

    Amazing sir!!!

  11. Alex Shoyhit February 18, 2020 at 1:52 am - Reply

    Great tutorial
    how can you draw rectangle around the object?

  12. Potti SuperFarm(HK) February 18, 2020 at 1:52 am - Reply

    Hi, our school lab is trying to develop a simple tool to help our vision impair students to recognize the color from testing results. Can you help us? Thx!

  13. kiran.IIT KGP Chouke February 18, 2020 at 1:52 am - Reply

    Hi, Thanks for posting this OpenCV videos. Here I have a doubt why should we use hsv image to mask, why can't we do same on normal bgr (original) image. is there any disadvantage. I wrote same code to mask on original bgr image and working fine (I used same image example you have used). Do we get any problem when I use some other image which has more different colours. Please reply.

  14. Nevil Parekh February 18, 2020 at 1:52 am - Reply

    Bravo… many thanks for amazing tutorials ..

  15. Shamim Mahbub February 18, 2020 at 1:52 am - Reply

    why the tracking window is open with a big frame compared to others frame??????

  16. nikhil rana February 18, 2020 at 1:52 am - Reply

    This code does not work for me.

  17. Lexxson Quayeson February 18, 2020 at 1:52 am - Reply

    great one. please we need a practical video on fruits detection. thank you

  18. nada alshaer February 18, 2020 at 1:52 am - Reply

    I am getting this error (line 14, in <module>

    hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV) # convert color to HSV

    cv2.error: OpenCV(4.1.1) C:projectsopencv-pythonopencvmodulesimgprocsrccolor.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'

    any help guys I tried fixing it

  19. hussein gharakhani February 18, 2020 at 1:52 am - Reply

    This was my first time to work with OpenCV. Thank you so much.

  20. NorCal Subaru Guru February 18, 2020 at 1:52 am - Reply

    How would you use this and then have the camera only look at a specific location and tag it when it sees the color you are looking for. I want to put a box on the screen and then whenever the color flys by it I want to have a counter tick off and have that go continuously.

  21. saidani Anis February 18, 2020 at 1:52 am - Reply

    i learn a lot from you , thanks for all the work that you done

  22. Mohsin Shanavas February 18, 2020 at 1:52 am - Reply

    what does line 5 mean?

  23. Divyesh Vasani February 18, 2020 at 1:52 am - Reply

    I loved your tutorial, you are explaining perfect, liked your example. Keep it up.

  24. mertcan kaya February 18, 2020 at 1:52 am - Reply

    wow that's perfect body

  25. SIDDHARTH MISHRA February 18, 2020 at 1:52 am - Reply

    Why do we need two same source as frame

  26. Joona Uutela February 18, 2020 at 1:52 am - Reply

    Love the way you produce python.

  27. I’m a Collected Tragedy February 18, 2020 at 1:52 am - Reply

    Hi, this video and series really helped me with a project that made my robot track and move towards a pink blob or shape. You are an amazing teacher because before this tutorial I did not know anything about OpenCV and with your help I made something super cool happen so thank you 🙂

  28. Godwin Pauldurai February 18, 2020 at 1:52 am - Reply

    nice work. I try to detect blue circle from real-time webcam and mark circle border on that blue target, I want to develop this in javascript and opencv.js, but HoughCircles not working for videos but it is working on an image, please guide we with this any example.

  29. Kyran Findlater February 18, 2020 at 1:52 am - Reply

    wow, this is actually the first time i've seen these really handy integrated highgui trackbar features. that's super handy for my image processing prototyping!

  30. Christopher Westcott February 18, 2020 at 1:52 am - Reply

    These videos have gotten me up and running quickly with OpenCV. Thank you!!

  31. Cris Jade Agtang February 18, 2020 at 1:52 am - Reply

    is it possible to compare the brightness/whiteness of an object in an image(white object with green background) Thank you in advance 😀 I really really need your help.

  32. hussen ali February 18, 2020 at 1:52 am - Reply

    Great work
    !
    thank you

    please when will be the next video

  33. J_Net Reloaded February 18, 2020 at 1:52 am - Reply

    How do I do face detection using open cv with mp4 vids?

  34. Abhilash Saha February 18, 2020 at 1:52 am - Reply

    Yogesh is back!

  35. James Oliver February 18, 2020 at 1:52 am - Reply

    This is great! I can really use this method for a project I’m working on right now. Thank you!

  36. Pavan Krishna Deshpande February 18, 2020 at 1:52 am - Reply

    Brilliant 🙏🏻

Leave A Comment

*