TINKER PiEDESIGN IN INDIA
Intermediate

Object Counter & ZonesCount chosen objects, draw a zone and get an alert when something enters 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

  • Filtering detections
  • Regions of interest
  • Events from AI results

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
  • A few bottles, cups or friends to count

Steps

  1. Type the program from the Code guide, press Run and pick what to count (for example bottle or person).
  2. Drag on the picture to draw a zone.
  3. Objects inside the zone turn red and the alert counter goes up.

How it works

AI results are just data: label, score and box. With a little logic you can build useful systems, for example "alert when a person enters this area" or "count bottles on the shelf". The centre of each box decides whether it is inside the zone.

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.
Filtering
objects.only("person") keeps just one kind of object.
Zone
Drag on the picture to draw a zone. zone.count() counts the objects whose centre is inside.

Expected output

Counts for the chosen object, in total and inside the zone, with alerts.

Challenges

  • Count the bottles on a table.
  • Make a "keep out" zone for your desk.
  • Log every time the count changes.

More Intermediate projects

Intermediate20 minGesture Recognition, Image Classification

Hand Sign Recognition

Create your own hand signs, record examples and train a classifier on the hand points.

  • Features instead of pixels
  • Nearest-neighbour classifiers
  • Accuracy testing
Hardware: AI Cube or any webcamAI Cube: in the browser, AI Cube camera · Virtual Cube: laptop or phone camera
Intermediate30 minImage Classification, Computer Vision

Waste Classification

Build a model that sorts plastic, paper, metal and food waste, then put it on the AI Cube.

  • Collecting a balanced dataset
  • Training and validation
  • Confusion matrix
Hardware: AI Cube (for deployment) or any webcamAI Cube: on the AI Cube chip · Virtual Cube: laptop or phone camera
Intermediate20 minCamera AI, Computer Vision

Image Processing Pipeline

Chain filters like an OpenCV pipeline and see each step: grayscale, blur, threshold, edges.

  • Pre-processing for AI
  • Kernels and convolution
  • Thresholding
Hardware: AI Cube or any webcamAI Cube: in the browser, AI Cube camera · Virtual Cube: laptop or phone camera