Hi,
I am trying to set maxResults in batched vision.ImageAnnotatorClient as follows but such a parameter is not recognized.
contents = loadImages(img_chunk)
client = vision.ImageAnnotatorClient()
requests = []
for content in contents:
image = {"content": content}
features = [
{
"type_": vision.Feature.Type.LABEL_DETECTION,
"maxResults": 50
},
]
requests.append({"image": image, "features": features})
response = client.batch_annotate_images(requests=requests,)
What am I doing wrong?
Solved! Go to Solution.
Yep, it worked fine. Thank you!
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |