TINKER PiEDESIGN IN INDIA
Basic

Image ClassificationTeach the AI three things with a few pictures each, then let it guess.

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

  • Classes and examples
  • Training in seconds
  • Prediction with confidence

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
  • Three small objects, for example a pen and a cup

Steps

  1. Type the program from the Code guide, then press Run. Name the three classes (for example Pen, Cup, Nothing).
  2. Hold each object up and press its Add pictures button (about 20 each).
  3. Press Train. Then show the objects and watch the bars.

How it works

The AI is a small neural network. During training it looks at your examples again and again and changes its numbers until it can tell the classes apart. More and more varied pictures make it smarter. For a full lab with charts and deployment, open Model Studio.

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.
Classes
["Pen", "Cup", "Nothing"] are the three things the AI will learn.
Training
Use the panel: add pictures for every class, then press Train.
Prediction
guess.label is the class, guess.score how sure the AI is (0 to 1).

Expected output

Confidence bars for each class that follow what you show.

Challenges

  • What happens with only 3 pictures per class?
  • Add a "Nothing" class. Why does it help?
  • Train it to tell two similar objects apart.

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