RedLectern topic

Computer vision

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

About Computer vision

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.

Start here

route

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

Learn the foundations

1.Match the task to the outputBegin by deciding what the system should return.

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.

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.

Try it

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.

2.Read actions and documentsA 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.

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.

Try it

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.

3.Evaluate for the cost of mistakesA metric is useful only in relation to the task and the errors that matter.

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.

Try it

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.

Latest

No recent updates are available.

See the sources list

Books

Glossary

4 terms on this page.

Browse the AI glossary

Questions and comments