Add more output
This commit is contained in:
parent
77894ea1fe
commit
69d924d7a8
1 changed files with 2 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue