Start with visual recognition
Use Stanford’s free course materials to see how image classification, detection, and segmentation differ.
Start with: CS231n: Deep Learning for Computer Vision
RedLectern topic
Image and video understanding · recognition · detection · segmentation · document extraction.
For: Learners · builders
After this page you can: Choose and evaluate an approach to a visual understanding task.
Page reviewed
Part of: Artificial Intelligence › Multimodal AI
Computer vision is the study and practice of extracting useful information from images and video. A task’s desired output matters: image classification assigns a label to an image, object detection identifies objects and their locations, and segmentation assigns labels to image regions or pixels. Those outputs answer different questions, so start by specifying what a useful answer should contain.
Video tasks can also ask what action happens across a clip, while document tasks may combine text recognition with locating page regions and extracting fields. To choose an approach, consider the input, required output, and the cost of different mistakes. Then evaluate it on examples that reflect the intended use, using metrics that match those costs. This page sits within Multimodal AI, alongside other ways of working with visual and audio data.
Use Stanford’s free course materials to see how image classification, detection, and segmentation differ.
Start with: CS231n: Deep Learning for Computer Vision
Read how action classification is framed in a human-action video dataset.
Start with: The Kinetics Human Action Video Dataset
Follow the survey’s outline from text recognition to layout analysis and information extraction.
Start with: A Survey of Deep Learning Approaches for OCR and Document Understanding
Begin by deciding what the system should return. Classification gives an image-level label; detection identifies objects and their locations; segmentation assigns categories or object identities to regions or pixels. These are related tasks, but their outputs are not interchangeable. For example, a label such as “bicycle” does not say where the bicycle is, while a box gives a coarse location and a mask traces its visible region. Choose the output that supports the next decision or action. The COCO dataset illustrates how detection, segmentation, and captioning can be studied as distinct tasks. Its task examples are a useful way to compare what each output represents.
The dataset provides examples of object detection, segmentation, and image captioning tasks.
Computer vision
Computational methods that extract information from images or video.
Object detection
Finding and labeling objects and their locations in visual data.
Segmentation
Assigning visual regions or pixels to meaningful categories or objects.
OCR
Converting text visible in an image into machine-readable text.
A photo contains several objects, and a robot needs their labels and approximate locations. Which task output fits? What would you choose if the robot instead needed each object’s visible pixel boundary?
Use object detection for object labels and locations. Use segmentation when the required output is a pixel-level region or object mask.
A video is a sequence of frames, so a task may ask for an action label across a clip rather than a label for one still image. The Kinetics paper frames human-action classification as a video task and distinguishes it from temporal localization, which asks where in an untrimmed video an action occurs. Document extraction has a different structure: OCR involves finding text and transcribing it, while document understanding can also locate page regions and extract information such as an address. This makes the task definition especially important: transcribing words, finding a table, and extracting a field are separate goals. Use the desired output to decide which stages need evaluation.
The survey outlines text detection, transcription, document layout analysis, and information extraction.
The manual describes a text-recognition engine that can extract printed text from images.
A scanned invoice must yield its printed text, the location of the invoice number, and the number itself as a field. Name the distinct task outputs you would check.
Check OCR transcription for the printed text, layout or region detection for the invoice number’s location, and information extraction for the resulting invoice-number field.
A metric is useful only in relation to the task and the errors that matter. For classification, accuracy can be misleading on imbalanced data: a system that always predicts the common class may score well while missing the rare class. Precision measures how many positive predictions are correct; recall measures how many actual positives were found. When comparing visual approaches, choose measures that match the required output and the relative cost of false positives and false negatives. Also inspect examples from the intended setting: images or clips that differ from the evaluation data may expose errors that a single aggregate score hides. Practice by naming the mistake that matters most, then deciding which metric reflects it.
Use its detection and segmentation task examples to think about how the required output shapes evaluation.
A rare object must not be missed, and false alarms are manageable. For a classifier, would recall or precision better reflect the priority? Explain briefly.
Recall better reflects the priority because it measures the proportion of actual positive examples that are found. The task accepts manageable false alarms, so missing positives is the more important error.
No recent updates are available.
Richard Szeliski · 2022
A broad applied reference for analyzing and interpreting images, with chapters on recognition and motion estimation. The author offers a downloadable PDF version for personal use.
David A. Forsyth and Jean Ponce · 2011
A broad reference for image analysis, with publisher-listed coverage of classification, object detection, segmentation, and activity recognition.