Your profile

One profile for every MSDEVBUILD site. Only you can see it, and the site owner if you write in.

Lesson 13 of 30
❮Prev Next❯

Computer Vision and Image Generation

Module 1: AI Concepts ⏱ 8 min read Updated

Your note

My notes for this lesson

Select any text in the lesson to highlight it or add a note. Saved in this browser.

    No highlights yet. Select a sentence in the lesson, then pick a colour or add a note.

    All my bookmarks and notes

    Reading settings

    For every lesson, saved in this browser.

    Text size
    Line spacing
    Font

    With IaaS you rent the virtual machine. Microsoft looks after the building, power and hardware; you patch the operating system.

    30-second answer

    Computer vision is AI that understands images: it can caption a photo, tag what's in it, find objects with boxes around them and read printed or handwritten text (OCR). Multimodal models such as GPT-4.1 take an image inside a prompt and answer questions about it, while image-generation models such as gpt-image-1 go the other way and create a new image from a text description, with content credentials that mark it as AI-made.

    Simulate it » No Azure account needed

    Exam objective: 1.3.4 Identify features and capabilities of computer vision and image-generation models. (Skills measured as of April 15, 2026)

    Simulations

    Feel it before you read it. No account needed, nothing leaves this page.

    Azure portal: Ask a multimodal model about an image Attach an image to a prompt and ask about it.
    </> Embed

    Embed this simulation

    Free for trainers, teachers and bloggers. Paste this into your page:

    Loading the portal…

    Use a <strong>multimodal</strong> deployment such as gpt-4.1-mini, which accepts images as well as text.

    👆 Click the glowing item in the portal to continue

    Read the steps as text
    1. Use a multimodal deployment such as gpt-4.1-mini, which accepts images as well as text.
    2. Attach a photo with the 📎 button and ask a question about it.
    3. In code, send an input_image part (a URL or base64 data) next to the input_text.
    4. Models reason about images; Azure Vision returns structured results.

    🧪 Simulation for learning. Screens are simplified versions of the Azure portal; names, prices and IDs are examples. Nothing here touches real Azure.

    😟 THE PROBLEM

    Store staff walk every aisle to find empty shelves.

    😊 THE SOLUTION

    A camera photo and a vision model spot the gaps.

    • Manual shelf checks✓ Analyse shelf photos
    • Text trapped in images✓ OCR reads it
    • Designers swamped with banners✓ Image generation drafts them
    🛠️ Solved with: Computer vision

    Start with a question

    Can my phone really tell what's in a photo, and can it draw a new one for me?

    Point your phone’s camera at a shop sign in Chennai and it can read the Tamil text and translate it. Upload a photo of a broken tap and an assistant can tell you which part is cracked. Ask for “a poster of a monsoon tea stall, watercolour style” and you’ll get a picture that never existed before.

    That’s two jobs. Reading images is computer vision. Making new ones is image generation. AI-901 expects you to know both, and to tell them apart.

    Explain it like I’m 10

    Visual: computer vision in motion

    One street photo, six things AI can do with it.

    ▶ Explainer video See it in motion 7 steps · 1 min 12 sec

    An animation of one street photo analysed by Azure Vision: a caption, tags with confidence scores, bounding boxes around a bicycle, a taxi and a person, and OCR reading a receipt. A multimodal model then answers a question about the photo, and an image-generation model creates a new image marked with content credentials.
    Read the video script
    1. To software, a photo is numbersTo software, a photo is just a grid of numbers. A vision model has learned which patterns of numbers mean a bicycle, a taxi or a person.
    2. Caption the whole imageAzure Vision in Foundry Tools can caption the whole image in one sentence.
    3. Tag what’s in itIt can tag what is in the picture, each tag with a confidence score, which is handy for search.
    4. Detect objects with boxesObject detection goes further. It finds each object, and returns its name, a confidence score and a box with its exact position.
    5. Read text with OCRAnd the Read feature, called OCR, pulls printed or handwritten text out of an image, like the lines on this receipt.
    6. Ask a multimodal model anythingA multimodal model takes the image inside the prompt, so you can ask it anything. The answer is generated, so it is flexible, but it can be wrong.
    7. Or create a brand-new imageImage generation works the other way round. A model like gpt-image-1 turns a text prompt into a new picture, and content credentials mark it as AI-made.

    The technical explanation

    Vision AI on Azure comes in three flavours. You’ll pick between them based on what you want back.

    Image analysis

    Azure Vision in Foundry Tools

    • Caption and dense captions
    • Tags (dog, grass, park)
    • Objects with bounding boxes
    • People detection
    • Read (OCR) for printed and handwritten text
    • Smart crop

    Multimodal model

    GPT-4.1, GPT-4o, GPT-5 family

    • Image goes into the prompt
    • You ask any question about it
    • Answers in natural language or JSON
    • Good at charts, screenshots and reasoning

    Image generation

    gpt-image-1 (DALL-E 3 legacy)

    • Text prompt in, new image out
    • Can edit or fill part of an image
    • Guardrails check prompts and results
    • Content credentials show it is AI-made
    Three ways to work with images in Microsoft Foundry

    Image analysis: fixed, predictable outputs

    Azure Vision in Foundry Tools (the service that used to be called Computer Vision) runs a trained model over an image and returns structured results:

    FeatureWhat you get backExample
    CaptionOne sentence describing the whole image“A man riding a bicycle on a city street”
    Dense captionsCaptions for several regions of the image“a red helmet”, “a yellow taxi”
    TagsKeywords with confidence scoresbicycle 0.99, street 0.95
    Object detectionEach object’s name, confidence and bounding boxtaxi at x=420, y=180, w=210, h=140
    PeopleWhere people are in the imageThree boxes around three people
    Read (OCR)Lines and words of printed or handwritten text“Thank you, visit again” printed on a receipt

    Facial recognition exists too, but it’s a limited access feature that Microsoft only turns on for approved use cases. That’s responsible AI in action.

    Multimodal models: ask anything about a picture

    A multimodal model accepts text and images in the same prompt. You attach a photo of a fridge shelf and ask “Which items are running low?”, and the model reasons over the image and answers. It’s flexible, but the answer is generated, so it can be wrong. Treat it like a smart colleague’s opinion, not a measurement.

    Image generation: text in, picture out

    Image-generation models such as gpt-image-1 create new images from a prompt, and can edit an existing image (for example, replace the background). Foundry’s guardrails check both the prompt and the result for harmful content. Images from Azure OpenAI models also carry content credentials, provenance metadata built on the C2PA standard, so anyone can check that the picture was generated by AI. That supports the transparency principle.

    Architect level Picking between Azure Vision and a multimodal model

    Azure Vision gives the same answer for the same image every time and returns exact coordinates, which matters if you’re drawing boxes on a screen or counting items at scale. A multimodal model costs more per image (you pay per token, and images add tokens) and its wording changes run to run, but it can follow instructions like “return only the damaged items as JSON”. Many teams use both: OCR for exact text, then a model to reason over that text.

    Real-world business scenario

    Insurance

    Fabrikam Insurance (fictional)

    The problem
    Claims staff spent hours looking at car damage photos and retyping registration numbers from them.
    What they used
    Read (OCR) pulls the number plate text, and a multimodal model describes the visible damage in a fixed JSON format for each photo.
    Why that choice
    OCR gives exact text for the plate, while the multimodal model can describe dents and scratches it was never specifically trained to tag.
    The result
    Assessors now start each claim with a pre-filled summary and spend their time checking it instead of typing.

    When to use it and when not to

    ✓ Use it when…

    • You need captions, tags, objects or text pulled from lots of images in a consistent format.
    • You want to ask open questions about photos, screenshots or charts (use a multimodal model).
    • You need marketing drafts, illustrations or concept art and a person will review them (image generation).

    ✕ Think twice when…

    • You need a guaranteed, measured result, like a safety inspection, with no human check.
    • You want to generate images of real people or brands you don't have rights to.
    • The task is really about pulling fields from forms and invoices. Content Understanding fits better.

    ↔ Alternatives to consider

    • Azure Content Understanding in Foundry Tools for structured fields from documents, images, audio and video.
    • Custom-trained models when you need to recognise your own product range very accurately.
    Ready for more?The full lesson adds the technical explanation, when to use it, interview questions and revision notes.

    Test yourself with exercises

    5 original practice questions in the AI-901 style. Pick your answers, then check them. You will see why each option is right or wrong. Score 75% or more and this topic is marked complete.

    Question 1

    Question 1 of 5

    A logistics company needs to identify each parcel in a warehouse photo and return the location of every parcel as a bounding box. Which computer vision capability should the company use?

    Question 2

    Question 2 of 5

    You need to extract the printed and handwritten text from scanned delivery notes. Which feature of Azure Vision in Foundry Tools should you use?

    Question 3

    Question 3 of 5 · Select 2

    Which TWO tasks require an image-generation model rather than an image analysis service?

    Question 4

    Question 4 of 5

    A marketing team publishes images that it created with gpt-image-1 in Microsoft Foundry. Customers want a way to confirm which images were generated by AI.

    Which feature supports this requirement?

    Question 5

    Question 5 of 5

    A support app must let users upload a screenshot of an error and ask, in their own words, what the error means. Which type of model is most appropriate?

    Interview preparation

    Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.

    Beginner What's the difference between image classification and object detection?

    Model answer

    Classification or tagging tells me what's in the picture overall, like "dog, grass, park". Object detection goes further and tells me where each thing is, with a bounding box and a confidence score for every object it finds.

    Interviewer follows up

    Where does OCR fit?

    You

    OCR is a separate feature. It finds text in the image and returns the words and their positions, so I can read a receipt or a road sign.

    Intermediate When would you use Azure Vision image analysis instead of a multimodal model like GPT-4.1?

    Model answer

    If I need the same fixed outputs every time, like tags, bounding boxes or OCR lines at high volume and low cost, Azure Vision is a good fit. If I need to ask open questions about a photo, like "is this shelf missing any products?" or "explain this chart", a multimodal model is better because it reasons over the image and replies in natural language.

    Experienced developer How do you make generated images safe to publish?

    Model answer

    Guardrails in Foundry filter harmful prompts and outputs for image models just like they do for text. Generated images carry content credentials so people can see they're AI-made. I'd still keep a human review step for anything public, and write prompts that avoid real people and brand logos we don't own.

    Scenario A retailer wants product photos turned into alt text and a list of visible defects. What would you suggest?

    Model answer

    I'd send each photo to a multimodal model with a system message asking for one line of alt text and a JSON list of defects. If they only need tags and captions at scale, Azure Vision's caption and tag features would be cheaper and more predictable.

    Quick revision

    Key points

    • Image analysis returns captions, dense captions, tags, objects, people and text (Read OCR).
    • Object detection gives a label, a confidence score and a bounding box for each item.
    • Multimodal models (GPT-4.1, GPT-4o, GPT-5 family) accept images in prompts and answer in text.
    • Image-generation models such as gpt-image-1 create and edit images from text prompts.
    • Generated images carry content credentials (C2PA) that show they're AI-made.

    Important terminology

    Computer vision
    The area of AI that lets software interpret images and video, such as describing a scene or reading text in a photo.
    Image analysis
    Extracting captions, tags, objects, people and text from an image, as Azure Vision in Foundry Tools does.
    Object detection
    Finding each object in an image and returning its name, a confidence score and a bounding box.
    OCR (optical character recognition)
    Reading printed or handwritten text from an image or scanned document. Azure Vision calls this feature Read.
    Multimodal model
    A generative model that accepts more than one kind of input, such as text plus images, in the same prompt.
    Image-generation model
    A generative model, such as gpt-image-1, that creates or edits images from a text prompt.
    Content credentials
    Provenance metadata (based on the C2PA standard) attached to generated images so anyone can check they were made by AI.

    Common mistakes

    • Thinking a multimodal model that reads images can also generate them. Reading and creating are different model types.
    • Mixing up tagging (what's in the image) with object detection (where each thing is).

    Exam tips

    • "Read the text on a scanned sign or receipt" = OCR (Read).
    • "Create a new image from a description" = image-generation model (gpt-image-1).
    • "Ask a question about a photo" = multimodal model.

    Five quick revision questions

    1. 1.Which vision feature returns bounding boxes?Show

      Object detection.

    2. 2.What does OCR do?Show

      It reads printed or handwritten text from an image.

    3. 3.Name a model that creates images from text.Show

      gpt-image-1 (DALL-E 3 is the older one).

    4. 4.What marks a generated image as AI-made?Show

      Content credentials based on the C2PA standard.

    5. 5.Which kind of model can answer "what's wrong with this machine part?" from a photo?Show

      A multimodal model such as GPT-4.1.

    Official references

    Finished this lesson? Tick it off. Your progress is saved in this browser.

    Next up: Extracting Information from Text, Images, Audio and Video

    Studying with a friend? Send them this lesson

    It's free and needs no sign-up. Their progress saves in their own browser.

    Lesson done? Make it stick with a quick gameSort It, Match the Pairs, Lightning Round and Who Am I? Earn XP and badges. Play ❯

    Install MSDEVBUILD Azure

    Free · no account · works offline

    Save the whole course for offline ›

    Hi, I’m your Nimbus

    Your study buddy. Pick what we do next.

    MSDEVBUILD · Multi-Stack Dev Build

    Sign in to MSDEVBUILD

    One account for Azure certifications and the blog: sign in here and you are signed in on both. Your XP, streak, practice deck and certificate stay in sync on every device. Optional: everything works without an account.