← Back to course
AI Explorers 6-8 / Week 03 / Wednesday
3/6
Week 03 Β· Encoding the World

Wednesday

Explorer Lab: Snapshot by numbers
// Pixels, color values and feature tables
⏱ about 20 min

Wednesday: Explorer Lab: Snapshot by Numbers

A message arrives from the far side of the station, where the screens are down for repairs.

"Can you send us a piece of today's best snapshot?" the engineers ask. "We only have pencils and graph paper."

Rocket groans. "How do you send a picture with no screen?"

Raven is already writing a grid of numbers. "We send the brightness values. They shade the squares and rebuild it."

Nova hovers over her shoulder. "Then the picture travels as data," she says. "Just as it does inside any computer."

Rocket grabs a pencil. "I want to try decoding one first."

Your mission

You will decode a snapshot from brightness values, then encode a snapshot of your own.

Then you will measure three features from your grid. Those features will feed Sky Sorter next.

  • Graph paper, or a ruler and plain paper
  • A soft pencil for shading
  • An eraser
  • A partner to swap values with (optional)
Safety first
Use only paper and pencils.
Shade gently so you do not tear the paper.
  1. Draw a 5 by 5 grid of squares, each about the width of your thumb. Each square stands for one pixel.
  2. Copy the values from the comet crop table below, one value per square.
  3. Shade each square: 0 to 50 stays blank, 51 to 150 gets light shading, and 151 to 255 gets dark shading.
  4. Step back. Can you see the comet's bright head and fading tail?
  5. Now draw a second 5 by 5 grid. Draw a star, planet or satellite streak on it.
  6. Write a brightness value from 0 to 255 in every square of your drawing.
  7. Swap values with a partner, without the drawing, and see if they can rebuild your snapshot.

On paper, darker shading stands for a brighter pixel, so the comet shows up clearly against white paper.

A real snapshot card is a much bigger grid. This 5 by 5 grid is a zoomed-in crop around the comet's head, so most of the tail runs off its edge.

Comet cropCol 1Col 2Col 3Col 4Col 5
Row 100000
Row 200060180
Row 33060120200255
Row 400060180
Row 500000
PREDICT BEFORE YOU SHADE
  • Read the question.
  • Tap your answer.
Which side of the grid do you predict the comet's bright head will be on?

Measure three features

A feature is one measured property of a snapshot. Sky Sorter will use three.

Brightness: the value of the brightest pixel, from 0 to 255.

Size: how many pixels wide the object is. Count the pixels of 100 or more across its widest row.

Today you measure only the crop. On the full card, the comet's glow and tail make it much wider.

Streak: yes if bright pixels make a straight line all the way across the grid, and no if not.

Comet crop brightness: what is the brightest pixel's value?
Comet crop size: how many pixels wide is the bright part of the crop?
Comet crop streak: type yes or no.
What the lab showsTrue or false?
A picture can travel as numbers and be rebuilt on paper.?
The comet crop has a streak.?
Brightness, size and streak are three features of a snapshot.?
Two different people can rebuild the same picture from the same values.?
WHY THIS EXERCISEAn encoding works when anyone who knows the rules can decode it the same way.

Great lab work. Tomorrow you will build Sky Sorter's first feature table.

← Tuesday