TINKER PiEDESIGN IN INDIA
Basic

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

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

  • What a "detector" is
  • Bounding boxes and confidence
  • Why light matters for AI

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. Choose AI Cube or Virtual Cube at the top.
  2. Type the program from the Code guide, then press Run.
  3. Look at the camera. A box appears around your face.
  4. Ask friends to join: the counter shows how many faces it sees.

How it works

A face detector looks at the picture in small windows and asks "is this a face?" for each one. Windows with a high score become boxes. The number next to the box is the confidence: how sure the AI is. On the AI Cube the detector runs on the ESP32-S3 chip itself.

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.
Variable
"result" stores what the AI found in this picture.
Attribute
result.count is a value inside the result: how many faces.

Expected output

A box around each face and a live face count. Turning away or covering your face makes the box disappear.

Challenges

  • How far away can you stand before the face is lost?
  • Does it still work in a darker room?
  • Can it find a face in a photo on a phone screen?

More Basic projects

Basic15 minComputer Vision, Image Classification

Face Recognition

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

  • Detection vs recognition
  • Saving a face "signature"
  • Matching with a distance threshold
Hardware: AI Cube or any webcamAI Cube: in the browser, AI Cube camera · 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