tencentcloud-sdk-tiia 1.0.325 → 1.0.326

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20190529/models.rb +241 -28
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 78f6934141156a9cd2e57c01111d2f8fe98ee567
4
- data.tar.gz: 4dabd8036b97f93b60de0814ba469902fcd64041
3
+ metadata.gz: d755a0f157386c1252edd8732d05fa44c7b86860
4
+ data.tar.gz: ae688f77368f6dac5e665a11146738eb793616bc
5
5
  SHA512:
6
- metadata.gz: 9f5d3bf7746fa2009a3ba644fa69c34a9f3cd3d16c08f4acb8965f6cf1bd5d57b2bebb495c0f1d0b3e9844c37427eda08158433573c4c111ed4f8d4b29f48fdc
7
- data.tar.gz: edeed74bd9b34aa62b1ca78b1a9bd986fa78d92a8bb1fd47f3cc6410ae2c16a672ef1f9668005667905eaa7ff8a8805e2e1aafd8763a8db554d5a225391549a4
6
+ metadata.gz: 79ea3b7fc8cb2e76516b1de5100a0032df37aef6a4fa677297db251de414e7587a9157c89c55bccabad6473ee3a8205331d2adc57521a523f4a89b0a24035bf9
7
+ data.tar.gz: 0397d54c998bfba650f9c344baaed8f49d64bf050adbc15228aa8152751fe6c2307dd62d44efef513cae9056ff44b4554a7cb006b87f324127aaad233cf78133
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.325
1
+ 1.0.326
@@ -89,6 +89,49 @@ module TencentCloud
89
89
  end
90
90
  end
91
91
 
92
+ # 属性
93
+ class Attribute < TencentCloud::Common::AbstractModel
94
+ # @param Type: 属性
95
+ # @type Type: String
96
+ # @param Details: 属性详情
97
+ # @type Details: String
98
+
99
+ attr_accessor :Type, :Details
100
+
101
+ def initialize(type=nil, details=nil)
102
+ @Type = type
103
+ @Details = details
104
+ end
105
+
106
+ def deserialize(params)
107
+ @Type = params['Type']
108
+ @Details = params['Details']
109
+ end
110
+ end
111
+
112
+ # 图像主体区域。
113
+ class Box < TencentCloud::Common::AbstractModel
114
+ # @param Rect: 图像主体区域。
115
+ # @type Rect: :class:`Tencentcloud::Tiia.v20190529.models.ImageRect`
116
+ # @param Score: 置信度。
117
+ # @type Score: Float
118
+
119
+ attr_accessor :Rect, :Score
120
+
121
+ def initialize(rect=nil, score=nil)
122
+ @Rect = rect
123
+ @Score = score
124
+ end
125
+
126
+ def deserialize(params)
127
+ unless params['Rect'].nil?
128
+ @Rect = ImageRect.new
129
+ @Rect.deserialize(params['Rect'])
130
+ end
131
+ @Score = params['Score']
132
+ end
133
+ end
134
+
92
135
  # 车牌信息
93
136
  class CarPlateContent < TencentCloud::Common::AbstractModel
94
137
  # @param Plate: 车牌信息。
@@ -183,6 +226,30 @@ module TencentCloud
183
226
  end
184
227
  end
185
228
 
229
+ # 整张图颜色信息。
230
+ class ColorInfo < TencentCloud::Common::AbstractModel
231
+ # @param Color: RGB颜色值(16进制),例如:291A18。
232
+ # @type Color: String
233
+ # @param Percentage: 当前颜色标签所占比例。
234
+ # @type Percentage: Float
235
+ # @param Label: 颜色标签。蜜柚色,米驼色等。
236
+ # @type Label: String
237
+
238
+ attr_accessor :Color, :Percentage, :Label
239
+
240
+ def initialize(color=nil, percentage=nil, label=nil)
241
+ @Color = color
242
+ @Percentage = percentage
243
+ @Label = label
244
+ end
245
+
246
+ def deserialize(params)
247
+ @Color = params['Color']
248
+ @Percentage = params['Percentage']
249
+ @Label = params['Label']
250
+ end
251
+ end
252
+
186
253
  # 汽车坐标信息
187
254
  class Coord < TencentCloud::Common::AbstractModel
188
255
  # @param X: 横坐标x
@@ -215,7 +282,7 @@ module TencentCloud
215
282
  # @type Brief: String
216
283
  # @param MaxQps: 访问限制默认为10qps,如需扩容请联系[在线客服](https://cloud.tencent.com/online-service)申请。
217
284
  # @type MaxQps: Integer
218
- # @param GroupType: 图库类型,对应不同服务类型,默认为1。建议手动调整为4~6,1~3为历史版本,不推荐。
285
+ # @param GroupType: 图库类型,对应不同服务类型,默认为41~3为历史版本,不推荐。
219
286
  # 参数值:
220
287
  # 4:在自建图库中搜索相同原图,可支持裁剪、翻转、调色、加水印后的图片搜索,适用于图片版权保护、原图查询等场景。
221
288
  # 5:在自建图库中搜索相同或相似的商品图片,适用于商品分类、检索、推荐等电商场景。
@@ -271,30 +338,54 @@ module TencentCloud
271
338
  # @type PicName: String
272
339
  # @param ImageUrl: 图片的 Url 。对应图片 base64 编码后大小不可超过5M。
273
340
  # Url、Image必须提供一个,如果都提供,只使用 Url。
274
- # 图片分辨率不超过4096*4096。
341
+ # 图片分辨率不超过4096\*4096。
275
342
  # 图片存储于腾讯云的Url可保障更高下载速度和稳定性,建议图片存储于腾讯云。
276
343
  # 非腾讯云存储的Url速度和稳定性可能受一定影响。
277
344
  # 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
345
+ # 注意:开启主体识别分辨率不超过2000\*2000,图片长宽比小于10(长/短 < 10)。
278
346
  # @type ImageUrl: String
347
+ # @param CustomContent: 用户自定义的内容,最多支持4096个字符,查询时原样带回。
348
+ # @type CustomContent: String
279
349
  # @param ImageBase64: 图片 base64 数据,base64 编码后大小不可超过5M。
280
- # 图片分辨率不超过4096*4096。
350
+ # 图片分辨率不超过4096\*4096。
281
351
  # 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
352
+ # 注意:开启主体识别分辨率不超过2000\*2000,图片长宽比小于10(长/短 < 10)。
282
353
  # @type ImageBase64: String
283
- # @param CustomContent: 用户自定义的内容,最多支持4096个字符,查询时原样带回。
284
- # @type CustomContent: String
285
354
  # @param Tags: 图片自定义标签,最多不超过10个,格式为JSON。
286
355
  # @type Tags: String
356
+ # @param EnableDetect: 是否需要启用主体识别,默认为**TRUE**。
357
+ # 1. 为**TRUE**时,启用主体识别,返回主体信息。若没有指定**ImageRect**,自动提取最大面积主体创建图片并进行主体识别。主体识别结果可在**Response**中获取。
358
+ # 2. 为**FALSE**时,不启用主体识别,不返回主体信息。若没有指定**ImageRect**,以整张图创建图片。
359
+ # 注意:服务类型为商品图像搜索时生效。
360
+ # @type EnableDetect: Boolean
361
+ # @param CategoryId: 图像类目ID。
362
+ # 若设置类目ID,提取对应类目的主体创建图片。
363
+ # 注意:服务类型为商品图像搜索时生效。
364
+ # 类目信息:
365
+ # 0:上衣。
366
+ # 1:裙装。
367
+ # 2:下装。
368
+ # 3:包。
369
+ # 4:鞋。
370
+ # 5:配饰。
371
+ # @type CategoryId: Integer
372
+ # @param ImageRect: 图像主体区域。
373
+ # 若设置主体区域,提取指定的区域创建图片。
374
+ # @type ImageRect: :class:`Tencentcloud::Tiia.v20190529.models.Rect`
287
375
 
288
- attr_accessor :GroupId, :EntityId, :PicName, :ImageUrl, :ImageBase64, :CustomContent, :Tags
376
+ attr_accessor :GroupId, :EntityId, :PicName, :ImageUrl, :CustomContent, :ImageBase64, :Tags, :EnableDetect, :CategoryId, :ImageRect
289
377
 
290
- def initialize(groupid=nil, entityid=nil, picname=nil, imageurl=nil, imagebase64=nil, customcontent=nil, tags=nil)
378
+ def initialize(groupid=nil, entityid=nil, picname=nil, imageurl=nil, customcontent=nil, imagebase64=nil, tags=nil, enabledetect=nil, categoryid=nil, imagerect=nil)
291
379
  @GroupId = groupid
292
380
  @EntityId = entityid
293
381
  @PicName = picname
294
382
  @ImageUrl = imageurl
295
- @ImageBase64 = imagebase64
296
383
  @CustomContent = customcontent
384
+ @ImageBase64 = imagebase64
297
385
  @Tags = tags
386
+ @EnableDetect = enabledetect
387
+ @CategoryId = categoryid
388
+ @ImageRect = imagerect
298
389
  end
299
390
 
300
391
  def deserialize(params)
@@ -302,24 +393,40 @@ module TencentCloud
302
393
  @EntityId = params['EntityId']
303
394
  @PicName = params['PicName']
304
395
  @ImageUrl = params['ImageUrl']
305
- @ImageBase64 = params['ImageBase64']
306
396
  @CustomContent = params['CustomContent']
397
+ @ImageBase64 = params['ImageBase64']
307
398
  @Tags = params['Tags']
399
+ @EnableDetect = params['EnableDetect']
400
+ @CategoryId = params['CategoryId']
401
+ unless params['ImageRect'].nil?
402
+ @ImageRect = Rect.new
403
+ @ImageRect.deserialize(params['ImageRect'])
404
+ end
308
405
  end
309
406
  end
310
407
 
311
408
  # CreateImage返回参数结构体
312
409
  class CreateImageResponse < TencentCloud::Common::AbstractModel
410
+ # @param Object: 输入图的主体信息。
411
+ # 若启用主体识别且在请求中指定了类目ID或主体区域,以指定的主体为准。若启用主体识别且没有指定,以最大面积主体为准。
412
+ # 注意:此字段可能返回 null,表示取不到有效值。服务类型为商品图像搜索时生效。
413
+ # 注意:此字段可能返回 null,表示取不到有效值。
414
+ # @type Object: :class:`Tencentcloud::Tiia.v20190529.models.ObjectInfo`
313
415
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
314
416
  # @type RequestId: String
315
417
 
316
- attr_accessor :RequestId
418
+ attr_accessor :Object, :RequestId
317
419
 
318
- def initialize(requestid=nil)
420
+ def initialize(object=nil, requestid=nil)
421
+ @Object = object
319
422
  @RequestId = requestid
320
423
  end
321
424
 
322
425
  def deserialize(params)
426
+ unless params['Object'].nil?
427
+ @Object = ObjectInfo.new
428
+ @Object.deserialize(params['Object'])
429
+ end
323
430
  @RequestId = params['RequestId']
324
431
  end
325
432
  end
@@ -1422,6 +1529,51 @@ module TencentCloud
1422
1529
  end
1423
1530
  end
1424
1531
 
1532
+ # 图像的主体信息。
1533
+ class ObjectInfo < TencentCloud::Common::AbstractModel
1534
+ # @param Box: 图像主体区域。
1535
+ # @type Box: :class:`Tencentcloud::Tiia.v20190529.models.Box`
1536
+ # @param CategoryId: 主体类别ID。
1537
+ # @type CategoryId: Integer
1538
+ # @param Colors: 整张图颜色信息。
1539
+ # @type Colors: Array
1540
+ # @param Attributes: 属性信息。
1541
+ # @type Attributes: Array
1542
+
1543
+ attr_accessor :Box, :CategoryId, :Colors, :Attributes
1544
+
1545
+ def initialize(box=nil, categoryid=nil, colors=nil, attributes=nil)
1546
+ @Box = box
1547
+ @CategoryId = categoryid
1548
+ @Colors = colors
1549
+ @Attributes = attributes
1550
+ end
1551
+
1552
+ def deserialize(params)
1553
+ unless params['Box'].nil?
1554
+ @Box = Box.new
1555
+ @Box.deserialize(params['Box'])
1556
+ end
1557
+ @CategoryId = params['CategoryId']
1558
+ unless params['Colors'].nil?
1559
+ @Colors = []
1560
+ params['Colors'].each do |i|
1561
+ colorinfo_tmp = ColorInfo.new
1562
+ colorinfo_tmp.deserialize(i)
1563
+ @Colors << colorinfo_tmp
1564
+ end
1565
+ end
1566
+ unless params['Attributes'].nil?
1567
+ @Attributes = []
1568
+ params['Attributes'].each do |i|
1569
+ attribute_tmp = Attribute.new
1570
+ attribute_tmp.deserialize(i)
1571
+ @Attributes << attribute_tmp
1572
+ end
1573
+ end
1574
+ end
1575
+ end
1576
+
1425
1577
  # 检测到的单个商品结构体
1426
1578
  class Product < TencentCloud::Common::AbstractModel
1427
1579
  # @param Name: 图片中商品的三级分类识别结果,选取所有三级分类中的置信度最大者
@@ -1661,6 +1813,34 @@ module TencentCloud
1661
1813
  end
1662
1814
  end
1663
1815
 
1816
+ # 具体坐标,可用来判断边界
1817
+ class Rect < TencentCloud::Common::AbstractModel
1818
+ # @param X: x轴坐标
1819
+ # @type X: Integer
1820
+ # @param Y: y轴坐标
1821
+ # @type Y: Integer
1822
+ # @param Width: (x,y)坐标距离长度
1823
+ # @type Width: Integer
1824
+ # @param Height: (x,y)坐标距离高度
1825
+ # @type Height: Integer
1826
+
1827
+ attr_accessor :X, :Y, :Width, :Height
1828
+
1829
+ def initialize(x=nil, y=nil, width=nil, height=nil)
1830
+ @X = x
1831
+ @Y = y
1832
+ @Width = width
1833
+ @Height = height
1834
+ end
1835
+
1836
+ def deserialize(params)
1837
+ @X = params['X']
1838
+ @Y = params['Y']
1839
+ @Width = params['Width']
1840
+ @Height = params['Height']
1841
+ end
1842
+ end
1843
+
1664
1844
  # 检测到的图片中的商品位置和品类预测。
1665
1845
  # 当图片中存在多个商品时,输出多组坐标,按照__显著性__排序(综合考虑面积、是否在中心、检测算法置信度)。
1666
1846
  # 最多可以输出__3组__检测结果。
@@ -1695,53 +1875,76 @@ module TencentCloud
1695
1875
  class SearchImageRequest < TencentCloud::Common::AbstractModel
1696
1876
  # @param GroupId: 图库名称。
1697
1877
  # @type GroupId: String
1698
- # @param ImageUrl: 图片的 Url 。对应图片 base64 编码后大小不可超过2M
1699
- # 图片分辨率不超过1920*1080
1878
+ # @param ImageUrl: 图片的 Url 。对应图片 base64 编码后大小不可超过5M
1879
+ # 图片分辨率不超4096\*4096
1700
1880
  # Url、Image必须提供一个,如果都提供,只使用 Url。
1701
1881
  # 图片存储于腾讯云的Url可保障更高下载速度和稳定性,建议图片存储于腾讯云。
1702
1882
  # 非腾讯云存储的Url速度和稳定性可能受一定影响。
1703
1883
  # 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
1884
+ # 注意:开启主体识别分辨率不超过2000\*2000,图片长宽比小于10(长/短 < 10)。
1704
1885
  # @type ImageUrl: String
1705
- # @param ImageBase64: 图片 base64 数据,base64 编码后大小不可超过2M
1706
- # 图片分辨率不超过1920*1080
1886
+ # @param ImageBase64: 图片 base64 数据,base64 编码后大小不可超过5M
1887
+ # 图片分辨率不超过4096\*4096
1707
1888
  # 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
1889
+ # 注意:开启主体识别分辨率不超过2000\*2000,图片长宽比小于10(长/短 < 10)。
1708
1890
  # @type ImageBase64: String
1709
- # @param MatchThreshold: 出参Score中,只有超过MatchThreshold值的结果才会返回。默认为0
1710
- # @type MatchThreshold: Integer
1711
- # @param Offset: 起始序号,默认值为0。
1712
- # @type Offset: Integer
1713
1891
  # @param Limit: 返回数量,默认值为10,最大值为100。
1714
1892
  # @type Limit: Integer
1893
+ # @param Offset: 起始序号,默认值为0。
1894
+ # @type Offset: Integer
1895
+ # @param MatchThreshold: 出参Score中,只有超过**MatchThreshold**值的结果才会返回。默认为0
1896
+ # @type MatchThreshold: Integer
1715
1897
  # @param Filter: 针对入库时提交的Tags信息进行条件过滤。支持>、>=、 <、 <=、=,!=,多个条件之间支持AND和OR进行连接。
1716
1898
  # @type Filter: String
1717
1899
  # @param ImageRect: 图像主体区域。
1900
+ # 若设置主体区域,提取指定的区域进行检索。
1718
1901
  # @type ImageRect: :class:`Tencentcloud::Tiia.v20190529.models.ImageRect`
1719
-
1720
- attr_accessor :GroupId, :ImageUrl, :ImageBase64, :MatchThreshold, :Offset, :Limit, :Filter, :ImageRect
1902
+ # @param EnableDetect: 是否需要启用主体识别,默认为**TRUE** 。
1903
+ # 1. 为**TRUE**时,启用主体识别,返回主体信息。若没有指定**ImageRect**,自动提取最大面积主体进行检索并进行主体识别。主体识别结果可在**Response中**获取。
1904
+ # 2. 为**FALSE**时,不启用主体识别,不返回主体信息。若没有指定**ImageRect**,以整张图检索图片。
1905
+ # 注意:服务类型为商品图像搜索时生效。
1906
+ # @type EnableDetect: Boolean
1907
+ # @param CategoryId: 图像类目ID。
1908
+ # 若设置类目ID,提取对应类目的主体进行检索。
1909
+ # 注意:服务类型为商品图像搜索时生效。
1910
+ # 类目信息:
1911
+ # 0:上衣。
1912
+ # 1:裙装。
1913
+ # 2:下装。
1914
+ # 3:包。
1915
+ # 4:鞋。
1916
+ # 5:配饰。
1917
+ # @type CategoryId: Integer
1918
+
1919
+ attr_accessor :GroupId, :ImageUrl, :ImageBase64, :Limit, :Offset, :MatchThreshold, :Filter, :ImageRect, :EnableDetect, :CategoryId
1721
1920
 
1722
- def initialize(groupid=nil, imageurl=nil, imagebase64=nil, matchthreshold=nil, offset=nil, limit=nil, filter=nil, imagerect=nil)
1921
+ def initialize(groupid=nil, imageurl=nil, imagebase64=nil, limit=nil, offset=nil, matchthreshold=nil, filter=nil, imagerect=nil, enabledetect=nil, categoryid=nil)
1723
1922
  @GroupId = groupid
1724
1923
  @ImageUrl = imageurl
1725
1924
  @ImageBase64 = imagebase64
1726
- @MatchThreshold = matchthreshold
1727
- @Offset = offset
1728
1925
  @Limit = limit
1926
+ @Offset = offset
1927
+ @MatchThreshold = matchthreshold
1729
1928
  @Filter = filter
1730
1929
  @ImageRect = imagerect
1930
+ @EnableDetect = enabledetect
1931
+ @CategoryId = categoryid
1731
1932
  end
1732
1933
 
1733
1934
  def deserialize(params)
1734
1935
  @GroupId = params['GroupId']
1735
1936
  @ImageUrl = params['ImageUrl']
1736
1937
  @ImageBase64 = params['ImageBase64']
1737
- @MatchThreshold = params['MatchThreshold']
1738
- @Offset = params['Offset']
1739
1938
  @Limit = params['Limit']
1939
+ @Offset = params['Offset']
1940
+ @MatchThreshold = params['MatchThreshold']
1740
1941
  @Filter = params['Filter']
1741
1942
  unless params['ImageRect'].nil?
1742
1943
  @ImageRect = ImageRect.new
1743
1944
  @ImageRect.deserialize(params['ImageRect'])
1744
1945
  end
1946
+ @EnableDetect = params['EnableDetect']
1947
+ @CategoryId = params['CategoryId']
1745
1948
  end
1746
1949
  end
1747
1950
 
@@ -1752,14 +1955,20 @@ module TencentCloud
1752
1955
  # @param ImageInfos: 图片信息。
1753
1956
  # 注意:此字段可能返回 null,表示取不到有效值。
1754
1957
  # @type ImageInfos: Array
1958
+ # @param Object: 输入图的主体信息。
1959
+ # 若启用主体识别且在请求中指定了类目ID或主体区域,以指定的主体为准。若启用主体识别且没有指定,以最大面积主体为准。
1960
+ # 注意:此字段可能返回 null,表示取不到有效值。服务类型为商品图像搜索时生效。
1961
+ # 注意:此字段可能返回 null,表示取不到有效值。
1962
+ # @type Object: :class:`Tencentcloud::Tiia.v20190529.models.ObjectInfo`
1755
1963
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1756
1964
  # @type RequestId: String
1757
1965
 
1758
- attr_accessor :Count, :ImageInfos, :RequestId
1966
+ attr_accessor :Count, :ImageInfos, :Object, :RequestId
1759
1967
 
1760
- def initialize(count=nil, imageinfos=nil, requestid=nil)
1968
+ def initialize(count=nil, imageinfos=nil, object=nil, requestid=nil)
1761
1969
  @Count = count
1762
1970
  @ImageInfos = imageinfos
1971
+ @Object = object
1763
1972
  @RequestId = requestid
1764
1973
  end
1765
1974
 
@@ -1773,6 +1982,10 @@ module TencentCloud
1773
1982
  @ImageInfos << imageinfo_tmp
1774
1983
  end
1775
1984
  end
1985
+ unless params['Object'].nil?
1986
+ @Object = ObjectInfo.new
1987
+ @Object.deserialize(params['Object'])
1988
+ end
1776
1989
  @RequestId = params['RequestId']
1777
1990
  end
1778
1991
  end
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: 1.0.325
4
+ version: 1.0.326
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-01 00:00:00.000000000 Z
11
+ date: 2022-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common