OTAnalytics is a core module of the OpenTrafficCam framework to perform traffic analysis on trajectories of road users.
Project description
OTAnalytics
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
- Python 3.12 or higher
- Dependencies listed in requirements.txt
Installation from GitHub Releases (Recommended)
The easiest way to install OTAnalytics is to download the latest release from the GitHub Releases page.
- Go to the OTAnalytics Releases page
- Download the latest release for your operating system
- Extract the downloaded archive
- Run the application using the instructions in the Usage section
Installation from Source (Linux/macOS)
If you prefer to install from source:
-
Clone the repository:
git clone https://github.com/OpenTrafficCam/OTAnalytics.git cd OTAnalytics
-
Run the installation script:
./install.sh
Installation from Source (Windows)
If you prefer to install from source:
-
Clone the repository:
git clone https://github.com/OpenTrafficCam/OTAnalytics.git cd OTAnalytics
-
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:
- Command-line arguments
- 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
- GitHub: https://github.com/OpenTrafficCam
- Email: team@opentrafficcam.org
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file otanalytics-0.6.6.tar.gz
.
File metadata
- Download URL: otanalytics-0.6.6.tar.gz
- Upload date:
- Size: 848.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61d0ab50fcf012f31cb8c1f0c7285815508de6245a8e1bef068655e14d380c87 |
|
MD5 | 544d95514c3289fce252ed0640d5b753 |
|
BLAKE2b-256 | 25d356e191564b967c1de8f21c576e77c71d70fee6dcbfe721944f3ef16d8c37 |
Provenance
The following attestation bundles were made for otanalytics-0.6.6.tar.gz
:
Publisher:
release-pypi.yml
on OpenTrafficCam/OTAnalytics
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
otanalytics-0.6.6.tar.gz
- Subject digest:
61d0ab50fcf012f31cb8c1f0c7285815508de6245a8e1bef068655e14d380c87
- Sigstore transparency entry: 209159633
- Sigstore integration time:
- Permalink:
OpenTrafficCam/OTAnalytics@1c959b0bbb0f8ca7271e5ff182c513c4cac1d7d8
- Branch / Tag:
refs/tags/v0.6.6
- Owner: https://github.com/OpenTrafficCam
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
release-pypi.yml@1c959b0bbb0f8ca7271e5ff182c513c4cac1d7d8
- Trigger Event:
push
- Statement type:
File details
Details for the file otanalytics-0.6.6-py3-none-any.whl
.
File metadata
- Download URL: otanalytics-0.6.6-py3-none-any.whl
- Upload date:
- Size: 525.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6547ef4461de64094b086ca8a749299111487ef7381c07e17b175cc6f1352514 |
|
MD5 | 78a8286ed91cb08eb2916c33456f382f |
|
BLAKE2b-256 | 713cf07f11b76c6e638413137729834c5f22efd7043a3af5e4b0bdbee9c6734f |
Provenance
The following attestation bundles were made for otanalytics-0.6.6-py3-none-any.whl
:
Publisher:
release-pypi.yml
on OpenTrafficCam/OTAnalytics
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
otanalytics-0.6.6-py3-none-any.whl
- Subject digest:
6547ef4461de64094b086ca8a749299111487ef7381c07e17b175cc6f1352514
- Sigstore transparency entry: 209159643
- Sigstore integration time:
- Permalink:
OpenTrafficCam/OTAnalytics@1c959b0bbb0f8ca7271e5ff182c513c4cac1d7d8
- Branch / Tag:
refs/tags/v0.6.6
- Owner: https://github.com/OpenTrafficCam
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
release-pypi.yml@1c959b0bbb0f8ca7271e5ff182c513c4cac1d7d8
- Trigger Event:
push
- Statement type: