Projects / Ideas / Pan-tilt camera that tracks a face

Pan-tilt camera that tracks a face

AdvancedEdge AIIdeaReviewed
In short

How do you build a pan-tilt camera that tracks a face?

The Raspberry Pi AI Camera runs a detection model on its own chip, and two servos turn it to keep a face or object centred. You need Raspberry Pi 5, Raspberry Pi 27 W USB-C power supply, SanDisk microSD card 32 GB (A1, Class 10), Raspberry Pi AI Camera, Servo pan-tilt bracket (SG90), SG90 Micro Servo × 2 and PCA9685 16-channel servo driver.

Level
Advanced
Time
About 300 min
Parts
7
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal

Use on-sensor AI detections and a P controller to steer pan and tilt.

Parts list

How to build it

  1. Install the IMX500 firmware and examples
  2. Run an object detection network on the camera
  3. Read the box centre of the chosen class
  4. Move the servos a little towards the centre every frame
  5. Stop moving when it is centred within a margin

Related projects

Common questions

What parts do I need for the pan-tilt camera that tracks a face?

Raspberry Pi 5, Raspberry Pi 27 W USB-C power supply, SanDisk microSD card 32 GB (A1, Class 10), Raspberry Pi AI Camera, Servo pan-tilt bracket (SG90), SG90 Micro Servo × 2 and PCA9685 16-channel servo driver.

How long does the pan-tilt camera that tracks a face take to build?

About 300 minutes for a advanced maker.