TINKER PiEDESIGN IN INDIA
Basic

Person DetectionCount the people in view, like a smart classroom counter.

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

  • Detecting one class
  • Counting
  • Smart-building ideas

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. Step into the picture, then out.
  3. Watch the people counter and the "someone is here" light.

How it works

A person detector looks for human bodies, not just faces, so it works from the side and from behind. Shops and buses use the same idea to count people. On the AI Cube a special pedestrian model runs on the chip.

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.
Comparison
result.count > 0 is True when at least one person is in view.
f-string
f"{result.count} here" puts the number into the text.

Expected output

A box around each person and the number of people in view.

Challenges

  • Can it see you sitting down?
  • Make the light turn on only when 2 people are in view.
  • Record how long someone stays in view.

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