文档

GetImageDiagnose - 图片诊断

更新时间:

能够识别图片中的文字的语种。

接口说明

注意 该接口已计划下线,不建议继续调用。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
Urlstring

图片链接

http://xxxxx.oss-cn-shenzhen.aliyuncs.com/jd/41209/xxxxx.jpg
Extrastring
  • 格式内容:{ "product_id": "1", "platform": "ae" }
  • product_id 商品 id
  • platform 商品所属平台,支持 ae/icbu/lazada
{ "product_id": "1", "platform": "ae" }

返回参数

名称类型描述示例值
object
Codeinteger

状态码,正常请求返回 200

200
Messagestring

错误的时候返回错误信息

ok
RequestIdstring

请求唯一串

DC2DCCC9-C3DF-4F59-8D8E-78185729F16D
Dataobject

返回的结果

Languagestring

图片中的文字识别后的语种

zh

示例

正常返回示例

JSON格式

{
  "Code": 200,
  "Message": "ok",
  "RequestId": "DC2DCCC9-C3DF-4F59-8D8E-78185729F16D",
  "Data": {
    "Language": "zh"
  }
}

错误码

HTTP status code错误码错误信息描述
101System.RequestTimeOutThe request has timed out.请求超时
102System.ErrorA system error occurred.系统错误
103System.UrlDecodingErrorAn error occurred while decoding the URL. Verify that the specified URL is encoded.URL编码错误
104System.ParameterErrorSome required parameters are missing.参数错误
105System.LanguageNotSupportedThe specified language pair is not supported.该语向不支持
106System.LanguageDetectErrorAn error occurred while detecting the language.语种识别错误
107System.TranslateErrorAn error occurred while translating.翻译错误
108System.StringTooLongThe maximum length of the specified string is exceeded.字符过长
109System.subNotPermissionThe sub-account is not authorized to perform the operation.子账号没有权限
110System.AccountNotActivatedThe account has not activated the service.账号没有开通服务
111System.SubServiceFailedSub-account service failed.子账号服务失败
112System.TranslateServiceCallFailedFailed to call the translation service.翻译服务调用失败
113System.AccountNotActivatedOrInArrearsThe service is not activated or the account has an outstanding balance.账号服务没有开通或者欠费
199System.unknownErrorAn unknown error occurred.未知错误

访问错误中心查看更多错误码。

  • 本页导读 (0)
文档反馈