From e01390fa3f163c0bcf8334292a770f0901d3611b Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Mon, 6 Sep 2021 21:17:30 +0300 Subject: [PATCH] Add creation of iptc --- image_classifier/image_classifier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image_classifier/image_classifier.py b/image_classifier/image_classifier.py index 8033e2c..79b176d 100755 --- a/image_classifier/image_classifier.py +++ b/image_classifier/image_classifier.py @@ -70,7 +70,7 @@ class image_classifier: if people: self._log.debug(f"Found {len(people)} known people in the image.") self._log.debug(json.dumps(people, indent=2)) - iptc_info = IPTCInfo(file) + iptc_info = IPTCInfo(file, force=True) print(iptc_info['keywords']) with open(file, 'rb') as image_file: self.exif_info = exif.Image(image_file)