Skip to content
Cosvexa – Cosvexa home

Research · Foundations

Computer vision explained

Computer vision is the field of AI that enables computers to extract meaning from images and video: recognizing objects, locating them, outlining them, reading text and understanding scenes. Modern systems learn these skills from data with deep neural networks, first convolutional networks and now also vision transformers. Computer vision powers phone cameras, medical imaging, factory inspection, driver assistance and the image understanding of multimodal chatbots.

Cosvexa team · Published

Abstract illustration of a large glowing eye-shaped lens made of thin violet and cyan lines, through which a grid of pixels is resolved into outlined shapes on the other side.

Key points

  • To a computer an image is a grid of numbers; vision models learn to map those numbers to labels, boxes, masks or descriptions.
  • Core tasks are classification, object detection, segmentation, tracking, pose estimation, OCR and depth estimation.
  • Deep learning took over after AlexNet won the ImageNet challenge in 2012 with a 15.3% top-5 error, against 26.2% for the runner-up.
  • Vision transformers (2020) and models trained on images paired with text, such as CLIP, extended vision beyond fixed label lists.
  • Vision systems can fail under new conditions and can perform unevenly across groups of people, so testing in the real setting matters.

What computer vision is

Computer vision is the branch of artificial intelligence concerned with getting useful information out of visual data: photos, video, medical scans, satellite images, depth-sensor readings. Its goal is not to make images look better (that is closer to image processing) but to answer questions about them. What objects are in this picture? Where exactly are they? Is this weld defective? How far away is the car ahead? What does this street sign say?

The difficulty is easy to underestimate because seeing feels effortless to people. To a computer, a colour photo is just a three-dimensional array of numbers: height × width × three colour channels, each value typically between 0 and 255. A 1,000 × 1,000 photo is three million numbers. The same cat produces completely different numbers when the lighting changes, when it turns its head, when it is partly hidden behind a chair or when the camera moves a few centimetres. A vision system has to learn which patterns in those numbers stay stable across all that variation.

How computer vision works

For decades, researchers hand-designed the features a system should look for: edges, corners, gradients of brightness. Well-known examples include the Viola–Jones face detector (2001), SIFT keypoints for matching images and histograms of oriented gradients (HOG) for detecting pedestrians. A conventional classifier then made decisions from these features. These methods worked in controlled settings but struggled with the full variety of real images.

Modern computer vision learns the features instead. A convolutional neural network (CNN) slides small learned filters across the image. The first layers respond to simple patterns such as edges and colour contrasts; deeper layers combine them into textures, parts like wheels or eyes, and finally whole objects. Pooling or strided layers gradually shrink the spatial size while increasing the number of feature channels, so that the network moves from "what is at this pixel" to "what is in this region". A vision transformer instead cuts the image into patches and lets attention relate every patch to every other.

An example: finding defects on a production line

  1. 1

    Collect and label images

    A factory photographs parts on the conveyor and has inspectors draw boxes around scratches and dents on a few thousand images.

  2. 2

    Start from a pretrained backbone

    Instead of training from scratch, the team takes a network pretrained on a large general image dataset and adds a detection head, a common case of transfer learning.

  3. 3

    Train the detector

    The model learns to output, for each image, a set of boxes with a class (scratch, dent) and a confidence score. Training compares predicted boxes with the labelled ones and adjusts the weights.

  4. 4

    Evaluate with the right metric

    Detection quality is measured with intersection over union (how well a predicted box overlaps the true one) and mean average precision across classes, on images from days and lighting conditions not used in training.

  5. 5

    Deploy and monitor

    The model runs on a camera-side device, flags suspect parts for a human to check, and the team keeps collecting hard examples where it was wrong to retrain later.

The core tasks

TaskQuestion it answersTypical outputExample use
Image classificationWhat is in this image?One or more labels with probabilitiesSorting photos, detecting diseased leaves
Object detectionWhat objects are where?Bounding boxes with labelsCounting vehicles, spotting pedestrians
Semantic segmentationWhich class does each pixel belong to?A label for every pixelRoad and lane areas, land use in satellite images
Instance segmentationWhich pixels belong to each individual object?A separate mask per objectRobot picking, cell counting in microscopy
Pose estimationWhere are the joints or keypoints?Coordinates of keypointsSports analysis, physiotherapy apps
Optical character recognitionWhat text is visible?Text strings with positionsScanning receipts, reading licence plates
Depth and 3D estimationHow far away is each point?Depth map or 3D reconstructionAugmented reality, robotics
TrackingWhere does each object go over time?Object identities across video framesTraffic analysis, sports broadcasting

Generation is the mirror image of these tasks. Models that create or edit images, such as diffusion models, share many building blocks with recognition models, and today's multimodal models combine both: they can describe an image, answer questions about a chart or read a handwritten note.

Key milestones

The modern era is usually dated to 2012. A large labelled dataset, ImageNet, and its annual recognition challenge (ILSVRC) gave researchers a common, hard benchmark. That year AlexNet, a deep CNN trained on two GPUs by Krizhevsky, Sutskever and Hinton, won the challenge; its authors reported a top-5 test error of 15.3%, against 26.2% for the second-best entry. Within a few years almost the whole field had moved to deep learning.

  • 1998, LeNet. LeCun and colleagues' convolutional networks read handwritten digits and were used to process bank cheques, years before deep learning became mainstream.
  • 2012, AlexNet. Deep CNNs trained on GPUs win ImageNet by a wide margin.
  • 2015, ResNet. He and colleagues introduced residual connections that let networks grow to 152 layers on ImageNet; they reported that an ensemble reached 3.57% top-5 error on the ImageNet test set, winning ILSVRC 2015 classification. See ResNet.
  • 2015, real-time detection. Faster R-CNN made region proposals nearly free, and YOLO framed detection as a single network pass; its authors reported 45 frames per second for the base model.
  • 2020, Vision Transformer. Dosovitskiy and colleagues showed that a plain transformer on 16 × 16 pixel patches can match strong CNNs when pretrained on enough data.
  • 2021, CLIP. Training on images paired with captions let a model recognize categories described in plain language, without a fixed label list. See CLIP.
  • 2023, Segment Anything. A promptable segmentation model trained with over 1 billion masks on 11 million images, which its authors reported transfers zero-shot to many new image types.

Why it matters

Cameras are cheap and everywhere, and most of the world's information about physical things is visual. Computer vision turns that stream into data that software can act on. In medicine, many of the AI devices cleared by regulators analyse images such as X-rays, mammograms and retinal photos (see AI in healthcare). In manufacturing, vision inspects parts faster and more consistently than tired human eyes. In agriculture it spots weeds and diseased plants; in retail it powers self-checkout and shelf monitoring; in cars it underpins driver-assistance features. On phones it focuses cameras, unlocks devices and translates signs. It is also a key input for robots that have to act in the physical world.

Limits and common misconceptions

  • "Superhuman accuracy on a benchmark means superhuman vision." Benchmarks measure narrow tasks on curated images. Models can fail when the lighting, camera, country or patient population changes, a problem known as distribution shift.
  • Shortcut learning. A model may latch onto clues that correlate with the label in training data, such as a hospital's scanner marking or a snowy background behind wolves, rather than on the object itself.
  • Uneven performance across people. Buolamwini and Gebru (2018) evaluated three commercial gender-classification systems and reported error rates of up to 34.7% for darker-skinned women, against a maximum of 0.8% for lighter-skinned men. Testing across the groups a system will actually serve is essential; see bias and fairness.
  • Adversarial fragility. Small, carefully crafted changes to an image, invisible to people, can make a network misclassify it with high confidence.
  • Privacy. Face recognition and tracking raise serious privacy and civil-liberty questions, and some uses are restricted or banned by law, for example certain practices under the EU AI Act.
  • "The model understands the scene." A detector that draws a box around a person has learned a statistical mapping, not an understanding of who the person is or what they intend. Reasoning about a scene remains much harder than labelling it.

Where it is going

Three shifts are visible. First, vision is merging with language: models trained on image–text pairs can recognize open-ended categories, follow instructions about images and answer questions in natural language, which reduces the need for task-specific label sets. Second, vision models are becoming general foundation models that can be prompted for new tasks, as Segment Anything showed for segmentation. Third, the field is moving from flat images to video, 3D and action: understanding how scenes change over time, reconstructing 3D environments, and giving robots and vehicles the perception they need to act safely.

The engineering lessons stay the same: define the task precisely, collect data from the conditions where the system will run, measure with the right metric on truly held-out data, and keep a human in the loop where errors are costly.

Frequently asked questions

What is computer vision in simple terms?

It is the part of AI that lets computers understand images and video, for example recognizing a face, reading a number plate or finding a tumour on a scan. The computer learns these skills from many example images rather than being programmed rule by rule.

What is the difference between image classification, object detection and segmentation?

Classification gives a label for the whole image. Detection finds each object and draws a box around it. Segmentation goes further and labels individual pixels, either by class (semantic segmentation) or by individual object (instance segmentation).

Is computer vision the same as image processing?

No. Image processing transforms images, for example by sharpening, resizing or removing noise. Computer vision interprets them to produce information such as labels, positions or measurements. Vision systems often use image processing as a first step.

Do computer vision models still use CNNs, or only transformers?

Both. Convolutional networks remain common, especially on phones and embedded devices, while vision transformers and hybrids are widely used in large models. Many modern architectures borrow ideas from both.

Why does a vision model fail on new images when it scored well in testing?

Usually because the new images differ from the training data in lighting, camera, background or population, or because the model learned shortcuts in the training set. Evaluating on data from the real deployment setting is the main defence.

References

  1. Krizhevsky, Sutskever and Hinton (2012). ImageNet Classification with Deep Convolutional Neural Networks
  2. He, Zhang, Ren and Sun (2015). Deep Residual Learning for Image Recognition
  3. Redmon, Divvala, Girshick and Farhadi (2015). You Only Look Once: Unified, Real-Time Object Detection
  4. Dosovitskiy et al. (2020). An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  5. Kirillov et al. (2023). Segment Anything
  6. Buolamwini and Gebru (2018). Gender Shades: Intersectional Accuracy Disparities in Commercial Gender Classification

More in this section

Start free: 50 Cosvexa-1 questions a day

Every major model in one workspace; on the Free plan Cosvexa-1 answers 50 questions a day. No card needed to start.