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

aliyun.viapi.goodstech.recognize.furniture.attribute (家居属性识别)

识别输入的家居模型图的风格,目前支持16种风格识别。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html )

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
image_url String 必须 http://xx.xxx.com/a.jpeg 待检测图片链接

响应参数

名称 类型 示例值 描述
taobao_request_id String 83FFDEFE-F863-4490-8C8F-165CFFC1954F 请求ID
data Data {} 系统自动生成
  • └ predstyle
  • String
  • 现代
  • 预测的风格名称ID
  • └ predprobability
  • String
  • 0.9959178566932678
  • 预测的风格置信概率
  • └ predstyleid
  • String
  • 19b9974d-363d-47df-81b5-81893d48a813
  • 预测的风格中文名称

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliyunViapiGoodstechRecognizeFurnitureAttributeRequest req = new AliyunViapiGoodstechRecognizeFurnitureAttributeRequest();
req.setImageUrl("http://xx.xxx.com/a.jpeg");
AliyunViapiGoodstechRecognizeFurnitureAttributeResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<aliyun_viapi_goodstech_recognize_furniture_attribute_response>
    <taobao_request_id>83FFDEFE-F863-4490-8C8F-165CFFC1954F</taobao_request_id>
    <data>
        <predstyle>现代</predstyle>
        <predprobability>0.9959178566932678</predprobability>
        <predstyleid>19b9974d-363d-47df-81b5-81893d48a813</predstyleid>
    </data>
</aliyun_viapi_goodstech_recognize_furniture_attribute_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

返回
顶部