System architecture
- The pipeline worker computes, FileBrowser stores, and the dashboard only reads. A run's results, once written, do not depend on the worker to be served.
- Upload path: orthomosaics (GeoTIFFs with an embedded CRS) go from the browser to the FastAPI service, which validates the CRS, writes the files and records acquisition dates in the database.
- Pipeline worker: runs the four-step pipeline inside Docker and writes outputs to
/app/data/<run_id>/outputs. GPU inference is used for detection. - Scheduling: when the upload completes, FastAPI triggers the
drone_phenology_monitoringDAG in Airflow with therun_idand any overridden parameters. The DAG runs thePhenology_Exportroot algorithm, which calls the pipeline's/api/export-phenologyendpoint. - Storage: every run has its own folder with uploads, intermediate outputs and the final viewer. FileBrowser gives read-only share links for each folder.
- Web dashboard: a FastAPI JSON API serves run metadata, triggers runs and streams per-step status. A Leaflet.js front end draws the viewer, polls run status every five seconds, and shows signed-in users only their own runs.
- Standalone viewer: each run also produces a self-contained
viewer.htmlwith relative paths, so it opens in any browser without the backend.
The top row is a one-time run per site. The bottom row is what happens whenever someone opens the dashboard or the viewer. Per-run storage sits between them.
