StreetDetectionSettings

StreetDetectionSettings#

class rapidtools.gui.StreetDetectionSettings(output_dir: Path, classes: list[str], access_token: str, raster_path: Path | None = None, region: Any = None, start_date: str = '', end_date: str = '', filter_rapid_only: bool = True, detection_source: str = 'auto', frame_spacing_m: float = 3.0, min_observations: int = 2, cluster_radius_m: float = 4.0, camera_height_m: float = 2.4, max_range_m: float = 60.0, max_workers: int = 10)[source]#

Bases: object

Options for AssetAnalysisWorkflow.discover_street().

Objects of classes are discovered in every Mapillary image of the region, which defaults to the extent of raster_path so the GUI can draw the results on the loaded imagery.

Example

>>> StreetDetectionSettings(
...     output_dir='out', classes=['vehicles'], access_token='MLY|...',
...     raster_path='scene.tiff',
... ).frame_spacing_m
3.0