Python utility to download Google Maps Street View images and stitch into spherical equirectangular projection for WebXR display.
First, set up an API key through Google Cloud Platform
Once done, change API.py
to the appropriate key assigned to you.
API_key = 'your GCP Google maps key here'
URL_sign = 'your GCP URL sign here'
For more information go here
pip install numpy
pip install imutils
pip install opencv-python
- git clone repository into following directory
'\Users\Username\'
- Download source images at given latitude and longitude using Google Maps Street View API run:
python3 scrying.py
- Stitch the source images into an equi-rectangular projection using OpenCV run:
python3 stitchTogether.py
After running python3 scrying.py
images folder will be created in the following file path '\Users\Username\scrying\images'
- note python scripts use numpy as a dependencies when creating a file for your API keys, avoid naming or using "secrets.py" as anaconda3/Lib/secrets.py can (and probably will) get overwritten. Numpy relies on files in this directory called random.py and secrets.py so if you have files with those names numpy will not load.