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
Metadata
Release files for OTAnalytics 0.6.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| otanalytics-0.6.9.tar.gz | 852.7 kB | With provenance | Details for otanalytics-0.6.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| otanalytics-0.6.9-py3-none-any.whl | Python 3 | none | any | Details for otanalytics-0.6.9-py3-none-any.whl |
Total release size: 1.4 MB
Release files / otanalytics-0.6.9.tar.gz
| Download URL | otanalytics-0.6.9.tar.gz |
|---|---|
| Size | 852.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
15b6a17e7593e9c3e95345500144925749bfffdc941bf08a7f775407ff45093c
|
|
BLAKE2b-256 checksum How to use checksums |
79a588e2aa05f5e49bec518280bdd0440fb3f80427f75982564e79de215d19b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 2, 2025.
Transparency logRelease files / otanalytics-0.6.9-py3-none-any.whl
| Download URL | otanalytics-0.6.9-py3-none-any.whl |
|---|---|
| Size | 528.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
51b8101f799d03e17eba0c31dc9ba585e34a1184fd645d02136c3e1a6d454136
|
|
BLAKE2b-256 checksum How to use checksums |
019bc5bc643413fd10b2385536b2b35f508533e1451d6d5c7131ff02456f4ea0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 2, 2025.
Transparency logSecurity for OTAnalytics 0.6.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for otanalytics-0.6.9.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 2, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.