Overview
Streetscapes is a project within a project. The aim of the parent project (Urban-M4) is to model the Urban Heat Island effect with the help of various software tools. As part of the Urban-M4 ecosystem, Streetscapes provides a streamlined API for downloading, segmenting and analysing street view imagery (SVI). Specifically, the analysis is geared towards evaluating the properties of individual objects in the images (such as buildings, roads and sidewalks) that could help estimate the amount of heat trapped in urban environments. Streetscapes is based on and builds upon the results of the Global Streetscapes project.
This repository contains information and code for downloading, segmenting and analysing images from Mapillary and KartaView, using information from global-streetscapes dataset.
Installing streetscapes
The streetscapes python package is available on PyPI. Install this in a Python 3.14 environment with:
pip install streetscapes[sam3,explorer]
To install streetscapes with support for AMD GPUs (ROCm), do;
pip install uv # if you don't have uv yet
uv pip install streetscapes --extra rocm,sam3,explorer
For more information on the CLI, see this page.
Image sources
Streetscapes can retrieve street view images from Mapillary, KartaView and Panoramax, or use your own local images. See image sources for an overview.
Segmentation models
Streetscapes supports several computer vision models for segmenting the images (SAM3, DinoSAM, MaskFormer and BFMS). See segmentation models for an overview, and for the extra setup some models need.
Examples
- Facade classification in Amsterdam: classify building facades as brick, concrete or glass with SAM3, and map the facade fractions on a grid.
- Facade classification with confidence: a variant of the facade classification where overlapping facade masks are resolved by the most confident SAM3 instance.
- Facade emissivity map: convert the facade fractions into a map of facade emissivity, written to a GeoTIFF file.
- Building albedo: estimate building albedo from the HSV value of the building pixels, and write it to a GeoTIFF file on the same grid as the emissivity map.
- Building color analysis: compute the mean building color per image, and show how building color and hue vary over the city.