-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
39667d5
commit 2ce0615
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,37 @@ | ||
# imagelist.py | ||
|
||
|
||
This script downloads a list of images provided by a txt file from the example Getty images stored in Google Drive. | ||
|
||
To run the command you first need to download credentials from Google by registering a new Google Drive project at: | ||
|
||
https://developers.google.com/workspace/guides/create-project | ||
|
||
Download the credentials and store it in the download directory and call it `credentials.json`. | ||
|
||
Run the command as follows: | ||
|
||
``` | ||
python imagelist.py ../data/50_images/image_list.txt ../imgs/50/original/ | ||
``` | ||
|
||
Where: | ||
* `../data/50_images/image_list.txt` is the list of image filenames to download | ||
* `../imgs/50/original/`` is the location to download the tif files. | ||
|
||
|
||
An example of the image list is below: | ||
|
||
``` | ||
gm_36716601.tif | ||
gm_36717601.tif | ||
gm_36717701.tif | ||
gm_36717901.tif | ||
gm_37049301.tif | ||
gm_37199501.tif | ||
gri_2001_pr_2_001_mm.tif | ||
gri_2003_r_22_b008_007_mm.tif | ||
gri_2011_m_34_001_pm.tif | ||
gri_2012_pr_71_pm.tif | ||
gri_2014_pr_24_001_mm.tif | ||
``` |