Skip to main content

OTAnalytics is a core module of the OpenTrafficCam framework to perform traffic analysis on trajectories of road users.

Project description

OTAnalytics

PyPI version Tests Tests

OTAnalytics is a core module of the OpenTrafficCam framework designed to perform traffic analysis on trajectories of road users tracked by OTVision or other tools in videos recorded by OTCamera or other camera systems.

Overview

OTAnalytics provides tools for analyzing traffic data, including:

  • Processing trajectory data of road users
  • Defining and analyzing traffic flows
  • Counting vehicles/road users assigned to flows
  • Generating event lists and statistics
  • Visualizing traffic data

The application offers multiple user interfaces:

  • A graphical desktop interface (using CustomTkinter)
  • A command-line interface for automation and batch processing

Installation

Requirements

Installation from GitHub Releases (Recommended)

The easiest way to install OTAnalytics is to download the latest release from the GitHub Releases page.

  1. Go to the OTAnalytics Releases page
  2. Download the latest release for your operating system
  3. Extract the downloaded archive
  4. Run the application using the instructions in the Usage section

Installation from Source (Linux/macOS)

If you prefer to install from source:

  1. Clone the repository:

    git clone https://github.com/OpenTrafficCam/OTAnalytics.git
    cd OTAnalytics
    
  2. Run the installation script:

    ./install.sh
    

Installation from Source (Windows)

If you prefer to install from source:

  1. Clone the repository:

    git clone https://github.com/OpenTrafficCam/OTAnalytics.git
    cd OTAnalytics
    
  2. Run the installation script:

    install.cmd
    

Usage

Starting the Application

Desktop GUI (Default)

On Linux/macOS:

./start_gui.sh

On Windows:

start_gui.cmd

Command Line Interface

On Linux/macOS:

./start_gui.sh --cli

On Windows:

start_gui.cmd --cli

Configuration

OTAnalytics can be configured using:

  1. Command-line arguments
  2. Configuration files (YAML format)

Example configuration options:

  • Specify track files for analysis
  • Define flow and section configurations using otflow files
  • Configure export formats and counting intervals
  • Control parallelization with multiple processes
  • Include or exclude specific road user classes

Features

  • Track Analysis: Process and analyze trajectory data from various sources
  • Flow Definition: Define and analyze traffic flows between sections
  • Counting: Count road users assgined to flows with configurable time intervals
  • Event Detection: Generate event lists when road users cross defined sections
  • Visualization: Visualize tracks, flows, and sections
  • Export: Export analysis results in various formats
  • Filtering: Filter tracks by road user class and time
  • Parallelization: Process data using multiple CPU cores

Documentation

For detailed instructions on how to install and use OTAnalytics, please refer to the official documentation.

Contributing

We appreciate your support in the form of both code and comments. Please have a look at the contribute section of the OpenTrafficCam documentation for guidelines on how to contribute to this project.

License

This software is licensed under the GPL-3.0 License

Contact

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

otanalytics-0.7.4.tar.gz (11.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

otanalytics-0.7.4-py3-none-any.whl (591.8 kB view details)

Uploaded Python 3

File details

Details for the file otanalytics-0.7.4.tar.gz.

File metadata

  • Download URL: otanalytics-0.7.4.tar.gz
  • Upload date:
  • Size: 11.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for otanalytics-0.7.4.tar.gz
Algorithm Hash digest
SHA256 bd7b545baca152df4714981bb9db1dd6b28ac26424a480568f19827fed6c6db4
MD5 c968edf7f75c1d249465dfb79b4b411a
BLAKE2b-256 e7a95bb1ae0cb3e1b9eff27c5c7fcf1251bea4547e2b6b08f0921be03d622ab8

See more details on using hashes here.

Provenance

The following attestation bundles were made for otanalytics-0.7.4.tar.gz:

Publisher: release-pypi.yml on OpenTrafficCam/OTAnalytics

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file otanalytics-0.7.4-py3-none-any.whl.

File metadata

  • Download URL: otanalytics-0.7.4-py3-none-any.whl
  • Upload date:
  • Size: 591.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for otanalytics-0.7.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d83862ff7888f7ff6c9918e7a6f9b7c9ac95884c08cc839f21dc5c03e1ffc25e
MD5 87d8520077dba1083d4b9dc09232d5e4
BLAKE2b-256 dc5ca1b24a9c03edd75c1d00f0e3e528934fecf28fc294bbcac88478013bcd77

See more details on using hashes here.

Provenance

The following attestation bundles were made for otanalytics-0.7.4-py3-none-any.whl:

Publisher: release-pypi.yml on OpenTrafficCam/OTAnalytics

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page