What is object detection?

Object detection is the computer vision task of identifying the type of each object in an image or video and its location, usually with a rectangular bounding box.

It differs from image classification in output: classification gives the whole image one label, while detection finds several objects separately and shows where each is. Computer vision is the broader field it belongs to.

Topic
Machine learning, models and training
Also known as
Object localisation and classification

How object detection works

  1. The image passes through a backbone based on a convolutional network or Vision Transformer to produce feature maps.
  2. Two-stage methods first propose regions that may hold objects, then classify each; single-stage methods predict class and box in one pass.
  3. Each candidate gets a class, a confidence score and box coordinates.
  4. Most models remove overlapping boxes for the same object with non-maximum suppression (NMS), while one-to-one matching models such as the DETR family skip this step. Boxes above a confidence threshold are returned.

In more detail

IoU, mAP and threshold trade-offs

Detection accuracy is commonly evaluated with intersection over union (IoU), the overlap between predicted and ground-truth boxes, alongside mean average precision (mAP) across classes and IoU thresholds (such as mAP@0.50:0.95). Choosing confidence and IoU thresholds directly balances false positives against missed defects in production.

Open-vocabulary detection and oriented boxes

Open-vocabulary detectors (such as Grounding DINO and YOLO-World) combine vision backbones with text encoders so models can detect new object categories specified via text prompts without retraining. For rotated objects in aerial imagery or tilted documents, oriented bounding boxes (OBB) replace axis-aligned rectangles.

Small objects, occlusion and domain shift

Small objects, dense occlusion and domain shifts such as dust, glare or lighting changes on a factory floor frequently degrade detection accuracy even when benchmark mAP is high. Tiling high-resolution images and continuous hard-negative mining on real edge frames are common remedies in production.

Commonly confused terms

TermHow it differs
Semantic and instance segmentationObject detection locates and classifies each discrete object with a bounding box; semantic segmentation classifies every pixel by category without separating individual instances (e.g., two cars merge into one mask), while instance segmentation gives a pixel-level mask per individual object.
Object trackingObject detection detects objects in each frame independently; object tracking associates detected objects across consecutive video frames and assigns persistent IDs over time.
Image localisationImage localisation typically estimates the bounding box of a single dominant object in an image, whereas object detection finds and classifies an unknown number of multiple objects simultaneously.

Why object detection matters for on-premises AI

In-house, object detection is common for defect and missing part inspection, warehouse counting and locating signatures, stamps and tables in documents. Fast single-stage models can run in real time on an edge server next to the camera, keeping images on the company network. Uses aimed at tracking people need separate legal and ethical assessment; this glossary does not cover those applications.

ON-PREMISES EXAMPLE

A car maker finds missing screws and misfitted parts in images from assembly line cameras with an object detection model running on an edge server beside the line, which flags faulty parts to the operator.

Common questions

What is the difference between object detection and image classification?

Classification gives the whole image one label. Object detection finds the type and location of each object separately.

Is object detection used on documents?

Yes. It locates regions such as tables, signatures, stamps and headings in document images, which then go to OCR or other processing.

Sources

In the glossary: Glossary, M to Q

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.