Lesson 1 of 2 Computer Vision and Image Generation Concepts

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.

TaskQuestion it answers
Image classificationWhat is this image of?
Object detectionWhich objects are where, and how many?
Semantic segmentationWhich exact pixels belong to each object?
Captioning and taggingHow can this image be described?
OCRWhat text appears in the image?
Visual question answeringWhat is the answer to this question about the image?

The following diagram applies three tasks to the same photo.

Three vision tasks on the same photo. Image classification assigns one label to the whole image, such as shelf with boxes. Object detection returns each object with a label and a bounding box, so objects can be located and counted. Semantic segmentation labels every pixel, giving each object's exact shape.
Each task answers a different question about the image.
Sort into groups

Choose the vision task

Exam skills 1.3.4

Choose the computer vision task that answers each question.

Log in to try this activity Interactive activities are free with an account.

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.

True or false

How vision works in Foundry

Exam skills 1.3.4

Check five statements about vision models and vision services.

Log in to try this activity Interactive activities are free with an account.
Worked example

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.

Check yourself

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.