4.1
Object Detection Concepts
Classification: "This image contains a cat." Detection: "There's a cat at (x1,y1,x2,y2) with 94% confidence." Bounding boxes: (x, y, width, height) or (x1, y1, x2, y2). IoU (Intersection over Union): measure of box overlap. Non-Maximum Suppression (NMS): remove duplicate detections. Anchor boxes. Evaluation: mAP (mean Average Precision) at IoU thresholds (mAP@50, mAP@50:95). The metrics every detection engineer must understand.
4.2
YOLO: Real-Time Detection
YOLO philosophy: single-pass detection (look at the image ONCE). YOLO evolution: YOLOv1 (2016) → YOLOv5 (production standard) → YOLOv8 (2023) → YOLO11 (2024, Ultralytics). Ultralytics API: model = YOLO("yolo11n.pt"); results = model("image.jpg") — detection in 4 lines. Training custom YOLO: annotate with Roboflow/LabelImg, train with model.train(data="custom.yaml"). YOLO for video: real-time detection at 30–100+ FPS. The most deployed detection model in production.
4.3
Two-Stage & Transformer Detectors
Faster R-CNN: Region Proposal Network → classification. More accurate but slower than YOLO. When to use: accuracy > speed (medical, satellite). DETR (Detection Transformer): end-to-end detection with Transformers — no anchors, no NMS. RT-DETR: real-time Transformer detection. Grounding DINO: open-vocabulary detection (detect ANY object from text description — "find all red cars"). The detector landscape: YOLO (speed) vs DETR (elegance) vs Grounding DINO (zero-shot).
4.4
Custom Object Detection Pipeline
The complete pipeline: collect images → annotate (Roboflow, CVAT, LabelImg) → augment → train YOLO/DETR → evaluate (mAP) → deploy (FastAPI/TorchServe) → monitor. Data annotation: bounding box format (COCO, Pascal VOC, YOLO). Handling class imbalance: oversample rare classes. Small object detection: tile images, higher resolution. The end-to-end workflow for production detection systems.
Placement relevance: Object detection is the most deployed CV task in industry — surveillance, autonomous driving, retail (shelf monitoring), manufacturing (defect detection). "Train YOLO on custom data" is the standard CV interview assignment. Understanding mAP, IoU, and NMS is tested in every detection interview. YOLO proficiency is expected at any company doing real-time CV. Grounding DINO (zero-shot detection) is the 2025 frontier.