Clone wiki

TrafficIntelligence / Home

Traffic Intelligence Project


  • August 7th 2015: the script now has the functionality to display the matches, missed ground truth instants and tracking false alarm with the --display option (and --mask if you want to restrict tracking to the mask used for annotations).
  • July 25th 2015: major news as Adrien Lessard, undergrad student, found that indexing one database accelerates by orders of magnitude the feature grouping, and I have finally found an old bug that had eluded so far. The result is several orders of magnitude faster (but only for grouping)!
  • July 21st 2015: after some cleaning of the C++ code (updating to C++11 and removing functionalities provided by OpenCV such as reading sets of images as videos), the new Windows binary is available. Also, road user classifiers are now available in the dev branch of the code.
  • March 24th 2015: added more details on the use of the script in the tutorial
  • June 4th 2014: added functionality to deal with radial distortion (aka fish eye effect, eg from GoPro cameras). This means that more parameters are needed in the configuration file. The file cannot be updated automatically, see How to update configuration files for solutions.
  • Past News

To receive automatically updates and announcements, please register on the Yahoo Group.


Welcome the homepage of the Traffic Intelligence project. This software project provides a set of tools developed by Nicolas Saunier and his collaborators for transportation data processing, in particular road traffic, motorized and non-motorized. The project consists in particular in tools for the most typical transportation data type, trajectories, i.e. temporal series of positions. The original work targeted automated road safety analysis using video sensors.

This software is being developed for many projects and purposes. This project contains:

  • C++ code under the c and include directories: a feature-based moving object tracking tool and some examples of the use of the OpenCV and KLT libraries
  • Python modules for several applications
    • classes for trajectories and moving objects (objects with some characteristics and a series of time-stamped positions): this growing body of code allows the interpretation of trajectory data produced by the C++ video analysis code
    • some basic code for simple traffic engineering problems (fundamental diagram and traffic signal timing)


Compiled Video Analysis Binary for Windows

Although Linux is the preferred development platform, binaries are provided for Windows on the Downloads page (compiled on Windows 7 (32 bit) using the provided compiled libraries, it should work on several Windows version, from XP to 8, 32 or 64 bit). Pick the newest version in general. Please report bugs and consider contributing to the project.


We are very interested in outside contributions and to start a collective effort to make video analysis more accessible and widespread in transportation applications. Do not hesitate to contact Nicolas Saunier and to give feedback on the code, documentation, etc. When you find an error and have a workaround, please send a message about the error so that others will not be stuck in the same place.


The code is licensed under the MIT open source license.


Funding for these developments comes partially through the funding of the students listed on the collaborators' page, supported by NSERC Grant No 402320-2011, FRQNT-MTQ-FRQS grant 2012-SO-163493 (road safety research program 2011-2014) and several MTQ research contracts.

If you make use of this piece of software, please cite one of our papers, for example

  • for the tracking software, S. Jackson, L. Miranda-Moreno, P. St-Aubin, and N. Saunier. A flexible, mobile video camera system and open source video analysis software for road safety and behavioural analysis. Transportation Research Record: Journal of the Transportation Research Board, 2365:90-98, 2013
  • for surrogate road safety analysis N. Saunier, T. Sayed and K. Ismail. Large Scale Automated Analysis of Vehicle Interactions and Collisions. Transportation Research Record: Journal of the Transportation Research Board, 2147:42-50, 2010

We would be very happy in any case to know about any use of the code, and to discuss any opportunity for collaboration.

Contact me at nicolas.saunier[at] and learn more about our work at

Collaborators are listed on this page.