Skip to content

mcgridles/CarND-Vehicle-Detection

Repository files navigation

Vehicle Detection

Udacity - Self-Driving Car NanoDegree

alt text

Overview

The goal of this project was to write a software pipeline to detect vehicles in a video stream.

It uses a combination of color histograms, spatial binning, and histograms of gradients (HOG) subsampling to extract features from each image. A linear Support Vector Machine was then trained on the data and used to make predictions on sections of each frame.

To extract these sections, HOG subsampling was first performed on the entire frame, then the image was scaled and broken up into cells. Scaling the image allows each cell to encompass more or less of the image depending on the scale factor. Each cell is taken and the features are extracted using the methods mentioned above, and a prediction is made. This prediction has a threshold applied based on its confidence in the prediction, which helps eliminate false positives.

After that, the frame is converted to a heatmap based on the predictions made, and boxes are drawn around areas that are considered "hot". A threshold is applied at this step as well to further prevent false positives.

Check out my writeup to learn more about my process and how it works.

Dependencies

This project requires:

Data

I used three sets of data for training my project, although the first one with a few augmentations was all that was necessary to achieve the desired result.

I also performed hard negative mining on the project video to help eliminate false positives in places where the pipeline struggled.

About

Udacity Self-Driving Car Engineer Term 1: Vehicle Detection project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published