rAPIdtools#

Turn post-disaster imagery into structured, GIS-ready assessments. rAPIdtools crops aerial and street-level imagery around every building, road or pole in your inventory, runs the crops through a vision-language model of your choice, and writes the answers back to GeoJSON or Shapefile.

Installation

pip install rapidtools, then add the API keys or local weights for the models you want to use.

Installation
Quickstart

Grade every building in an orthomosaic in under twenty lines of code, with a local model or a hosted API.

Quickstart
Examples

Complete scripts on real data: damage and recovery after the 2025 Eaton Fire, a street survey of Spokane, drone photos, footprints and roads.

Aerial damage assessment: Eaton Fire
API Reference

Every public class and function, one page each, with runnable examples.

API Reference

What it does#

rAPIdtools handles the steps between “we have imagery” and “we have an answer for every building”:

  • Read footprints from GeoJSON or Shapefiles and crop multi-gigabyte orthomosaics one window at a time.

  • Fetch imagery when you have none. It stitches Bing or Google basemaps into GeoTIFFs and finds the Google Street View or Mapillary panoramas that actually show each asset, skipping views blocked by a neighbor. From a drone flight it picks the few photos that show the most of each building.

  • Build the inventory when you have none. SAM 3 finds buildings, roads or trees in a raster from a text prompt, and a Mapillary survey yields vehicles, poles and houses from the detections Mapillary already publishes.

  • Ask any vision-language model about each asset: Gemini, Claude, OpenAI, Muse Spark or Qwen through their APIs, or Gemma 4, Llama, Muse Glimmer, Qwen and other Hugging Face checkpoints on your own GPU. Batching and rate limits are handled for you.

  • Work from a browser if you prefer. The bundled interface runs the same workflow without code, and any long job can be stopped without losing what it has already finished.

import rapidtools as rt

rt.configure_logging()
buildings = rt.PhysicalAssetCollection.from_geojson('buildings.geojson')
model = rt.models.load('gemini', api_key='AIza...')  # or 'gemma4', 'claude', ...
pipeline = rt.Pipeline([
    rt.AerialImageryExtractor('ortho.tif', save_directory='crops', buffer_m=20),
    rt.AssetAnalyzer(model, prompt='Rate the damage 0-5 as JSON.'),
])
buildings = pipeline.run(buildings)

Feedback and feature requests#

rAPIdtools is shaped by the surveys it is used on. If a workflow does not fit your data, a page is unclear or something is missing, please tell us. The feedback page has a form for feature requests, one for bug reports and one for general feedback, plus an email address if you do not use GitHub.

Citing rAPIdtools#

rAPIdtools is developed by the NSF NHERI RAPID Facility at the University of Washington, supported by the U.S. National Science Foundation, and released under the BSD 3-Clause license. If it contributes to your research, please cite it; the repository’s Cite this repository button gives APA and BibTeX entries, and each release is archived on Zenodo with a DOI.

@software{rapidtools,
  author  = {Cetiner, Barbaros},
  title   = {rAPIdtools: A high-performance toolkit for performing large-scale AI inference and localization on post-disaster geospatial datasets},
  year    = {2026},
  doi     = {10.5281/zenodo.24542491},
  url     = {https://github.com/RAPID-Facility/rAPIdtools}
}

This DOI covers every version and always resolves to the latest one. When you report results, cite the release you used instead: add its version number and use its own DOI, listed under Versions on the Zenodo page.