OpenCV Python Tutorial For Beginners 25 – Detect Simple Geometric Shapes using OpenCV in Python

///OpenCV Python Tutorial For Beginners 25 – Detect Simple Geometric Shapes using OpenCV in Python

OpenCV Python Tutorial For Beginners 25 – Detect Simple Geometric Shapes using OpenCV in Python

FavoriteLoadingAdd to favorites

In this video on OpenCV Python Tutorial For Beginners, I am going to show How to Detect Simple Geometric Shapes using OpenCV in Python.

Gist of code I used in this video (Simple shape detection – Opencv with Python Tutorial ) –

We will see what contours are. we will Learn to find contours, draw contours, we will see these functions : cv2.findContours(), cv2.drawContours(). In this project we are detecting and tracking motion using live sample video.
The function retrieves contours from the binary image. The contours are a useful tool for shape analysis and object detection and recognition.

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-11-21T10:47:42+00:00November 21st, 2020|Python Video Tutorials|28 Comments

28 Comments

  1. Dandavati Suhas November 21, 2020 at 10:47 am - Reply

    how to detect the color of a simple shape in opencv ? could you please give me any references?

  2. Hongjun Choi November 21, 2020 at 10:47 am - Reply

    Thanks for this great video!

  3. Venu Gopal November 21, 2020 at 10:47 am - Reply

    How to find colour of the shapes? Can anyone help

  4. TheNightFox November 21, 2020 at 10:47 am - Reply

    For anyone wondering: the parameter epsilon in the method approxPolyDP represents the maximum distance between the shape and the approximation. If epsilon = 0 then the approximation will be really precise. But the bigger epsilon gets, the further you allow your approximation to be less rigorous, and an epsilon that's too big will simply not detect shapes properly.

    Trying the code as it is in the video on some random shapes image I found on google, I get that 0.01*cv2.arcLength(contour, closed=True) is actually an approximation that's "too good" (as in it'll try and draw more than 3 edges on a triangle). I put epsilon = 3 and it seems to do the job fine. Depending on what you're coding and how precisely you want to detect, play around with the epsilon value.

  5. sai kiran November 21, 2020 at 10:47 am - Reply

    We can also use
    width == height instead of using aspect ratio, it will work as same as the ratio and it is simple to understand. (If w == h: "square")

  6. Seth White November 21, 2020 at 10:47 am - Reply

    I can't find the shapes image. Help?

  7. puturoi November 21, 2020 at 10:47 am - Reply

    неужели нельзя приложить файл с этой е.бучей картинкой?

  8. Austin Yan November 21, 2020 at 10:47 am - Reply

    You're only reading through the code. Total waste of time.

  9. Aditya Anand November 21, 2020 at 10:47 am - Reply

    Can anybody tell me why it is multiplied with "0.01" at 5:40 ,Line no: 10.
    I was liking his way of explaining things but totally disappointed now.
    Not explaining basic only -_- 👎

  10. Nikhil Rizal November 21, 2020 at 10:47 am - Reply

    What does ravel does

  11. Abdeldjalil Ettahar Boucetta November 21, 2020 at 10:47 am - Reply

    hi thanks for the tutorial
    can you tell us how we can do it in real time ? not just for an image ,and thank you

  12. Suraj Veer Talreja November 21, 2020 at 10:47 am - Reply

    what if the object is a vehicle or plant? we can definitely identify them but how can we name it? like we used 3 sides for triangle and so on. What can be the logic to name car and say cactus?

  13. Doug Maurer November 21, 2020 at 10:47 am - Reply

    No matter what I try, I get the error – "too many values to unpack (expected 2)" on the countours definition line. I am running directly from the repo and with the downloaded image file noted in comments.

  14. Trung Nguyen November 21, 2020 at 10:47 am - Reply

    great. Thank you for this video.It helped me a lot.

  15. Karishma Tyagi November 21, 2020 at 10:47 am - Reply

    Instead of displaying the shape name once, it shows multiple times. Anyone faced the same issue?

  16. Shashank Sharmadon November 21, 2020 at 10:47 am - Reply

    thanks bro……

  17. chapaalejandro90 November 21, 2020 at 10:47 am - Reply

    where do I find the shapes.jpg file? I could not find it in OpenCV github

  18. Nitesh Rock November 21, 2020 at 10:47 am - Reply

    there are way too many ads in between.

  19. Memona Ijaz November 21, 2020 at 10:47 am - Reply

    How to get there x,y coordinates values

  20. Memona Ijaz November 21, 2020 at 10:47 am - Reply

    How can i get there x,y coordinates values?

  21. Oktario November 21, 2020 at 10:47 am - Reply

    can i use this for movement shapes

  22. P Amrith November 21, 2020 at 10:47 am - Reply

    sir what is the aspect ratio for rectangle because i want do for trapozoids also…!

  23. Laurent Volpon November 21, 2020 at 10:47 am - Reply

    Can't wait the next one!

  24. pedram tehranchi November 21, 2020 at 10:47 am - Reply

    Thanks a lot

  25. Rahul Tank November 21, 2020 at 10:47 am - Reply

    Thanks for video

  26. AZ. Q November 21, 2020 at 10:47 am - Reply

    I wanted to ask u about something,,, can I have your email or WhatsApp,,, thank you so much

  27. Saifaldeen Sultan November 21, 2020 at 10:47 am - Reply

    Thanks a lot, wonderful!

Leave A Comment

*