Skip to content

Instantly share code, notes, and snippets.

@tejovanthn
Created January 22, 2014 17:38
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 tejovanthn/8563321 to your computer and use it in GitHub Desktop.
Save tejovanthn/8563321 to your computer and use it in GitHub Desktop.
Script to yield (index, shutter speed) for processing.
import exifread
# Open image file for reading (binary mode)
i = 1
with open("~/timelapse/files.txt", "r") as fn:
for line in fn:
f = open("/home/tejovanth/timelapse/src/"+line[:-1], 'rb')
# Return Exif tags
tags = exifread.process_file(f)
print str(i) + ", " + str(tags["EXIF ExposureTime"]) + ", "
i += 1
f.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment