Skip to content

Python script to create a compilation of my coffee pictures.

License

Notifications You must be signed in to change notification settings

ca057/coffeescript.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coffeescript.py

Since begining 2019 I take a picture of every coffee I drink. coffeescript.py is a small script which takes these pictures, crops them and creates a compilation out of it.

This compilation looks for 11th February to 11th August 2019 like this (sorted by date and time):

Compilation sorted by date and time

In addition, the compilation can also be sorted by brightness of the cropped pictures:

Compilation sorted by date and time

At the moment, the cropping and processing of the pictures is tightly coupled towards the images I get out of my smartphone. The coffee should be in the centre of the image, as this area will be chosen for cropping. Besides this constraint, several parameters can be adjusted by passing in command line arguments.

The script uses Pillow for reading, analysing and writing images.

Setup

# create a virtual env if needed
python3 -m venv .venv
source .venv/bin/activate

# install dependencies
pip install -r requirements.txt
python ./coffeescript.py

About

Python script to create a compilation of my coffee pictures.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages