OpenCV Python Tutorial #4 - Drawing (Lines, Images, Circles & Text)

Поделиться
HTML-код
  • Опубликовано: 18 ноя 2024

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

  • @VinodKRamachandra
    @VinodKRamachandra 3 года назад +3

    I liked the animation used for explaining the arguments. Nice improvement. Thanks, Tim

  • @TIMJR625
    @TIMJR625 3 года назад +14

    Working on an image/motion detection project right now, these videos came at the perfect time! Good stuff!

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

      Thanks! Best of luck on your project :)

  • @CubixCreations
    @CubixCreations 3 года назад +19

    Absolutely wonderful series, definitely can't wait for the next tutorial! Keep on educating us Tim!

  • @furina_
    @furina_ 3 года назад +12

    At the age of 5 : Using paper and pen to draw 😭
    At the age of 10 : Using MsPaint to draw 😂
    At the age of 15 : Using OpenCV to draw 😎
    Tim works so hard 😘 so it's the duty of his every viewer to subscribe. Right Tim?

  • @imalirezapy
    @imalirezapy 3 года назад +8

    im from iran i cann't speak english very well, i try to undrestand couse you are good teacher❤🌷 .

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

    Great video, super easy to follow and understand. Solved a problem I immediately had with drawing rectangles!!

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

    Tim, your videos are great and I always learn something new from you. Your style keeps me on track with just the right amount of information to keep me focused and not all over the place like I usually am. Im a big fan of all your videos but I very much look forward to the next video in this series!

  • @Littlepunk8964
    @Littlepunk8964 9 месяцев назад

    2 years later, Tim is still great

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

    This tutorials been so easy for me to follow, and I quickly feel like I am learning. Thanks!

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

    Hi, I am your new subscriber who from South Korea. I am studying degree Computing Science in Singapore. I watched your video. Your coding skill looks very awesome. I really want to have good coding skills. I am feel very respectful to you

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

    Great videos, the perfect length to stay interested

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

    Ima download this vid. Currently doing a maths course but I'll be back for some relaxing programming

  • @Wolf-if1bt
    @Wolf-if1bt 2 года назад

    Where are you from ? I'm french and I can understand 100% of what you're saying. Perfect accent for me. And obviously, your tutorial is also perfect : opencv appears to be easy. Great!

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

    I am working on the HTML code generator with element structure. Thanks bro, love u a lot

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

    I was looking for this series Tim tnx👍

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

    You are really great Tim!

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

    Tim is in fact great!

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

    cv2.LINE_AA enables Anti Aliasing (AA). You can add those to most of the draw functions (including cv2.line, .circle, .rectangle from this video)

  • @heliotenm6532
    @heliotenm6532 3 года назад +5

    here beside using cap.get(3) and cap.get(4) for width and height, we can also use frame.shape[0] and frame.shape[1] for height and width, so is there any reason for using the .get() method?
    He also then convert the value of cap.get() in int, while we get value from frame.shape already in integer.

    • @sachinrawat9109
      @sachinrawat9109 8 месяцев назад

      Using cap.get(3) and cap.get(4) ensures consistency across different video files, not all videos may have frames of the same size, and using the get() method guarantees that you are getting the width and height information directly from the video file

  • @noertri618
    @noertri618 18 дней назад

    Nice video, this gives me inspirations

  • @VictorPerez-od7zh
    @VictorPerez-od7zh 3 года назад

    Amazing tutorial Tim!!!

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

    12:55
    tim: and after that thats baisicly all fo rthis tutorials series...
    me: WHAT!?! he's already done?!

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

      HaHa, I got scared and then realised that it was just a mistake by Tim

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

    Nice video, again. Great to code along and play around. I am currently taking an online course and it´s rather boring, compared to this. So thanks and I am really looking forward to the next parts.

  • @984jimbo
    @984jimbo 3 года назад +1

    Great Videos Tim! A question I have is at 3:52, you changed frame to img so the next line will be drawn on top of img. However, it seems to work for me by just writing cv2.rectange(...)? (So we remove img keep the first argument as frame)
    I played around with drawing 5 rectangles on top of each other, and defining each cv2.rectangle(...) as img1, img 2 etc. It would always draw 5 rectangles on top of each other, no matter what i put into the first argument of cv2.rectangle(), and no matter which I showed for cv2.imshow('frame', img...)
    I was wondering if this is the same for you? i.e. does defining img and writing cv2.rectange(img,...) actually do anything unique, since it doesn't seem to for me

  • @TopMusic-rw3yz
    @TopMusic-rw3yz 3 года назад

    Thanks Tim!!!!!!!!!

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

    Will you have a video combining OpenCV & TKinter?

  • @serhii710
    @serhii710 9 месяцев назад

    img and frame are the same thing, you can verify it yourself by doing assert id(img) == id(frame)

  • @LeviWaters-v6d
    @LeviWaters-v6d 9 месяцев назад

    quick question! in your video at around 3:23 changed cv2.imshow('frame', frame) to cv2.imshow('frame', img) is there an important difference? I ran it both ways and they both worked. Great video BTW!

    • @paulsherlock4348
      @paulsherlock4348 18 дней назад

      I believe that is just the name of the window it’s displaying in.

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

    Will you do Hands-tracking tutorials with Opencv?

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

    Hey Tim could you make videos about Tkinter module?

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

    Hey Tim I want to make curved lines in Opencv can you help me out🙏🙏

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

    waiting for this thanks
    heart

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

    hi, can you please help me with my script. i am trying to save the image detected by opencv and yolov5 custom model. and i need to save the whole image when the object detected.thanks in advance

  • @i-MAsif
    @i-MAsif 3 года назад

    Hi , i am using ubuntu but unable to install opencv with python 3.7.3 version there is an error stoping me to go ahead. Would you help me out plz .(using jupyter notebook) 🙂

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

    Is it possible to add a donnut instead of a circle with volume??

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

    I mean, is it possible to add a simple circle without volume unlike the example?

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

    how can we show 4 different video cameras in a single window like the one you did in the video with your camera

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

    which package you are using in sublime
    ?

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

    Good speed

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

    Please make a video regarding django using automated tests

  • @michaelvogt7787
    @michaelvogt7787 7 месяцев назад

    Tim. I liked... but 'axis' is spelled like this (not axsis). I chuckled. DrV

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

    The delay when you're drawing on the video stream is very noticeable

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

    Please create an api using flask and use docker, want to see end to end project.

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

    Hello, I just saw you have a video titled 'Why You Should STOP Using an IDE (Integrated Development Environment)', yet you're still using an IDE. Does that mean the video was complete clickbait to waste your viewers time for money, or was there some other reason? Thank you in advance for the answer.

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

      Hi. Did you watch the video? I don’t feel it was a waste of time otherwise I would not have created or posted it. Funny thing is in this series I’m actually not using an IDE. This is a text editor not a full pledged ide... Before you make such assumptions I’d encourage to watch the video in question, hopefully I can articulate in that video why i titled the video as such.

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

    I completed your 1000th View at least gimme a Hii in reply ❤

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

    Tim

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

    Please tell the advance things which you will do in the series, like any ml stuff

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

    2nd video...😅

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

    I think u make mistake 6:15

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

    Noice

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

    Eighth

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

    first

  • @adarshp.v2743
    @adarshp.v2743 3 года назад

    Second

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

    Third