API Reference#
The classes and factory functions below are importable from the top-level
rapidtools package (import rapidtools as rt) as well as from the
subpackage shown; the lower-level functions listed by module name
(street_fusion.fuse_observations, …) are imported from that module.
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 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. |
|
Attach to every asset the drone photos that show the most of it. |
|
Pick, for every asset, the drone photos that show the most of 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. |
|
Whether a text prompt asks for buildings. |
|
The scan settings in effect for a prompt (see |
|
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 that gives building footprints straight, square walls. |
|
Pipeline component to regularize jagged raster-to-vector road polygons. |
|
Fuse detections from overlapping views into one outline per object. |
|
Turn a mask-traced footprint into a building-like outline. |
|
Regularize a set of neighboring footprints together. |
|
Vectorize a binary mask into valid WGS84 polygons. |
Street-level localization#
How sightings in street-level images become positioned objects: the camera model, occupancy fusion, structures from the survey’s point cloud, the earlier tracking and triangulation method with its covariance-aware merging and 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 normalized 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 objects by occupancy fusion. |
|
Read a sighting's outline as a scan: its lower and upper edge per column. |
|
Turn a scan's lower edge into an occupied range band per column. |
|
One object found by occupancy fusion. |
|
The detections of one class in an overhead image, with what they weigh. |
|
Aerial evidence in a local meter frame (see |
|
Shift that lines overhead detections up with objects placed from the street. |
|
Where a street survey and an overhead image disagree, place by place. |
|
Move objects placed from the street onto an overhead image's positions. |
|
Square tiles that cover the part of a frame where objects stand. |
|
Cut one tile out of a frame, across the seam of a panorama if need be. |
|
Outlines, on the whole frame, of the masks found in its tiles. |
|
Find the structures of one class in a survey's point clouds. |
|
Vote: keep the reconstructed points most frames place on the class. |
|
Group labeled points into structures and outline each one. |
|
Rectangle footprint of a structure seen from the street. |
|
Footprint whose front follows the setbacks of the facade. |
|
Which points of a cloud a panorama can see. |
|
Altitude of the ground under points of a cloud, read from the cloud. |
|
Whether the frames in front of two wall pieces outline them as one building. |
|
Find buildings from one outline per building and frame. |
|
Outer outlines of a binary mask in normalized image coordinates. |
|
The reconstructed points around a set of frames, and the frames' poses. |
|
Which reconstructed points every outline holds. |
|
Group outlines of different frames that show the same building. |
|
Assign every reconstructed point to the track it belongs to, if any. |
|
Say which outlines show which known footprints. |
|
The part of a panorama a footprint raised to a box projects onto. |
|
What a survey saw of one known footprint. |
|
Download (or read from |
|
One building (or other structure) found in the labeled point cloud. |
|
One structure-from-motion cluster of a survey. |
|
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 neighbor into that neighbor. |
|
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-normalized 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 catalog of a provider (no network). |
|
Return the per-model default settings that apply to |
|
Set default settings for a model ID (or a prefix ending in |
|
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 and Muse Wonder. |
|
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. |
|
One drone photograph: where the camera was, where it looked, and its lens. |
|
Read the camera poses of a set of drone photos. |
|
Read camera poses from a sidecar table. |
|
Save a JPEG that carries |
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. |
JSON job interface#
The file format is specified in JSON job interface.
Run a job file (or an in-memory job) and return its result. |
|
Executes jobs with a workflow engine. |
|
The outcome of a job, mirrored in its result file. |
|
The outcome of one step. |
|
A job: where to write, and the steps to run in order. |
|
One step of a job, exactly as written in the job file. |
|
Build a job in memory, ready to be saved or run. |
|
Accept a job in any of its forms and return a |
|
Resolves the secret references of a job. |
|
A job document, or one of its steps, is not valid. |
|
A kind of step a job may contain. |
|
One option of a step type. |
|
One piece of data a step type reads. |
|
One file a step type writes that later steps may read. |
|
Everything a step needs to run, and the place it reports back to. |
|
Make a step type available to job files. |
|
Look up a step type by the name used in job files. |
|
Return the JSON Schema (draft 2020-12) of a job file. |
|
Return the JSON Schema (draft 2020-12) of a job result file. |
|
Return the JSON Schema (draft 2020-12) of a secrets file. |
|
Return the catalog of step types as plain JSON data. |
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 |