added README

This commit is contained in:
Xevion
2019-08-20 19:48:35 -05:00
parent 66a344d35a
commit e95f61c534
3 changed files with 14 additions and 10 deletions

View File

@@ -58,7 +58,7 @@ def process_file(file_name, xmp):
bytesIO = io.BytesIO()
image.save(bytesIO, format='jpeg')
image.close()
image = types.Image(content=bytesIO.getvalue())
image = vision.types.Image(content=bytesIO.getvalue())
# Performs label detection on the image file
response = client.label_detection(image=image)