TINKER PiEDESIGN IN INDIA
Basic

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

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

  • Hand landmarks (21 points per hand)
  • Turning points into rules
  • Testing an AI fairly

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, then press Run.
  2. Hold one hand up, palm towards the camera.
  3. Open and close your fingers. The big number follows you.
  4. Use two hands to count up to 10.

How it works

The hand AI finds 21 points on each hand: the wrist, every knuckle and every fingertip. A finger is "open" when its tip is further from the wrist than its middle joint. The thumb is checked against the palm. Count the open fingers and you have the number.

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.
Keyword argument
max_hands=2 sets an option by name.
Number
result.fingers is a whole number from 0 to 10.

Expected output

The number of raised fingers, per hand and in total, with the hand skeleton drawn on the picture.

Challenges

  • Show 7 with two hands.
  • Does it work with the back of your hand?
  • Which number is the hardest for the AI? Why?

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
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