Computer vision is the branch of AI that works with images and video. It helps an AI system make use of a picture by converting the picture’s pixels into something a program can act on: a label such as “dog”, a box around each car, an outline of every person, or a sentence describing the scene. A computer vision model produces those outputs by applying patterns it learned from large collections of example images [1, 2].
“Understand” is a loose word for what actually happens, and so is “see.” To the model, a photo is a grid of numbers, with one value per color channel at each pixel position [3]. It calculates which learned patterns those numbers match; it doesn’t experience the scene or know what the objects are for. That is why a model that scores well on a standard test can stumble on new photos that differ only slightly from the ones it was trained and tested on [4, 5].
The previous guide, how multimodal models and systems combine text, images, audio and video, showed that many AI tools attach an image component to a language model. This guide looks at that image side on its own: what vision models output, how the main designs work, and where they fail. The next guide turns the direction around, from reading images to generating them.
TL;DR
- Vision models map pixels to outputs. The output can be a category, a set of boxes, a label for every pixel or a written description [1, 6, 7, 8].
- Two designs dominate. Convolutional neural networks scan an image with small learned filters; vision transformers cut it into patches and process them like words in a sentence [3, 9]. Researchers still debate which is better [10].
- Detection and segmentation locate things. They draw boxes around objects or trace their exact outlines pixel by pixel [1, 6, 7].
- Image-reading chat assistants join a vision model to a language model. In a 2024 study, four leading ones averaged 58.07% accuracy on simple visual tasks people find easy [8, 11].
- Good benchmark scores don’t guarantee real-world reliability. Accuracy can fall on fresh photos, deliberately altered images and some groups of people [12, 4, 13].
What Computer Vision Models Do
Vision models do a handful of jobs, each giving a more detailed answer than the last.
Image classification is the simplest: the model outputs the object categories present in an image [1]. Object detection also says where each object is, drawing a bounding box around every instance of each category [1]. Segmentation works at the level of individual pixels. Semantic segmentation makes a prediction at every pixel, assigning each one a class [7]. Instance segmentation goes further and separates individual objects, so two people standing side by side get two distinct outlines [6].
A newer group, vision-language models, produces text. They connect an image model to a language model so the system can describe a scene or answer a question about it [8].
| Task | What it outputs | Example use |
|---|---|---|
| Classification | One or more category labels | Sorting a photo library by subject |
| Object detection | A labeled box around each object | Counting cars in a parking-lot camera feed |
| Semantic segmentation | A class for every pixel | Marking which pixels are road in a dashcam frame |
| Instance segmentation | A separate outline for each object | Separating overlapping parcels on a conveyor belt |
| Image to text | A written description or answer | Describing a photo for someone who can’t see it |
Real products often chain several of these, with a different model handling each step.
How a Model Turns Pixels Into Patterns
A digital color image is stored as numbers. A tiny 32-by-32-pixel picture with red, green and blue channels becomes a block of 32 × 32 × 3 values [3]. Nothing in those numbers says “cat”. The model has to learn which arrangements of values tend to go with which labels.
It learns from examples. The ImageNet Large Scale Visual Recognition Challenge, a widely used benchmark, supplied about 1.2 million training images sorted into 1,000 object classes [1]. During training, the model makes a guess for each image, the error is measured, and its internal settings, called weights, are nudged so the next guess is slightly better. After many rounds, those weights encode patterns that separate one class from another.
Researchers can look inside a trained network to see what those patterns are. In a 2013 study of one such network, an early layer responded to corners and combinations of edges and colors, a middle layer captured textures such as mesh patterns, and the deepest layer responded to entire objects such as dogs and keyboards [14]. The authors described the features as hierarchical: simple strokes combine into parts, and parts into objects [14].
Convolutional Neural Networks: Scanning an Image in Pieces
A convolutional neural network, or CNN, is built around one idea: examine a small patch of the image at a time.
Each unit in a convolutional layer is connected only to a small local region of the input, not to the whole image [3]. The layer slides a small learned filter across the width and height of the image and records how strongly each location matches, producing a map of where that pattern appears [3]. The same filter weights are reused at every position [3]. That suits images well, because an edge or an eye looks much the same in the top-left corner as in the bottom-right, so one filter can find it anywhere. Pooling layers then progressively shrink these maps, so later layers work with a more compact summary of the image [3].
In 2012, a team called SuperVision won the ImageNet challenge’s classification and localization tasks with a large, deep CNN of 60 million parameters [1]. In 2015, residual networks, or ResNets, changed how layers were set up: each one learns an adjustment relative to its input, which made much deeper networks practical to train [15]. Microsoft researchers trained ResNets up to 152 layers deep, and an ensemble of them reached 3.57% error on the ImageNet test set, winning that year’s classification task [15].
Strong scores did not mean the networks recognized objects the way people do. A 2018 study found that ImageNet-trained CNNs relied strongly on texture rather than shape, in stark contrast to human behavior [16]. A model that leans on surface texture can be misled by an image whose texture and outline point to different answers.
Vision Transformers: Reading an Image Like a Sentence
The vision transformer, or ViT, introduced in a 2020 paper, borrows the Transformer, the architecture behind modern language models [9]. It splits an image into fixed-size patches, turns each patch into a list of numbers, and feeds the sequence to a Transformer, treating the patches the way a language model treats words [9]. The paper’s title sums up the idea: an image is worth 16×16 words [9].
The trade-off is data. A CNN comes with built-in assumptions about images, known as inductive biases, such as the idea that neighboring pixels belong together. Transformers lack some of these, including locality [9]. When the authors trained ViTs on a mid-sized dataset like ImageNet without strong regularization (extra techniques that discourage a model from memorizing its training data), they scored a few percentage points below comparable ResNets [9]. With far larger pretraining datasets the gap closed, and the authors concluded that “large scale training trumps inductive bias” [9].
Which Design Is Better?
Confidence: Expert Debate
There is no settled answer. Vision transformers quickly overtook CNNs as the leading image-classification models [10]. Then, in 2022, researchers at Facebook AI Research and UC Berkeley showed that a modernized, purely convolutional design called ConvNeXt could compete favorably with transformers on accuracy and scalability [10]. The same paper pointed out that the most successful transformer variants had reintroduced several CNN-style assumptions [10].
For anyone choosing or using a vision tool, the architecture label says little about whether it will work on your images. Performance on images like yours matters more.
Detection and Segmentation Models
YOLO, short for “You Only Look Once”, was published in 2015 and treats detection as a single prediction: one pass over the image produces bounding boxes and class probabilities together [17]. Its base model processed images in real time at 45 frames per second [17]. Its authors were clear about the weak spots: it struggled with small objects that appear in groups, such as flocks of birds, and its main source of error was putting boxes in the wrong place [17].
Segmentation models add outlines. Fully convolutional networks showed in 2014 that a CNN could be trained end to end to make a prediction at every pixel [7]. Mask R-CNN, published in 2017, extended an existing detector by adding a branch that predicts a mask, or pixel outline, for each object it finds [6].
Meta’s Segment Anything Model (SAM), described in a 2023 paper, made segmentation promptable [18]. A user can mark points or draw a rough box or mask, and SAM outlines the matching object; the paper also reports preliminary results with free-form text prompts [18]. Its dataset contains over 1 billion masks on 11 million licensed and privacy-respecting images [18]. Meta reports that SAM’s zero-shot performance, meaning its results on segmentation tasks it was not specifically trained for, is often competitive with or better than earlier fully supervised models [18]. Meta also lists its limits: SAM can miss fine structures, sometimes hallucinates small disconnected fragments, and draws boundaries less crisply than more computationally intensive methods [18].
Vision-Language Models: From Labels to Descriptions
A classifier can only choose among the labels it was trained on. OpenAI’s CLIP, published in 2021, took a different route: it learned to match images with text from 400 million image-and-text pairs collected from the internet [2]. Because it links pictures to language, plain-language descriptions can be used to classify images without training a new classifier for each task [2]. What a foundation model is explains how broadly trained models like CLIP become the base that other systems are built on.
CLIP’s authors list its weaknesses. It struggles to count the objects in an image, performs poorly on several fine-grained tasks such as telling car models apart, and generalizes poorly to data truly unlike its training set, reaching only 88% accuracy on handwritten digits [2].
Chat assistants that answer questions about photos go a step further. The open research model LLaVA shows one documented way to build them: a vision encoder (in LLaVA’s case, CLIP’s) turns the picture into features, and a learned projection converts those features into inputs a large language model can read [8]. LLaVA is one published example, not a description of how any particular commercial product is built; the previous guide compares this attach-a-component approach with models trained on several kinds of data from the start.
Fluent descriptions can hide weak vision. In a 2024 study, four leading vision-language models averaged only 58.07% accuracy on simple tasks that people find easy, such as judging whether two circles overlap or counting how many times two lines cross [11]. Newer models may do better than the ones tested, but the gap between describing a scene and checking a detail is worth remembering.
Developers document similar limits for their own products. Anthropic’s documentation says its Claude models may hallucinate or make mistakes on low-quality, rotated or very small images, give only approximate object counts, and produce approximate locations that should be verified [19]. It also says Claude cannot determine whether an image is AI-generated [19]. An assistant’s verdict on a suspicious photo is therefore not evidence either way; how to verify something you see online covers better methods. The same documentation says Claude is not designed to interpret complex diagnostic scans such as CTs or MRIs [19].
Why Vision Models Fail in the Real World
The limits above belong to particular models. Three problems affect vision models in general.
Images Unlike the Training Data
A standard test set is usually collected the same way as the training images, so a good score on it can’t show how a model copes with photos from somewhere else. When researchers in 2019 built a fresh ImageNet test set by carefully following the original collection process, a broad range of classifiers saw accuracy fall by 11% to 14% [4]. The authors attributed the drop to the models’ inability to generalize to slightly harder images than those in the original test set [4].
This mismatch between training and real-world data is called distribution shift, and it can substantially degrade systems deployed in the wild [5]. The WILDS benchmark gathered real examples, including wildlife photos from different camera traps and tissue images from different hospitals, and found that standard training gave substantially lower performance on the unfamiliar data in every dataset [5]. A model that works on one hospital’s slides can’t be assumed to work on another’s. For when a purpose-built model is worth the narrower focus, see why one AI model can't do everything.
Deliberately Altered Images
In 2013, researchers showed that a hardly perceptible, deliberately chosen change to an image can make a neural network misclassify it, and that the same change can fool a different network trained on a different subset of the data [20]. These inputs are called adversarial examples.
The problem extends to physical objects. In a 2017 research demonstration, black-and-white stickers on a real stop sign caused a road-sign classifier to make the misreading the attackers intended in 100% of lab images and 84.8% of video frames captured from a moving vehicle [12]. The targets were classifiers the researchers built themselves, not a production car system [12]. The result still shows why vision systems in safety-critical settings need defenses that go beyond accuracy on clean images.
Uneven Accuracy Across People
Vision models can work better for some groups than others. In 2019, the US National Institute of Standards and Technology (NIST) evaluated 189 face recognition algorithms from 99 developers [13]. In one-to-one matching, which checks whether two photos show the same person, false positive rates for Asian and African American faces were often 10 to 100 times higher than for Caucasian faces, depending on the algorithm [13]. The spread between algorithms was wide: the most accurate produced far fewer errors, and NIST said the most equitable algorithms also ranked among the most accurate [13]. Differences like these belong to specific systems, so they have to be checked one system at a time.
Practical Takeaways
- Ask what images the model was tested on. A benchmark score describes that benchmark. Look for testing on photos like yours, taken with similar cameras, lighting, settings and people.
- Match the task to the output you need. A classifier can tell you a shelf holds cereal; counting the boxes takes detection, and measuring the exact edge of a crack in a pipe takes segmentation.
- Check counts, positions and fine detail yourself. These are documented weak points for image-reading assistants [11, 19].
- Don’t treat a general assistant as a diagnostic tool. Its own documentation may say it isn’t built for medical scans [19].
- Test across the people a system will be used on. Accuracy for face-related tools can vary sharply by group and by vendor [13].
- Don’t ask a chatbot whether an image is fake. Use provenance and verification methods instead.
For a broader look at what AI can and can’t reliably do across tasks, the AI Capabilities + Limitations guide “What Can AI Actually Do?” is the deeper destination.
Sources
- ImageNet Large Scale Visual Recognition Challenge. arXiv (ar5iv HTML rendering), 2014-09-01, accessed 2026-11-08.
- Learning Transferable Visual Models From Natural Language Supervision. arXiv (ar5iv HTML rendering), 2021-02-26, accessed 2026-11-08.
- CS231n Deep Learning for Computer Vision: Convolutional Neural Networks (CNNs / ConvNets). Stanford University (CS231n course notes), accessed 2026-11-08.
- Do ImageNet Classifiers Generalize to ImageNet?. arXiv (ar5iv HTML rendering), 2019-02-13, accessed 2026-11-08.
- WILDS: A Benchmark of in-the-Wild Distribution Shifts. arXiv (ar5iv HTML rendering), 2020-12-14, accessed 2026-11-08.
- Mask R-CNN. arXiv (ar5iv HTML rendering), 2017-03-20, accessed 2026-11-08.
- Fully Convolutional Networks for Semantic Segmentation. arXiv (ar5iv HTML rendering), 2014-11-14, accessed 2026-11-08.
- Visual Instruction Tuning. arXiv (ar5iv HTML rendering), 2023-04-17, accessed 2026-11-08.
- An Image is Worth 16×16 Words: Transformers for Image Recognition at Scale. arXiv (ar5iv HTML rendering), 2020-10-22, accessed 2026-11-08.
- A ConvNet for the 2020s. arXiv (ar5iv HTML rendering), 2022-01-10, accessed 2026-11-08.
- Vision language models are blind: Failing to translate detailed visual features into words. arXiv, 2024-07-09, accessed 2026-11-08.
- Robust Physical-World Attacks on Deep Learning Visual Classification. arXiv (ar5iv HTML rendering), 2017-07-27, accessed 2026-11-08.
- NIST Study Evaluates Effects of Race, Age, Sex on Face Recognition Software. National Institute of Standards and Technology (NIST), 2019-12-19, accessed 2026-11-08.
- Visualizing and Understanding Convolutional Networks. arXiv (ar5iv HTML rendering), 2013-11-12, accessed 2026-11-08.
- Deep Residual Learning for Image Recognition. arXiv (ar5iv HTML rendering), 2015-12-10, accessed 2026-11-08.
- ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustness. arXiv (ar5iv HTML rendering), 2018-11-29, accessed 2026-11-08.
- You Only Look Once: Unified, Real-Time Object Detection. arXiv (ar5iv HTML rendering), 2015-06-08, accessed 2026-11-08.
- Segment Anything. arXiv (ar5iv HTML rendering), 2023-04-05, accessed 2026-11-08.
- Vision. Anthropic (Claude Platform documentation), accessed 2026-11-08.
- Intriguing properties of neural networks. arXiv (ar5iv HTML rendering), 2013-12-21, accessed 2026-11-08.
