OTVision 0.6.10__py3-none-any.whl → 0.6.12__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.10.dist-info → otvision-0.6.12.dist-info}/METADATA +28 -23
- {otvision-0.6.10.dist-info → otvision-0.6.12.dist-info}/RECORD +5 -5
- {otvision-0.6.10.dist-info → otvision-0.6.12.dist-info}/WHEEL +0 -0
- {otvision-0.6.10.dist-info → otvision-0.6.12.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.12
|
|
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/
|
|
@@ -26,20 +26,22 @@ Requires-Dist: more-itertools==10.7.0
|
|
|
26
26
|
Requires-Dist: moviepy==1.0.3
|
|
27
27
|
Requires-Dist: numpy==1.26.4; sys_platform == 'win32'
|
|
28
28
|
Requires-Dist: numpy==2.1.1; sys_platform != 'win32'
|
|
29
|
-
Requires-Dist: opencv-python==4.10.0.84
|
|
29
|
+
Requires-Dist: opencv-python-headless==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
|
-
|
|
37
|
-
|
|
38
|
-
Requires-Dist:
|
|
39
|
-
Requires-Dist:
|
|
40
|
-
|
|
41
|
-
Requires-Dist:
|
|
42
|
-
Requires-Dist:
|
|
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
|
[](https://github.com/OpenTrafficCam/OTVision/actions/workflows/test.yml?query=tag%3Alatest)
|
|
49
51
|
[](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)
|
|
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
|
|
68
|
+
- Python 3.12
|
|
69
|
+
- [uv for dependency management](https://docs.astral.sh/uv/)
|
|
65
70
|
- CUDA-capable GPU (recommended for faster processing)
|
|
66
|
-
-
|
|
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 `
|
|
77
|
-
- **Linux**: Choose between `
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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=
|
|
4
|
+
OTVision/version.py,sha256=plkk-RqvsoYUO7Fil9ftBpALgkBi4uzxwKNZ6i97lao,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.12.dist-info/METADATA,sha256=f1uOdcqbVEmAjNVGg0LFgoAds-J-cyooi4_NX-q6nAU,6944
|
|
114
|
+
otvision-0.6.12.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
115
|
+
otvision-0.6.12.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
116
|
+
otvision-0.6.12.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|