/FlowMapVideo

A tool that renders a video with traffic intensity based on traffic simulator (ruth) result.

Primary LanguagePythonMIT LicenseMIT

FlowMapVideo

FlowMapVideo is a tool for visualizing the evolution of traffic flow over time. The output is a video with a map showing the traffic flow intensities at each time interval. The animation is generated using the FlowMapFrame library to render individual frames based on the output of the Ruth traffic simulator. It is designed for linux systems.

1681896329374-rt.mp4

Installation

Prerequisites

To run, you need to install FFmpeg and Ruth.

  1. Create and activate a virtual environment:
virtualenv <VENV>
source <VENV>/bin/activate
  1. Install via pip
python3 -m pip install git+https://github.com/It4innovations/FlowMapVideo.git

Run

traffic-flow-map --help

Example

To run the example, use the simulation file example_data/simulation.pickle.

traffic-flow-map generate-animation simulation.pickle --speed 350 --title "Traffic flow"