Code for downloading, segmenting and analysing images from Mapillary and KartaView, with the aim of extracting the emissivity and albedo of buildings.
Project description
Overview
streetscapes
is a package to extract metadata, download, segment and analyse street view images from various open sources, such as Mapillary, Kartaview and Amsterdam Open Panorama. The package also builds upon the Global Streetscapes, making it possible to use the dataset for analysis and download images with certain properties.
This package is a subproject of (Urban-M4), which aims to model the Urban Heat Island effect by evaluating the properties of individual objects in the images (such as buildings, roads and sidewalks).
For more information, please refer to the documentation.
📥 Setup
Create and activate a virtual environment using the tool of your choice, such as venv. You can also use Conda (or Mamba) if you prefer, but please note that all dependencies are installed by pip
from PyPI
.
Using venv
:
python -m venv .venv
source .venv/bin/activate
Using conda
:
conda create -n myenv -c conda-forge python=3.12 pip
conda activate myenv
⚙️ Installation
The streetscapes
package can be installed from PyPI:
pip install streetscapes
Alternatively, the in-development version of streetscapes
can be installed by cloning the repository and installing the package locally with pip
:
git clone git@github.com:Urban-M4/streetscapes.git
cd streetscapes
pip install -e .
⚠️ If one or more dependencies fail to install, check the Python version - it might be too new. While streetscapes
itself specifies only the minimal required Python verion, some dependencies might be slow to make releases for the latest Python version.
Configuring the package for development
To install with optional dependencies:
git clone git@github.com:Urban-M4/streetscapes.git
cd streetscapes
pip install -e .[dev]
Building and running the documentation
The streetscapes
project documentation is based on MkDocs. To build and view the documentation:
mkdocs build
The documentation can then be viewed locally:
mkdocs serve
This will start an HTTP server which can be accessed by visiting http://127.0.0.1:8000
in a browser.
🌲 Environment variables
To facilitate the use of streetscapes
when dowloading images, access tokens can be added to an .env
file in the root directory of the streetscapes
repository. You can get and access token for Mapillary here.
Variable | Description |
---|---|
MAPILLARY_TOKEN |
A Mapillary token string used for authentication when querying Mapillary via their API. |
Contributing and publishing
If you want to contribute to the development of streetscapes, have a look at the contribution guidelines.
🪪 Licence
streetscapes
is licensed under CC-BY-SA-4.0
.
🎓 Acknowledgements and citation
This repository uses the data and work from the Global Streetscapes project.
[1] Hou Y, Quintana M, Khomiakov M, Yap W, Ouyang J, Ito K, Wang Z, Zhao T, Biljecki F (2024): Global Streetscapes — A comprehensive dataset of 10 million street-level images across 688 cities for urban science and analytics. ISPRS Journal of Photogrammetry and Remote Sensing 215: 216-238. doi:10.1016/j.isprsjprs.2024.06.023
The streetscapes
package can be cited using the supplied citation information. For reproducibility, you can also cite a specific version by finding the corresponding DOI on Zenodo.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file streetscapes-0.3.0.tar.gz
.
File metadata
- Download URL: streetscapes-0.3.0.tar.gz
- Upload date:
- Size: 45.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ac403580b5209beef6c63af9fcada0c26feb796d2a21d602765189e3fb1a2a5 |
|
MD5 | 40892a4061e08eb8f09cdcb7bafe7ac7 |
|
BLAKE2b-256 | 7c557a03676af0d311bc6a55fcb51211e54a532b1a51658616ff9708fe81bb50 |
Provenance
The following attestation bundles were made for streetscapes-0.3.0.tar.gz
:
Publisher:
pypi.yml
on Urban-M4/streetscapes
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
streetscapes-0.3.0.tar.gz
- Subject digest:
6ac403580b5209beef6c63af9fcada0c26feb796d2a21d602765189e3fb1a2a5
- Sigstore transparency entry: 209161034
- Sigstore integration time:
- Permalink:
Urban-M4/streetscapes@5c40eb2efc5b9886cc4c6d74426c917304a51329
- Branch / Tag:
refs/tags/v0.3.0
- Owner: https://github.com/Urban-M4
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
pypi.yml@5c40eb2efc5b9886cc4c6d74426c917304a51329
- Trigger Event:
release
- Statement type:
File details
Details for the file streetscapes-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: streetscapes-0.3.0-py3-none-any.whl
- Upload date:
- Size: 51.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e08029d0bb756364c80e6dfc5bd25f5d694d545386003241b20d2d1aa5d0958a |
|
MD5 | 1517df04b9d73f71339b1dace293bd4e |
|
BLAKE2b-256 | 88f3b7193fd9b803ab0e44f72dea5b0e8aaca35ac80fbce1150ec01931484b24 |
Provenance
The following attestation bundles were made for streetscapes-0.3.0-py3-none-any.whl
:
Publisher:
pypi.yml
on Urban-M4/streetscapes
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
streetscapes-0.3.0-py3-none-any.whl
- Subject digest:
e08029d0bb756364c80e6dfc5bd25f5d694d545386003241b20d2d1aa5d0958a
- Sigstore transparency entry: 209161039
- Sigstore integration time:
- Permalink:
Urban-M4/streetscapes@5c40eb2efc5b9886cc4c6d74426c917304a51329
- Branch / Tag:
refs/tags/v0.3.0
- Owner: https://github.com/Urban-M4
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
pypi.yml@5c40eb2efc5b9886cc4c6d74426c917304a51329
- Trigger Event:
release
- Statement type: