brails.scrapers.google_streetview.google_streetview module
This module defines GoogleStreetview class downloading Google street imagery.
|
A class that downloads street-level imagery and depth maps for buildings. |
- class brails.scrapers.google_streetview.google_streetview.GoogleStreetview(input_data)
Bases:
ImageScraper
A class that downloads street-level imagery and depth maps for buildings.
This class interfaces with the Google Street View API to obtain high-resolution street-level images and corresponding depth maps based on specified building footprints. It supports saving interim images and collecting various camera metadata.
- api_key
API key for authenticating requests to the Google Street View API.
- Type:
str
- get_images(inventory
AssetInventory, save_directory: str) -> ImageSet: Retrieves street-level imagery, depthmap, building location and camera parameters for the assets in the given inventory and saves them to the specified save_directory.
- get_images(inventory, save_directory)
Get street-level images of buildings from footprints in AssetInventory.
- Parameters:
inventory – AssetInventory for which the images will be retrieved
- Returns:
An ImageSet for the assets in the inventory
- Return type:
- Raises:
ValueError – If the provided inventory is not an instance of AssetInventory