mirror of
https://codeberg.org/privacy1st/blur-exif-face-tags
synced 2024-12-22 01:16:04 +01:00
Blur persons and objects in images based on EXIF metadata
.idea | ||
example | ||
.gitignore | ||
area.py | ||
exif.py | ||
image_files.py | ||
image_manipulation.py | ||
LICENSE | ||
main.py | ||
README.md | ||
Screenshot-DigiKam.png | ||
subprocess_util.py |
Blur persons and objects in your images based on exif metadata
Example Workflow
- Face-tag persons with their names on your pictures
- This can be done with e.g.
DigiKam
- This can be done with e.g.
Screenshot of DigiKam with three tagged persons (named "A", "B" and "C"):
- Copy all pictures to be modified in a folder
See example
- Run this python script on that folder with a list of names of persons to be blurred
In
main.py
the three names are specified:names = ['A', 'B', 'C'] # TODO: Enter name of persons to be blurred
This results in the following picture:
Credits
Many thanks to
- https://www.thregr.org/~wavexx/software/facedetect/#blurring-faces-within-an-image
- "Make blur all around a rectangle in image with PIL", https://stackoverflow.com/q/56987112/6334421
- Example image: https://unsplash.com/photos/1qfy-jDc_jo