https://github.com/itis-enrico-fermi/peoplecounter
PeopleCounter project source code
https://github.com/itis-enrico-fermi/peoplecounter
cascade-classifier classification classifier computer-vision counter face-detection face-recognition haar-cascade haar-cascade-classifier models object-detection opencv opencv-python people-counter people-detection python3 recognition
Last synced: about 2 months ago
JSON representation
PeopleCounter project source code
- Host: GitHub
- URL: https://github.com/itis-enrico-fermi/peoplecounter
- Owner: ITIS-Enrico-Fermi
- Created: 2021-02-23T09:00:00.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-18T16:13:41.000Z (almost 4 years ago)
- Last Synced: 2025-01-21T10:09:43.461Z (3 months ago)
- Topics: cascade-classifier, classification, classifier, computer-vision, counter, face-detection, face-recognition, haar-cascade, haar-cascade-classifier, models, object-detection, opencv, opencv-python, people-counter, people-detection, python3, recognition
- Language: Python
- Homepage:
- Size: 1.61 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Classifier
This repository is intended to be the second module of FaceCounter project (people counting and tracking)## Setting up
### Windows
From CMD:
```
py -m venv venv
venv\Scripts\activate.bat
python -m pip install -r requirements.txt
```
### Linux and MacOS
```
python3 -m venv venv
source venv/bin/activate
python -m pip install -r requirements.txt
```## Usage
### Save requirements
From Python Venv:
```
python -m pip freeze > requirements.txt
```
### How to run face detector?
```
python haar_cascade_classifier.py --source dataset/maia.mp4 --processed-frame-preview
```
Press _ESC_ to exit### Args
| short arg | arg | action |
|:---------:|:-------------------------:|:-----------------------------------:|
| -h | --help | Show help message and exit |
| | --model MODEL | Cascade classifier model name |
| | --source SOURCE | Camera number or video filename |
| | --image IMAGE | Image filename |
| | --processed-frame-preview | Show the preview of processed frame |## Performance
Original video's size is Full HD
| Description | MIN [s] | MAX [s] | AVG [s] |
|:--------------------------------------:|:-------:|:-------:|:-------:|
| Grayscale + hist equalization | 0.80 | 1.90 | 1.61 |
| previous + downscale to VGA resolution | 0.22 | 0.22 | 0.11 |
| scaleFactor = 1.2 | 0.13 | 0.13 | 0.07 |