OTVision 0.6.9__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 +1 -1
- {otvision-0.6.9.dist-info → otvision-0.6.11.dist-info}/METADATA +29 -17
- {otvision-0.6.9.dist-info → otvision-0.6.11.dist-info}/RECORD +5 -5
- {otvision-0.6.9.dist-info → otvision-0.6.11.dist-info}/WHEEL +0 -0
- {otvision-0.6.9.dist-info → otvision-0.6.11.dist-info}/licenses/LICENSE +0 -0
OTVision/version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: OTVision
|
|
3
|
-
Version: 0.6.
|
|
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/
|
|
@@ -15,8 +15,9 @@ Classifier: Development Status :: 4 - Beta
|
|
|
15
15
|
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
|
16
16
|
Classifier: Operating System :: OS Independent
|
|
17
17
|
Classifier: Programming Language :: Python :: 3
|
|
18
|
-
Requires-Python:
|
|
18
|
+
Requires-Python: ==3.12.*
|
|
19
19
|
Requires-Dist: av==13.0.0
|
|
20
|
+
Requires-Dist: coremltools==8.2; sys_platform == 'darwin'
|
|
20
21
|
Requires-Dist: ffmpeg-python==0.2.0
|
|
21
22
|
Requires-Dist: fire==0.7.0
|
|
22
23
|
Requires-Dist: geopandas==1.0.1
|
|
@@ -28,11 +29,19 @@ Requires-Dist: numpy==2.1.1; sys_platform != 'win32'
|
|
|
28
29
|
Requires-Dist: opencv-python==4.10.0.84
|
|
29
30
|
Requires-Dist: pandas==2.2.3
|
|
30
31
|
Requires-Dist: pyyaml==6.0.2
|
|
31
|
-
Requires-Dist: torch==2.7.1
|
|
32
|
-
Requires-Dist: torchvision==0.22.1
|
|
33
32
|
Requires-Dist: tqdm==4.67.1
|
|
34
33
|
Requires-Dist: ujson==5.10.0
|
|
35
|
-
|
|
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'
|
|
36
45
|
Description-Content-Type: text/markdown
|
|
37
46
|
|
|
38
47
|
# OTVision
|
|
@@ -41,22 +50,25 @@ Description-Content-Type: text/markdown
|
|
|
41
50
|
[](https://github.com/OpenTrafficCam/OTVision/actions/workflows/test.yml?query=tag%3Alatest)
|
|
42
51
|
[](https://github.com/OpenTrafficCam/OTVision/actions/workflows/build-release.yml)
|
|
43
52
|
|
|
44
|
-
OTVision is a core module of the [OpenTrafficCam framework](https://github.com/OpenTrafficCam)
|
|
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).
|
|
45
57
|
|
|
46
58
|
## Features
|
|
47
59
|
|
|
48
60
|
- **Video Conversion**: Convert video files (h264 to mp4) with options to set frame rate and rotation
|
|
49
61
|
- **Object Detection**: Detect road users in videos using state-of-the-art YOLO models
|
|
50
62
|
- **Object Tracking**: Track detected objects through video frames using IOU-based tracking algorithms
|
|
51
|
-
- **Coordinate Transformation**: Transform pixel coordinates to real-world UTM coordinates
|
|
52
63
|
|
|
53
64
|
## Requirements
|
|
54
65
|
|
|
55
66
|
### System Requirements
|
|
56
67
|
|
|
57
|
-
- Python 3.12
|
|
68
|
+
- Python 3.12
|
|
69
|
+
- [uv for dependency management](https://docs.astral.sh/uv/)
|
|
58
70
|
- CUDA-capable GPU (recommended for faster processing)
|
|
59
|
-
-
|
|
71
|
+
- ffmpeg (optional for video conversion)
|
|
60
72
|
|
|
61
73
|
## Installation
|
|
62
74
|
|
|
@@ -66,9 +78,9 @@ Pre-built releases are available on GitHub for easy installation:
|
|
|
66
78
|
|
|
67
79
|
1. Go to the [OTVision Releases page](https://github.com/OpenTrafficCam/OTVision/releases) on GitHub
|
|
68
80
|
2. Download the appropriate release for your platform:
|
|
69
|
-
- **Windows**: Choose between `
|
|
70
|
-
- **Linux**: Choose between `
|
|
71
|
-
- **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`
|
|
72
84
|
3. Extract the downloaded ZIP file
|
|
73
85
|
4. Run the installation script:
|
|
74
86
|
- On Windows: Double-click `install.cmd`
|
|
@@ -124,7 +136,7 @@ OTVision provides several command-line scripts for different functionalities:
|
|
|
124
136
|
Convert video files (e.g., h264 to mp4):
|
|
125
137
|
|
|
126
138
|
```bash
|
|
127
|
-
|
|
139
|
+
uv run convert.py --paths /path/to/videos/*.h264 --input-fps 20.0 --rotation 0
|
|
128
140
|
```
|
|
129
141
|
|
|
130
142
|
### Object Detection
|
|
@@ -132,7 +144,7 @@ python convert.py --paths /path/to/videos/*.h264 --input-fps 20.0 --rotation 0
|
|
|
132
144
|
Detect objects in videos:
|
|
133
145
|
|
|
134
146
|
```bash
|
|
135
|
-
|
|
147
|
+
uv run detect.py --paths /path/to/videos/*.mp4 --weights yolov8s
|
|
136
148
|
```
|
|
137
149
|
|
|
138
150
|
### Object Tracking
|
|
@@ -140,7 +152,7 @@ python detect.py --paths /path/to/videos/*.mp4 --weights yolov8s
|
|
|
140
152
|
Track detected objects:
|
|
141
153
|
|
|
142
154
|
```bash
|
|
143
|
-
|
|
155
|
+
uv run track.py --paths /path/to/detections/*.otdet
|
|
144
156
|
```
|
|
145
157
|
|
|
146
158
|
### Coordinate Transformation
|
|
@@ -148,7 +160,7 @@ python track.py --paths /path/to/detections/*.otdet
|
|
|
148
160
|
Transform pixel coordinates to UTM coordinates:
|
|
149
161
|
|
|
150
162
|
```bash
|
|
151
|
-
|
|
163
|
+
uv run transform.py --paths /path/to/tracks/*.ottrk --refpts-file /path/to/reference_points.json
|
|
152
164
|
```
|
|
153
165
|
|
|
154
166
|
### Configuration
|
|
@@ -156,7 +168,7 @@ python transform.py --paths /path/to/tracks/*.ottrk --refpts-file /path/to/refer
|
|
|
156
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:
|
|
157
169
|
|
|
158
170
|
```bash
|
|
159
|
-
|
|
171
|
+
uv run detect.py --config /path/to/custom_config.yaml
|
|
160
172
|
```
|
|
161
173
|
|
|
162
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=
|
|
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.
|
|
114
|
-
otvision-0.6.
|
|
115
|
-
otvision-0.6.
|
|
116
|
-
otvision-0.6.
|
|
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,,
|
|
File without changes
|
|
File without changes
|