-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
api: visionIssues related to the Cloud Vision API.Issues related to the Cloud Vision API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
Simple reproducible case:
import io
import os
from google.cloud import vision
vision_client = vision.Client()
file_name = os.path.join(
os.path.dirname(__file__),
'resources/wakeupcat.jpg')
with io.open(file_name, 'rb') as image_file:
image = vision_client.image(
content=image_file.read())
labels = image.detect_labels()
print('Labels:')
for label in labels:
print(label.description)works fine on Python 2, fails on Python 3.
Metadata
Metadata
Assignees
Labels
api: visionIssues related to the Cloud Vision API.Issues related to the Cloud Vision API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.