TINKER PiEDESIGN IN INDIA
Intermediate

AR Magic HandsMake stars appear on your hands, and hearts when you show a thumbs up.

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

  • Stickers on hands
  • Gestures that change AR
  • Counting hands

What you need

  • A laptop, tablet or phone with a camera (Virtual Cube)

Steps

  1. Type the program from the Code guide, then press Run.
  2. Show your hands: stars appear.
  3. Thumbs up turns them into hearts.

How it works

Stickers work on hands too: each hand box gets a sticker. The gesture decides which one.

Coding concepts

Loop
"while True:" repeats the indented lines once per camera picture.
Sticker on hands
tp.sticker works with hand results too.

Expected output

Stars on every hand; hearts while a thumbs up is shown.

Challenges

  • Use "crown" for a peace sign.
  • Show the number of fingers as well.
  • Play a beep when hearts appear.

More AR/VR projects

Intermediate20 minAR / VR, Gesture Recognition

AR Air Drawing

Draw glowing lines in the air with your fingertip; open your hand to wipe the picture.

  • Fingertip tracking
  • Drawing with points
  • Pen up / pen down logic
Hardware: Laptop, tablet or phone cameraAI Cube: Virtual Cube only · Virtual Cube: laptop or phone camera
Intermediate20 minAR / VR

Spinning Shape Gallery

Make a row of colourful shapes and spin them for ever with a loop.

  • Lists of objects
  • for loops with range()
  • Animation with small steps
Hardware: Any device; a phone VR viewer for headset modeAI Cube: Virtual Cube only · Virtual Cube: laptop or phone camera
Intermediate20 minAR / VR

Night Forest Walk

Grow a random forest under the stars and walk through it in VR.

  • Random positions
  • Loops that build worlds
  • Exploring a scene in VR
Hardware: Any device; a phone VR viewer for headset modeAI Cube: Virtual Cube only · Virtual Cube: laptop or phone camera