Created
October 18, 2017 18:22
-
-
Save loganwilliams/97fb34bd057381ee8518ac1a024058bf to your computer and use it in GitHub Desktop.
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
last_pano = '' | |
last_date = '' | |
i = 0 | |
pairs = [] | |
for i in range(len(interpolated_points)): | |
print i | |
new_pano, new_date = outdoors(interpolated_points[i][0], interpolated_points[i][1]) | |
if (new_pano > 0) and (new_pano != last_pano): | |
if (new_date == last_date): | |
# we're going to construct a list of tuples of sequential images taken on the same day. why? you'll see soon. | |
pairs.append((i-1, i)) | |
last_date = new_date | |
last_pano = new_pano | |
img = get_pano(new_pano, interpolated_headings[i]) | |
img.save('prefix_' + str(i).zfill(5) + '.png') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment