Traffic Node Video Dataset 2.0 - Sample Code
This page lists the executable sample scripts and notebooks added for the dataset website.
Core scripts
| File | Topic |
|---|---|
| examples/load_dataset.py | Dataset manifest loading. |
| examples/plot_trajectories.py | Trajectory plotting. |
| examples/apply_homography.py | Basic homography transform. |
| examples/generate_summary_stats.py | Per-track summary statistics. |
Extended scripts
| File | Topic |
|---|---|
| examples/filtering_examples.py | Length, class, low-motion and application-based trajectory filtering. |
| examples/filling_and_smoothing_examples.py | Missing detection filling, hidden-object handling, speed/acceleration and bounding box smoothing. |
| examples/homography_extended_examples.py | Homography estimation, inverse projection and reprojection error calculation. |
| examples/isotropic_normalization_examples.py | Scene-level and track-level isotropic coordinate normalization. |
Notebooks
| 01 Load dataset |
| 02 Visualize trajectories |
| 03 Homography transform |
| 04 Perspective tool demo |
| 05 Filtering |
Run locally
pip install -r requirements.txt python examples/filtering_examples.py python examples/filling_and_smoothing_examples.py python examples/homography_extended_examples.py python examples/isotropic_normalization_examples.py