Module 8: Object Detection

1. Learning Objectives

2. Object Detection vs. Classification

Classification: Predicts a single label for the entire image.

Detection: Identifies and locates multiple objects with bounding boxes and labels.

3. Key Metrics

4. Object Detection Models

5. Anchor Boxes and NMS

6. Example: YOLOv5 Inference


# Example using YOLOv5
!git clone https://github.com/ultralytics/yolov5
%cd yolov5
!pip install -r requirements.txt

# Run inference
!python detect.py --source ../your_image.jpg --weights yolov5s.pt --conf 0.5

7. Assignment

Objective: Understand and experiment with object detection.

Due: End of Week 8