All exams← All Azure AI Fundamentals (AI-900) notes

Computer vision on Azure: Azure AI Fundamentals (AI-900) revision notes

Revision notes

What computer vision covers on Azure

Azure's computer vision services let you extract information from images and video without training your own models. The two main services are Azure AI Vision (formerly Computer Vision) and Azure AI Custom Vision. There's also Face for face detection/analysis and Azure AI Video Indexer for video.

Azure AI Vision

This is the general-purpose, pre-trained service. Key capabilities:

  • Image analysis: tags, captions, dense captions, objects, categories, brands and adult/racy content ratings
  • Optical Character Recognition (OCR) using the Read API - extracts printed and handwritten text, supports many languages
  • Spatial analysis: understands people's movement in physical space via video, e.g. counting how many people entered a zone
  • Smart-cropping and background removal
  • Face detection is included but the older Face service gives more detailed facial attributes

Custom Vision

Use this when the built-in tags don't match your business need - for example spotting a specific defect on a production line, or identifying a particular product. Custom Vision has two project types:

  • Image classification: assigns one or more labels to a whole image
  • Object detection: identifies objects AND returns bounding box coordinates for each one

You upload and tag your own training images, then train and publish a model via the Custom Vision portal or SDK. It needs far fewer images than building a model from scratch because it uses transfer learning on top of a pre-trained backbone.

Face service

Detects human faces in an image and returns attributes like bounding box, head pose and (with limited access approval) age and emotion. Face identification and verification (matching a face to a known identity) are restricted-access features due to responsible AI concerns - you must apply for approval.

Common exam traps

  • Don't confuse Image Analysis (general tagging/captions) with Custom Vision (your own labels)
  • OCR reads text FROM images; it does not translate it - that needs Azure AI Translator afterwards
  • Object detection returns a bounding box; image classification does not
  • Spatial analysis is about counting/tracking people in physical space, not identifying who they are
  • Face identification/verification need Limited Access approval - this is tested because of Microsoft's Responsible AI commitments
  • These are all part of Azure AI Services (the multi-service resource) OR can be provisioned as single-service resources - know both options exist

Provisioning

You can create a single Vision resource (billed only for that service) or an Azure AI Services multi-service resource (one key/endpoint covers Vision, Language, Speech etc, useful for prototyping and consolidated billing).

Key facts

Flashcards

What are the two Custom Vision project types?
Image classification (whole-image labels) and object detection (labels plus bounding boxes)
tap to reveal
Which Azure AI Vision feature reads printed and handwritten text?
OCR via the Read API
tap to reveal
Does OCR translate the text it extracts?
No - translation needs a separate service, Azure AI Translator
tap to reveal
What does object detection return that image classification does not?
Bounding box coordinates for each detected object
tap to reveal
Why does Custom Vision need fewer training images than a model built from scratch?
It uses transfer learning on top of a pre-trained backbone
tap to reveal
What does spatial analysis do?
Detects and tracks people's movement in physical space from video, e.g. counting zone entries
tap to reveal
What Face service features require Limited Access approval from Microsoft?
Face identification and verification, due to Responsible AI policy
tap to reveal
What attributes does basic Face detection return without special approval?
Bounding box and head pose (detailed emotion/age access is restricted)
tap to reveal
Name two provisioning options for Azure AI Vision
A single-service Vision resource, or the multi-service Azure AI Services resource
tap to reveal
What is dense captioning in Azure AI Vision?
Generating multiple detailed captions describing different regions of an image, not just one overall caption
tap to reveal
Which Azure service extracts insights like faces, text and topics from video?
Azure AI Video Indexer
tap to reveal
What two things does Azure AI Vision's image analysis return alongside tags and objects?
Categories and captions, plus brand and adult/racy content detection
tap to reveal
True or false: Custom Vision lets you define your own labels for images.
True - you upload and tag your own training images to teach it your specific categories
tap to reveal
Practice questions

Computer vision on Azure: 5 practice questions

Q1. Which Azure AI service is designed to analyse an image and return a list of tags describing objects, scenes and actions detected in it?
  • A.  Azure AI Language
  • B.  Azure AI Speech
  • C.  Azure OpenAI Service
  • D.  Azure AI Vision (Image Analysis)
Show answer & explanation
✓ Answer: D. Azure AI Vision (Image Analysis)
Azure AI Vision's Image Analysis capability returns tags describing detected objects, scenes and actions along with confidence scores. Language and Speech process text and audio, not images, so they cannot fulfil this task.
Q2. A company wants to detect whether a photo contains a cat, a dog, or neither, choosing only one label per image. Which Custom Vision project type should they create?
  • A.  Multilabel (multi-tag) image classification
  • B.  Object detection
  • C.  Multiclass (single-tag) image classification
  • D.  Multiclass object detection
Show answer & explanation
✓ Answer: C. Multiclass (single-tag) image classification
Multiclass classification assigns exactly one tag per image, which matches the requirement of choosing only one label. Multilabel classification would allow multiple tags per image, and object detection returns bounding boxes rather than a single whole-image label.
Q3. Which Custom Vision project type would you use to locate every apple in a photo and draw a box around each one?
  • A.  Multilabel classification
  • B.  Image classification
  • C.  Object detection
  • D.  OCR (Read)
Show answer & explanation
✓ Answer: C. Object detection
Object detection returns bounding-box coordinates and a label for each instance of an object found in an image, which is needed to locate multiple apples individually. Image classification only assigns a label to the whole image without locating individual instances.
Q4. What is the main functional difference between image classification and object detection in Azure AI Vision terms?
  • A.  Classification labels the whole image; object detection also returns bounding boxes for each detected instance
  • B.  Classification detects text; object detection detects faces
  • C.  Object detection requires no training data; classification always does
  • D.  Classification only works on grayscale images; object detection works on colour images
Show answer & explanation
✓ Answer: A. Classification labels the whole image; object detection also returns bounding boxes for each detected instance
Image classification assigns one or more labels describing the whole image, while object detection additionally identifies the location of each object instance with a bounding box. Both approaches typically require labelled training data when using Custom Vision.
Q5. Which Azure AI Vision capability extracts printed and handwritten text from images and scanned documents, including multi-page PDFs?
  • A.  OCR (the Read API)
  • B.  Smart cropping
  • C.  Spatial analysis
  • D.  Image tagging
Show answer & explanation
✓ Answer: A. OCR (the Read API)
The Read API (Optical Character Recognition) in Azure AI Vision extracts printed and handwritten text, supporting multi-page documents such as PDFs and TIFFs. Tagging, spatial analysis and smart cropping serve different purposes unrelated to text extraction.
Test yourself
See the Azure AI Fundamentals (AI-900) page

More Azure AI Fundamentals (AI-900) topics