Chapter 19 | When Machines Learn to See

Three experiments with synthetic pixels and invented scores. No camera, uploads, accounts or network access.

1. Find the edges

Click a pixel to cycle its brightness. Change the threshold and compare the result.

Detected edges (1 = yes)

2. Read a tiny digit

Draw in the 5 by 3 grid. The nearest template wins only if it is unique and differs by no more than two bits.

3. Review matching errors

These are eight invented scores, not biometric measurements. Raising the threshold makes acceptance harder.

Read the JavaScript

Copy and modify the functions in your own JavaScript console. The experiments use the same functions as the book.

Return to the companion index