Computer Vision and Image Generation
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 neededExam 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.
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
- Use a multimodal deployment such as gpt-4.1-mini, which accepts images as well as text.
- Attach a photo with the 📎 button and ask a question about it.
- In code, send an input_image part (a URL or base64 data) next to the input_text.
- 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.
🖱️ Drag to rotate · scroll or pinch to zoom
Computer vision
A photo goes in. Vision models return a caption, tags, objects with boxes, and any printed or handwritten text (OCR). A multimodal chat model can also answer questions about the picture.
🤔 What happens if…
Read this tour as text
- Five workload lanes. Most AI apps fall into a few workloads: generative and agentic AI, text analysis, speech, computer vision and information extraction. Each lane here takes a different kind of input and turns it into something useful.
- Text analysis. A hotel review goes in. Azure Language returns the sentiment (positive, neutral, negative), key phrases, named entities (people, places, dates), PII and a short summary.
- Speech to text. Speech recognition turns spoken audio into text: live captions, call transcripts, voice commands. It can also translate speech into another language as you talk.
- Text to speech. Speech synthesis turns text into natural speech with a neural voice. SSML lets you control speed, pitch and pauses. Think audiobooks, voice assistants and accessibility readers.
- Computer vision. A photo goes in. Vision models return a caption, tags, objects with boxes, and any printed or handwritten text (OCR). A multimodal chat model can also answer questions about the picture.
- Image generation. Image-generation models work the other way round: a text prompt goes in and a brand-new image comes out. Guardrails block harmful requests, and generated images are marked with content credentials.
- Extract from documents. Azure Content Understanding reads an invoice and returns fields you defined (vendor, date, total) with a confidence score for each, so low-confidence values can go to a person.
- Extract from audio and video. The same service handles media: an audio call becomes a transcript with speakers and a summary; a video is split into segments with key frames, descriptions and chapters.
Ask a multimodal model about a photo, generate a brand-new image from a prompt, then do both from a Python app.
🎓 Education-only simulation. Your lab is saved in this browser, so you can leave and continue later.
😟 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
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.
Read the video script
- 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.
- Caption the whole imageAzure Vision in Foundry Tools can caption the whole image in one sentence.
- Tag what’s in itIt can tag what is in the picture, each tag with a confidence score, which is handy for search.
- 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.
- Read text with OCRAnd the Read feature, called OCR, pulls printed or handwritten text out of an image, like the lines on this receipt.
- 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.
- 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
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:
| Feature | What you get back | Example |
|---|---|---|
| Caption | One sentence describing the whole image | “A man riding a bicycle on a city street” |
| Dense captions | Captions for several regions of the image | “a red helmet”, “a yellow taxi” |
| Tags | Keywords with confidence scores | bicycle 0.99, street 0.95 |
| Object detection | Each object’s name, confidence and bounding box | taxi at x=420, y=180, w=210, h=140 |
| People | Where people are in the image | Three 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
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.
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.
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.Which vision feature returns bounding boxes?Show
Object detection.
-
2.What does OCR do?Show
It reads printed or handwritten text from an image.
-
3.Name a model that creates images from text.Show
gpt-image-1 (DALL-E 3 is the older one).
-
4.What marks a generated image as AI-made?Show
Content credentials based on the C2PA standard.
-
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
Lesson done? Make it stick with a quick gameSort It, Match the Pairs, Lightning Round and Who Am I? Earn XP and badges.