Skip to content

A street traffic counter that provides efficient and ethical modelling of how people engage and interact within a given public space.

License

Notifications You must be signed in to change notification settings

McMasterAI/TrafficTracker

Repository files navigation

A street traffic heatmap generator built with YOLOv5 and Deep SORT

Contributors Issues CircleCI MIT License

A street traffic counter that aligns with the values of the Beasley Neighbourhood providing efficient and ethical modelling of how people engage and interact within a given public space.

Table of Contents

  1. About the Project
    a. Built With
  2. Getting Started
    a. Prerequisites
    b. Installation
  3. Usage
  4. License

About The Project

This project was designed to act as a "traffic camera" for tracking vehicles and pedestrians to generate metrics based on the data. The idea is to be able to use a small hardware setup to run the models while having the data accessible from a website in the cloud. The hardware being used here is the Nvidia Jetson Nano. One of the main goals of this project is to provide an ethical way to count vehicle and pedestrian traffic. Many of the systems that exist do not put an emphasis on privacy and that is why it is one of our main goals.

Built With

Getting Started

Coming soon...

Prerequisites

Python 3.8.x or newer (64-bit installation required)

Installation

pip install -r requirements.txt

Ensure that you are using the pip associated with Python 3.8.x

Usage

Running the tracker:

python TrafficTracker.py --video_path path/to/file.mp4

Running the Flask App (Heatmap Visualization):

cd app/
python flask_heatmap.py

Go to your browser and enter localhost:5000/heatmap

Running the container on Jetson Nano:

sudo docker run -it --rm --runtime nvidia --network host traffictracker:latest

Running development container:

sudo docker run -it --rm --runtime nvidia -v /path/to/TrafficTracker:/TrafficTracker traffictracker:dev

License

Distributed under the MIT License. See LICENSE for more information.

Acknowledgements

About

A street traffic counter that provides efficient and ethical modelling of how people engage and interact within a given public space.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages