我正在使用 Google Cloud Vision API 从给定图像中检测地标、webEntities 和其他东西(查看文档 here ),我专门使用图像:注释端点,并且我想指定语言, 我希望返回的结果是英文的。
有什么办法可以实现吗?
最佳答案
将 image_context
添加到响应中,您应该已准备就绪。
response = client.text_detection(
image=image,
image_context={"language_hints": ["bn"]}, # Bengali
)
关于android - 在 Google Cloud Vision API 中指定响应语言,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50764331/