Skip to content

Instantly share code, notes, and snippets.

@loganwilliams
Created October 18, 2017 18:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loganwilliams/97fb34bd057381ee8518ac1a024058bf to your computer and use it in GitHub Desktop.
Save loganwilliams/97fb34bd057381ee8518ac1a024058bf to your computer and use it in GitHub Desktop.
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