Raspberry Pi LESSON 47: Adding Boxes, Rectangles and Circles on Images in OpenCV

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ต.ค. 2024
  • Announcing the Most Awesome Raspberry Pi Lessons of All Times! This time we RUMBLE!
    In this class series, we will be using the most excellent Sunfounder Ultimate Raspberry Pi kit, available here: (Affiliate Link)
    amzn.to/3tSk9Mo
    or for our UK friends, amzn.to/3I5d401
    In this lesson I will show you how to use the Raspberry Pi camera on the Bullseye operating system, in either 32 bit or 64 bit mode. I will show you how to operate the camera using OpenCV. Today I will show you how to annotate your openCV video stream with circles, boxes and rectangles
    If you want to grab those cool little straight jumper wires I am using to keep my breadboard builds neat and clean you can snag a box of them here:
    amzn.to/36NyfHq
    If you guys are interested in the oscilloscope I am using, you can pick one up here (affiliate link):
    amzn.to/3v13Mhl
    You guys get your hardware ordered so you can follow along at home!
    You will also need a Raspberry Pi. I suggest the Raspberry Pi 4. If you do not already have one, this is the most suitable gear I could find:
    amzn.to/3pBMfKm
    The Raspberry Pi's are sort of pricy right now, so you can look on ebay or elsewhere to see if there are any deals. You will need a SD card. If you do not already have one, this is a good one:
    amzn.to/3KcXTn2
    I like using a wireless keyboard and mouse to have fewer wires. You can certainly use your USB keyboard and mouse, but if you want a nice wireless one, this one works on the pi. We demonstrate this by using a button switch to control a LED.
    amzn.to/36Rv9Sk
    You guys can help me out over at Patreon, and that will help me keep my gear updated, and help me keep this quality content coming:
    / paulmcwhorter
    [Disclosure of Material Connection: I am a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com. ]
    #bullseye
    #opencv
    #raspberrypi

ความคิดเห็น • 50

  • @amarbakshi2839
    @amarbakshi2839 11 หลายเดือนก่อน

    This is the best education channel ever. I am out of touch with technical for a long time and wanted to make a project about object detection. It was hard initially to go over pages of documentation on stack overflow and other community sites and I was stuck for two weeks to get the opencv installed properly.. You made it possible to understand the concepts and now I have progressed much more in my project. Thank you.

  • @cbrombaugh
    @cbrombaugh ปีที่แล้ว

    I AM LEGEND! As Paul has said many times, it helps to make and label a drawing of the screen and rectangle corners on paper. Thanks for another most-excellent lesson Paul!

  • @WistrelChianti
    @WistrelChianti ปีที่แล้ว +1

    These lessons are so chill/relaxing...

  • @emmanuelreverlyconteh2457
    @emmanuelreverlyconteh2457 ปีที่แล้ว +1

    I started watching your channel in 2nd Year of my course, now I'm in the final year Electrical & Electronics Engineering and my thesis will be based on an Arduino Project. You are a blessing Sir😊

  • @James-rp3fc
    @James-rp3fc ปีที่แล้ว

    Good morning Paul McWhorter. Some time ago I started a project to digitize 8mm home movies and in my search on TH-cam for suitable electronics I saw a video of you using a Raspberry Pi with the camera module. I followed and performed the lesson with interest and gradually got hungry for more, after a short search session I found all lessons on YT, downloaded them and now follow them 1 by 1 . I'm 82 years old and an electronics engineer of the old school so need a little more time to absorb it. I want to thank you very much for your clear and useful lessons best regards James . b.t.w. I hope you drink DeCaf !!!

    • @paulmcwhorter
      @paulmcwhorter  ปีที่แล้ว

      Excellent, but I do drink full octane coffee.

  • @leeg.1402
    @leeg.1402 ปีที่แล้ว +1

    Thanks for the lesson Paul. Appreciate all that you do!

  • @arguedas02
    @arguedas02 ปีที่แล้ว

    I do enjoy every single lesson of this raspberry Pi tutorials thank you Paul, for the effort you put on this lessons.. Blessings to you an your Family...

  • @alldaypancakes7058
    @alldaypancakes7058 ปีที่แล้ว +1

    i need you to know that you are better than most teacher i know you explain everything so smothly and you give amazing homework the teachers i know give me teribbel homework you give fun homework but when you do the homework you learn a lot not that the teachers are bad its that you are so good at teaching and you dont act like a robat like you are not serious you make joke you laugh you are like fun i would pay you like 100 dollar to teach me not that i am rich if i had the money i would support your patreon love from mexico and turkey i am from both side

  • @ctlancearrowlarson8237
    @ctlancearrowlarson8237 ปีที่แล้ว +1

    Made a screen archery target, 5 rings. Made 3 items changeable, R,cColor,cThick. Identified as 1 to 5. As for HW, I fold easy. To much to remember, but will try to improve.

  • @danrichardson3203
    @danrichardson3203 ปีที่แล้ว +1

    Thank you. Your efforts are appreciated. There are no silly cat videos. 😁

  • @manfredgallei4194
    @manfredgallei4194 10 หลายเดือนก่อน

    I have solved it. I let the circle bouncing! I'm not sure if it's the best solution, but it works. I described 5 variables (Hcounter, Wcounter Hdirectin, Wdirection and speed). I wrote in the loop Hcounter=Hcounter+(Hdirection). And then I made 4 "if" statements
    1. if Hcounter>719
    Hdirection=speed 2. if Hcounter

  • @ericvaish8841
    @ericvaish8841 3 หลายเดือนก่อน

    Paul, you are a Legend!!!

  • @scottwait3585
    @scottwait3585 ปีที่แล้ว +1

    Thanks Paul!

  • @louisdirect
    @louisdirect ปีที่แล้ว +1

    Caught you live near the end and just watched the beginning. Love all the work you put in this. I noticed you have two rColor parameter on lines 22 and 25 what makes your black rectangle yellow.

    • @keithlohmeyer
      @keithlohmeyer ปีที่แล้ว

      Looks like Paul just assigned the variable a second time. The last assignment (0,255,255) is the one used and it creates yellow in the(B,G,R) scheme that open CV uses.

  • @ramin580
    @ramin580 ปีที่แล้ว

    This guys like the bob ross of tutorials for Raspberry Pi coding

  • @stephenlightkep1621
    @stephenlightkep1621 ปีที่แล้ว

    Thanks Paul. My brain cell is coming alive!

  • @gooberminther3tik25
    @gooberminther3tik25 ปีที่แล้ว

    Thank you for your Raspberry Pi Tutorials
    Looking for the next step past cv2.destroyAllWindows(). That is saving a video to file.

  • @tntragan
    @tntragan ปีที่แล้ว +3

    Here's my solution to the assignment. I made a bouncing ball instead. Admittedly, I probably would not have solved this had I not taken some of your visual python classes. Your different tutorial series are really tying together nicely. I haven't finished the vpython yet, but now that I'm caught up on the pi lessons I might "bounce" over there and get caught up on those lessons. I also just started your artificial intelligence with the web cam. Hard to decide which one to go to next. All really good stuff.
    Link
    th-cam.com/video/JAHcQGf095I/w-d-xo.html

    • @charlotteswift
      @charlotteswift ปีที่แล้ว

      Hope you don't mind me saying, but you aren't actually bouncing off the edge - you're just going into reverse if you're going to go over the edge which isn't the same thing. (unless you're only going at a speed of 1)

  • @WilliamBurlingame
    @WilliamBurlingame ปีที่แล้ว +2

    My Lesson 47 Homework: th-cam.com/video/xvwQjy6cLZs/w-d-xo.html

  • @林姵煊
    @林姵煊 ปีที่แล้ว

    I heve a problem that my picamera's screen is upsidedown. And I try some solution on the internet but it didn't work. Liike add "camera_raspi_fliph=1"and "canera_raspi_filpv=1"in the config.txt. Whart should I do to slove the problem?

  • @keithlohmeyer
    @keithlohmeyer ปีที่แล้ว +2

    Homework complete th-cam.com/video/bmk0SIBIg0k/w-d-xo.html
    I step it up a notch at the end of the video. Thanks Paul for all you do.

    • @paulmcwhorter
      @paulmcwhorter  ปีที่แล้ว +1

      Nice taking it to the next level! Well done.

    • @tntragan
      @tntragan ปีที่แล้ว +1

      That was a great twist. I'd say it should garner some extra credit for sure.

  • @arlo4051
    @arlo4051 ปีที่แล้ว +1

    Homework done with a twist. th-cam.com/video/hB9S9_5wOU4/w-d-xo.html

  • @Greensprings1
    @Greensprings1 ปีที่แล้ว +1

    … can you comment on the Chinese spy balloon over Montana?

    • @ctlancearrowlarson8237
      @ctlancearrowlarson8237 ปีที่แล้ว

      There's a Texas H.S. that is very knowledgeable in this area, especially high altitude balloons. I like the capture, possibility of the balloon. A Raspberry Pi maybe a stowaway, keep him safe!

    • @ctlancearrowlarson8237
      @ctlancearrowlarson8237 ปีที่แล้ว

      Sorry Paul for this reply. I was trying to be funny, but am not good at it. The subject matter is to serious to joke about. It's best if I limit my comments to your class material. It probably would be best to remove my reply, if possible. It's a joy to follow any of your lessons. So much fun!

  • @michaelschweizer2115
    @michaelschweizer2115 ปีที่แล้ว +2

    My homework for this lesson:
    th-cam.com/video/si4pN1mNrgE/w-d-xo.html
    I was trying to make something like a simple Pong game.

  • @jameslewellen150
    @jameslewellen150 ปีที่แล้ว +2

    Here is the homework llink th-cam.com/video/D2k16kqbAj0/w-d-xo.html. This was a very difficult one for me.

  • @DrDave327
    @DrDave327 ปีที่แล้ว +2

    Another great exercise, Paul!! Here is my solution to the homework assignment:
    th-cam.com/video/-OujECR2wVg/w-d-xo.html

    • @paulmcwhorter
      @paulmcwhorter  ปีที่แล้ว

      Am I mistaken, or is this the first time we got to see what you look like? Always neat to see people's faces. Well done

  • @hammadahmed3409
    @hammadahmed3409 9 หลายเดือนก่อน

    Homework bouncing box th-cam.com/video/cC8zY0PvWME/w-d-xo.htmlsi=83hOlF8kII8oUNbC