Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/grantgasser/vehicle-detection

Detecting and tracking vehicles with traditional computer vision techniques as well as deep learning
https://github.com/grantgasser/vehicle-detection

computer-vision feature-extraction vehicle-detection yolov5

Last synced: 6 days ago
JSON representation

Detecting and tracking vehicles with traditional computer vision techniques as well as deep learning

Awesome Lists containing this project

README

        

# Vehicle Detection and Tracking
## Final Results via Deep Learning
Click to play video:

[![YOLOv5 Video](docs/0000000005.png)](https://youtu.be/sitoSZPr8HQ)

## 1st Implementation: Manual Feature Extraction + Classifier
1. Color Features
- Color Histogram
- Color Spaces (HSV, LUV, etc.)
- Spatial Binning (`cv2.resize()`)

2. Gradient Features
- Histogram of Oriented Gradients (HOG)

### Feature Extraction
- Normalize each feature, then combine into one feature vector
- Train-Test split
- Could even use a decision tree for feature selection
- Be careful of time dependencies, even w/ a random train-test split

### Train Vehicle Classifier
Train SVM to classify Car/Not Car.

### Sliding Window
Slide a window (at different scales) over the frames and for each window, classify car/not-car.

### Manual Feature Extraction Results
Click to play video:

[![Manual Feature Extraction](docs/0000000215.png)](https://youtu.be/N94dRl46f8k)

## Deep Learning Implementation (YOLOv5)
Learning the features directly.

Click to play video:

[![YOLOv5 Video](docs/0000000005.png)](https://youtu.be/sitoSZPr8HQ)