Raspberry Pi LESSON 54: Tracking An Object of Interest in OpenCV Using Contours

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 today's lesson I show how you can track an object of interest based on color in OpenCV on the Raspberry Pi. We track based on color, and train using the trackbars in OpenCV. We then explain the contour command in openCV which allows you to find the Object of Interest, draw a contour around it, or box it with a rectangle.

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:

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

I want to give a shoutout to this amazing guy - he's a true legend! I've been taking his Arduino classes, and I'm blown away by the incredible level of detail he puts into every lesson. Even though I'm an experienced programmer with a degree in mathematics and an associates's in mechatronics, I manage to learn something new from pretty much all of his teachings.

Paul, I just want to say thank you! I really appreciate your hard work and dedication to teaching others. I'll definitely be supporting your channel very soon.

Greetings all the way from Brazil.

RateOfChange
Автор

It's crazy this video only got a hundred likes. There's no one else that has anything nearly as in depth as these lessons.

MustardNurse
Автор

Thank you so so much for your work

20 y.o. Software Dev here, currently making a living off of it

Had to drop from an electronics / robotics school course back in high school because the teacher stated that I "just didn't have it", so I just stuck with Informatics since
I'm currently following your Arduino beginner lessons and I have to say I absolutely follow with no issues, even the homework part, always asking myself new questions and finding an answer one way or the other

Thank you so so much for being around, doing what counts. Wish you the best!

skye.palace
Автор

I’m enjoying it very much. You really have a talent of emparting your knowledge to the next generation of tinkerers

FirstHandExplore
Автор

Let nobody stop you doing ur passion, keep going boss 👍

legendofallpro
Автор

Hi Paul, not ready for RP just yet but just wanted to let you know that your lessons have helped me very much in learning the arduino and how to control motors. Keep up the most excellent work. I’ll keep holding my breath and try not to put constants in the loop void 😊

FairweatherVR
Автор

Thanks Paul. That was pretty cool. Now that I am putting my pi on a separate monitor and key board things are coming together.

stephenlightkep
Автор

Nice review for those that took your AI for everyone classes. I am not sure how much further I will be able to follow as my Pi 3 is really bogging down. Thanks Paul for all you do.

keithlohmeyer
Автор

Sir how to track any other small objects like drone using raspberry Pi and opencv

coolraj
welcome to shbcf.ru