Lesson 10 of 26 · see all lessons
  1. Start here: the exam, Python basics and responsible AI (skill area 1, 40-45%)

    1. 1. Start here: the AI-901 exam, the plan and what you already know
    2. 2. The Python and Azure basics AI-901 expects
    3. 3. Responsible AI: the six principles in practice
  2. AI models: how they work, choosing and deploying (skill area 1)

    1. 4. How generative AI models work
    2. 5. Choosing the right AI model for the job
    3. 6. Deploying a model: deployment options and configuration parameters
  3. AI workloads: text, speech, vision and extraction (skill area 1)

    1. 7. Common AI workloads: from chat and agents to vision and extraction
    2. 8. Text analysis: key phrases, entities, sentiment and summaries
    3. 9. Speech: recognition and synthesis
    4. 10. Computer vision and image generation
    5. 11. Extracting information from documents, images, audio and video
  4. Generative AI apps and agents in Foundry (skill area 2, 55-60%)

    1. 12. Writing system and user prompts
    2. 13. Deploying a model and chatting with it in the Foundry portal
    3. 14. Building a lightweight chat client with the Foundry SDK
    4. 15. Creating and testing a single agent in the Foundry portal
    5. 16. Building a lightweight client app for an agent
  5. Text, speech, vision and extraction apps in Foundry (skill area 2)

    1. 17. Building a text analysis app
    2. 18. Building speech apps: spoken prompts and Azure Speech
    3. 19. Building vision apps: images in prompts and generated images
    4. 20. Extracting information with Content Understanding: documents and forms
    5. 21. Content Understanding for images, audio and video, and a small extraction app
  6. Final review and four mock exams

    1. 22. Final review and exam day: every decision on one page
    2. 23. Mock exam 1
    3. 24. Mock exam 2
    4. 25. Mock exam 3
    5. 26. Mock exam 4
See the leaderboard

18 min

Computer vision and image generation

Learn what vision models can see in an image and how image-generation models create new pictures.

By the end of this lesson you can

  • Tell image classification, object detection, segmentation, captioning and OCR apart
  • Explain why facial recognition is Limited Access while face detection is not
  • Choose between Azure Vision and a multimodal model for an image task
  • Describe what image-generation models do: create, edit and vary images

From earlier lessons · 1 of 2

A museum audio guide reads a painter's name wrong and speaks too fast. What should the developer use to fix both?

Pick one answer.

From earlier lessons · 2 of 2

A recorded sales call must show which lines the salesperson said and which the customer said. Which Azure Speech feature does this?

Pick one answer.

Fernhill Travel's guides upload 2,000 photos a month: boats, beaches, menus, street signs, smiling groups. Marketing wants them searchable by what's in them. The brochure team wants a cover image of a sunset kayak tour that nobody photographed. One job reads images. The other creates them.

[2]

Five things vision models can do with one photo

Exam depth: know it cold.

Computer vision is AI that analyzes images and video. Each task answers a different question.

TaskQuestion it answersOutput
Image classificationWhat is this image of?One label for the whole image.
Object detectionWhat is where?Labels, each with a bounding box.
Semantic segmentationExactly which pixels?A label for every pixel.
Captioning and taggingHow would you describe it?A sentence, or a list of tags.
OCRWhat text is in it?The words and where they sit.

A bounding box is a rectangle, given as coordinates, drawn around a found object. Segmentation is finer: it outlines the object's exact shape.

Deciding words: "what kind" picks classification; "where" or "count" picks detection; "exact outline" picks segmentation; "read" picks OCR.

[53][59][83]

One guide photo, five vision outputsPhoto: two kayaks on a beach, a sign reading Praia VerdeClassification: beachDetection: kayak x2, person x3, each boxedSegmentation: kayak pixels shadedCaption: Two kayaks pulled up on a sandy beachOCR: Praia VerdeBounding boxes let you countand locateExact shape, not a rectangle

[53]

A harbor authority needs to count the boats in each drone photo and know where each one is. Which computer vision task fits?

Pick one answer.

Face detection vs facial recognition

Exam depth: know it cold.

  • Face detection finds faces in an image and returns a box for each. It doesn't know who anyone is. Blurring faces for privacy only needs detection.
  • Facial recognition decides who a face belongs to. Verification checks one face against one trusted photo ("is this Ana?"). Identification searches a group of known people.

The Azure Face service does both. Its recognition features are Limited Access: only Microsoft-managed customers and partners who apply and are approved can use them.

Microsoft also retired face attributes that guess emotion and gender. It limited others such as age, because misuse can lead to stereotyping and unfair treatment. This is the responsible AI principles from lesson 3 in action.

[85]

[85]

For each statement, select Yes if it is true. Statement: A new Azure customer can use Azure Face to identify people in photos as soon as they create the resource, with no application.

Pick one answer.

[85]

Face detection: "There are three faces here." Facial recognition: "I need to see your approval form first." Picture: Vintage instruction-manual drawing, black ink line art on cream paper.

Azure Vision or a multimodal model?

Exam depth: know it cold.

Azure Vision is the Foundry Tool for image analysis. Image Analysis 4.0 returns captions, dense captions (one per region), tags, detected objects, detected people, smart-crop areas and read text.

A multimodal model is a model that accepts images as well as text, such as some GPT models. It answers questions about a picture in plain language: "Is the hotel pool open in this photo?" Lesson 19 builds this.

NeedPick
Standard tags, boxes, OCR in a fixed format.Azure Vision
Free-form questions or reasoning about an image.Multimodal model
Identify or verify people.Azure Face (Limited Access)

Changed recently: Microsoft will retire the Image Analysis API on September 25, 2028. For new work it suggests Document Intelligence for OCR, the Face API for faces, and GPT models or Azure Content Understanding for other image analysis. The Vision tasks above are still on the exam.

[34][83][84][88]

A travel app lets users upload a photo and ask, in their own words, "Would this beach suit small children?". Which option fits best?

Pick one answer.

[88]

How vision models learn to see

Exam depth: recognize it.

  • A convolutional neural network (CNN) runs filters over an image to pull out features, such as edges and shapes. It then predicts a label. CNNs drove image classification and object detection for years.
  • A vision transformer (ViT) cuts an image into patches and uses attention, the same technique language models use, to learn how patches relate.
  • A multimodal model joins a language encoder and a vision encoder, trained on images with captions. That's how it can describe a photo it has never seen.

[87][88]

Rendering diagram…
A multimodal model links what it sees to the words that describe it.

[88]

Image generation: create, edit and vary

Exam depth: know it cold.

An image-generation model creates new images. It can do three jobs.

  • Text to image: describe a picture in a prompt and get a new image.
  • Editing, including inpainting: change part of an existing image. You supply a mask, an image whose transparent pixels mark the area to change, plus a prompt such as "add a sunset sky".
  • Variations: new versions of an existing image.

In the Foundry catalog these include the gpt-image series (for example gpt-image-1 and gpt-image-2) and Black Forest Labs FLUX models. DALL-E 3 retired on March 4, 2026; older material still names it.

Image generation APIs apply a content filter. If a prompt is judged harmful, no image is generated.

[34][86]

The brochure team has a good beach photo but wants only the grey sky replaced with a sunset, keeping everything else. What should they use?

Pick one answer.

[86]

Decision table: scenario to task to tool

Match

Match each Fernhill Travel scenario to the task and tool that fit

Pick an item on the left, then its match on the right.

[53][83][85]

Exam-style practice

A farm robot must spray only the exact leaf area of each weed, not a rectangle around it. Which computer vision task fits?

Pick one answer.

[53]

A recycling plant sorts photos of single items into "glass", "metal" or "paper". Each photo shows one item. Which task fits?

Pick one answer.

A user asks an image-generation deployment for a violent, harmful scene. What happens by default?

Pick one answer.

[86]

FlashcardsIndex cardsFlashcards ⚡

Card 1 of 18

Worth keeping

  1. Label the image: classification. Box objects: detection. Exact pixels: segmentation. Read text: OCR.
  2. Face detection finds faces; facial recognition names them and is Limited Access.
  3. Azure Vision gives fixed-format results; a multimodal model answers free-form questions.
  4. Image-generation models create from text, edit with a mask, and make variations.
  5. Generated images pass a content filter; harmful prompts get no image.

Reading the words on a booking form is OCR. Knowing which words are the customer's name and travel date is something else. Next lesson: information extraction from documents, images, audio and video.

Leaderboard

Loading…

50 XP for each lesson you finish, 10 for each right answer. Names show only for learners who turn on Show me on leaderboards.

Embed this practice on your site

Free for classrooms, blogs and study groups. Paste this into any page that accepts HTML.

Report a copyright problem with this lesson

Sources for this lesson (12)

Each fact in the lesson is marked with the number of the page it comes from.

  1. [2]Microsoft Learn: Study guide for Exam AI-901: Microsoft Azure AI Fundamentals
  2. [34]Microsoft Learn: Foundry Models sold by Azure
  3. [53]Microsoft Learn: Computer vision (training unit)
  4. [59]Microsoft Learn: What is Azure Vision in Foundry Tools?
  5. [74]Microsoft Learn: Speech to text overview
  6. [76]Microsoft Learn: Speech Synthesis Markup Language (SSML) overview
  7. [83]Microsoft Learn: What is Image Analysis?
  8. [84]Microsoft Learn: Migrate from Azure Vision in Foundry Tools - Image Analysis
  9. [85]Microsoft Learn: What is the Azure Face service?
  10. [86]Microsoft Learn: How to use image generation models from OpenAI
  11. [87]Microsoft Learn: Convolutional neural networks (training unit)
  12. [88]Microsoft Learn: Vision transformers and multimodal models (training unit)