Add more output

This commit is contained in:
Antonio J. Delgado 2021-09-06 20:16:02 +03:00
parent 77894ea1fe
commit 69d924d7a8

View file

@ -79,6 +79,7 @@ class image_classifier:
self.append_people_to_exif(people)
with open(file, 'wb') as new_image_file:
new_image_file.write(self.exif_info.get_file())
self._log.debug(f"Updated file '{file}'.")
else:
self._log.debug("No exif info in the image.")
# get date
@ -98,6 +99,7 @@ class image_classifier:
data['PeopleDetected'] = list()
for person in people:
data['PeopleDetected'].append(person)
self._log.debug(f"New 'user_comment': {json.dumps(data, indent=2)}")
self.exif_info.set("user_comment", json.dumps(data))
def is_json(self, data):