Skip to content
AI Ready · aiready.sg
Menu

Part 2 · How AI Actually Works

Computer Vision: How Machines See

4 minawareLesson 21 of 33Self-check inside
Computer Vision: How Machines See · narrated video

Your phone unlocks the moment it sees your face. On a production line, a camera catches a hairline crack a tired inspector would miss late in a shift. Two very different tasks, yet the machine doing them has no idea what a face or a crack is. So how does it 'see' anything at all?

Why This Matters

Computer vision already runs in your phone, your car park barrier, and the scans your doctor reads, yet most people cannot say how a machine turns a picture into a decision, or when that decision should be trusted. Understanding the mechanism is what lets you use these tools with judgement, not blind faith. By the end you will be able to describe how a computer represents and processes an image, explain how a vision model learns to recognise objects, and identify where computer vision could fit in your own industry.

How a Machine Sees

A classifier learns from thousands of labelled examples, as you saw in the classification lesson. Vision applies that same supervised learning to pixels, and that is the twist: before a model finds any pattern, the picture itself must first become numbers.

Start with the pixel. Every digital image is a grid of tiny squares, and each square holds a number for its brightness: zero for black, up to two hundred and fifty-five for white. Colour adds three numbers per pixel: red, green, and blue. So a photo is really a large table of numbers, and that is all the computer ever sees: patterns.

How does it reach meaning? A vision model works in layers. The first finds the simplest patterns, edges and corners. The next joins edges into shapes. Deeper layers build shapes into parts, then whole objects: a wheel, a face, a defect. Simple builds to complex.

It learns by example. Show it thousands of labelled images and it adjusts until it can tell them apart on pictures it has never seen. On one electronics line, this is how a camera inspects circuit boards more consistently than a tired inspector late in a shift, though it only knows the defects it was trained on. It will pass a fault it has never seen.

From pixels to recognition: three steps inside a vision model
  • Pixels: an image becomes a grid of numbers: brightness, plus red, green, and blue.
  • Layers: simple patterns build up: edges to shapes, shapes to whole objects.
  • Learning: trained on labelled examples, so it only recognises what it has seen before.

Key Takeaway

A vision model matches number patterns it was trained on; it does not understand the scene. Its value and its risk both live in what it was never shown.

Check your understanding

Self-check only. Nothing is scored and nothing is recorded; open an answer to compare it with your own.

  1. Your company wants to use computer vision to automatically check that packages on a conveyor belt have the correct shipping label. The camera is mounted directly above the belt with consistent lighting. A colleague asks: 'Will this work?' Based on what you learned, which response is most accurate?

    • No, computer vision only works for faces and food.
    • Yes, this is a strong use case, consistent camera angle, controlled lighting, and clearly defined visual targets (labels) make it reliable. The model would need training images of correctly and incorrectly labelled packages.
    • Yes, but only if the system uses at least 10 cameras from different angles.
    • Yes, but only if the packages are stopped and photographed by hand each time.
    Show the answer

    Yes, this is a strong use case, consistent camera angle, controlled lighting, and clearly defined visual targets (labels) make it reliable. The model would need training images of correctly and incorrectly labelled packages.

  2. A retail manager says: 'Our self-checkout camera sometimes misidentifies a green apple as a lime. That means computer vision is unreliable.' Based on what you learned about how CV models process images, what is a more accurate assessment?

    • The manager is right, if it cannot tell an apple from a lime, the technology is not ready.
    • The model likely struggles because green apples and limes share similar pixel patterns, similar colour, round shape, similar size. The fix is more training data that shows the subtle differences (texture, stem, size range) under the specific lighting of that store.
    • Computer vision should not be used for produce, it only works for manufactured products with consistent shapes.
    • The camera needs to be upgraded to a more expensive model.
    Show the answer

    The model likely struggles because green apples and limes share similar pixel patterns, similar colour, round shape, similar size. The fix is more training data that shows the subtle differences (texture, stem, size range) under the specific lighting of that store.

Saved in this browser only. Carry progress between devices with the resume link on the course page.