This repo shows you how to extract satellite images using a CSV file that contains coordinates (latitude and longitude). The extracted images can be used for different machine learning tasks such as path loss prediction (Of course the coordinates would have to be around the same area).
Note: This was run in PyCharm on a Windows environment. It works perfectly on Ubuntu too.
- Create a mapbox account here: www.mapbox.com.
- Once logged in, scroll down to Default Public Token. Copy it! You will need it in the ExtractSatelliteImages.py file
- Make sure you have downloaded and installed GeckoDriver in your computer. You can get it here: https://github.com/mozilla/geckodriver/releases
- Store the GeckoDriver.exe file in your root folder
- Run the ExtractSatelliteImages.py file. More explanations are in the comments
Using the data in the coordinates.csv file, some of the extracted images will look as below:
Go on and give it a try!