Detect Edges with OpenCV and Python | Computer Vision Tutorial

Sdílet
Vložit
  • čas přidán 11. 06. 2024
  • Welcome to the OpenCV Basics series. In this series, we'll be going through all the basics of OpenCV from the ground up.
    In this video you'll learn how to:
    1. Apply Canny Edge Detection to Images
    2. Tweak and Tune Detection Parameters to improve Results
    3. Export final detections
    Get the code:
    Links
    Documentation: docs.opencv.org/3.4/da/d22/tu...
    Chapters:
    0:00 - Start
    0:12 - Intro
    0:46 - Gameplan
    1:20 - Tutorial Start
    3:06 - Import Dependencies
    3:59 - Load Image
    7:07 - Viewing and Resizing Images
    10:54 - Applying Canny Edge Detection
    13:30 - Reducing Noise with a Gaussian Blur
    16:12 - Preprocessing with Grayscale
    18:36 - Exporting Results
    Oh, and don't forget to connect with me!
    LinkedIn: bit.ly/324Epgo
    Facebook: bit.ly/3mB1sZD
    GitHub: bit.ly/3mDJllD
    Patreon: bit.ly/2OCn3UW
    Join the Discussion on Discord: bit.ly/3dQiZsV
    Happy coding!
    Nick
    P.s. Let me know how you go and drop a comment if you need a hand!
  • Věda a technologie

Komentáře • 50

  • @winstonyeung1461
    @winstonyeung1461 Před 2 lety +4

    As always, clear and systematic. Thank you.

  • @siyuancheng9575
    @siyuancheng9575 Před 2 lety

    This guy is simply amazing! Love every video, super clear and inspiring, love it

  • @rabidgeek
    @rabidgeek Před 2 lety +3

    Hey! As a deaf person, I greatly depend on captions - for most of your videos, they are on (I lipread and catch the occasional errors like 'captcha' when you said 'capture' - this can be prevented if you transcribe and feed your own captions... CZcams has this tool), but this one says captions are unavailable. Please continue to keep your videos accessible - I have viewed many and they have been extremely helpful on my path!! Many thanks for your hard work!

    • @NicholasRenotte
      @NicholasRenotte  Před 2 lety

      Ha, weird, it's not on for this one. Let me go check! My bad man!

    • @daniel_cunha
      @daniel_cunha Před 11 měsíci

      @@NicholasRenotte still not on, very hard to follow to not native speakers

  • @nicholassmerk
    @nicholassmerk Před 2 lety +1

    This was great! Thanks!

  • @atnguyen836
    @atnguyen836 Před 2 lety +1

    Thank you for another great video Nicholas! I am excited about the GAN can u do the toturial that in the next video

  • @saiganesh2123
    @saiganesh2123 Před 2 lety +1

    Waiting for your next tutorial on this with ANPR collectively
    Thank You
    🙏🙏🏽🙏🏽 from INDIA

  • @lebhf179
    @lebhf179 Před 2 lety

    Omg I am In love with your videos

  • @ameerazam3269
    @ameerazam3269 Před 2 lety +1

    Thank you sir for Again you effort for us

  • @dovydaspocius7388
    @dovydaspocius7388 Před 2 lety +4

    Awesome tutorial! Can we expect video/tutorial in future about Change Detection (DL) for images in (almost) same place but different time? So interesting to hear your opinion about best techniques to achieve it!

    • @NicholasRenotte
      @NicholasRenotte  Před 2 lety

      Hmmm haven't even considered this type of model before! Got an example for me?

    • @dovydaspocius7388
      @dovydaspocius7388 Před 2 lety

      @@NicholasRenotte for example i get plenty images everyday from same places (UAV images). I need observe some objects and detect is there any changes on that object comparing image from yesterday and if it is, make corresponding output . For example i observe all trash containers in the city every day and i need to detect changes of trash containers (maybe today the container is full and trashes are placed on top or side , so i need to detect that and make corresponding output ). I don't know if my example is clear to understand, let me know.

    • @dovydaspocius7388
      @dovydaspocius7388 Před 2 lety

      so for educational purpose maybe you can compare any two images (street view images), but video would be more concentrate about choosing technique and how to achieve goal

  • @mahmoudnady4388
    @mahmoudnady4388 Před rokem

    Brother! You are awesome!

  • @Chorum1975
    @Chorum1975 Před rokem

    Very Nice Tutorial! Found you a minute ago. Which IDE are you using in this Video ?

  • @grubersunny3117
    @grubersunny3117 Před 2 lety +2

    Hi @Nicholas Renotte I have seen all your tutorial of the Deep Reinforce Learning. Can you make a tutorial for GNN because your tutorial is way too clear to understand than my professor

  • @EnEm523
    @EnEm523 Před rokem

    Hello Nicholas,
    How to crop multiple bounding box of a image using openCV ? All bounding box should be same size.

  • @cristianezequielmorilla2198

    Thank you very much, I was working on something similar, processing, whether they were handwritten or non-homogeneous numbers. You would cut the image and you would use a dataset like MNIST to train a vanilla CNN or you would use transfering learning with resnet or YOLO, I don't know if those networks detect letters or numbers. sorry for my english, i'm practicing!

  • @roger_island90
    @roger_island90 Před 2 lety

    @Nicholas Renotte how can I apply cnny Edge algorithm on multiple (2,000) images at a time? Thank you

  • @CodeWithJoe
    @CodeWithJoe Před 2 lety +1

    Dude, can you get yourself a jetson-nano and do some tutorials using it? Love your channel btw, great stuff

    • @NicholasRenotte
      @NicholasRenotte  Před 2 lety

      Heyy! Thanks so much, on the list. Will probs get to it in the new year. Some sweet crypto stuff on your channel!

    • @cedricvillani8502
      @cedricvillani8502 Před 2 lety +1

      2 new Jetsons released just a few days ago I believe, was sent to developer account, and one was a SoM so I would assume similar to the NX version’s and therefore preloaded with a Debian/Ubuntu stack or at the very least can be flashed in a few minutes. But they been updating there Catalog a lot and have a ton of great tutorials available

  • @jahamm4
    @jahamm4 Před 7 měsíci

    could you create a gui with sliders to adjust the blur / threshold values and then click export once you've got an image you are happy with?

  • @kamogahsn
    @kamogahsn Před 2 lety +1

    This was great
    Helped actually the images are coming out and she shapes are but how then can I take out the shapes I like

    • @NicholasRenotte
      @NicholasRenotte  Před 2 lety +1

      Take a look at this: learnopencv.com/contour-detection-using-opencv-python-c/

  • @meghaarorasethi8443
    @meghaarorasethi8443 Před rokem

    Hi,can u plz share the code detect an object from the real image

  • @emmanuelakoja
    @emmanuelakoja Před rokem

    Can you create a video on how to chat with a 3d object, but users can only respond with a line of multiple choice of emojis, the choice of emojis selected by users determine the kind of questions they get next.

  • @idkidk1774
    @idkidk1774 Před 2 lety +1

    sir can we do a image to text using ESP32, OpenCV and python

    • @NicholasRenotte
      @NicholasRenotte  Před 2 lety +1

      On a Raspberry Pi it's kinda tricky, could probably do it with a nano!

    • @idkidk1774
      @idkidk1774 Před 2 lety

      Yes please

  • @hardishah3188
    @hardishah3188 Před rokem

    it says cv2 module not found

  • @idkidk1774
    @idkidk1774 Před 2 lety +1

    Do a Q & A session or Video Please

    • @NicholasRenotte
      @NicholasRenotte  Před 2 lety

      Like as in everyone gets to post questions and I answer them? Or like a Q&A model?

    • @idkidk1774
      @idkidk1774 Před 2 lety

      @@NicholasRenotte Yeah, like everybody gets to post a question.

  • @mohammadreza3651
    @mohammadreza3651 Před 7 měsíci

    Thanks a lot!

  • @br_pa472
    @br_pa472 Před 2 lety

    Great video, but the bike is from Letonia

  • @cedricvillani8502
    @cedricvillani8502 Před 2 lety +1

    Great for game bot’s also, cheat away;)

    • @NicholasRenotte
      @NicholasRenotte  Před 2 lety

      fr, fr, would probs need a bit more to build out a bot with just edge detection tbh though?

  • @ardaanlboz6675
    @ardaanlboz6675 Před 2 lety +3

    Thank you for another great video Nicholas! Can I directly contact you someway please, I tried instagram and facebook but you didn't respond. Your help would mean a lot.

    • @NicholasRenotte
      @NicholasRenotte  Před 2 lety

      I'm here now! Wassup?! :)

    • @ardaanlboz6675
      @ardaanlboz6675 Před 2 lety +1

      @@NicholasRenotte I need to make a basketball ai that is focused on your shooting. Similar to your deadlift bot in someways. It will find the rim and detect the ball (when you shoot the system should leave marks on the path of the ball). After everything the ai will help you improve your shot percentage by the data you give it to it (makes and the shots that don’t go in) and the information it will collect from you (like the position of your feet the angle of your arm etc). I also want to add data from well known great shooters so the users can compare their shots with them. What do you think about it? How can I make this project?

    • @NicholasRenotte
      @NicholasRenotte  Před 2 lety

      Woah! Awesome project. Sounds like a lot of moving parts though! I would first up focusing on using OD or something similar to find the rim. Then you could estimate the position of the person (perhaps with GPS) then maybe pose estimation to calc shooting angle?

    • @montaseralhalaby6426
      @montaseralhalaby6426 Před 3 měsíci

      Hello Nicholas I would like some advice regarding a project I am working on. The idea is that there is a camera in a company that films the employee when he enters, matches him with the saved database, and sends the information to the backend to record attendance and other information. I want to know what I need to deal with the camera issue and matching Do I need yolo or face_recognition
      @NicholasRenotte

  • @hardishah3188
    @hardishah3188 Před rokem

    why resizing is not working

  • @kamogahsn
    @kamogahsn Před 2 lety +1

    @Nicholas Renotte ,
    I hope this helps me out with my project. NIC , can I have your email or direct way of contacting you please? i need help badly for Ellipse detection

    • @NicholasRenotte
      @NicholasRenotte  Před 2 lety +1

      Ya shoot, what's up?! :)

    • @kamogahsn
      @kamogahsn Před 2 lety +1

      @@NicholasRenotte I have an object which I want to segment from a frame but it in close to a circle but actually an ellipse in shape. the object varies in diameter(each frame having object of varying diameter some with the same ) but all have similar circular(Not perfectly circular ) shape. I want to be able to isolate it from frame. after detecting the edges. How do I go about that. I swear this is all I need to graduate I have been here 3 years now .... sometimes I feel so demoralized but your videos have somehow been very helpful

    • @NicholasRenotte
      @NicholasRenotte  Před 2 lety +1

      Could take a look at image segmentation if it's a specific type of object! I had a friend do it for tea leaves.