OTVision 0.6.10__py3-none-any.whl → 0.6.11__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
OTVision/version.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "v0.6.10"
1
+ __version__ = "v0.6.11"
2
2
 
3
3
 
4
4
  def otdet_version() -> str:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: OTVision
3
- Version: 0.6.10
3
+ Version: 0.6.11
4
4
  Summary: OTVision is a core module of the OpenTrafficCam framework to perform object detection and tracking.
5
5
  Project-URL: Homepage, https://opentrafficcam.org/
6
6
  Project-URL: Documentation, https://opentrafficcam.org/overview/
@@ -29,17 +29,19 @@ Requires-Dist: numpy==2.1.1; sys_platform != 'win32'
29
29
  Requires-Dist: opencv-python==4.10.0.84
30
30
  Requires-Dist: pandas==2.2.3
31
31
  Requires-Dist: pyyaml==6.0.2
32
- Requires-Dist: torch==2.7.1
33
- Requires-Dist: torchvision==0.22.1
34
32
  Requires-Dist: tqdm==4.67.1
35
33
  Requires-Dist: ujson==5.10.0
36
- Requires-Dist: ultralytics==8.3.159
37
- Provides-Extra: cuda
38
- Requires-Dist: tensorrt-cu12-bindings==10.12.0.36; (sys_platform != 'darwin') and extra == 'cuda'
39
- Requires-Dist: tensorrt-cu12-libs==10.12.0.36; (sys_platform != 'darwin') and extra == 'cuda'
40
- Requires-Dist: tensorrt==10.12.0.36; (sys_platform != 'darwin') and extra == 'cuda'
41
- Requires-Dist: torch; extra == 'cuda'
42
- Requires-Dist: torchvision; extra == 'cuda'
34
+ Provides-Extra: inference-cpu
35
+ Requires-Dist: torch==2.7.1; extra == 'inference-cpu'
36
+ Requires-Dist: torchvision==0.22.1; extra == 'inference-cpu'
37
+ Requires-Dist: ultralytics==8.3.159; extra == 'inference-cpu'
38
+ Provides-Extra: inference-cuda
39
+ Requires-Dist: tensorrt-cu12-bindings==10.12.0.36; (sys_platform != 'darwin') and extra == 'inference-cuda'
40
+ Requires-Dist: tensorrt-cu12-libs==10.12.0.36; (sys_platform != 'darwin') and extra == 'inference-cuda'
41
+ Requires-Dist: tensorrt==10.12.0.36; (sys_platform != 'darwin') and extra == 'inference-cuda'
42
+ Requires-Dist: torch==2.7.1; extra == 'inference-cuda'
43
+ Requires-Dist: torchvision==0.22.1; extra == 'inference-cuda'
44
+ Requires-Dist: ultralytics==8.3.159; extra == 'inference-cuda'
43
45
  Description-Content-Type: text/markdown
44
46
 
45
47
  # OTVision
@@ -48,22 +50,25 @@ Description-Content-Type: text/markdown
48
50
  [![Tests](https://github.com/OpenTrafficCam/OTVision/actions/workflows/test.yml/badge.svg?tag=latest)](https://github.com/OpenTrafficCam/OTVision/actions/workflows/test.yml?query=tag%3Alatest)
49
51
  [![Tests](https://github.com/OpenTrafficCam/OTVision/actions/workflows/build-release.yml/badge.svg)](https://github.com/OpenTrafficCam/OTVision/actions/workflows/build-release.yml)
50
52
 
51
- OTVision is a core module of the [OpenTrafficCam framework](https://github.com/OpenTrafficCam) designed to detect and track objects (road users) in videos recorded by [OTCamera](https://github.com/OpenTrafficCam/OTCamera) or other camera systems. The resulting trajectories can be used for traffic analysis using [OTAnalytics](https://github.com/OpenTrafficCam/OTAnalytics).
53
+ OTVision is a core module of the [OpenTrafficCam framework](https://github.com/OpenTrafficCam)
54
+ designed to detect and track objects (road users) in videos recorded by
55
+ [OTCamera](https://github.com/OpenTrafficCam/OTCamera) or other camera systems.
56
+ The resulting trajectories can be used for traffic analysis using [OTAnalytics](https://github.com/OpenTrafficCam/OTAnalytics).
52
57
 
53
58
  ## Features
54
59
 
55
60
  - **Video Conversion**: Convert video files (h264 to mp4) with options to set frame rate and rotation
56
61
  - **Object Detection**: Detect road users in videos using state-of-the-art YOLO models
57
62
  - **Object Tracking**: Track detected objects through video frames using IOU-based tracking algorithms
58
- - **Coordinate Transformation**: Transform pixel coordinates to real-world UTM coordinates
59
63
 
60
64
  ## Requirements
61
65
 
62
66
  ### System Requirements
63
67
 
64
- - Python 3.12 or higher
68
+ - Python 3.12
69
+ - [uv for dependency management](https://docs.astral.sh/uv/)
65
70
  - CUDA-capable GPU (recommended for faster processing)
66
- - Dependencies listed in [requirements.txt](requirements.txt)
71
+ - ffmpeg (optional for video conversion)
67
72
 
68
73
  ## Installation
69
74
 
@@ -73,9 +78,9 @@ Pre-built releases are available on GitHub for easy installation:
73
78
 
74
79
  1. Go to the [OTVision Releases page](https://github.com/OpenTrafficCam/OTVision/releases) on GitHub
75
80
  2. Download the appropriate release for your platform:
76
- - **Windows**: Choose between `otvision-win.zip` (standard) or `otvision-win-cuda.zip` (with CUDA support)
77
- - **Linux**: Choose between `otvision-linux.zip` (standard) or `otvision-linux-cuda.zip` (with CUDA support)
78
- - **macOS**: Choose `OTVision-macos.zip`
81
+ - **Windows**: Choose between `OTVision-win-{vX.Y.Z}.zip` (standard) or `OTVision-win-cuda-{vX.Y.Z}.zip` (with CUDA support)
82
+ - **Linux**: Choose between `OTVision-linux-{vX.Y.Z}.zip` (standard) or `OTVision-linux-cuda-{vX.Y.Z}.zip` (with CUDA support)
83
+ - **macOS**: Choose `OTVision-macos-{vX.Y.Z}.zip`
79
84
  3. Extract the downloaded ZIP file
80
85
  4. Run the installation script:
81
86
  - On Windows: Double-click `install.cmd`
@@ -131,7 +136,7 @@ OTVision provides several command-line scripts for different functionalities:
131
136
  Convert video files (e.g., h264 to mp4):
132
137
 
133
138
  ```bash
134
- python convert.py --paths /path/to/videos/*.h264 --input-fps 20.0 --rotation 0
139
+ uv run convert.py --paths /path/to/videos/*.h264 --input-fps 20.0 --rotation 0
135
140
  ```
136
141
 
137
142
  ### Object Detection
@@ -139,7 +144,7 @@ python convert.py --paths /path/to/videos/*.h264 --input-fps 20.0 --rotation 0
139
144
  Detect objects in videos:
140
145
 
141
146
  ```bash
142
- python detect.py --paths /path/to/videos/*.mp4 --weights yolov8s
147
+ uv run detect.py --paths /path/to/videos/*.mp4 --weights yolov8s
143
148
  ```
144
149
 
145
150
  ### Object Tracking
@@ -147,7 +152,7 @@ python detect.py --paths /path/to/videos/*.mp4 --weights yolov8s
147
152
  Track detected objects:
148
153
 
149
154
  ```bash
150
- python track.py --paths /path/to/detections/*.otdet
155
+ uv run track.py --paths /path/to/detections/*.otdet
151
156
  ```
152
157
 
153
158
  ### Coordinate Transformation
@@ -155,7 +160,7 @@ python track.py --paths /path/to/detections/*.otdet
155
160
  Transform pixel coordinates to UTM coordinates:
156
161
 
157
162
  ```bash
158
- python transform.py --paths /path/to/tracks/*.ottrk --refpts-file /path/to/reference_points.json
163
+ uv run transform.py --paths /path/to/tracks/*.ottrk --refpts-file /path/to/reference_points.json
159
164
  ```
160
165
 
161
166
  ### Configuration
@@ -163,7 +168,7 @@ python transform.py --paths /path/to/tracks/*.ottrk --refpts-file /path/to/refer
163
168
  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:
164
169
 
165
170
  ```bash
166
- python detect.py --config /path/to/custom_config.yaml
171
+ uv run detect.py --config /path/to/custom_config.yaml
167
172
  ```
168
173
 
169
174
  ## Documentation
@@ -1,7 +1,7 @@
1
1
  OTVision/__init__.py,sha256=CLnfgTlVHM4_nzDacvy06Z_Crc3hU6usd0mUyEvBf24,781
2
2
  OTVision/config.py,sha256=D4NIio27JG9hZk7yHI6kNKiMxKeKa_MGfrKNDdEH370,5389
3
3
  OTVision/dataformat.py,sha256=BHF7qHzyNb80hI1EKfwcdJ9bgG_X4bp_hCXzdg7_MSA,1941
4
- OTVision/version.py,sha256=XaaPKbuQgkGzf1GEqCUct10nfK5hpZO1gljpBLG5_eE,176
4
+ OTVision/version.py,sha256=s6gm0PqrVp82QUnEk85btT4IbY8SeTh7PAZpQhYbYaw,176
5
5
  OTVision/abstraction/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  OTVision/abstraction/defaults.py,sha256=ftETDe25gmr563RPSbG6flcEiNiHnRb0iXK1Zj_zdNg,442
7
7
  OTVision/abstraction/observer.py,sha256=ZFGxUUjI3wUpf5ogXg2yDe-QjCcXre6SxH5zOogOx2U,1350
@@ -110,7 +110,7 @@ OTVision/view/view_helpers.py,sha256=a5yV_6ZxO5bxsSymOmxdHqzOEv0VFq4wFBopVRGuVRo
110
110
  OTVision/view/view_track.py,sha256=vmfMqpbUfnzg_EsWiL-IIKNOApVF09dzSojHpUfYY6M,5393
111
111
  OTVision/view/view_transform.py,sha256=HvRd8g8geKRy0OoiZUDn_oC3SJC5nuXhZf3uZelfGKg,5473
112
112
  OTVision/view/helpers/OTC.ico,sha256=G9kwlDtgBXmXO3yxW6Z-xVFV2q4nUGuz9E1VPHSu_I8,21662
113
- otvision-0.6.10.dist-info/METADATA,sha256=vrn1hgrGpvSChGBJT1n-af-fj4JjKuYJC8v91q_W3Yo,6705
114
- otvision-0.6.10.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
115
- otvision-0.6.10.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
116
- otvision-0.6.10.dist-info/RECORD,,
113
+ otvision-0.6.11.dist-info/METADATA,sha256=8WL1V8gsWb3xzHf1iQB2v57YaPPfysLQ-mo64TZaHks,6935
114
+ otvision-0.6.11.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
115
+ otvision-0.6.11.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
116
+ otvision-0.6.11.dist-info/RECORD,,