alibaba.nrs.item.pricetag.recognize (价签识别)

商品价签识别,用于识别RT上传的竞品分析照片,返回价签内容

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
price_tag_param PriceTagReqParam 可选 价签识别参数
  • └ obj_key_name
  • String
  • 可选
  • 123.jpg
  • 图片名称,不能重复
  • └ busi_code
  • String
  • 可选
  • RT
  • 业务编码
  • └ source
  • String
  • 可选
  • RT
  • 业务来源
  • └ bar_code
  • String
  • 可选
  • 698232323
  • 条码
  • └ extend_info_map
  • String
  • 可选
  • {}
  • 扩展信息
img_byte_arr byte[] 可选 nulla 图片数据

响应参数

名称 类型 示例值 描述
nrs_result NrsResult {} 出参
  • data
  • RecongnizeItemInfo
  • {}
  • 返回数据
  • └ origin_place
  • String
  • 上海
  • 原产地
  • └ ext_map
  • String
  • {}
  • 扩展信息
  • └ promotion_end_time
  • String
  • 2019-11-10 00:00:00
  • 优惠结束时间
  • └ promotion_start_time
  • String
  • 2019-11-19 00:00:00
  • 优惠开始时间
  • └ spec_desc
  • String
  • 瓶/200ml
  • 规格描述
  • └ rt_item_no
  • String
  • 209191
  • rt货号
  • └ promotion_desc
  • String
  • 每瓶1元
  • 优惠描述
  • └ promotion_type
  • Number
  • 折扣
  • 促销类型
  • └ in_promotion
  • Boolean
  • 1
  • 是否促销中
  • └ promotion_price
  • Number
  • 900
  • 促销价
  • └ sale_price
  • Number
  • 1000
  • 销售价
  • └ brand_name
  • String
  • 富光
  • 品牌
  • └ title
  • String
  • 富光茶花杯
  • 品名
  • └ bar_code
  • String
  • 698828212312
  • 条码
  • └ serial_no
  • String
  • 1212312333
  • 流水号
  • └ success
  • Boolean
  • true
  • 接口调用标志
  • └ err_code
  • String
  • ERR_INVOKE_SERVICE
  • 错误码
  • └ err_msg
  • String
  • 服务调用错误
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaNrsItemPricetagRecognizeRequest req = new AlibabaNrsItemPricetagRecognizeRequest();
AlibabaNrsItemPricetagRecognizeRequest.PriceTagReqParam obj1 = new AlibabaNrsItemPricetagRecognizeRequest.PriceTagReqParam();
obj1.setObjKeyName("123.jpg");
obj1.setBusiCode("RT");
obj1.setSource("RT");
obj1.setBarCode("698232323");
obj1.setExtendInfoMap("{}");
req.setPriceTagParam(obj1);
req.setImgByteArr(new FileItem("/tmp/file.txt"));
AlibabaNrsItemPricetagRecognizeResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_nrs_item_pricetag_recognize_response>
    <nrs_result>
        <data>
            <origin_place>上海</origin_place>
            <ext_map>{}</ext_map>
            <promotion_end_time>2019-11-10 00:00:00</promotion_end_time>
            <promotion_start_time>2019-11-19 00:00:00</promotion_start_time>
            <spec_desc>瓶/200ml</spec_desc>
            <rt_item_no>209191</rt_item_no>
            <promotion_desc>每瓶1元</promotion_desc>
            <promotion_type>折扣</promotion_type>
            <in_promotion>1</in_promotion>
            <promotion_price>900</promotion_price>
            <sale_price>1000</sale_price>
            <brand_name>富光</brand_name>
            <title>富光茶花杯</title>
            <bar_code>698828212312</bar_code>
            <serial_no>1212312333</serial_no>
        </data>
        <success>true</success>
        <err_code>ERR_INVOKE_SERVICE</err_code>
        <err_msg>服务调用错误</err_msg>
    </nrs_result>
</alibaba_nrs_item_pricetag_recognize_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

返回
顶部