注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > API类目 > 视觉开放API(viapi)

aliyun.viapi.goodstech.recognize.furniturespu (家居SPU识别)

对输入的家居模型图进行分类,目前类别数可达70类。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
image_url String 可选 http://xx.xxx.com/a.jpeg 待检测图片链接
x_length String 可选 70.7 模型x方向的尺寸,单位cm,默认值100
y_length String 可选 80.8 模型y方向的尺寸,单位cm,默认值100
z_length String 可选 66.66 模型z方向的尺寸,单位cm,默认值100

响应参数

名称 类型 示例值 描述
taobao_request_id String 83FFDEFE-F863-4490-8C8F-165CFFC1954F 请求ID
data Data {} 系统自动生成
  • └ predprobability
  • String
  • 0.8975188732147217
  • 预测的类目中文名称
  • └ predcate
  • String
  • 单人沙发
  • 预测的类目名称ID
  • └ predcateid
  • String
  • c2dcb449-4729-4cfe-9e38-1fc1453211a5
  • 预测的类目置信概率

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliyunViapiGoodstechRecognizeFurniturespuRequest req = new AliyunViapiGoodstechRecognizeFurniturespuRequest();
req.setImageUrl("http://xx.xxx.com/a.jpeg");
req.setXLength("70.7");
req.setYLength("80.8");
req.setZLength("66.66");
AliyunViapiGoodstechRecognizeFurniturespuResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<aliyun_viapi_goodstech_recognize_furniturespu_response>
    <taobao_request_id>83FFDEFE-F863-4490-8C8F-165CFFC1954F</taobao_request_id>
    <data>
        <predprobability>0.8975188732147217</predprobability>
        <predcate>单人沙发</predcate>
        <predcateid>c2dcb449-4729-4cfe-9e38-1fc1453211a5</predcateid>
    </data>
</aliyun_viapi_goodstech_recognize_furniturespu_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部