Tracking Cars using Haar classification with OpenCV using a pre-trained cascade classifier.
There are two examples included here, one with regular tracking using a generic square, the other is an edged square:
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)
Haar-Feature Like Car Detection Classifiers cars1.xml:
- Created by github user 199995
- Source: https://gist.github.com/199995/37e1e0af2bf8965e8058a9dfa3285bc6
Haar-Feature Like Car Detection Classifiers cars3.xml:
- Created by github user pmbaumgartner
- Source: https://gist.github.com/pmbaumgartner/98756c3ae310d8f127a5d9b386e7ea00