Object Detection
Classification vs Detection
From labels to bounding boxes
Classification assigns a single label to the entire image. It answers "what is this?" but not "where is it?"
Step 1 of 6: Classification vs Detection
From labels to bounding boxes
Classification assigns a single label to the entire image. It answers "what is this?" but not "where is it?"
Step 2 of 6: Anchor Boxes
Predefined reference shapes on a grid
With 1 square anchor per cell, we can only detect roughly square objects. Tall or wide objects may be missed.
Step 3 of 6: Bounding Box Regression
Refining anchor positions to match objects
The predicted box is still close to the anchor. The network must learn larger offsets to reach the ground truth.
Step 4 of 6: Confidence & Class Scores
Filtering detections by confidence
At threshold 0.30, weaker detections are filtered out. This balances precision (0.72) and recall (0.71).
Step 5 of 6: Non-Maximum Suppression
Removing duplicate detections
NMS keeps the highest-confidence box and removes neighbors with IoU above 0.50. This removes duplicate detections while preserving distinct objects.
Step 6 of 6: Single-Stage vs Two-Stage
YOLO vs Faster R-CNN tradeoffs
Single-stage detectors like YOLO predict bounding boxes and classes in one pass over the grid. This yields high speed (~50 FPS) but may sacrifice accuracy on small objects.