change mode

This commit is contained in:
Antonio J. Delgado 2021-09-06 21:54:21 +03:00
parent 15d000f614
commit 678fdeade2

View file

@ -69,7 +69,7 @@ class image_classifier:
if people: if people:
self._log.debug(f"Found {len(people)} known people in the image.") self._log.debug(f"Found {len(people)} known people in the image.")
self._log.debug(json.dumps(people, indent=2)) self._log.debug(json.dumps(people, indent=2))
with open(file, 'bw') as image_file: with open(file, 'br') as image_file:
content = image_file.read() content = image_file.read()
self.metadata = pyexiv2.ImageData(content) self.metadata = pyexiv2.ImageData(content)
self.metadata.read() self.metadata.read()