API Reference#
Everything below is importable from the top-level rapidtools package as
well as from the subpackage shown. Heavy dependencies load on first use.
Core objects#
Represents a tangible, real-world entity. |
|
A specialized container for collection of PhysicalAsset objects. |
|
A single image asset, its location, metadata, and segmentation info. |
|
A container class for managing a group of ImageAsset objects. |
|
Represents an axis-aligned rectangular region. |
|
Represents a geographical region defined by a single polygon shell. |
|
One sighting of an object in a street-level image. |
|
Raised by a component when its |
|
Return |
|
Raise |
Pipeline and analysis#
A smart sequence of processing steps applied to a PhysicalAssetCollection. |
|
Execution order of pipeline steps (lower runs first). |
|
Structural type of a pipeline step. |
|
Describe every asset in a collection with a vision-language model. |
|
Shared back-off applied by |
|
Confirm that each detected object is what its asset type claims. |
|
Merge pairs of nearby objects that a model says are one vehicle. |
Imagery extractors#
Component that extracts aerial imagery patches for a collection of assets. |
|
Component that extracts and synthesizes aerial imagery from Bing Maps Tiles. |
|
Component that stitches Google Maps satellite tiles into a GeoTIFF. |
|
Street-view extractor that fetches keyless Google Street View crops of assets. |
|
Street-view extractor that fetches unobstructed Mapillary panoramas of assets. |
|
Crop each detected object out of the street-level images that saw it. |
|
Map natural-language class names to exact Mapillary segmentation labels. |
Detection, segmentation and regularization#
Pipeline component that uses local SAM 3 to discover real-world assets. |
|
Discover objects along a Mapillary survey and place them on the ground. |
|
Pipeline component that uses local SAM 3 to segment images attached to assets. |
|
Pipeline component to regularize and refine preliminary building polygons. |
|
Pipeline component to regularize jagged raster-to-vector road polygons. |
|
Vectorize a binary mask into valid WGS84 polygons. |
Street-level localisation#
How sightings in street-level images become positioned objects: the camera model, tracking and triangulation, covariance-aware merging, the ray-voting baseline and appearance re-identification.
Fill in the single-view ground position of an observation. |
|
Bearing to an observation and elevation of its ground contact. |
|
Unit direction in the camera frame of a normalised image point. |
|
Rotate a camera-frame direction into the world (east, north, up) frame. |
|
Rotation matrix of an axis-angle vector (Rodrigues' formula). |
|
Least-squares intersection of bearings from several camera positions. |
|
Find detections of the collection vehicle itself. |
|
Keep one frame per |
|
Turn the sightings of one class into object estimates. |
|
Drop a detector's duplicate outlines within each frame. |
|
Drop estimates that nearby frames should have seen but did not. |
|
Where one survey frame was taken and what it could see. |
|
Link the sightings of one sequence into tracks, one per object. |
|
Merge estimates whose lines of sight point at the same object. |
|
Position a track from its rays, or |
|
Fuse estimates of the same object; keep different objects apart. |
|
Fold objects that are really pieces of a neighbour into that neighbour. |
|
Whether a sighting can be of an object at |
|
Locate objects as peaks of accumulated ray votes on a ground grid. |
|
One candidate object: a position with uncertainty and its sightings. |
|
L2-normalised image embeddings from a Hugging Face vision backbone. |
|
Group candidates that are close together and look alike. |
|
List the candidate pairs whose appearance is worth comparing. |
|
The sightings of a candidate worth cropping for re-identification. |
|
Width of a detection outline in pixels of the image it was drawn on. |
|
Cut the axis-aligned crop of a detection polygon out of its source image. |
|
Cosine-similarity threshold that suits a backbone. |
Provider-specific analyzers#
These predate AssetAnalyzer and remain for compatibility. New code
should use AssetAnalyzer(load(provider, ...)).
Deprecated: use |
|
Deprecated: use |
|
Deprecated: use |
|
Deprecated: use |
|
Deprecated: use |
|
Deprecated: use |
|
Deprecated: use |
|
Deprecated: use |
|
Deprecated: use |
|
Deprecated: use |
Models#
The provider registry rapidtools.models.PROVIDERS maps each registry key
to a ModelInfo record and is always importable without PyTorch.
Instantiate a model wrapper from its registry key. |
|
Return registry keys, optionally filtered by kind. |
|
Return the curated model catalogue of a provider (no network). |
|
Import and return the wrapper class registered under |
|
Static description of a model backend. |
|
Text-generation options shared by every vision-language wrapper. |
|
Options for promptable segmentation models such as SAM 3. |
|
A universal container for multimodal AI model outputs. |
|
The top-level contract for all AI models (API or local). |
Hosted models#
Google Gemini |
|
Anthropic Claude Messages API client for image + text prompts. |
|
OpenAI Chat Completions client for image + text prompts. |
|
Meta Model API client for the Muse Spark family. |
|
Alibaba Cloud Model Studio (DashScope) client for hosted Qwen models. |
Local models#
Local inference model for Google's Gemma 4 vision-language models. |
|
Local inference with Meta's Llama 4 and Llama 3.2 Vision models. |
|
Local inference with Meta's open-weight Muse Glimmer vision-language model. |
|
Local inference with open-weight Qwen vision-language checkpoints. |
|
Run any Hugging Face vision-language checkpoint that ships a chat template. |
|
Text-prompted instance segmentation with SAM 3. |
Data sources#
Client for extracting high-resolution imagery from local orthomosaic rasters. |
|
Native georeferencing of an image patch read from a raster. |
|
Client for extracting satellite imagery from Google Maps tiles. |
|
Client for extracting high-resolution imagery from Bing Maps tiles. |
|
Keyless client for locating, downloading and cropping Street View panoramas. |
|
Metadata describing one Google Street View panorama. |
|
Fetch and store Mapillary images by ID or geographic bounding box. |
|
Namespace of official Mapillary segmentation label strings. |
|
Utility methods for Web Mercator/Mapbox Vector Tile operations. |
Datasets, configuration and authentication#
Download all files associated with one or more datasets from the registry. |
|
Attach a console handler to the |
|
Create a requests Session with retry logic, timeouts, and headers. |
|
Pop a deprecated keyword alias from |
|
Return a session with the retry policy used for provider API calls. |
|
Authenticate this machine with the Hugging Face Hub. |
|
Log in only when no Hugging Face token is cached yet. |
Graphical interface#
Start the GUI server and open it in the default browser (blocks). |
|
Orchestrates asset detection and VLM inference on an aerial raster. |
|
User-configurable options for the asset detection stage. |
|
Options for |
|
Options for |
|
User-configurable options for the VLM inference stage. |
|
Options for |
|
Where notifications are sent from. |
|
Send job summaries by email or webhook. |
|
What a finished job looks like to the recipient. |
|
Everything needed to assemble a prompt in the rapidtools sample layout. |
|
One line of the |
|
Description of one class of the primary categorical field. |
|
Render a |
|
Use a rapidtools model backend to help write a |