This project has been archived by its maintainers, and is no longer receiving any updates.
Stabilo Optimize
⚠️ Archived: this repository is archived and no longer developed. Its successor is Stabilo Benchmark 🎯.
Stabilo-Optimize is a Python benchmarking tool designed specifically to evaluate and tune methods and hyperparameters of the Stabilo ⚖️ library for video and track stabilization tasks. It systematically generates performance evaluations through random perturbations, eliminating the need for ground-truth homographies. This tool significantly simplifies the optimization of stabilization techniques, making it ideal for high-precision tasks in fields such as urban monitoring, traffic analysis, and drone imagery processing.
About the successor: Stabilo Benchmark 🎯 continues this project. Stabilo-Optimize tunes Stabilo under random perturbations of static scenes, the campaign of the associated article. Stabilo Benchmark extends that campaign to complete registration pipelines (feature detector, descriptor, matcher, robust estimator and object masking) on static and real dynamic urban scenes, scored against an audited reference. It is the benchmark of the paper "Consensus Capture in Reference-Based UAV Video Stabilization: A Benchmark on Dynamic Urban Scenes" (arXiv preprint), whose inputs and results are in a data record on Zenodo.
Why Stabilo-Optimize
- Ground Truth-Free Benchmarking: Randomly generates photometric and homographic perturbations (brightness variations, Gaussian blur, saturation adjustments, fog effects, rotations, translations, scales, and perspective shifts).
- Hierarchical Benchmarking Strategy: Encourages users to systematically vary hyperparameters hierarchically for efficient parameter optimization.
- Flexible JSON Configuration: Customize extensive parameter settings using nested dictionaries (see comprehensive_benchmark.json or simple_benchmark.json for examples).
- Result Visualization: Generates comprehensive performance plots and benchmarking process visualizations.
Install
Create and activate a Python virtual environment (Python 3.9–3.13), then install from PyPI:
python3.11 -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install stabilo-optimize
Also works with uv (uv pip install stabilo-optimize) and conda.
For development, clone the repository and install in editable mode with the dev extra:
git clone https://github.com/rfonod/stabilo-optimize.git
cd stabilo-optimize && pip install -e '.[dev]'
Quick Start
A sample benchmark (simple_benchmark.json) with provided scenes and vehicle bounding box masks is included in the experiments/sample_experiment directory. To reproduce the results, run:
stabilo-optimize benchmark experiments/sample_experiment/simple_benchmark.json -sp -sv -o
-sp: Save performance plots.-sv: Save benchmark visualization video.-o: Overwrite previous results.
Add -l <path>/--log-file <path> (also available on plot) to additionally write console output to a file — parent directories are created automatically, color codes are stripped in the file, the resolved absolute path is printed to the console, and log files are gitignored (*.log) by default.
-v/--verbosity (benchmark only) controls how much detail is printed, including from Stabilo's own internal logging: 0=quiet (top-level status only, Stabilo's own messages fully suppressed), 1=minimal (+ per-run header/summary table, Stabilo errors only), 2=detailed (+ per-scene summary table, Stabilo warnings and up), 3=debug (+ per-trial output, Stabilo info and up).
Use stabilo-optimize benchmark --help to explore additional command-line options, or re-plot existing results without re-running the benchmark:
stabilo-optimize plot experiments/sample_experiment/simple_benchmark.json
Note: This example is limited to three scenes for demonstration purposes. Users should define their own benchmarks with a more representative selection of scenes for meaningful evaluation.
Custom Benchmarking
To set up your own benchmark, create a new experiment directory within experiments containing:
benchmark.json: Configuration specifying methods/hyperparameters and number of random trials (N) per scene. For reliable results, setN > 100.scenes: Directory containing input images (and optional exclusion masks in YOLO format). Ensure selected scenes adequately represent your stabilization tasks. To obtain reliable benchmarking results, include a diverse set of scenes covering different lighting conditions and camera viewpoints.
Example structure:
experiments
└─custom_experiment
├─benchmark.json
└─scenes
├ image1.jpg
├ image1.txt
├ image2.jpg
├ image2.txt
├ ...
Note: A comprehensive configuration file (comprehensive_benchmark.json) is included for illustration purposes. Due to computational costs, users should avoid directly running such an extensive parameter search. Instead, adopt a hierarchical parameter search approach by fixing some hyperparameters and varying others.
Refer to the Stabilo ⚖️ library and the associated article for detailed descriptions of available methods and hyperparameters.
GPU acceleration: setting gpu: true in the config runs (parts of) Stabilo's pipeline on an NVIDIA GPU — see docs/cuda.md in the Stabilo repo for building a CUDA-enabled OpenCV and setting it up. This mainly affects Computation_time, not tuning outcomes: RANSAC-based homography/affine estimation always runs on CPU, so the HEA/MIoU accuracy metrics are essentially unaffected by this setting.
Benchmarking Metrics
Benchmarks use metrics like Homography Estimation Accuracy (HEA) and Mean Intersection over Union (MIoU). MIoU specifically evaluates the accuracy of object-level registration and requires bounding box masks for calculation. Detailed metric definitions and analysis are provided in the manuscript.
🔗 Related Projects
- Stabilo ⚖️: the video and trajectory stabilization library that Stabilo-Optimize benchmarks and tunes.
- Stabilo Benchmark 🎯: the successor of Stabilo-Optimize. Extends its static campaign to complete registration pipelines on static and dynamic urban scenes, and is the benchmark of the consensus capture paper, with its data record.
- Geo-trax 🚀: end-to-end framework for extracting georeferenced vehicle trajectories from drone imagery. Uses Stabilo, tuned via Stabilo-Optimize, as its core stabilization engine.
- HBB2OBB 🔄: converts horizontal bounding boxes to oriented bounding boxes using SAM segmentation models. Can be used alongside the Stabilo ecosystem when object orientation is needed for downstream analysis.
Citation
If you use Stabilo-Optimize in your research, software, or product, please cite the following resources appropriately:
-
Preferred Citation: Please cite the associated article for any use of the Stabilo-Optimize, including research, applications, and derivative work:
@article{fonod2025advanced, title = {Advanced computer vision for extracting georeferenced vehicle trajectories from drone imagery}, author = {Fonod, Robert and Cho, Haechan and Yeo, Hwasoo and Geroliminis, Nikolas}, journal = {Transportation Research Part C: Emerging Technologies}, volume = {178}, pages = {105205}, year = {2025}, publisher = {Elsevier}, doi = {10.1016/j.trc.2025.105205}, url = {https://doi.org/10.1016/j.trc.2025.105205} }
-
Repository Citation: When referencing or building on the code itself (replace
1.x.xwith the version you used):@software{fonod2026stabilo-optimize, author = {Fonod, Robert}, title = {Stabilo Optimize: A Framework for Comprehensive Evaluation and Analysis for the Stabilo Library}, year = {2026}, month = nov, version = {1.x.x}, license = {MIT}, doi = {10.5281/zenodo.13828429}, url = {https://github.com/rfonod/stabilo-optimize} }
-
Benchmark Citation: If you build on the successor benchmark, or use its software or data, please cite the benchmark paper (see Stabilo Benchmark for its software and data citations):
@article{fonod2026benchmark, author = {Fonod, Robert and Geroliminis, Nikolas}, title = {Consensus Capture in Reference-Based UAV Video Stabilization: A Benchmark on Dynamic Urban Scenes}, journal = {arXiv preprint arXiv:2611.17190}, year = {2026}, doi = {10.48550/arXiv.2611.17190} }
Contributing
This repository is archived and accepts no new issues or pull requests. For questions and suggestions, please use the issues of Stabilo Benchmark, its successor.
License
This project is distributed under the MIT License. See the LICENSE file for more details.
Metadata
Release files for stabilo-optimize 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| stabilo_optimize-1.1.1.tar.gz | 32.9 kB | With provenance | Details for stabilo_optimize-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stabilo_optimize-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for stabilo_optimize-1.1.1-py3-none-any.whl |
Total release size: 60.6 kB
Release files / stabilo_optimize-1.1.1.tar.gz
| Download URL | stabilo_optimize-1.1.1.tar.gz |
|---|---|
| Size | 32.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
72ab0418c49bebf7e432e3160ed4b2def9d40392a88b9859a689f176bd85fa00
|
|
BLAKE2b-256 checksum How to use checksums |
a1baff987f9ecf373c250cd0dff7176f1496e2748f5368e8bb5d3907eec9f4be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.
Transparency logRelease files / stabilo_optimize-1.1.1-py3-none-any.whl
| Download URL | stabilo_optimize-1.1.1-py3-none-any.whl |
|---|---|
| Size | 27.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
95305580502ce4bb7fd245dbf5b7a3d805297344780f601ddfccdfa3bd7f8617
|
|
BLAKE2b-256 checksum How to use checksums |
3bcfd8c90fb06150261c4025df0e2c74aebfcb3e337bffc91c15def594529784
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.
Transparency logSecurity for stabilo-optimize 1.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for stabilo_optimize-1.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.