How can a neural network recognize a face without flattening an image into a featureless list of pixels? A convolutional neural network (CNN) preserves local structure by moving a small window, such as 5-by-5 or 7-by-7 pixels, across a larger image and applying a convolution at each position. This helps learn localized and hierarchical patterns in complicated images. section 10.5
Use CNNs for image tasks such as:
- Image recognition, where an image produces a label. section 10.5
- Semantic segmentation, where an image produces labels and bounded locations for detected objects. section 10.5
- More complicated pictures and faces, where flattening an image loses important information. section 10.5
Datasets to try
MNIST contains 28-by-28 grayscale handwritten digits; CIFAR-10 contains 32-by-32 color images with ten labels; CIFAR-100 uses similar images with one hundred labels. section 10.5

















