comment show tags
This commit is contained in:
parent
cbbe4ca341
commit
43b0585723
1 changed files with 4 additions and 4 deletions
|
@ -72,10 +72,10 @@ class image_classifier:
|
||||||
with open(file, 'rb') as image_file:
|
with open(file, 'rb') as image_file:
|
||||||
self.exif_info = exif.Image(image_file)
|
self.exif_info = exif.Image(image_file)
|
||||||
if self.exif_info.has_exif:
|
if self.exif_info.has_exif:
|
||||||
for key in dir(self.exif_info):
|
# for key in dir(self.exif_info):
|
||||||
if not key.startswith("_"):
|
# if not key.startswith("_"):
|
||||||
sys.stdout.write(f"{key}: ")
|
# sys.stdout.write(f"{key}: ")
|
||||||
sys.stdout.write(f"{self.exif_info[key]}")
|
# sys.stdout.write(f"{self.exif_info[key]}")
|
||||||
self.append_people_to_exif(people)
|
self.append_people_to_exif(people)
|
||||||
with open(file, 'wb') as new_image_file:
|
with open(file, 'wb') as new_image_file:
|
||||||
new_image_file.write(self.exif_info.get_file())
|
new_image_file.write(self.exif_info.get_file())
|
||||||
|
|
Loading…
Reference in a new issue