surya-1729 / Pedestrian-Detection

Pedestrian detection in images

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pedestrian-Detection

Given an input image which may contain multiple pedestrians, a pedestrian detection system detects each person and returns a bounding box for each detection

image

This repo uses OpenCV to do template tracking using 2 methods:

Dataset

The dataset used is "PennFudanPed" and can be downloaded from here and can be stored in PennFudanPed folder

Using This Repo

  • Download PennFudanPed dataset and put in PennFudanPed folder
  • Install required python packages using: pip install -r requirements.txt

Detection

  • Run any of the three scripts using the corresponding command:

    where -i is dataset folder path. Add --vis to visualize detections

Evalutaion

  • The following metrics have been provided for evaluation:

    • Average Precision (AP): AP evaluated and averaged over 10 IoU thresholds of .50:.05:.95
    • Average Recall (AR): AR averaged over IoUs and evaluated at 1 and 10 detections per image.
  • Results can be evaluated using evaluation script provided. Use the command:

    python evaluate_detections.py --gt <path to ground truth annotations json> --pred <path to detections json>

About

Pedestrian detection in images


Languages

Language:Python 100.0%