change mode
This commit is contained in:
parent
15d000f614
commit
678fdeade2
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue