废弃(1945)-支持文档

[TOC] 传入一张图片,识别出图片中存在的物体,并返回物体的名称(分类)、置信度,一张图片会给出多个可能的标签。 # 1. 准备一段需要被翻译的文本 接口给出的示例值是: > good # 2. 在易源测试页面进行调用 进入[易源测试界面](https://www.showapi.com/apiGateway/onlineTest?apiCode=1945&pointCode=4 "易源测试界面"),输入上述文本并进行调用,结果如图: ![](https://oss.showapi.com/doc/3621/11/9fc0e5a46d6e458fbbe09c1e0171d0b5.png) # 3. 调用代码 [点此进入接口详情界面](https://www.showapi.com/apiGateway/view/?apiCode=1945&pointCode=4 "点此进入接口详情界面") 示例代码如下图: ![](https://oss.showapi.com/doc/3621/11/bbe55ecd345a4ea9b6dad7fd7e7ab65a.png) # 4. 错误码 如果返回结果中存在 Error 字段,则表示调用 API 接口失败。例如: { "Response": { "Error": { "Code": "AuthFailure.SignatureFailure", "Message": "The provided credentials could not be validated. Please check your signature is correct." }, "RequestId": "ed93f3cb-f35e-473f-b9f3-0d451b8b79c6" } } Error 中的 Code 表示错误码,Message 表示该错误的具体信息。 以下仅列出了接口业务逻辑相关的错误码,其他错误码详见 [公共错误码](https://www.showapi.com/book/view/3621/15 "公共错误码")。 <table><thead><tr><th>错误码</th><th>描述</th></tr></thead><tbody><tr><td>FailedOperation.NoFreeAmount</td><td>本月免费额度已用完,如需继续使用您可以在机器翻译控制台升级为付费使用。</td></tr><tr><td>FailedOperation.ServiceIsolate</td><td>账号因为欠费停止服务,请在腾讯云账户充值。</td></tr><tr><td>FailedOperation.UserNotRegistered</td><td>服务未开通,请在腾讯云官网机器翻译控制台开通服务。</td></tr><tr><td>InternalError</td><td>内部错误。</td></tr><tr><td>InternalError.BackendTimeout</td><td>后台服务超时,请稍后重试。</td></tr><tr><td>InternalError.ErrorUnknown</td><td>未知错误。</td></tr><tr><td>InvalidParameter</td><td>参数错误。</td></tr><tr><td>LimitExceeded</td><td>超过配额限制。</td></tr><tr><td>MissingParameter</td><td>缺少参数错误。</td></tr><tr><td>UnauthorizedOperation.ActionNotFound</td><td>请填写正确的Action字段名称。</td></tr><tr><td>UnsupportedOperation</td><td>操作不支持。</td></tr><tr><td>UnsupportedOperation.TextTooLong</td><td>单次请求text超过⻓长度限制,请保证单次请求⻓长度低于2000。</td></tr><tr><td>UnsupportedOperation.UnSupportedTargetLanguage</td><td>不支持的目标语言,请参照语言列表。</td></tr><tr><td>UnsupportedOperation.UnsupportedLanguage</td><td>不支持的语言,请参照语言列表。</td></tr><tr><td>UnsupportedOperation.UnsupportedSourceLanguage</td><td>不支持的源语言,请参照语言列表。</td></tr></tbody></table>