comment show tags

This commit is contained in:
Antonio J. Delgado 2021-09-06 17:29:22 +03:00
parent cbbe4ca341
commit 43b0585723

View file

@ -72,10 +72,10 @@ class image_classifier:
with open(file, 'rb') as image_file:
self.exif_info = exif.Image(image_file)
if self.exif_info.has_exif:
for key in dir(self.exif_info):
if not key.startswith("_"):
sys.stdout.write(f"{key}: ")
sys.stdout.write(f"{self.exif_info[key]}")
# for key in dir(self.exif_info):
# if not key.startswith("_"):
# sys.stdout.write(f"{key}: ")
# sys.stdout.write(f"{self.exif_info[key]}")
self.append_people_to_exif(people)
with open(file, 'wb') as new_image_file:
new_image_file.write(self.exif_info.get_file())