Video

AI on the Edge LESSON 40: Active Face Tracker with Pan Tilt Camera and MediaPipe



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:

https://www.patreon.com/PaulMcWhorter

Are you guys ready to learn AI? Will you be one of those that Thrives, or one that does not Survive? AI will be the biggest opportunity of the next hundred years, but at the same time many will be destroyed by it. You have already learned how to use openCV on the Raspberry Pi 5 to create live videos by grabbing and displaying frames. In today’s lesson we create an active face tracker using MediaPipe face detection model. The project will actively track the face, if the user gives the voice command “track”. With the command “release” the servos are turned off. We also have voice commands to darken the users eyes with black circles, simulating blindness.

If you feel you need more background and familiarity with Python, I have a whole python class on this channel here:

https://www.youtube.com/playlist?list=PLGs0VKk2DiYzguDvh5xk2XoX9V1VKP5Hv.

In this class you will need the following hardware:

AI Fusion Lab Kit, available here:

https://amzn.to/4cla6re

You will also need a pi 5. Get one with as much memory as you can afford, but most pi 5’s should work for the class. This is a link.
https://amzn.to/40Gek5n

You will need a heat sink and fan:
https://amzn.to/3PpaEmv

You will need a 25 watt power supply:
https://amzn.to/4c6i1YC

Micro HDMI Cable
https://amzn.to/4lPQz4V

Just about any SD card you have lying around should work, I use a 128GB card. These cards seem to be really expensive right now, so I suggest you try and find one lying around. Smaller cards should work as well. Just find something that will work for now, and stock up when prices are lower.

Any USB mouse and keyboard will work. If you want a wireless one for the pi, look at this one:
https://amzn.to/4d71jte

Guys try as best you can to use things you already have. Hopefully you have keyboard, mouse, sd card and cables and such. The links are in case you do not have the items already.

Here is the link to the special Raspberry Pi Bookworm OS that already has all the AI libraries, modules, dependencies, and device drivers needed in this class. When you flash this operating system, don’t mess with it. Everything works, so do not do an update or upgrade-all. This OS is just for this class. If you want to do other things, flash a different card. This is a link to the OS:

https://sunfounder.github.io/download/ai-fusion-lab-kit/index.html

You will also need to install the Raspberry Pi OS imager for flashing the operating system. You can get it here:

https://www.raspberrypi.com/software/

These are the assembly instructions I mention the video for the Fusion AI Lab Kit
https://docs.sunfounder.com/projects/ai-lab-kit/en/latest/quick_start/assemble_power_hat.html

[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.]
#raspberrypi
#AI
#mediapipe *LEGAL DISCLAIMER:*
The code, hardware setups, circuit diagrams, mathematical calculations, and technical methods provided in this video are strictly for educational and demonstration purposes.

All math, code, and instructional content are provided “AS IS”, without warranty of any kind, express or implied, including but not limited to guarantees of accuracy, completeness, or fitness for a specific purpose.

All hardware assembly, circuit wiring, and software execution are performed entirely at your own risk. The creator assumes no liability for equipment damage, component failure, data loss, or personal injury resulting from the use or implementation of any information or files presented in this content.

source

Authorization
*
*
Password generation