Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Face Tracking for the Adafruit Mini Pan Tilt kit and Raspberry Pi camera

Notifications You must be signed in to change notification settings

pimoroni/PanTiltFacetracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mini Pan-Tilt Face Tracker

You will need:

  • Pimoroni Pan/Tilt HAT Kit
  • A Pi Camera

The 15cm ribbon cable supplied with the Pi Camera should be long enough if you're mounting the Pan/Tilt HAT on the Pi. If you're using a Black HAT Hack3r you may need 30cm.

To enable the camera using raspi-config non-interactive mode:

sudo raspi-config nonint do_camera 0

You will also need to make sure your Pi is up-to-date and install OpenCV for Python:

sudo apt-get install python-opencv python3-opencv opencv-data

To install the pantilthat library, run:

curl https://get.pimoroni.com/pantilthat | bash

Finally, to run this example, run:

./facetracker_lbp.py

Note

You can use an Arduino to drive the servos, or drive them directly off your Pi, but I found PanTilt HAT to be the most stable, reliable and satisfying method and thus this code is written with it in mind.

About

Face Tracking for the Adafruit Mini Pan Tilt kit and Raspberry Pi camera

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages