Object detection

Object detection is the computer vision task of finding objects in an image or video frame, drawing a box around each one and labelling what it is, usually with a confidence score.

Image classification answers one question: what is in this picture? Object detection answers two: what is here, and where? A detector looks at a street scene and returns a list such as car, car, pedestrian, traffic light, each with a rectangle marking its position and a score for how confident the model is. Segmentation goes a step further and outlines the exact pixels belonging to each object.

Deep learning transformed the task in 2013 and 2014. The R-CNN method of Ross Girshick and colleagues, first posted in November 2013, ran a convolutional neural network over a set of candidate regions in each image and raised mean average precision on the PASCAL VOC 2012 benchmark to 53.3%, more than 30% better in relative terms than the previous best.

Another line of work focused on speed. YOLO, short for You Only Look Once, posted in June 2015, treated detection as a single prediction made over the whole image in one pass, and ran at 45 frames per second, with a smaller version reaching 155. That made real-time detection on video practical. In May 2020 DETR applied the transformer architecture, predicting the set of objects directly and dropping hand-built steps such as anchor boxes and non-maximum suppression, the clean-up that removes duplicate boxes.

Progress depends on labelled data. The Microsoft COCO dataset, described in 2014, contains 328,000 images with 2.5 million labelled object instances across 91 object categories, and is one of the most widely used benchmarks. Performance is usually reported as mean average precision, which rewards both finding objects and placing boxes accurately.

In practice, object detection sits inside self-driving cars, warehouse robots, retail checkouts, sports analysis, wildlife cameras and surveillance systems. It is also used to grade other AI: the GenEval benchmark uses object detectors to check whether an image generator drew the objects, counts and positions a prompt asked for. A conventional detector only knows the categories it was trained on, and its error rates matter differently by use: a false alarm in a photo app is trivial, a missed pedestrian is not.

Common questions

What is the difference between object detection and image recognition?

Image recognition, or classification, labels a whole image, for example as containing a dog. Object detection finds each object separately and marks where it is with a bounding box, so it can report two dogs and a ball in different places.

What is YOLO in object detection?

YOLO, short for You Only Look Once, is a family of detectors first described in 2015. It predicts all boxes and labels in a single pass over the image, which made it fast enough for real-time video. The original model ran at 45 frames per second.

How is object detection accuracy measured?

The usual measure is mean average precision, or mAP, which combines how many objects a model finds, how many false detections it makes and how well its boxes overlap the true positions. Results are typically reported on shared benchmarks such as COCO.

Is object detection the same as facial recognition?

No. A detector can find that a face is present and where it is. Facial recognition goes further and tries to identify whose face it is by comparing it with stored faces. Face detection is often the first step in a recognition system.

Finding more

Search for "object detection", "YOLO object detection" or "COCO benchmark mAP" to follow the field. Reliable sources include the original papers on arXiv, the documentation of benchmark datasets such as COCO, and the model cards of open-source detectors. Treat accuracy claims with care unless they state the dataset, the metric and the hardware used, because the same model can score very differently under different conditions.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.