tencentcloud-sdk-tiia 1.0.295 → 1.0.296

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8eef620196702300d6e622dfead5ae115168e2c3
4
- data.tar.gz: 0c06b9e34e7a8b0653f76549fb56b45038e83954
3
+ metadata.gz: 73603dfa3c973ac326eceda3df5414f09062255c
4
+ data.tar.gz: f63ee19455ce0c31447e8305c5bb24e8526e236d
5
5
  SHA512:
6
- metadata.gz: 863dcba6dca8ff883205e33144dd95d8e9e217cc2988d2ad7d310a74b362e618266de68f9d051701540c557049216c4a44b499041d87ecb03d2f49c86c195427
7
- data.tar.gz: 885737afd9714d7b98d2039b91152362d78d05157fe54c3510ea5de2e4df0a0c7513dd6a64573def676d38a7444f85f03b558eb286e17df995f6165aac1158a4
6
+ metadata.gz: ef1348dc67f2e5c3bde834704f36e0fde719d781206a7d44af89f633f12771373ff59e3a877f2991f153f384429d4707591e0dccd082c00230ad1c42fcfd31cc
7
+ data.tar.gz: 4d63efb0db742d9f5c2dce940d623a574274c7328ccaf597e57236e14c9aaaccec56a11422a3fbdf5a874e2fe8a4b0ad2dfd5ca807340eb4c321ee18961bcabe
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.295
1
+ 1.0.296
@@ -464,6 +464,33 @@ module TencentCloud
464
464
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
465
465
  end
466
466
 
467
+ # 车辆识别(增强版)可对图片中汽车的车型和车牌进行识别,可识别7000多种车型,覆盖轿车、SUV、大型客车等市面常见车,输出车辆的车身颜色、品牌、车系、年份、车牌和位置等信息。如果图片中存在多辆车,会分别输出每辆车的车型、车牌和坐标。
468
+
469
+ # >
470
+ # - 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
471
+
472
+ # @param request: Request instance for RecognizeCarPro.
473
+ # @type request: :class:`Tencentcloud::tiia::V20190529::RecognizeCarProRequest`
474
+ # @rtype: :class:`Tencentcloud::tiia::V20190529::RecognizeCarProResponse`
475
+ def RecognizeCarPro(request)
476
+ body = send_request('RecognizeCarPro', request.serialize)
477
+ response = JSON.parse(body)
478
+ if response['Response'].key?('Error') == false
479
+ model = RecognizeCarProResponse.new
480
+ model.deserialize(response['Response'])
481
+ model
482
+ else
483
+ code = response['Response']['Error']['Code']
484
+ message = response['Response']['Error']['Message']
485
+ reqid = response['Response']['RequestId']
486
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
487
+ end
488
+ rescue TencentCloud::Common::TencentCloudSDKException => e
489
+ raise e
490
+ rescue StandardError => e
491
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
492
+ end
493
+
467
494
  # 本接口用于对一张待识别的商品图片,在指定图片库中检索出最相似的图片列表。
468
495
 
469
496
  # @param request: Request instance for SearchImage.
@@ -1526,6 +1526,73 @@ module TencentCloud
1526
1526
  end
1527
1527
  end
1528
1528
 
1529
+ # RecognizeCarPro请求参数结构体
1530
+ class RecognizeCarProRequest < TencentCloud::Common::AbstractModel
1531
+ # @param ImageUrl: 图片URL地址。
1532
+ # 图片限制:
1533
+ # • 图片格式:PNG、JPG、JPEG。
1534
+ # • 图片大小:所下载图片经Base64编码后不超过4M。图片下载时间不超过3秒。
1535
+ # 建议:
1536
+ # • 图片像素:大于50*50像素,否则影响识别效果;
1537
+ # • 长宽比:长边:短边<5;
1538
+ # 接口响应时间会受到图片下载时间的影响,建议使用更可靠的存储服务,推荐将图片存储在腾讯云COS。
1539
+ # @type ImageUrl: String
1540
+ # @param ImageBase64: 图片经过base64编码的内容。最大不超过4M。与ImageUrl同时存在时优先使用ImageUrl字段。
1541
+ # **注意:图片需要base64编码,并且要去掉编码头部。**
1542
+ # 支持的图片格式:PNG、JPG、JPEG、BMP,暂不支持GIF格式。支持的图片大小:所下载图片经Base64编码后不超过4M。图片下载时间不超过3秒。
1543
+ # @type ImageBase64: String
1544
+
1545
+ attr_accessor :ImageUrl, :ImageBase64
1546
+
1547
+ def initialize(imageurl=nil, imagebase64=nil)
1548
+ @ImageUrl = imageurl
1549
+ @ImageBase64 = imagebase64
1550
+ end
1551
+
1552
+ def deserialize(params)
1553
+ @ImageUrl = params['ImageUrl']
1554
+ @ImageBase64 = params['ImageBase64']
1555
+ end
1556
+ end
1557
+
1558
+ # RecognizeCarPro返回参数结构体
1559
+ class RecognizeCarProResponse < TencentCloud::Common::AbstractModel
1560
+ # @param CarCoords: 汽车的四个矩形顶点坐标,如果图片中存在多辆车,则输出最大车辆的坐标。
1561
+ # @type CarCoords: Array
1562
+ # @param CarTags: 车辆属性识别的结果数组,如果识别到多辆车,则会输出每辆车的top1结果。
1563
+ # @type CarTags: Array
1564
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1565
+ # @type RequestId: String
1566
+
1567
+ attr_accessor :CarCoords, :CarTags, :RequestId
1568
+
1569
+ def initialize(carcoords=nil, cartags=nil, requestid=nil)
1570
+ @CarCoords = carcoords
1571
+ @CarTags = cartags
1572
+ @RequestId = requestid
1573
+ end
1574
+
1575
+ def deserialize(params)
1576
+ unless params['CarCoords'].nil?
1577
+ @CarCoords = []
1578
+ params['CarCoords'].each do |i|
1579
+ coord_tmp = Coord.new
1580
+ coord_tmp.deserialize(i)
1581
+ @CarCoords << coord_tmp
1582
+ end
1583
+ end
1584
+ unless params['CarTags'].nil?
1585
+ @CarTags = []
1586
+ params['CarTags'].each do |i|
1587
+ cartagitem_tmp = CarTagItem.new
1588
+ cartagitem_tmp.deserialize(i)
1589
+ @CarTags << cartagitem_tmp
1590
+ end
1591
+ end
1592
+ @RequestId = params['RequestId']
1593
+ end
1594
+ end
1595
+
1529
1596
  # RecognizeCar请求参数结构体
1530
1597
  class RecognizeCarRequest < TencentCloud::Common::AbstractModel
1531
1598
  # @param ImageUrl: 图片URL地址。
metadata CHANGED
@@ -1,7 +1,7 @@
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.296
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud