Understanding Computer Vision Tasks
This lesson explains how computer vision gives software the ability to interpret images and video. Images are grids of pixel values, and vision models learn to recognize patterns in those values that correspond to objects, text and scenes.
Learning outcomes
After completing this lesson, you will be able to:
- Explain how vision models process images.
- Distinguish image classification, object detection, segmentation and OCR.
- Identify the vision capabilities available in Foundry.
How vision models see
An image is stored as arrays of numbers, one per pixel and colour channel. Earlier systems used convolutional neural networks (CNNs), which apply learned filters to detect edges, textures and shapes and combine them into higher-level features. Current systems often use transformer-based vision models that split an image into patches and apply attention, the same mechanism used for text. Multimodal models combine a vision encoder with a language model, so that one model can reason over images and text together.
Common vision tasks
Image classification assigns a label to a whole image, such as cat or defective. Object detection finds individual objects and returns each with a label and a bounding box, so that objects can be located and counted. Semantic segmentation labels every pixel, giving exact object shapes.
Image captioning and description produce natural-language sentences about an image, and tagging returns keywords for its contents. Optical character recognition (OCR) reads printed and handwritten text. Visual question answering answers free-form questions about an image, such as is the safety barrier closed?, which multimodal models do well. Facial detection locates faces; facial recognition and analysis features in Azure are restricted under Microsoft's responsible AI policies.
The following table recaps the tasks by the question each one answers.
| Task | Question it answers |
|---|---|
| Image classification | What is this image of? |
| Object detection | Which objects are where, and how many? |
| Semantic segmentation | Which exact pixels belong to each object? |
| Captioning and tagging | How can this image be described? |
| OCR | What text appears in the image? |
| Visual question answering | What is the answer to this question about the image? |
The following diagram applies three tasks to the same photo.

Choose the vision task
Vision in Foundry
In Foundry, multimodal models such as the GPT-5 family accept images in prompts and handle description, OCR, comparison and visual question answering flexibly. Azure Vision in Foundry Tools provides prebuilt image analysis (captions, tags, objects, OCR) with fixed outputs, and Azure Content Understanding extracts schema-defined fields from images. Video analysis applies the same tasks to frames and adds segmentation over time.
How vision works in Foundry
Classification or detection
A warehouse wants to count how many boxes on each pallet are damaged, from photos taken at the loading dock. Which vision task is required?
Counting individual damaged boxes requires locating each box, which is object detection.
Image classification would label a whole photo as, for example, damaged pallet but could not count boxes. OCR would read labels but not assess damage.
Which vision task describes an image in a sentence?
Show answer
Captioning. OCR reads the text in an image instead.
Exam Tips
Remember for the exam
- Classification labels the whole image; detection locates objects with bounding boxes.
- OCR reads text in images; captioning describes them.
- Multimodal models answer free-form questions about images.