An open API service indexing awesome lists of open source software.

https://github.com/gill-singh-a/pedestrian-detection

A Python Program that uses OpenCV's haarcascade to Detect Pedestrians
https://github.com/gill-singh-a/pedestrian-detection

computer-vision object-detection opencv pedestrian-detection python python-3

Last synced: about 2 months ago
JSON representation

A Python Program that uses OpenCV's haarcascade to Detect Pedestrians

Awesome Lists containing this project

README

          

# Pedestrain Detection
A Python Program that uses OpenCV's haarcascade to Detect Pedestrians

## Requirements
Language Used = Python3

Modules/Packages used:
* cv2
* datetime
* optparse
* time
* colorama

Install the dependencies:
```bash
pip install -r requirements.txt
```

## Input
It takes the following arguments from the command that is used to run the Python Program:
* '-i', "--image" : Path to the Image file (If not specified, will take frame from Camera Stream)
* '-p', "--cascade-file-pedestrians" : Path to cascade File for Pedestrian Detection
* '-s', "--scale-factor" : Scale Factor
* '-m', "--min-neighbors" : Minimum Neighbors

## Output
Image/Live Video Stream from the Camera with Detected Pedestrains.

On the Command Line Interface, it displays the number of Pedestrains Detected.

### Note
If the output was not what you expected, try to adjust the **scale-factor** and **min-neighbors** value.