/Object-Car-Recognition-Tracking-With-Haar-Classification

Tracking Cars using Haar classification with OpenCV using a pre-trained cascade classifier.

Primary LanguagePythonMIT LicenseMIT

Object-Car-Recognition-Tracking-With-Haar-Classification

Tracking Cars using Haar classification with OpenCV using a pre-trained cascade classifier.

Output sample

There are two examples included here, one with regular tracking using a generic square, the other is an edged square:

Installation: Setting Up Python 3.X with OpenCV and DLIB:

1. Download python 3 here, in this case it was python-3.6.4-amd64 for windows: https://www.python.org/downloads/release/python-364/

2. To install python libraries on directory:

  • Open up installation directory and run cmd on directory.
  • cd D:\Python3\Scripts
  • cmd on toolbar
  • pip install [LibraryName]

3. Install the following libraries:

  • OpenCV (pip3 install opencv-python)

Classifier Data Source

Haar-Feature Like Car Detection Classifiers cars1.xml:

Haar-Feature Like Car Detection Classifiers cars3.xml: