Skip to content

Computer vision

Published:

How does a computer see an image?

To a computer, an image is an array of numeric pixel values. The Microsoft Learn example shows a 7x7 greyscale image as a table of seven rows and seven columns, each pixel holding a value between 0 (black) and 255 (white) [2]. Most colour images have three such layers, called channels, for red, green and blue [2].

Classic image processing slides a small filter kernel across that array and computes a weighted sum for each patch. The 3x3 Laplace filter in the example uses this to highlight the edges of objects [2]. The technique is known as convolutional filtering.

How do computer vision systems learn?

Modern systems are trained on large labelled image datasets. Machine learning algorithms find the common patterns in those images, and the trained model then recognises elements in new ones [1]. AWS names two common model types. Convolutional neural networks (CNNs) pick up outlines and textures first and finer detail later, while vision transformers (ViTs) look at the whole image at once [1].

What is computer vision used for?

The core tasks differ. Image classification gives a whole image one label, such as "forest" or "urban". Object detection finds specific items within an image, for example counting parts on a conveyor belt. Segmentation classifies individual pixels to trace an object's exact outline [1].

Self-driving cars use computer vision to pick out road users, signs, pedestrians and obstacles from camera images in real time [1]. In healthcare, tumour detection and automatic analysis of X-rays are among the established applications [1].

Frequently asked questions

Is computer vision the same as image processing?

No. Image processing transforms pixels; computer vision aims to extract meaning and often uses image processing as one step.

What models are used in computer vision?

Convolutional neural networks and vision transformers are the two common families.

Sources

  1. What Is Computer Vision? — AWS
  2. Images and image processing — Microsoft Learn