Skip to content

Mateng0228/VPlatoon

Repository files navigation

Mining Platoon Patterns from Traffic Videos

This project provides the source code for our paper "Mining Platoon Patterns from Traffic Videos".

Requirements

  • Operating System: Linux
  • C++ Standard Requirement: requires a minimum of C++11 for compatibility with features like constexpr and variadic templates.
  • Compiler Requirements: GCC 11.4 or later (for support of GCC-specific extensions)
  • Build Tools Requirement:
    • CMake: Version 3.22 or later is required for configuring the build process.
    • Make: A compatible version 4.3 of the 'make' tool is required to build the project.

Installation

Before starting, please ensure that you have installed the necessary C++ runtime library and met all the requirements outlined in the previous section.

  1. Clone the repository to your local machine:
git clone https://github.com/Mateng0228/VPlatoon.git
  1. Change to the directory of this project:
cd VPlatoon
  1. Create a 'build' directory and change to it:
mkdir build
cd build
  1. Compile current project using CMake and Make:
cmake ..
make

Usage

You can now find and quickly run the final executable file in the corresponding "build" directory following the instructions below:

YourExecutableFile "dataset-name" "m" "k" "d" "epsilon"
  • Note that you must switch to the root directory before running the executable file (due to relative path addressing in the code). If the executable file is located in the corresponding "build" directory, it means you should run the program using the format of "build/file-name".
  • Please ensure that the "datasets" directory contains the "dataset-name" directory corresponding to your dataset. You can download all datasets used in our paper from the link provided in "datasets/Download_Source.txt".
  • The meanings of the parameters "m", "k", "d", and "eps" are consistent with those in the paper.
  • For more detailed and customized execution, please refer to the "main.cpp" source file and modify it as needed.

Supplementary Artifacts

We also provide the original sources for the external artifacts used in our scalability and effectiveness analyses.

  1. CityFlowV2: The original video dataset of our recovered trjectory dataset "CityFlow".
  2. Multi-camera object tracking algorithms from AI City Challenge 2020 and 2022: These are used for trajectory recovery.
  3. TCS-tree: The state-of-the-art VConvoy (previous video-based co-movement pattern) mining algorithm.
  4. TMerge: The track merging algorithm used to refine recovered trajectories in the effectiveness experiment.
  5. motmetrics: The library for addressing IDF-related issues.

Contact

If you encounter any problems, please contact the code maintainer at mt0228@zju.edu.cn. Please note that simply raising "Issues" in github may not always be the most effective way to get our attention.

License

The source code is released under the MIT License. See the LICENSE file for details.
The associated technical report is available on arXiv under a perpetual, non-exclusive license: arXiv:2412.20177.

About

The source code for "Mining Platoon Patterns from Traffic Videos".

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors