Raspberry Pi LESSON 48: Creating A Bouncing Box Overlay in OpenCV

preview_player
Показать описание
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)

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 how to create a bouncing box overlay using openCV.

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:

If you guys are interested in the oscilloscope I am using, you can pick one up here (affiliate link):

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:

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:

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.

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:

#bullseye
#opencv
#raspberrypi
Рекомендации по теме
Комментарии
Автор

Thanks for another great Pi lesson Paul!

cbrombaugh
Автор

if you go to raspberry leson 5 homework you can see a ant on the breadbord i am suprised that you didnt see it i saw it and i wasnt even looking at the breadbord its in first 37 minuts of the video much love you are great

alldaypancakes
Автор

It was interesting, but I hate python with a passsion and much prefer C++ modular programming. I watched because you have a great presentation style.

TheTimeProphet
Автор

My video has an added feature. In the lower left corner it displays: (X=xxxx Y=xxx) ~ Rxxx Gxxx Bxxx, where ever I point the mouse on the frame. Why?

timefactortheoryofgravitya
Автор

I am legend. Unfortunately, I don't have recording equipment so cannot post my solution as suggested. Doesn't make sense to me to post code here either. Anyway, I was able to get the box bouncing as well as the circle from the previous lesson. My solution was slightly different because I used a multiplier in the main code and then multiply it by -1 in the if statements to change direction. The circle was slightly easier because the edge is r away from the center in all directions. In any event, I enjoy all your content. Keep up the good fight. Rob

RobWood-cfct
Автор

Another great lesson. I am working on your artificial intelligence series and it is really meshing nicely with this series. Thanks to that and the lessons on visual python, I was able to complete this lesson.

tntragan
Автор

Really enjoying the class! I was able to solve the homework - very similar to your solution. I tried moving this to the new Bookworm OS but was not successful. Apparently openCV installs differently in Bookworm so I was defeated at square one!

DavidConner-yzud
Автор

Great Explanation! I got the HW and worked it out on paper first but my drawing wasn't near as nice as yours. You are the man, sir!

LorenBurdette
Автор

I am Legend! (Didn't post the homework on Youtube but I managed to complete it!)

JuliaDaser
Автор

Just thought I'd say a small thing about taking class notes. What works best for me are 5"X8"(12.7cmX20.32cm) ruled index cards. Sometimes Daiso Japan Stores carry these clear plastic boxes (6"X9"-1"deep), where I store the cards. I know notes can be taken on a computer, but I like paper.

ctlancearrowlarson
Автор

Dear Paul, thank you very much for your great work! Now, whats about speech recognition with the jetson nano or xavier? Could this possible? Thanks again very much❤

ramonestana
Автор

Brilliant Lesson, absolutely make sense working it out on paper first. Unfortunately I failed to come up up with a working solution, but I will get better!. Thanks for your hard work.

daveCotterill
Автор

Folded like a cheap Chinese chair. I solved the methodology but over-thought the tuple. I thought that tuples cannot be changed so did all kinds of crazy things to change tuple. Got a headache and gave it up.
I love watching your river background. God is a magnificent artist.

richhoneyford
Автор

I've been a BAD student!!! I'm now on my third series with TTB, and I absolutely love your teaching style, and I learn a heck of a lot. I do each homework in advance, and attempt to enhance it beyond what is requested. However, I simply fail to routinely post, or even mark the video as a LIKE. Even though they are very deserving of the acknowledgement. Thanks for all your effort.

wilsonlittle
Автор

Very interesting lesson & always awesome.. Being an Engineers it's a great achievement to get u in YouTube. Thank u sir from India..

pralaymajumdar
Автор

very nice. In a programming class you always make your flow chart and write the code on paper before touching the computer. This way the plan is understood first. 😎 Thank you so much.
The engineers on the factory floor have to have a working upgrade program before they shut the assembly line down on the weekend so it will work Monday morning.

qzorn
Автор

Will be following your excellent work, I have a few Raspberry Pi's in the house as NAS and honeypots, I started back in the day with a sinclair zx80 and courses in Fortran

daviddun
Автор

Thanks for great lesson! Several trial and errors hours but got it accomplished. No pain no gain!

markbooco
Автор

Great series of lessons it is amazing all the things we can learn on this classes Thank You Paul, for your hard work... Blessing ....

arguedas
Автор

Very thoroughly explained, thank you.

kau_norw