OpenCV Python Tutorial #6 - Corner Detection

Поделиться
HTML-код
  • Опубликовано: 22 май 2024
  • Welcome to another OpenCV tutorial! In this OpenCV video, we'll be talking about corner detection. The point is to not just show you the corner detection, but to also introduce some of the interesting algorithms that OpenCV has built in. In this video, we'll only need 3-4 lines of code to find all the corners in an image within OpenCV.
    💻 AlgoExpert is the coding interview prep platform that I used to ace my Microsoft and Shopify interviews. Check it out and get a discount on the platform using the code "techwithtim" algoexpert.io/techwithtim
    📄 Relevant Documentation: opencv-python-tutroals.readth...
    📝 Code For This Series: github.com/techwithtim/OpenCV...
    🔍 Playlist: • OpenCV Python Tutorials
    ⭐️ Timestamps ⭐️
    00:00 | Introduction
    01:37 | Corner detection
    09:42 | Drawing corners
    15:04 | Drawing lines between corners
    18:35 | Outro
    ◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
    💰 Courses & Merch 💰
    💻 The Fundamentals of Programming w/ Python: tech-with-tim.teachable.com/p...
    👕 Merchandise: teespring.com/stores/tech-wit...
    🔗 Social Medias 🔗
    📸 Instagram: / tech_with_tim
    📱 Twitter: / techwithtimm
    ⭐ Discord: / discord
    📝 LinkedIn: / tim-ruscica-82631b179
    🌎 Website: techwithtim.net
    📂 GitHub: github.com/techwithtim
    🔊 Podcast: anchor.fm/tech-with-tim
    🎬 My RUclips Gear 🎬
    🎥 Main Camera (EOS Canon 90D): amzn.to/3cY23y9
    🎥 Secondary Camera (Panasonic Lumix G7): amzn.to/3fl2iEV
    📹 Main Lens (EFS 24mm f/2.8): amzn.to/2Yuol5r
    🕹 Tripod: amzn.to/3hpSprv
    🎤 Main Microphone (Rode NT1): amzn.to/2HrZxXc
    🎤 Secondary Microphone (Synco Wireless Lapel System): amzn.to/3e07Swl
    🎤 Third Microphone (Rode NTG4+): amzn.to/3oi0v8Z
    ☀️ Lights: amzn.to/2ApeiXr
    ⌨ Keyboard (Daskeyboard 4Q): amzn.to/2YpN5vm
    🖱 Mouse (Logitech MX Master): amzn.to/2HsmRDN
    📸 Webcam (Logitech 1080p Pro): amzn.to/2B2IXcQ
    📢 Speaker (Beats Pill): amzn.to/2XYc5ef
    🎧 Headphones (Bose Quiet Comfort 35): amzn.to/2MWbl3e
    🌞 Lamp (BenQ E-reading Lamp): amzn.to/3e0UCr8
    🌞 Secondary Lamp (BenQ Screenbar Plus): amzn.to/30Dtafi
    💻 Monitor (BenQ EX2780Q): amzn.to/2HsmUPZ
    💻 Monitor (LG Ultrawide 34WN750): amzn.to/3dSD7tS
    🎙 Mic Boom Arm (Rode PSA 1): amzn.to/30EZw9m
    🎚 Audio Interface (Focusrite Scarlet 4i4): amzn.to/2TjXsih
    💸 Donations 💸
    💵 One-Time Donations: www.paypal.com/donate?hosted_...
    💰 Patreon: / techwithtim
    ◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
    ⭐️ Tags ⭐️
    - Corner detection in OpenCV
    - Corners OpenCV
    - Python
    - Computer vision
    - Cameras and video capture
    ⭐️ Hashtags ⭐️
    #OpenCV #Python #CameraCapture

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

  • @LyingParachute
    @LyingParachute 3 года назад +16

    Hey Tim. After watching your several videos I noticed, that you struggle breathing while you talk. My girlfriend is a speech therapist and she said that going to this kind of specialist would make your life easier. You should consider implementing simple breathing exercises to prevent larynx disease. It's important, becouse you talk a lot.
    Thanks a lot for making courses and tutorials, they're great! :)

  • @cjay9615
    @cjay9615 2 года назад +2

    Don't stop making these videos, some of the best python tutorials on the whole of youtube!!!

  • @breathemath4757
    @breathemath4757 2 года назад +14

    Just in case you're not a fan of the map function, try:
    color = [int(x) for x in np.random.randint(0, 255, size=3)]

  • @abrafgesvbeac3676
    @abrafgesvbeac3676 2 года назад +2

    Thank you Tim. You're so good as a teacher. Everything is clear and so fun to learn. Best wishes!

  • @Joker4funify
    @Joker4funify 3 года назад +7

    Hi Tim! It's great that you continue this series. Please continue it, don't ditch it:)
    P.S: I'm studying CV at my uni and your tutorials are just gold!
    Please, continue them. You are amazing, I'm watching you since 2019.

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

    Instead of the map(lambda... for the np.random.randint you can also tuple a comprehension for the function.
    color = tuple(int(x) for x in np.random.randint())
    Great video, love your channel!

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

    Thank you a lot, I m really injoying your lessons , thank u for the simplicity.

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

    This is absolutely amazing. Greetings from Asia.

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

    Love this tutorial

  • @29namankumar29
    @29namankumar29 3 года назад +1

    Great video Tim👌✌️

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

    Love your work

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

    That's pretty cool, thank you!

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

    Just wanted to tell you: you are amazing.

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

    just wanted to leave this here: "good features to track" was the name of the paper publishing this improved corner detection method

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

    Good job man

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

    I love your videos

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

    Thank you tim

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

    looking forward to the next video 😏

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

    Nice video 👍

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

    loved it

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

    @Tech With Tim The top right corner is left out.
    there is no line going or emerging from that corner.

  • @pythonSefer
    @pythonSefer 3 года назад +10

    Hi Tim I just wanted to suggest a video idea for you: Make a tutorial about the vim text editor

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

      just type vimtutor in the terminal

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

    Nice !!!!

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

    Great!

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

    Will there be a image denoiser tutorial?

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

    Could you make a video on image alignment using openCV?

  • @user-yp9mh9wc9w
    @user-yp9mh9wc9w 8 месяцев назад

    @techwithtim
    the python documentation in the description is not working are there any other websites for that?

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

    when ı enter the link which is called Relevant Documentation , it says that the page is abondoned . Do you have have a new link of it?

  • @georgegu3374
    @georgegu3374 6 месяцев назад

    on video cam, always set a fixed white-balance like 5500k. otherwise the color on captured image is changing with ambiant light.
    if you with greyscale, it doesn't matter

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

    Top video

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

    The link to the documentation is "abandonded", do you know where I could find that information? I've tried a few google searches but I don't think I'm finding the right ones

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

    When are we learning about object detection from images

  • @numo6144
    @numo6144 Год назад +1

    you can simply write
    corners = list(map(np.ravel, corners))

    • @numo6144
      @numo6144 Год назад +1

      and also
      rc = tuple(map(int, np.random.randint(0, 255, size=3)))

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

    can you do a program about scanner like MFL tank floor scanner in python

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

    Hey Tim, I think you forgot to add the "OpenCV Python Tutorial #5 - Colors and Color Detection" video to this playlist

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

    Could you explain me a little more about second for loop ( for j in range(i+1), corners) )

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

      it's for all the remaining corners. like, suppose i gives the 1st corner, so j will allow hold the value of all the other remaining corners, one by one, so that we can draw line from the 1st corner to every other corner.
      I am bad at explaining but I hope it helps.

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

    hi tim!it gives me the error like that:
    size.width>0 && size.height>0 in function 'cv::imshow'
    Could you help me please?

  • @user-ih4ho1wh5h
    @user-ih4ho1wh5h 3 года назад

    I am a little confused with the line 19 at 19:59. Why did you use lambda x: int(x) instead of just a regular int(x). I don't use lambdas a lot so I'm wondering if I'm missing something here.

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

      Oh good point! I could have actually just passed “int” as the function

  • @Aditya-cw7rd
    @Aditya-cw7rd 3 года назад

    can you please make a step by step guide on how to start freelance as only python programming on fiverr or other?

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

    Hey dude,can you make screen recorded for android and can record internal audio

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

    I was feeling first before refreshing page

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

    Hello Tim, could you please make a video with opencv OCR for the next video? Like if you support this idea

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

    In Sublime Text, how exactly are you able to view the package methods ? Mine doesn't display that

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

      he's using Kite, an auto-complete plugin

  • @vishnuagrahari5153
    @vishnuagrahari5153 2 месяца назад

    Documentation link is not working
    please update it

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

    can't access the documentation from the video ://

  • @manas1743
    @manas1743 2 года назад +2

    Can someone again link the documentation. The link in the description says that the project is moved. Even the name of documentation would be enough for a google search.

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

      I'm looking for it to

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

      @@ankitpatil3490 Ok, I found it, would sen the link once I open my laptop

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

      ok thanks.

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

      @@manas1743 Kindly send me also . Thanks in advance for the favour.

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

    cv2.imread('assets/chessboard.png', 0) will give a grey scale image..I Think

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

    unable to download opencv man..
    I downlosaded from pip install and all other mrthods said by tim .
    I tried diffrent youtube videios but im unable to import the library in my IDE.
    any help would be appreciated guys. thanks

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

      Can you import it in your Terminal/cmd ?

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

      @@adityak1231 no ! It shows there also that no module found

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

      @@adityak1231 and when I reinstall the opencv it shows requirement satisfied.. I'm so confused

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

      Try upgrading pip to the latest version and reinstalling it

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

      @@adityak1231 I did try that, still nothing

  • @Ambiens
    @Ambiens 3 года назад +6

    I've just watched the 7th part and now 6th is the latest.
    Accidentally published?

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

    I don't get any lines i don't know where I don't mistake any one tell me pls 🙏

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

    😍😍😍😍😍😍

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

    lambda must be in lowercase vs Lambda
    Tx Twt

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

    901 view, 101 like :)

  • @prasannan-robots
    @prasannan-robots 3 года назад

    This time im not first im 9th

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

    The complexity of the second half of this video is making me swear under my breath. I've met my intellectual limit, I am legitimately too stupid to understand the part where you put lines between each corner.

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

    yay 5th

  • @coolghoul9
    @coolghoul9 28 дней назад

    is it boring or you dont understand it, 1min later you try to explain boring hypotenuse

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

    Smart guy but terrible teacher