https://github.com/gunjanmimo/car-pedestrian-detection
This is a AI based car and pedestrian detection for road safety using OpenCV
https://github.com/gunjanmimo/car-pedestrian-detection
Last synced: 3 months ago
JSON representation
This is a AI based car and pedestrian detection for road safety using OpenCV
- Host: GitHub
- URL: https://github.com/gunjanmimo/car-pedestrian-detection
- Owner: gunjanmimo
- Created: 2020-09-18T16:12:49.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-19T08:49:31.000Z (over 4 years ago)
- Last Synced: 2025-01-01T06:42:55.623Z (5 months ago)
- Language: Python
- Size: 146 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Car-Pedestrian-Detection
This is a AI based car and pedestrian detection for road safety using OpenCV
## Main steps
1. collecting image data of cars and pedestrians
2. convert images into greyscale to make the model faster and color is not important to detect object in this project
3. train algorithm to detect cars and pedestrains## How the algorithm works behind?
A Haar Cascade is based on “Haar Wavelets” which Wikipedia defines as:
A sequence of rescaled “square-shaped” functions which together form a wavelet family or basis.
It is based on the Haar Wavelet technique to analyze pixels in the image into squares by function. This uses machine learning techniques to get a high degree of accuracy from what is called “training data”. This uses “integral image” concepts to compute the “features” detected. Haar Cascades use the Adaboost learning algorithm which selects a small number of important features from a large set to give an efficient result of classifiers.
### Feature Extraction
As I mentioned earlier, Haar Cascades use machine learning techniques in which a function is trained from a lot of positive and negative images. This process in the algorithm is feature extraction.
## Requirement
```
pip install opencv-python
```## Run the project
copy a road video in the ```Car``` file and in the code change the file name and run the code from your terminal
```python file_path/Car and Pedestrian Tracking.py```