Moving forward we will now want to move the camera (pan/tilt) in response to the movement of the object of interest. I do this using the Sunfounder pan/tilt hat. You can order the hat I am using at this affiliate amazon link:
https://amzn.to/3JWH7vp
If you are able, I suggest you consider getting some spare servos for the pan tilt hat. During development if you are not careful, it is possible to damage a servo by crashing the camera into something. I like to keep a couple spares on hand:
https://amzn.to/3E1KZaN
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)
https://amzn.to/3tSk9Mo
or for our UK friends, https://amzn.to/3I5d401
In today's video I will show you how to find and track faces and eyes in openCV on the Raspberry Pi using Haar Cascades. I show how to find, track, and box the face and then the eyes. Then we also activate the pan/tilt hat, and point the camera to keep the FOI (Face of Interest) in the center of the frame.
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:
https://amzn.to/36NyfHq
If you guys are interested in the oscilloscope I am using, you can pick one up here (affiliate link):
https://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:
https://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:
https://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.
https://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
#pantilt
#opencv
#raspberrypi
Смотрите видео Raspberry Pi LESSON 62: Track Faces in OpenCV with a Pan/Tilt Camera онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Paul McWhorter 01 Январь 1970, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 4,731 раз и оно понравилось 156 людям.