Everything is Numbers
An image, to a computer, is just a grid of numbers. Once you see that, AI stops being magic.
AI doesn't see images, hear sounds, or read words. It only ever sees numbers. Once that clicks, the magic turns into something you can actually reason about.
A screen is a grid of tiny squares called pixels. Each pixel is just a brightness value — a number. A black-and-white image is therefore nothing more than a grid of numbers, where 0 means “no ink” and 255 means “full ink.” Draw something below, then flip from Picture to Numbers and meet the image the way a computer does.
Pixel Inspector
Draw with your mouse, then switch the view
What the computer actually stores — one long list of 144 numbers:
View
Tool
Resolution
34 of 144 cells have ink
Stamp a shape
Hit the 7 stamp, then toggle to Numbers. The shape you recognise instantly becomes a grid of values — and the long list underneath is literally what gets fed into a model. Now bump the resolution up and down: more pixels means more numbers, means more detail the AI can pick up on.
From a grid to a list
Look at the row of numbers beneath the canvas. The model doesn't even keep the square shape — it flattens the whole grid into one long line of numbers, reading left to right, top to bottom. A 28×28 handwriting image (the classic teaching dataset) becomes a list of 784 numbers. That list isthe input. Lesson 1's dots had two numbers each (an x and a y); a digit just has 784 of them.
Everything an AI works with is turned into numbers first. Images become grids of pixel values, and those grids become lists. Sound becomes a list of air-pressure samples. Even words become numbers — a trick so important it gets its own chapter later.
Colour works the same way, just three times over: each pixel gets a Red, Green and Blue value. Mix those three numbers and you can make any colour on screen. So a colour photo is three stacked grids of numbers — but the principle never changes.
This is why AI is “just maths.” Once a cat photo is a list of numbers, finding cats becomes finding a pattern in numbers — and finding patterns in numbers is something we can teach a machine to do. That hunt for the pattern is exactly where we're headed next.
Feel like you get it?
Continue to “Patterns & Prediction” →