panel_segmentation.utils.generateSatelliteImage#

panel_segmentation.utils.generateSatelliteImage(latitude, longitude, file_name_save, google_maps_api_key, zoom_level=18)[source]#

Generates satellite image via Google Maps, using a set of lat-long coordinates.

Parameters:
  • latitude (float) – Latitude coordinate of the site.

  • longitude (float) – Longitude coordinate of the site.

  • file_name_save (string) – File path that we want to save the image to, where the image is saved as a PNG file.

  • google_maps_api_key (string) – Google Maps API Key for automatically pulling satellite images. For more information, see here: https://developers.google.com/maps/documentation/maps-static/start

  • zoom_level (int, default 18) – Zoom level of the image. Set to 18 as default, as that’s what’s used for the original panel-segmentation models.

Returns:

Figure of the satellite image

Return type:

Figure