Skip to main content

OTVision

PyPI version Tests Tests

OTVision is a core module of the OpenTrafficCam framework designed to detect and track objects (road users) in videos recorded by OTCamera or other camera systems. The resulting trajectories can be used for traffic analysis using OTAnalytics.

Features

  • Video Conversion: Convert video files (h264 to mp4) with options to set frame rate and rotation
  • Object Detection: Detect road users in videos using state-of-the-art YOLO models
  • Object Tracking: Track detected objects through video frames using IOU-based tracking algorithms

Requirements

System Requirements

Installation

Installation from GitHub Releases

Pre-built releases are available on GitHub for easy installation:

  1. Go to the OTVision Releases page on GitHub
  2. Download the appropriate release for your platform:
    • Windows: Choose between OTVision-win-{vX.Y.Z}.zip (standard) or OTVision-win-cuda-{vX.Y.Z}.zip (with CUDA support)
    • Linux: Choose between OTVision-linux-{vX.Y.Z}.zip (standard) or OTVision-linux-cuda-{vX.Y.Z}.zip (with CUDA support)
    • macOS: Choose OTVision-macos-{vX.Y.Z}.zip
  3. Extract the downloaded ZIP file
  4. Run the installation script:
    • On Windows: Double-click install.cmd
    • On Linux: Run ./install.sh
    • On macOS: Double-click install.command

Manual Installation

  1. Clone the repository:

    git clone https://github.com/OpenTrafficCam/OTVision.git
    cd OTVision
    
  2. Install the package:

    • On Windows:
      install.cmd
      
    • On Linux/macOS:
      ./install.sh
      

Manual Development Installation

For development purposes, if you want to contribute to the project:

  1. Clone the repository:

    git clone https://github.com/OpenTrafficCam/OTVision.git
    cd OTVision
    
  2. Install the development version:

    • On Windows:
      install_dev.cmd
      
    • On Linux/macOS:
      ./install_dev.sh
      

Usage

OTVision provides several command-line scripts for different functionalities:

Video Conversion

Convert video files (e.g., h264 to mp4):

uv run convert.py --paths /path/to/videos/*.h264 --input-fps 20.0 --rotation 0

Object Detection

Detect objects in videos:

uv run detect.py --paths /path/to/videos/*.mp4 --weights yolov8s

Object Tracking

Track detected objects:

uv run track.py --paths /path/to/detections/*.otdet

Coordinate Transformation

Transform pixel coordinates to UTM coordinates:

uv run transform.py --paths /path/to/tracks/*.ottrk --refpts-file /path/to/reference_points.json

Configuration

OTVision can be configured using a YAML configuration file. A default configuration is provided in user_config.otvision.yaml. You can specify a custom configuration file using the --config option:

uv run detect.py --config /path/to/custom_config.yaml

Documentation

For detailed documentation, visit:

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 the project.

License

This software is licensed under the GPL-3.0 License.

Contact

Metadata

Release files for OTVision 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for OTVision 0.7.0
File Size Uploaded Provenance Actions
otvision-0.7.0.tar.gz 65.3 MB With provenance Details for otvision-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for OTVision 0.7.0
File Interpreter ABI Platform Actions
otvision-0.7.0-py3-none-any.whl Python 3 none any Details for otvision-0.7.0-py3-none-any.whl

Total release size: 65.4 MB

Release files / otvision-0.7.0.tar.gz

Download URL otvision-0.7.0.tar.gz
Size 65.3 MB
Tags Source
SHA-256 checksum
How to use checksums
eac64e525da52db58a32184b809ab6c8dd552b776f5d21f4d9679a9475e40725
BLAKE2b-256 checksum
How to use checksums
fb911d0829e7493366f02c41db88343b0ba5b60ff896e5cfc1b930e2351d91ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Jan 28, 2026.

Transparency log

Release files / otvision-0.7.0-py3-none-any.whl

Download URL otvision-0.7.0-py3-none-any.whl
Size 141.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0290eb42b920fabffebc72542bb1801562ed5f43621a1f8bccc2fa4e8ac2e5ef
BLAKE2b-256 checksum
How to use checksums
7ec513a0c1f18cf48314ab7d996015e5041b559d4435c40d6c45c9c37acf11f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Jan 28, 2026.

Transparency log

Security for OTVision 0.7.0

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.

Select from 2 files

Attestation for otvision-0.7.0.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 Jan 28, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page