tencentcloud-sdk-tiia 3.0.887 → 3.0.888

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6a3c96f4e2dae4e602c36033cb9aba2844c2cd1a
4
- data.tar.gz: de0653d31c064bb64592bb4b8a3735f244cdad87
3
+ metadata.gz: 4ec6fc6d4414edd2b12daa8dc7fac3b6f6814576
4
+ data.tar.gz: d3a6c15c3c8d20f28511985a08a354b73619b50b
5
5
  SHA512:
6
- metadata.gz: b943d8c893c4dbb0e4f1270da0c463da7ea0d24dd26ae601ab6312bc7b2f6a7d4a12c128fc7b6286126bf720393a654ef377979775c6daa2a5209d1eb7f93503
7
- data.tar.gz: 5469e17dd924497ec1505d889ab97791b7a237874410cedda5ffdbca436419ee7dac7da4bfd6fad18e20b988c4608567619b7ce3bb863df83e8c1a8a0ecf12ee
6
+ metadata.gz: bea573d461604dbb735be4716eb0d71e1714465db7a7b0acf37fe3c1a26a787dd08d1b35eca17fd7f7076f8f8e506a122a36435f18c054dd6acf1df6a3b72b20
7
+ data.tar.gz: 39f1bd4846692f7197eb0cbb0d6b2873c2da2fe4f0b0ff6af8ce55fd6b109b8c10cc5494aefb76bac4c4d21d6cc0a6723bb8f3514562489e7053ff77c2eb5af6
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.887
1
+ 3.0.888
@@ -518,36 +518,6 @@ module TencentCloud
518
518
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
519
519
  end
520
520
 
521
- # 产品不再维护,准备下线。
522
-
523
- # 商品识别-微信识物版,基于人工智能技术、海量训练图片、亿级商品库,可以实现全覆盖、细粒度、高准确率的商品识别和商品推荐功能。
524
- # 本服务可以识别出图片中的主体位置、主体商品类型,覆盖亿级SKU,输出具体商品的价格、型号等详细信息。
525
- # 客户无需自建商品库,即可快速实现商品识别、拍照搜商品等功能。
526
- # >?
527
- # - 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
528
-
529
- # @param request: Request instance for DetectProductBeta.
530
- # @type request: :class:`Tencentcloud::tiia::V20190529::DetectProductBetaRequest`
531
- # @rtype: :class:`Tencentcloud::tiia::V20190529::DetectProductBetaResponse`
532
- def DetectProductBeta(request)
533
- body = send_request('DetectProductBeta', request.serialize)
534
- response = JSON.parse(body)
535
- if response['Response'].key?('Error') == false
536
- model = DetectProductBetaResponse.new
537
- model.deserialize(response['Response'])
538
- model
539
- else
540
- code = response['Response']['Error']['Code']
541
- message = response['Response']['Error']['Message']
542
- reqid = response['Response']['RequestId']
543
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
544
- end
545
- rescue TencentCloud::Common::TencentCloudSDKException => e
546
- raise e
547
- rescue StandardError => e
548
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
549
- end
550
-
551
521
  # 安全属性识别可对图片中人体安全防护属性进行识别,支持识别安全帽,反光衣,护目镜,工服,手套,工地安全带,口罩,抽烟,玩手机等多种属性。
552
522
  # "被优选过滤"标签值在人体优选开关开启时才会返回。
553
523
 
@@ -1407,81 +1407,6 @@ module TencentCloud
1407
1407
  end
1408
1408
  end
1409
1409
 
1410
- # DetectProductBeta请求参数结构体
1411
- class DetectProductBetaRequest < TencentCloud::Common::AbstractModel
1412
- # @param ImageUrl: 图片限制:内测版仅支持jpg、jpeg,图片大小不超过1M,分辨率在25万到100万之间。
1413
- # 建议先对图片进行压缩,以便提升处理速度。
1414
- # @type ImageUrl: String
1415
- # @param ImageBase64: 图片经过base64编码的内容。最大不超过1M,分辨率在25万到100万之间。
1416
- # 与ImageUrl同时存在时优先使用ImageUrl字段。
1417
- # @type ImageBase64: String
1418
- # @param NeedLemma: 是否需要百科信息 1:是,0: 否,默认是0
1419
- # @type NeedLemma: Integer
1420
-
1421
- attr_accessor :ImageUrl, :ImageBase64, :NeedLemma
1422
-
1423
- def initialize(imageurl=nil, imagebase64=nil, needlemma=nil)
1424
- @ImageUrl = imageurl
1425
- @ImageBase64 = imagebase64
1426
- @NeedLemma = needlemma
1427
- end
1428
-
1429
- def deserialize(params)
1430
- @ImageUrl = params['ImageUrl']
1431
- @ImageBase64 = params['ImageBase64']
1432
- @NeedLemma = params['NeedLemma']
1433
- end
1434
- end
1435
-
1436
- # DetectProductBeta返回参数结构体
1437
- class DetectProductBetaResponse < TencentCloud::Common::AbstractModel
1438
- # @param RegionDetected: 检测到的图片中的商品位置和品类预测。
1439
- # 当图片中存在多个商品时,输出多组坐标,按照__显著性__排序(综合考虑面积、是否在中心、检测算法置信度)。
1440
- # 最多可以输出__3组__检测结果。
1441
- # @type RegionDetected: Array
1442
- # @param ProductInfo: 图像识别出的商品的详细信息。
1443
- # 当图像中检测到多个物品时,会对显著性最高的进行识别。
1444
- # @type ProductInfo: :class:`Tencentcloud::Tiia.v20190529.models.ProductInfo`
1445
- # @param ProductInfoList: 相似商品信息列表
1446
- # 注意:此字段可能返回 null,表示取不到有效值。
1447
- # @type ProductInfoList: Array
1448
- # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1449
- # @type RequestId: String
1450
-
1451
- attr_accessor :RegionDetected, :ProductInfo, :ProductInfoList, :RequestId
1452
-
1453
- def initialize(regiondetected=nil, productinfo=nil, productinfolist=nil, requestid=nil)
1454
- @RegionDetected = regiondetected
1455
- @ProductInfo = productinfo
1456
- @ProductInfoList = productinfolist
1457
- @RequestId = requestid
1458
- end
1459
-
1460
- def deserialize(params)
1461
- unless params['RegionDetected'].nil?
1462
- @RegionDetected = []
1463
- params['RegionDetected'].each do |i|
1464
- regiondetected_tmp = RegionDetected.new
1465
- regiondetected_tmp.deserialize(i)
1466
- @RegionDetected << regiondetected_tmp
1467
- end
1468
- end
1469
- unless params['ProductInfo'].nil?
1470
- @ProductInfo = ProductInfo.new
1471
- @ProductInfo.deserialize(params['ProductInfo'])
1472
- end
1473
- unless params['ProductInfoList'].nil?
1474
- @ProductInfoList = []
1475
- params['ProductInfoList'].each do |i|
1476
- productinfo_tmp = ProductInfo.new
1477
- productinfo_tmp.deserialize(i)
1478
- @ProductInfoList << productinfo_tmp
1479
- end
1480
- end
1481
- @RequestId = params['RequestId']
1482
- end
1483
- end
1484
-
1485
1410
  # DetectProduct请求参数结构体
1486
1411
  class DetectProductRequest < TencentCloud::Common::AbstractModel
1487
1412
  # @param ImageUrl: 图片URL地址。
@@ -1787,61 +1712,6 @@ module TencentCloud
1787
1712
  end
1788
1713
  end
1789
1714
 
1790
- # 百科词条信息
1791
- class LemmaInfo < TencentCloud::Common::AbstractModel
1792
- # @param LemmaTitle: 词条
1793
- # 注意:此字段可能返回 null,表示取不到有效值。
1794
- # @type LemmaTitle: String
1795
- # @param LemmaAbstract: 词条描述
1796
- # 注意:此字段可能返回 null,表示取不到有效值。
1797
- # @type LemmaAbstract: String
1798
- # @param Tag: 标签
1799
- # 注意:此字段可能返回 null,表示取不到有效值。
1800
- # @type Tag: String
1801
-
1802
- attr_accessor :LemmaTitle, :LemmaAbstract, :Tag
1803
-
1804
- def initialize(lemmatitle=nil, lemmaabstract=nil, tag=nil)
1805
- @LemmaTitle = lemmatitle
1806
- @LemmaAbstract = lemmaabstract
1807
- @Tag = tag
1808
- end
1809
-
1810
- def deserialize(params)
1811
- @LemmaTitle = params['LemmaTitle']
1812
- @LemmaAbstract = params['LemmaAbstract']
1813
- @Tag = params['Tag']
1814
- end
1815
- end
1816
-
1817
- # 检测到的主体在图片中的矩形框位置(四个顶点坐标)
1818
- class Location < TencentCloud::Common::AbstractModel
1819
- # @param XMin: 位置矩形框的左上角横坐标
1820
- # @type XMin: Integer
1821
- # @param YMin: 位置矩形框的左上角纵坐标
1822
- # @type YMin: Integer
1823
- # @param XMax: 位置矩形框的右下角横坐标
1824
- # @type XMax: Integer
1825
- # @param YMax: 位置矩形框的右下角纵坐标
1826
- # @type YMax: Integer
1827
-
1828
- attr_accessor :XMin, :YMin, :XMax, :YMax
1829
-
1830
- def initialize(xmin=nil, ymin=nil, xmax=nil, ymax=nil)
1831
- @XMin = xmin
1832
- @YMin = ymin
1833
- @XMax = xmax
1834
- @YMax = ymax
1835
- end
1836
-
1837
- def deserialize(params)
1838
- @XMin = params['XMin']
1839
- @YMin = params['YMin']
1840
- @XMax = params['XMax']
1841
- @YMax = params['YMax']
1842
- end
1843
- end
1844
-
1845
1715
  # 图像的主体信息。
1846
1716
  class ObjectInfo < TencentCloud::Common::AbstractModel
1847
1717
  # @param Box: 图像主体区域。
@@ -1966,70 +1836,6 @@ module TencentCloud
1966
1836
  end
1967
1837
  end
1968
1838
 
1969
- # 图像识别出的商品的详细信息。
1970
- # 当图像中检测到多个物品时,会对显著性最高的物品进行识别。
1971
- class ProductInfo < TencentCloud::Common::AbstractModel
1972
- # @param FindSKU: 1表示找到同款商品,以下字段为同款商品信息;
1973
- # 0表示未找到同款商品, 具体商品信息为空(参考价格、名称、品牌等),仅提供商品类目和参考图片(商品库中找到的最相似图片,供参考)。
1974
- # 是否找到同款的判断依据为Score分值,分值越大则同款的可能性越大。
1975
- # @type FindSKU: Integer
1976
- # @param Location: 本商品在图片中的坐标,表示为矩形框的四个顶点坐标。
1977
- # @type Location: :class:`Tencentcloud::Tiia.v20190529.models.Location`
1978
- # @param Name: 商品名称
1979
- # @type Name: String
1980
- # @param Brand: 商品品牌
1981
- # @type Brand: String
1982
- # @param Price: 参考价格,综合多个信息源,仅供参考。
1983
- # @type Price: String
1984
- # @param ProductCategory: 识别结果的商品类目。
1985
- # 包含:鞋、图书音像、箱包、美妆个护、服饰、家电数码、玩具乐器、食品饮料、珠宝、家居家装、药品、酒水、绿植园艺、其他商品、非商品等。
1986
- # 当类别为“非商品”时,除Location、Score和本字段之外的商品信息为空。
1987
- # @type ProductCategory: String
1988
- # @param Score: 输入图片中的主体物品和输出结果的相似度。分值越大,输出结果与输入图片是同款的可能性越高。
1989
- # @type Score: Float
1990
- # @param Image: 搜索到的商品配图URL。
1991
- # @type Image: String
1992
- # @param LemmaInfoList: 百科词条列表
1993
- # 注意:此字段可能返回 null,表示取不到有效值。
1994
- # @type LemmaInfoList: Array
1995
-
1996
- attr_accessor :FindSKU, :Location, :Name, :Brand, :Price, :ProductCategory, :Score, :Image, :LemmaInfoList
1997
-
1998
- def initialize(findsku=nil, location=nil, name=nil, brand=nil, price=nil, productcategory=nil, score=nil, image=nil, lemmainfolist=nil)
1999
- @FindSKU = findsku
2000
- @Location = location
2001
- @Name = name
2002
- @Brand = brand
2003
- @Price = price
2004
- @ProductCategory = productcategory
2005
- @Score = score
2006
- @Image = image
2007
- @LemmaInfoList = lemmainfolist
2008
- end
2009
-
2010
- def deserialize(params)
2011
- @FindSKU = params['FindSKU']
2012
- unless params['Location'].nil?
2013
- @Location = Location.new
2014
- @Location.deserialize(params['Location'])
2015
- end
2016
- @Name = params['Name']
2017
- @Brand = params['Brand']
2018
- @Price = params['Price']
2019
- @ProductCategory = params['ProductCategory']
2020
- @Score = params['Score']
2021
- @Image = params['Image']
2022
- unless params['LemmaInfoList'].nil?
2023
- @LemmaInfoList = []
2024
- params['LemmaInfoList'].each do |i|
2025
- lemmainfo_tmp = LemmaInfo.new
2026
- lemmainfo_tmp.deserialize(i)
2027
- @LemmaInfoList << lemmainfo_tmp
2028
- end
2029
- end
2030
- end
2031
- end
2032
-
2033
1839
  # RecognizeCarPro请求参数结构体
2034
1840
  class RecognizeCarProRequest < TencentCloud::Common::AbstractModel
2035
1841
  # @param ImageUrl: 图片URL地址。
@@ -2193,36 +1999,6 @@ module TencentCloud
2193
1999
  end
2194
2000
  end
2195
2001
 
2196
- # 检测到的图片中的商品位置和品类预测。
2197
- # 当图片中存在多个商品时,输出多组坐标,按照__显著性__排序(综合考虑面积、是否在中心、检测算法置信度)。
2198
- # 最多可以输出__3组__检测结果。
2199
- class RegionDetected < TencentCloud::Common::AbstractModel
2200
- # @param Category: 商品的品类预测结果。
2201
- # 包含:鞋、图书音像、箱包、美妆个护、服饰、家电数码、玩具乐器、食品饮料、珠宝、家居家装、药品、酒水、绿植园艺、其他商品、非商品等。
2202
- # @type Category: String
2203
- # @param CategoryScore: 商品品类预测的置信度
2204
- # @type CategoryScore: Float
2205
- # @param Location: 检测到的主体在图片中的坐标,表示为矩形框的四个顶点坐标
2206
- # @type Location: :class:`Tencentcloud::Tiia.v20190529.models.Location`
2207
-
2208
- attr_accessor :Category, :CategoryScore, :Location
2209
-
2210
- def initialize(category=nil, categoryscore=nil, location=nil)
2211
- @Category = category
2212
- @CategoryScore = categoryscore
2213
- @Location = location
2214
- end
2215
-
2216
- def deserialize(params)
2217
- @Category = params['Category']
2218
- @CategoryScore = params['CategoryScore']
2219
- unless params['Location'].nil?
2220
- @Location = Location.new
2221
- @Location.deserialize(params['Location'])
2222
- end
2223
- end
2224
- end
2225
-
2226
2002
  # SearchImage请求参数结构体
2227
2003
  class SearchImageRequest < TencentCloud::Common::AbstractModel
2228
2004
  # @param GroupId: 图库名称。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-tiia
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.887
4
+ version: 3.0.888
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-16 00:00:00.000000000 Z
11
+ date: 2024-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common