Coder Social home page Coder Social logo

farrukh-x2 / vehicle_detection_tracking Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 57.24 MB

Process video to detect and track cars on the highway

Jupyter Notebook 100.00%
opencv-python self-driving-car machine-learning computer-vision vehicle-detection classifier

vehicle_detection_tracking's Introduction

Vehicle Detetction and Tracking

This project is based on writing a software pipeline to detect and track vehicles in a video. Output is shown below:

The Project

The goals / steps of this project are the following:

  • Perform a Histogram of Oriented Gradients (HOG) feature extraction on a labeled training set of images and train a classifier Linear SVM classifier
  • For those first two steps we normalize the features and randomize a selection for training and testing.
  • Implement a sliding-window technique and used trained classifier to search for vehicles in images.
  • Run pipeline on a video stream (first with the test_video.mp4 and later implemented on full project_video.mp4) and create a heat map of recurring detections frame by frame to reject outliers and follow detected vehicles.
  • Estimate a bounding box for vehicles detected.

Usage

The training data used to train the classifier can be found for vehicle and non-vehicle examples . These example images come from a combination of the GTI vehicle image database, the KITTI vision benchmark suite Cloning the repository and downloading the above files will make the notebook work

Files

  • test_images contains example images for testing the pipeline on single frames.
  • test_video.mp4 is a test video to check the performance of pipeline.
  • test_video_output.mp4 is the result of pipeline on the test_video.mp4.
  • project_video.mp4 is the main input video the pipeline works on.
  • vehicle_detection_tracking files contain the output. the mp4 is the original video and gif is displayed above:

Notebook

The vehicle_detection_and_tracking.ipynb notebook goes through each of the steps laid out above with accompanying images

vehicle_detection_tracking's People

Stargazers

Ewa Tymoszewska avatar

Watchers

Farrukh Ali avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.