Object detection answers "what is here and where exactly?" The output is a set of bounding boxes — each with a class label and confidence score — that tightly enclose every detected object in the image. One image can produce dozens of detections.
Step 1: propose candidate regions. Step 2: classify and refine each proposal. More accurate, especially on small objects. Slower — not real-time. R-CNN → Fast R-CNN → Faster R-CNN are the milestones.
Predict all boxes and classes in a single forward pass. Real-time capable. Slightly less accurate on small objects but fast enough for video. YOLO is the dominant production choice for speed-critical applications.
Bounding box — (x_min, y_min, x_max, y_max) coordinates defining the rectangle around a detected object. Predicting box coordinates is a regression problem.
Non-maximum suppression (NMS) — Removes duplicate detections of the same object. Keeps only the highest-confidence box when multiple overlapping boxes detect the same instance.
Intersection over Union (IoU) — Measures how well a predicted box aligns with the ground truth. IoU = overlap area / union area. A prediction is "correct" if IoU ≥ 0.5.
Mean Average Precision (mAP) — The primary benchmark metric. Averages precision across recall levels and across all object classes. Higher is better.
Ask the AI assistant about object detection, how YOLO works, IoU, or the difference between one-stage and two-stage detectors.