Created
October 2, 2017 18:22
-
-
Save zorix/571392a1df0ae88aa16625406f12fefe to your computer and use it in GitHub Desktop.
Rozwiązanie do misji 11 - https://www.youtube.com/watch?v=lDsigXCo5TA
This file contains hidden or 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
| from PIL import Image, ImageChops | |
| from os import listdir | |
| workDir = './data/' # dir with extracted files | |
| onlyfiles = [f for f in listdir(workDir) if '.' not in f] | |
| base = Image.open(workDir + onlyfiles[0]) | |
| for file in onlyfiles[1:]: | |
| im = Image.open(workDir + file) | |
| base = ImageChops.add(im, base) | |
| base.save("output.png") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment