Change method

This commit is contained in:
Antonio J. Delgado 2021-09-06 21:50:21 +03:00
parent b0e4c6501e
commit e4116950ba

View file

@ -69,7 +69,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))
self.metadata = pyexiv2.ImageMetadata(file)
self.metadata = pyexiv2.ImageData(file)
self.metadata.read()
print(f"IPTC keys: {self.metadata.iptc_keys}")
print(f"EXIF keys: {self.metadata.exif_keys}")