Extracting Fields from Images with Image Analyzers
This lesson explains how Content Understanding analyzes photos and other images to return descriptions and schema-defined fields, and how image analyzers differ from asking a multimodal model about an image.
Learning outcomes
After completing this lesson, you will be able to:
- Describe what an image analyzer returns.
- Choose between an analyzer and a multimodal prompt.
- Design the fields of an image analyzer.
Image analyzers
An image analyzer receives a photo, screenshot, chart or diagram and returns a description and fields. The prebuilt prebuilt-imageSearch analyzer produces a description suited to search. A custom analyzer based on the image analyzer adds a schema, for example the meter reading and serial number from a utility meter photo, the damage type and severity from a vehicle photo (classify), or whether a shelf display meets merchandising rules (generate).
Image analyzers
Analyzer or multimodal prompt
Both approaches use generative models, but they suit different needs. A multimodal prompt is interactive and open-ended, ideal for a user asking a one-off question about a photo. An analyzer is a fixed contract: the same fields, types and confidence scores for every image, defined once and reused, which suits pipelines that process large numbers of images and feed business systems.
Designing fields for an image analyzer
Each field in an analyzer schema uses a method that suits the information. Extract returns a value that is visible in the image, such as a serial number. Classify chooses one value from a fixed list, such as a damage category. Generate produces a value by interpreting the image, such as a one-sentence description of a problem. The following table shows a schema for photos of damaged parcels.
| Field | Method | Example value |
|---|---|---|
| TrackingNumber | Extract | 1Z999AA10123456784 |
| DamageType | Classify (crushed, torn, wet, none) | crushed |
| DamageDescription | Generate | The top corner of the box is crushed inwards. |
Clear field descriptions, such as the tracking number printed on the shipping label, are the main way to improve accuracy, because the analyzer uses them to understand what each field means.
Choose the field method
Claims photos
An insurer receives 5,000 vehicle photos a day and needs, for each photo, the damaged area, a severity of minor, moderate or severe, and whether the licence plate is visible, stored in its claims database.
A custom image analyzer with a field schema (damaged area as a string, severity classified with an enum, plate visibility as a generated boolean) returns the same typed fields with confidence scores for every photo. A multimodal chat prompt could answer the questions but would need extra work to guarantee consistent structure and would not provide confidence scores per field.
When is an analyzer better than a multimodal prompt for images?
Show answer
When the same fields must be extracted consistently from many images. A prompt suits one-off questions.
Exam Tips
Remember for the exam
- Image analyzers return descriptions and schema fields with confidence.
- Same fields from many images: an analyzer. One-off questions: a multimodal prompt.
- Use classify for fixed categories such as severity levels.