tencentcloud-sdk-tiia 1.0.295 → 1.0.298

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: 8eef620196702300d6e622dfead5ae115168e2c3
4
- data.tar.gz: 0c06b9e34e7a8b0653f76549fb56b45038e83954
3
+ metadata.gz: 66b7fbe8b24dcb18c127e4468339fd887208a57c
4
+ data.tar.gz: ec8dfc4226276beb3c6f16b8cb5696e6b5e7eb25
5
5
  SHA512:
6
- metadata.gz: 863dcba6dca8ff883205e33144dd95d8e9e217cc2988d2ad7d310a74b362e618266de68f9d051701540c557049216c4a44b499041d87ecb03d2f49c86c195427
7
- data.tar.gz: 885737afd9714d7b98d2039b91152362d78d05157fe54c3510ea5de2e4df0a0c7513dd6a64573def676d38a7444f85f03b558eb286e17df995f6165aac1158a4
6
+ metadata.gz: fee0af0f3bc11a3b8d7aca326e7d7f04cd1ff256ebce58373105b2872ba291a943c3ae5039ca9f1c26d2d5e3208d2db52b86fb091506a56dd2ab89d6d8893e26
7
+ data.tar.gz: fc2bbd9b2c2492f745066c10a0c215082f4739e5d0d8c608f97a1b7358e685f8a393f2a15dd97002ec88637b111001e5117e9a936e71161de06837bfe93e06cf
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.295
1
+ 1.0.298
@@ -55,7 +55,12 @@ module TencentCloud
55
55
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
56
56
  end
57
57
 
58
- # 用于创建一个空的图片库,如果图片库已存在则返回错误。
58
+ # 用于创建一个空的图片库,如果图片库已存在则返回错误。不同类型图库对应不同的图像搜索服务,根据输入参数GroupType区分。
59
+
60
+ # | 服务类型 | 功能描述 |
61
+ # | :------ | :----------------- |
62
+ # | 相同图像搜索<img width=30/> | 在自建图库中搜索相同原图,可支持裁剪、翻转、调色、加水印后的图片搜索,适用于版权场景。|
63
+ # | 商品图像搜索<img width=30/> | 在自建图库中搜索相同或相似的商品图片,适用于电商场景。|
59
64
 
60
65
  # @param request: Request instance for CreateGroup.
61
66
  # @type request: :class:`Tencentcloud::tiia::V20190529::CreateGroupRequest`
@@ -464,6 +469,33 @@ module TencentCloud
464
469
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
465
470
  end
466
471
 
472
+ # 车辆识别(增强版)可对图片中汽车的车型和车牌进行识别,可识别7000多种车型,覆盖轿车、SUV、大型客车等市面常见车,输出车辆的车身颜色、品牌、车系、年份、车牌和位置等信息。如果图片中存在多辆车,会分别输出每辆车的车型、车牌和坐标。
473
+
474
+ # >
475
+ # - 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
476
+
477
+ # @param request: Request instance for RecognizeCarPro.
478
+ # @type request: :class:`Tencentcloud::tiia::V20190529::RecognizeCarProRequest`
479
+ # @rtype: :class:`Tencentcloud::tiia::V20190529::RecognizeCarProResponse`
480
+ def RecognizeCarPro(request)
481
+ body = send_request('RecognizeCarPro', request.serialize)
482
+ response = JSON.parse(body)
483
+ if response['Response'].key?('Error') == false
484
+ model = RecognizeCarProResponse.new
485
+ model.deserialize(response['Response'])
486
+ model
487
+ else
488
+ code = response['Response']['Error']['Code']
489
+ message = response['Response']['Error']['Message']
490
+ reqid = response['Response']['RequestId']
491
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
492
+ end
493
+ rescue TencentCloud::Common::TencentCloudSDKException => e
494
+ raise e
495
+ rescue StandardError => e
496
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
497
+ end
498
+
467
499
  # 本接口用于对一张待识别的商品图片,在指定图片库中检索出最相似的图片列表。
468
500
 
469
501
  # @param request: Request instance for SearchImage.
@@ -215,13 +215,10 @@ module TencentCloud
215
215
  # @type Brief: String
216
216
  # @param MaxQps: 该库的访问限频 ,默认10。
217
217
  # @type MaxQps: Integer
218
- # @param GroupType: 图库类型, 默认为通用。
219
- # 类型:
220
- # 1: 通用图库,以用户输入图提取特征。
221
- # 2: 灰度图库,输入图和搜索图均转为灰度图提取特征。
222
- # 3: 针对电商(通用品类)和logo优化。
223
- # 4: 通用图库v2。
224
- # 5: 电商模型。
218
+ # @param GroupType: 图库类型,对应不同产品功能,默认为1。建议调整为4或5,1~3为历史版本,不推荐。
219
+ # 参数值:
220
+ # 4:相同图像搜索,在自建图库中搜索相同原图,可支持裁剪、翻转、调色、加水印后的图片搜索,适用于版权场景。
221
+ # 5:商品图像搜索,在自建图库中搜索相同或相似的商品图片,适用于电商场景。
225
222
  # @type GroupType: Integer
226
223
 
227
224
  attr_accessor :GroupId, :GroupName, :MaxCapacity, :Brief, :MaxQps, :GroupType
@@ -269,7 +266,7 @@ module TencentCloud
269
266
  # 若EntityId已存在,则对其追加图片。
270
267
  # @type EntityId: String
271
268
  # @param PicName: 图片名称,最多支持64个字符,
272
- # 同一个EntityId,最大支持10张图。如果图片名称已存在,则会更新库中的图片。
269
+ # 同一个EntityId,最大支持10张图。
273
270
  # @type PicName: String
274
271
  # @param ImageUrl: 图片的 Url 。对应图片 base64 编码后大小不可超过5M。
275
272
  # Url、Image必须提供一个,如果都提供,只使用 Url。
@@ -1526,6 +1523,73 @@ module TencentCloud
1526
1523
  end
1527
1524
  end
1528
1525
 
1526
+ # RecognizeCarPro请求参数结构体
1527
+ class RecognizeCarProRequest < TencentCloud::Common::AbstractModel
1528
+ # @param ImageUrl: 图片URL地址。
1529
+ # 图片限制:
1530
+ # • 图片格式:PNG、JPG、JPEG。
1531
+ # • 图片大小:所下载图片经Base64编码后不超过4M。图片下载时间不超过3秒。
1532
+ # 建议:
1533
+ # • 图片像素:大于50*50像素,否则影响识别效果;
1534
+ # • 长宽比:长边:短边<5;
1535
+ # 接口响应时间会受到图片下载时间的影响,建议使用更可靠的存储服务,推荐将图片存储在腾讯云COS。
1536
+ # @type ImageUrl: String
1537
+ # @param ImageBase64: 图片经过base64编码的内容。最大不超过4M。与ImageUrl同时存在时优先使用ImageUrl字段。
1538
+ # **注意:图片需要base64编码,并且要去掉编码头部。**
1539
+ # 支持的图片格式:PNG、JPG、JPEG、BMP,暂不支持GIF格式。支持的图片大小:所下载图片经Base64编码后不超过4M。图片下载时间不超过3秒。
1540
+ # @type ImageBase64: String
1541
+
1542
+ attr_accessor :ImageUrl, :ImageBase64
1543
+
1544
+ def initialize(imageurl=nil, imagebase64=nil)
1545
+ @ImageUrl = imageurl
1546
+ @ImageBase64 = imagebase64
1547
+ end
1548
+
1549
+ def deserialize(params)
1550
+ @ImageUrl = params['ImageUrl']
1551
+ @ImageBase64 = params['ImageBase64']
1552
+ end
1553
+ end
1554
+
1555
+ # RecognizeCarPro返回参数结构体
1556
+ class RecognizeCarProResponse < TencentCloud::Common::AbstractModel
1557
+ # @param CarCoords: 汽车的四个矩形顶点坐标,如果图片中存在多辆车,则输出最大车辆的坐标。
1558
+ # @type CarCoords: Array
1559
+ # @param CarTags: 车辆属性识别的结果数组,如果识别到多辆车,则会输出每辆车的top1结果。
1560
+ # @type CarTags: Array
1561
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1562
+ # @type RequestId: String
1563
+
1564
+ attr_accessor :CarCoords, :CarTags, :RequestId
1565
+
1566
+ def initialize(carcoords=nil, cartags=nil, requestid=nil)
1567
+ @CarCoords = carcoords
1568
+ @CarTags = cartags
1569
+ @RequestId = requestid
1570
+ end
1571
+
1572
+ def deserialize(params)
1573
+ unless params['CarCoords'].nil?
1574
+ @CarCoords = []
1575
+ params['CarCoords'].each do |i|
1576
+ coord_tmp = Coord.new
1577
+ coord_tmp.deserialize(i)
1578
+ @CarCoords << coord_tmp
1579
+ end
1580
+ end
1581
+ unless params['CarTags'].nil?
1582
+ @CarTags = []
1583
+ params['CarTags'].each do |i|
1584
+ cartagitem_tmp = CarTagItem.new
1585
+ cartagitem_tmp.deserialize(i)
1586
+ @CarTags << cartagitem_tmp
1587
+ end
1588
+ end
1589
+ @RequestId = params['RequestId']
1590
+ end
1591
+ end
1592
+
1529
1593
  # RecognizeCar请求参数结构体
1530
1594
  class RecognizeCarRequest < TencentCloud::Common::AbstractModel
1531
1595
  # @param ImageUrl: 图片URL地址。
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.295
4
+ version: 1.0.298
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-04-13 00:00:00.000000000 Z
11
+ date: 2022-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common