Courseiva

Object Detection vs Image Classification: Counting Objects in Azure Computer Vision

A warehouse uses video cameras to monitor a conveyor belt. They need to count the number of boxes passing by each hour to track throughput. Which Azure Computer Vision capability should they use?

Quick Answer

The answer is object detection because it is the only Azure Computer Vision capability that can both identify and locate multiple objects within a single image or video frame, making it essential for counting boxes on a conveyor belt. Unlike image classification, which assigns a single label to an entire scene, object detection provides bounding boxes around each individual box and returns a count, enabling real-time throughput tracking. On the AI-900 exam, this scenario tests your understanding of the core difference between image classification and object detection—a common trap is choosing classification when the task requires counting or locating multiple items. Remember the memory tip: if you need to count, you need to detect; classification labels the whole picture, but detection finds each piece.

⚠ Common exam trap

Watch out — candidates often confuse Image Classification with Object Detection, assuming that classifying an image as 'box' is sufficient, but classification cannot count multiple objects or provide their locations.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Object Detection

Object Detection is the correct capability because it can identify and locate multiple boxes within each video frame, allowing the system to count them as they move along the conveyor belt. Unlike image classification, which labels an entire image, object detection provides bounding boxes and counts for each detected object, making it ideal for real-time throughput tracking.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Optical Character Recognition (OCR)

    Why it's wrong here

    OCR extracts text from images, not for counting objects.

  • Face Detection

    Why it's wrong here

    Face Detection identifies human faces, not boxes.

  • Image Classification

    Why it's wrong here

    Image Classification labels the entire image with one category; it does not detect or count individual objects.

  • Object Detection

    Why this is correct

    Object Detection finds and locates multiple objects in an image/video, enabling counting of boxes.

About these practice questions

Courseiva writes every AI-900 question from scratch — 985 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

4 more ways this is tested on AI-900

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. A retail warehouse uses a camera system to locate and count boxes on shelves. The system needs to output the exact positions of each box by drawing a rectangular frame around it in the image. Which Azure Computer Vision capability should they use?

medium
  • A.Object detection
  • B.Image classification
  • C.Semantic segmentation
  • D.Optical Character Recognition (OCR)

Why A: Object detection is the correct capability because it identifies and localizes multiple objects within an image by drawing bounding boxes around each detected instance. In this scenario, the system needs to locate and count individual boxes on shelves, which requires both classification (what is a box) and localization (where each box is), exactly what object detection provides.

Variation 2. A logistics company uses security cameras to monitor boxes on warehouse shelves. They need an AI solution that can count the number of boxes on each shelf and also identify if any box is red (indicating a priority shipment). Which Azure Computer Vision capability should they use?

medium
  • A.Image Analysis (object detection)
  • B.Optical Character Recognition (OCR)
  • C.Face detection
  • D.Spatial analysis

Why A: Image Analysis with object detection can identify and localize multiple objects (boxes) within an image, count them, and detect specific attributes like color (red boxes) by analyzing pixel values in the detected bounding boxes. This directly meets the requirement to count boxes and identify priority shipments based on color.

Variation 3. A retail chain uses ceiling-mounted cameras to monitor shelf inventory. They need to identify and locate individual products (e.g., a specific brand of cereal) within an image and count how many are present. Which Azure Computer Vision capability should they use?

medium
  • A.Image classification
  • B.Object detection
  • C.Optical character recognition (OCR)
  • D.Semantic segmentation

Why B: Object detection is the correct capability because it not only identifies the presence of a specific product (e.g., a brand of cereal) within an image but also localizes each instance by drawing bounding boxes around them, enabling an accurate count. Image classification would only label the entire image as containing cereal without locating individual boxes, while OCR and semantic segmentation serve different purposes (text extraction and pixel-level labeling, respectively).

Variation 4. A city transportation department wants to use a live camera feed at a bus stop to estimate how many people are waiting for the bus. Which Azure Computer Vision capability should they use?

easy
  • A.A. Optical Character Recognition (OCR)
  • B.B. Face detection
  • C.C. Object detection
  • D.D. Semantic segmentation

Why C: Object detection is the correct capability because it can identify and locate multiple people in a live camera feed, providing bounding boxes around each person. This allows the system to count the number of individuals waiting at the bus stop, which is the core requirement. Optical Character Recognition (OCR) extracts text, face detection identifies faces but not necessarily counts people in a crowd, and semantic segmentation classifies each pixel but is overkill for simple counting.

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This AI-900 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AI-900 exam.