TINKER PiEDESIGN IN INDIA
Basic

AI Camera LabSee the picture the way a computer does: grayscale, edges, black and white, colour histogram.

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

  • Pixels and channels
  • Filters and edges
  • Histograms

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. Pick a filter: Grayscale, Edges, Black & white...
  3. Move the slider for Black & white and watch the histogram.

How it works

Many AI systems prepare pictures before they think: they remove colour, blur noise away or find edges. Edges are where the brightness changes quickly, found with a small 3 x 3 grid of numbers called a kernel (the Sobel filter).

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.
Filter
tp.filter(frame, "gray") makes a new picture. Try "gray", "edges", "threshold", "blur", "invert", "sepia" and "cartoon".
Histogram
A bar chart of how many pixels have each brightness.

Expected output

The live picture with the chosen filter and a red, green and blue histogram.

Challenges

  • Which filter shows your face outline best?
  • Find a threshold where text on paper is easiest to read.
  • Point the camera at a lamp and look at the histogram.

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