TINKER PiEDESIGN IN INDIA
Basic

Face RecognitionTeach the AI your name, then it says who is in front of the camera.

You write a short TinkerPie Python program by following the Code guide in the workspace, then press Run. The sample program and step-by-step guide are always there to help.

What you will learn

  • Detection vs recognition
  • Saving a face "signature"
  • Matching with a distance threshold

What you need

  • TinkerPie AI Cube (ESP32-S3 N16R8 + camera) and a USB-C data cable, or
  • Virtual Cube: any laptop, tablet or phone camera

Steps

  1. Type the program from the Code guide, press Run and look at the camera.
  2. Type your name and press Remember face. Turn your head a little while it learns.
  3. Repeat for a friend.
  4. Now each face gets a name tag. Unknown faces say "Unknown".

How it works

First the AI finds the face, then it measures its shape: where the eyes, nose, mouth and chin are compared with each other. These numbers are the face signature. A new face is compared with the saved signatures; if it is close enough, the name is shown. The faces you teach stay in this browser only.

Coding concepts

Library
A box of ready-made commands. "import tinkerpie as tp" gives you the AI commands.
Object
A thing with its own commands, like camera or detector. You use them with a dot: camera.start()
Loop
"while True:" repeats the indented lines again and again, once per camera picture.
if / else
Choose what to do: if nobody is in view show "No one", else show the names.
List
people.names is a list of names, one for each face.

This is a simple learning version that uses face shape. It is for experiments in class, not for security or attendance records.

Expected output

Your name above your face. A person you have not taught is shown as Unknown.

Challenges

  • Make the match stricter with the slider. What changes?
  • Does it still know you with glasses?
  • Teach three people and test them one by one.

More Basic projects

Basic10 minComputer Vision, Object Detection

Face Detection

Find every face in the camera picture and draw a box around it.

  • What a "detector" is
  • Bounding boxes and confidence
  • Why light matters for AI
Hardware: AI Cube or any webcamAI Cube: on the AI Cube chip · Virtual Cube: laptop or phone camera
Basic10 minComputer Vision, Gesture Recognition

Finger Counting

Show your hands and the AI counts your fingers, from 0 to 10.

  • Hand landmarks (21 points per hand)
  • Turning points into rules
  • Testing an AI fairly
Hardware: AI Cube or any webcamAI Cube: in the browser, AI Cube camera · Virtual Cube: laptop or phone camera