gpt4 book ai didi

google-cloud-vision - Google Cloud Vision 可以通过其 API 生成西类牙语标签吗?

转载 作者:行者123 更新时间:2023-12-01 13:32:19 26 4
gpt4 key购买 nike

假设我有图像并且我想用西类牙语为它们生成标签 - Google Cloud Vision API 是否允许选择以哪种语言返回标签?

最佳答案

标签检测

Google Cloud Vision API 不允许配置标签检测的结果语言。您将需要使用不同的 API,例如 Cloud Translation API而是执行该操作。

OCR(文字检测)

如果您对图像中的文本检测感兴趣,Google Cloud Vision API 支持光学字符识别 (OCR),并在 broad set of languages listed here 中进行自动语言检测。 .

对于 TEXT_DETECTIONDOCUMENT_TEXT_DETECTION 请求,you can provide languageHints parameter in the request在语言未知和/或不易检测的某些情况下获得更好的结果。

languageHints[]

string

List of languages to use for TEXT_DETECTION. In most cases, an empty value yields the best results since it enables automatic language detection. For languages based on the Latin alphabet, setting languageHints is not needed. In rare cases, when the language of the text in the image is known, setting a hint will help get better results (although it will be a significant hindrance if the hint is wrong). Text detection returns an error if one or more of the specified languages is not one of the supported languages.

DetectedLanguage information在请求中可用以识别语言以及置信度值。

Detected language for a structural component.

JSON representation
{
"languageCode": string,
"confidence": number,
}

关于google-cloud-vision - Google Cloud Vision 可以通过其 API 生成西类牙语标签吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45260779/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com