A self-driving car’s camera sees a busy street. In a fraction of a second, it needs to know: there’s a car ahead, a person stepping off the kerb, and a traffic light on the right. Not just that they’re in the picture, but where each one is.
That job is called object detection, and one of the best-known ways to do it is YOLO, short for You Only Look Once. This guide explains what object detection is, how YOLO works, why it was a breakthrough, and where it’s used today.
What is YOLO?
YOLO (You Only Look Once) is a family of neural network models for real-time object detection: finding the objects in an image, drawing a box around each one, and labelling what it is, all in a single pass through the network.
The original YOLO was introduced by Joseph Redmon, Santosh Divvala, Ross Girshick and Ali Farhadi, researchers at the University of Washington, the Allen Institute for AI and Facebook AI Research, and published at the CVPR conference in 2016. Many newer versions have followed since, built by different teams.
Classification vs detection
It helps to compare a few related tasks:
| Task | Question it answers | Example output |
|---|---|---|
| Image classification | What is this picture of? | “cat” |
| Object detection | What objects are in it, and where? | “cat at (x, y, width, height), dog at (…)” |
| Segmentation | Exactly which pixels belong to each object? | A coloured mask over each object’s pixels |
A classifier gives one label for the whole picture. A detector like YOLO finds many objects and gives each one a bounding box, a label and a confidence score.
How does YOLO work?
Before YOLO, many detectors worked in stages: first propose hundreds or thousands of possible regions in an image, then run a classifier on each one. Accurate, but slow.
YOLO’s big idea was to treat detection as one prediction problem solved by one neural network looking at the whole image once. Hence the name.
In the original version:
- Divide the image into a grid (7 × 7 in the original paper).
- Each grid cell predicts a few bounding boxes: the box’s position and size, plus a confidence score for how likely it is that the box contains an object and fits it well.
- Each cell also predicts class probabilities: how likely the object is a car, a person, a dog, and so on.
- Clean up: drop low-confidence boxes, and where several boxes overlap on the same object, keep only the highest-scoring one. This step is called non-maximum suppression.
All of this comes out of a single pass through a convolutional neural network (see neural networks), which is why it’s fast.
Why was YOLO a breakthrough?
Speed. The original paper reported that the base YOLO model processed images at 45 frames per second on a graphics card, and a smaller version called Fast YOLO at 155 frames per second. That’s faster than normal video, so detection could happen live, in real time.
The paper also noted trade-offs: YOLO made more errors in exactly where it placed boxes than the best slower methods of the time, especially for small objects close together. But because it looks at the whole image at once, it made fewer mistakes of the “background mistaken for an object” kind.
Later versions improved accuracy a lot while staying fast, and YOLO-style models became one of the most popular choices for practical detection.
How is a YOLO model trained?
YOLO learns through supervised learning. It’s trained on thousands of images where people have drawn boxes around objects and labelled them, for example in public datasets with everyday categories like people, cars, animals and household objects.
To detect something specific, such as defects on a factory part or a particular crop disease, teams usually start from a pre-trained model and fine-tune it on a smaller set of their own labelled images.
Where is YOLO used?
- Traffic and driving: spotting vehicles, people, cyclists and signs
- Security cameras: detecting people or vehicles in restricted areas
- Retail: counting shoppers, checking shelf stock
- Factories: finding defects on a production line
- Farming: counting fruit, spotting weeds or sick plants from drone images
- Sports: tracking players and the ball
- Wildlife research: counting animals in camera-trap photos
- Accessibility apps: telling people with low vision what’s in front of them
Limits and concerns
- Small or crowded objects can be missed or merged.
- Unusual conditions, such as night, rain, glare or odd camera angles, reduce accuracy, especially if they’re rare in the training data.
- It only knows the classes it was trained on. A model trained on 80 everyday categories won’t detect a rare species unless it’s taught.
- Bias in training images can make detection less reliable for some people or settings (see AI bias).
- Privacy: detection is used in surveillance, which raises real questions about consent and misuse. The original YOLO’s lead author, Joseph Redmon, said in 2020 that he had stopped computer vision research, citing concerns about military uses and privacy.
Common misconceptions
“YOLO is one single model.” It’s a family. The name now covers many versions from different teams.
“YOLO recognises who a person is.” Standard YOLO detects “person”, not which person. Face recognition is a separate task.
“Real time means perfect.” Fast detection still makes mistakes; safety-critical systems combine it with other sensors and checks.
“YOLO is the only way to detect objects.” There are many other detector designs; YOLO is popular because it balances speed and accuracy well.
Key takeaways
- YOLO stands for You Only Look Once: a family of models for real-time object detection.
- It finds objects, draws bounding boxes, and adds labels and confidence scores, in one pass through a neural network.
- The original 2016 paper (Redmon and colleagues) reported 45 frames per second, and 155 for Fast YOLO.
- The original approach: split the image into a grid, predict boxes and classes per cell, then remove duplicates.
- Used in driving, cameras, retail, factories, farming and sports, with real concerns about accuracy limits and privacy.
Frequently asked questions
What does YOLO stand for in AI?
You Only Look Once. The name describes its approach: the model looks at the whole image once, in a single pass, to find all the objects.
What is object detection?
Object detection means finding objects in an image or video, drawing a box around each one, and labelling what it is, such as car, person or dog.
Why is YOLO so fast?
Because one neural network predicts all the boxes and labels in a single pass over the whole image, instead of checking many separate regions one by one.
Is YOLO used in self-driving cars?
YOLO-style detectors are widely used for detecting vehicles and pedestrians in research and in many practical systems, but each company builds its own systems, usually combining several models and sensors.
Can I train YOLO to detect my own objects?
Yes. Teams commonly start from a pre-trained YOLO model and fine-tune it on their own labelled images, for example of products, parts or plants.
Comments