Introduction to Computer Vision
Computer Vision: Foundations, History, and Modern Challenges
What Computer Vision Studies
Computer vision is the study of visual data and of methods that enable computers to analyze and understand it. Visual data includes images and videos, as well as other information captured by cameras and related sensors.
The need for computer vision has grown as visual data has become widespread. Smartphones and other devices contain cameras, and the resulting images and videos make up a substantial portion of the information transmitted online. One estimate discussed in the source projected that video alone would account for roughly 80% of internet traffic by 2017; this estimate did not include still images or other visual data.
The volume of visual content creates a practical challenge: it is impossible for people to inspect and label every image or video manually. For example, video platforms need ways to organize content, find relevant videos, and place appropriate advertisements. These tasks depend on systems that can identify what visual content contains.
Visual data is sometimes compared to “dark matter” on the internet: it accounts for a great deal of online information, but its contents are difficult for algorithms to interpret. A large amount of data is not automatically useful; systems must be able to extract meaning from it.
Computer Vision Is Interdisciplinary
Computer vision draws on several fields:
Physics helps explain optics, cameras, and how light forms images.
Biology and psychology provide insights into how humans and other animals process visual information.
Computer science, mathematics, and engineering supply methods for designing, training, and implementing visual-processing systems.
Machine learning provides techniques for learning patterns from examples and applying them to new visual data.
The field therefore combines the study of how vision works with the practical task of building systems that can interpret images and videos.
Biological Vision and the Evolution of Seeing
A proposed explanation for the rapid diversification of animal life around 540 million years ago connects it to the emergence of vision. Before eyes developed, many animals may have had relatively passive ways of interacting with their environments. The appearance of vision would have allowed animals to detect food, predators, and other features at a distance.
This change could have created an evolutionary arms race. Predators that could see prey had an advantage, while prey that could detect and escape predators also had an advantage. In this account, the development of vision encouraged rapid adaptation and diversification.
Vision became a major sensory system in many animals. In humans, a large proportion of the brain’s cortical processing is associated with visual information. Vision supports activities such as movement, object manipulation, communication, work, and survival.
The Development of Cameras
Human efforts to reproduce visual sensing include the camera obscura, an early camera concept used in the Renaissance period. A pinhole admits light into a dark enclosure, projecting an image onto a surface at the back. In a simplified sense, this resembles an early eye: light enters through an opening and forms an image on a surface that captures visual information.
Cameras have since developed into ubiquitous sensors, particularly through their integration into smartphones and other devices. The widespread availability of cameras has helped produce the enormous supply of visual data that motivates modern computer vision.
Insights from Neuroscience
In the 1950s and 1960s, David Hubel and Torsten Wiesel studied visual processing in cats using electrophysiology. They recorded neural responses in the primary visual cortex, a region at the back of the brain, while presenting visual stimuli.
Their work found that some neurons, often called simple cells, respond selectively to oriented edges and to edges moving in particular directions. This supported a general idea about visual processing: the brain initially responds to relatively simple structures, such as edges, and builds up increasingly complex representations as information moves through the visual system.
This hierarchy—from simple visual features toward more complex interpretations—influenced later theories of vision and computer vision algorithms.
Early Computer Vision and Its Conceptual Foundations
Block World
Computer vision research began to take shape in the early 1960s. Larry Roberts’s work on Block World is widely recognized as an early landmark. The visual world in this approach was simplified to a collection of basic geometric solids. The goal was to recognize the shapes and reconstruct their arrangement.
Simplification made the problem manageable, but it also limited how well methods could handle the complexity of real-world scenes.
The Ambition of Early Research
A 1966 MIT project proposed using a summer’s work to construct a substantial part of a visual system. Its ambition highlights an enduring difficulty: vision appears intuitive to people, but building a system that can reliably perform it is extraordinarily challenging.
Decades of research have produced important capabilities, yet comprehensive visual understanding remains unsolved. Computer vision has grown into a major area of artificial intelligence, but even basic-seeming tasks can become difficult when images vary in lighting, viewpoint, background, and object appearance.
David Marr’s Stages of Visual Representation
David Marr proposed a framework for describing how a visual system could progress from an image to a more complete representation of the world. His account proceeds through increasingly rich representations:
Primal sketch: A representation of basic structures such as edges, bars, line endings, curves, and boundaries. This stage is consistent with the idea that early visual processing detects simple features.
Two-and-a-half-dimensional sketch: A representation that begins to organize surfaces, depth, layers, and discontinuities in the visible scene. It describes aspects of visible structure without yet providing a complete object-centered model of the whole world.
Three-dimensional representation: A more complete, organized model of the scene, using surfaces and volumetric parts to represent objects and their structure.
Marr’s framework offered a useful way to think about vision as a sequence of transformations, from local image patterns toward structured understanding. This style of thinking influenced computer vision for decades.
Representing Objects with Parts
Researchers in the 1970s explored ways to represent real-world objects using simpler components. Two influential approaches were generalized cylinders and pictorial structures.
Generalized cylinders represent an object using elongated geometric forms. A human body, for example, can be approximated by a collection of cylindrical parts.
Pictorial structures represent an object as parts connected by relationships, including spatial arrangements and flexible distances between parts.
Both approaches reduce a complicated object to simpler components and the way those components are arranged. This makes recognition more manageable, though early methods generally worked best on limited or simplified examples.
In the 1980s, David Lowe explored recognizing objects such as razors through combinations of lines and edges. This continued the effort to describe objects through simpler visual structures rather than treating an entire image as an indivisible pattern.
Recognition, Segmentation, and Classical Learning Methods
Image Segmentation
Because recognizing complete objects proved difficult, researchers also studied image segmentation: dividing an image into groups of pixels that form meaningful regions.
A segmentation system might identify all pixels belonging to a person without necessarily knowing that the region represents a person. Segmentation therefore addresses the organization of visual data into coherent areas, a problem that can support later recognition.
Work by Jitendra Malik and Jianbo Shi used graph-theoretic methods to approach image segmentation. In general, graph-based methods treat image elements as connected units and use relationships among them to determine which pixels or regions should be grouped together.
Face Detection and Statistical Machine Learning
Face detection made notable progress around the turn of the twenty-first century. During this period, statistical machine-learning methods—including support vector machines, boosting, graphical models, and early neural networks—became increasingly influential.
A particularly important example was the Viola–Jones face detector, which used the AdaBoost algorithm to detect faces rapidly. Its efficiency was significant given the limited computing power of the time. The method also demonstrated how research could transfer into practical products: within a few years of its publication, a digital camera was released with real-time face detection.
Face detection is an example of a focused recognition task. Rather than solving general visual understanding, it asks whether faces are present and where they appear.
Feature-Based Object Recognition
Recognizing an entire object by directly comparing images is difficult because appearance changes with viewpoint, lighting, occlusion, camera angle, and natural variation among objects. Feature-based recognition addresses this by identifying local, diagnostic patterns that tend to remain useful across such changes.
David Lowe’s SIFT (Scale-Invariant Feature Transform) is a notable feature-based approach. The general procedure is:
Detect distinctive local features in an image.
Describe those features so they can be compared across images.
Match corresponding features between images.
Use the matches as evidence that the images contain the same object or scene.
For instance, a set of distinctive features on one stop sign can be matched to features on another stop sign, even if the two images differ in viewpoint or lighting. Matching a collection of local features can be more robust than matching every pixel of the complete object.
From Objects to Scenes
Feature-based ideas were also applied to scene recognition. In spatial pyramid matching, image features are collected from different regions and at different spatial resolutions. These features are combined into a descriptor, which can then be used by a classifier such as a support vector machine.
Spatial layout provides context beyond simply recording which features occur. For example, the arrangement of features can help distinguish a landscape from a kitchen or a highway.
Related work applied feature-based representations to human recognition. Examples include:
Histograms of oriented gradients (HOG): Represent local patterns in the directions of image intensity changes.
Deformable part models: Represent an object as a collection of parts whose relative positions can vary.
These methods reflect a broader strategy: identify useful local patterns, then organize them into a representation of an object or scene.
Datasets and Measuring Progress
PASCAL Visual Object Challenge
Progress in object recognition requires shared datasets and evaluation methods. The PASCAL Visual Object Challenge provided a benchmark containing 20 object categories, including classes such as trains, airplanes, and people. Its images allowed different research groups to test their methods against a common task.
Benchmark results showed steady improvement in object detection over several years. Shared evaluation matters because it makes it possible to compare approaches and track whether methods are improving rather than relying only on demonstrations of a few successful examples.
Why Large Datasets Matter
Visual recognition systems can overfit: they may learn patterns specific to their training examples rather than general rules that work on new images. This risk is especially serious because images are complex and models may have many parameters. When training data is limited, a model may fit the training set closely but generalize poorly.
Large datasets help by exposing models to more examples and more variation. They also enable more meaningful benchmarks by giving researchers a common, substantial test of performance.
ImageNet
The ImageNet project aimed to assemble a very large collection of labeled images. Images gathered from the internet were organized using WordNet, a structured vocabulary containing many object and scene categories. The project used crowd-based labeling methods to sort, clean, and label images.
The resulting dataset contained tens of millions of images organized into roughly 22,000 categories. Its scale made it valuable both for training recognition systems and for measuring their performance.
ImageNet Large-Scale Visual Recognition Challenge
Beginning in 2009, the ImageNet team organized an international challenge using a more focused benchmark: approximately 1.4 million images across 1,000 object categories. One task was image classification, in which a system had to identify the object shown in an image.
The challenge used a top-five evaluation rule: a prediction counted as correct if the true category appeared among the system’s five highest-ranked labels. This allowed evaluation even when the system’s first choice was not correct but the correct answer was still among its strongest predictions.
Performance improved substantially over the challenge’s early years. A major change occurred in 2012, when a convolutional neural network sharply reduced classification error compared with competing methods. By 2012, reported performance had approached that of a human evaluator on this particular benchmark. This did not mean that computer vision as a whole had reached human-level understanding; it showed that systems had become highly capable on a defined classification task.
Convolutional Neural Networks and the Deep-Learning Breakthrough
What CNNs Changed
A convolutional neural network (CNN), also called a convnet, is a neural-network architecture designed to process spatial data such as images. CNNs became the central focus of modern visual recognition because they achieved a major performance breakthrough on ImageNet in 2012.
The successful model known as AlexNet was developed by Alex Krizhevsky and Ilya Sutskever in collaboration with Geoffrey Hinton’s group. Its result marked a turning point: subsequent ImageNet winners were neural networks, and researchers increasingly developed deeper architectures.
Examples of later architectures included GoogleNet and VGG, followed by Residual Networks (ResNets), which demonstrated that networks with very many layers could be trained effectively. The increasing depth of these models reflects the effort to improve recognition by learning more complex representations.
CNNs Were Not Invented in 2012
The 2012 breakthrough did not mark the invention of convolutional neural networks. Important CNN work had appeared much earlier. In 1998, Yann LeCun and collaborators developed a CNN for recognizing handwritten digits, with potential applications such as reading checks and postal addresses.
The earlier model already included key features found in later CNNs:
Processing raw image pixels through multiple layers.
Applying convolutional operations.
Using subsampling to reduce spatial resolution.
Ending with fully connected layers for classification.
The architecture of this earlier network shared important similarities with AlexNet. The algorithms existed before their widespread success; the surrounding conditions had changed.
Why CNNs Became More Successful
Two developments were especially important:
More computation: Computers became substantially more powerful, and graphics processing units (GPUs) made it possible to perform many operations in parallel. This enabled researchers to train larger models and explore more complex architectures.
More labeled data: The internet, crowdsourcing tools, and datasets such as PASCAL and ImageNet made far more labeled images available than had existed in the 1990s.
CNNs are data- and computation-intensive. More computing power made large models practical, while larger datasets helped train those models without relying on a small set of examples. Together, these changes allowed CNNs to achieve strong results on real-world recognition benchmarks.
Core Visual Recognition Tasks
Image Classification
In image classification, a system receives an image and assigns it to one category from a fixed set of categories. An image might be classified as containing a cat, a dog, or a horse.
Although this setup is relatively simple, it is widely useful. Classification can be applied to tasks such as recognizing foods, estimating what food is present for calorie-related applications, identifying artworks, or categorizing products.
Classification assigns a label to an entire image, but many applications require more detailed information about where objects appear or what is happening in a scene.
Object Detection
In object detection, the system identifies objects and their locations. It typically draws a bounding box around each detected object and assigns it a category.
An image might therefore receive several predictions, such as a box around a dog, another around a cat, and another around a car in the background. Unlike image classification, detection must answer both “what is present?” and “where is it?”
Image Captioning
In image captioning, a system generates a natural-language sentence describing an image. Captioning requires connecting visual recognition to language: the system must identify relevant scene elements and express them in words.
Classification, detection, and captioning are different tasks, but they can reuse many of the same visual-learning tools. A representation learned for recognizing objects may also provide useful information for describing an image in language.
Semantic Segmentation and Perceptual Grouping
Semantic segmentation assigns a meaning or category to every pixel in an image. It is more detailed than classifying an entire image or drawing a box around an object. A system might label the pixels belonging to a person, a road, or the surrounding background.
Perceptual grouping concerns how visual elements should be organized into meaningful units. It is closely related to the challenge of deciding which pixels belong together and how image parts form objects or regions.
Additional Challenges
Computer vision also addresses problems beyond static image recognition:
Three-dimensional understanding: Reconstructing the structure of the world from visual observations remains difficult.
Activity recognition: Identifying what a person is doing in a video requires understanding motion and events over time.
Visual scene representation: A scene may be represented as a network of objects, properties, actions, and relationships rather than as a single category or a list of boxes.
New sensors and technologies, including those used for augmented and virtual reality, create further problems and opportunities for visual understanding.
Toward Richer Understanding of Images
Simple classification and object detection capture only part of the information in a scene. A richer representation could include:
Objects: What entities are present.
Attributes: What properties those entities have.
Relationships: How objects are connected or positioned relative to each other.
Actions: What events or activities are taking place.
The Visual Genome project is an example of work aimed at representing images through larger semantic graphs. Such a graph can encode object identities, object attributes, relationships, and actions. It is intended to capture more of a scene’s structure than a label or a collection of bounding boxes can express.
Human Interpretation Goes Beyond Object Labels
People can often infer much more from an image than the identities of its objects. In a brief glimpse, a person may infer that a scene depicts a game or a fight, describe the people’s actions, infer that the scene is outdoors, and draw on prior knowledge to construct a broader interpretation.
Humans also use context, social knowledge, and humor. For example, understanding a humorous photograph involving a person standing on a scale requires knowledge of how scales work, recognition of the people and their expressions, and an understanding of why the interaction is unexpected.
These examples illustrate a central gap in computer vision: a system may detect objects correctly while still failing to understand what the scene means or why it matters.
Key takeaway: Strong performance on a specific benchmark does not equal general visual understanding. Computer vision systems must progress from recognizing patterns and objects toward interpreting scenes, actions, relationships, and context.
The long-term goal is a system that can form a rich account of an image, combining visual evidence with knowledge about the world. Despite major advances in recognition, achieving that kind of deep, flexible understanding remains an open challenge.

Ask anything
We've read this whole study set, so questions about it get the best answers.