Photo Manipulation Tools
The idea behind this script is to download all the photos from a Flickr set specified by its set ID, organize them by month taken, and then generate one average image (or long exposure simulation) for each month. It leverages
avg_phoots.py to do the photo manipulation.
This script will generate an average image (or long exposure simulation) using all the images in a specified folder.
./avg_phoots.py [folder] [combination_method] [output_file_name] [imaging_library]
folder is any folder you have permission to read that contains
combination_method is either
crop means that all images are cropped into square images with dimensions equal to the smallest dimension found in all the images in the folder.
pad means that all images are padded into square images with dimensions equal to the largest dimension found in all the images in the folder.
output_file_name is the filename that the average image will be written to.
imaging_library is either
pil (if you want to use Python Imaging Library) or
cv2 (if you want to use OpenCV, which seems to be faster).
This script will add machine tags to all photos in a specified flickr set with a specified namespace and predicate, but the value will be calculated based on the title (or, if you uncomment a line of code and comment a couple others, the photo's "taken" date). A valid OAuth key with write permissions must be available.
./add_date_machine_tags.py [set_id] [namespace] [predicate]