File size: 1,483 Bytes
9d62b12 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | # Example Scripts — Automatum Data Full Highway Dataset
These scripts demonstrate how to work with the Automatum drone traffic data using the `openautomatumdronedata` Python library.
## Prerequisites
```bash
pip install openautomatumdronedata numpy matplotlib
```
## Scripts
| Script | Description |
|--------|-------------|
| `01_lane_changes.py` | Analyzes lane change frequency per vehicle and shows the top 10 |
| `02_heatmap_density.py` | Creates a traffic density heatmap from all position data |
| `03_high_acceleration.py` | Detects vehicles exceeding an acceleration threshold |
## Usage
All scripts take the path to a recording folder as their first argument:
```bash
python 01_lane_changes.py ../hw-a9-denkendorf-001-uuid
python 02_heatmap_density.py ../hw-a9-appershofen-001-uuid
python 03_high_acceleration.py ../hw-a9-brunn-001-uuid 3.0
```
## Processing All Recordings
To batch-process all 114 recordings:
```python
import os
from openautomatumdronedata.dataset import droneDataset
base = "path/to/automatum_data_full_highway_drone_dataset"
for folder in sorted(os.listdir(base)):
if folder.startswith("hw-"):
dataset = droneDataset(os.path.join(base, folder))
print(f"{folder}: {len(dataset.dynWorld)} vehicles")
```
## Learn More
- [Full Documentation](https://openautomatumdronedata.readthedocs.io)
- [Research Paper (IV2021)](../doc/IV21_Automatumd_Full_Drone_Dataset.pdf)
- [Automatum Data Website](https://automatum-data.com)
|