tencentcloud-sdk-tiia 1.0.331 → 1.0.334

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: efecb77e83dc329945c1e85b65dd967a93b4d9f3
4
- data.tar.gz: c91ced3c95a67db7f3fd6de8168213e071daf9c5
3
+ metadata.gz: 89cd513584c437d52bda55fa70b5c0c7d333bd6c
4
+ data.tar.gz: 4c27c36f9d37e66fa030040c4fc20dc6c468f6f3
5
5
  SHA512:
6
- metadata.gz: 4039d5849fe779f8604eea1e3c2f1c68265827fe30f2e10ea645be87c7ef8290ecc52cbcf0abfe5b2d2734f7435a89dcd1f2262819bc9497c496a8f74d356d0d
7
- data.tar.gz: 3c5787c2cd3486b7abd9159efcad6a9e027a1dc83dfadfca6c3d87ea46237afe3076763e69c4fb4052945157943e3e5ccdadac050024756857e8c8776c2aeed7
6
+ metadata.gz: 3797454359c9703380987a266ef44a00e71f73a0873f30860499a581f29635018c8d6893ecd8aa53e41504eda824ab72df058d79943b54753ec75506cfba34e7
7
+ data.tar.gz: 3a7171cf61acfbf58acdcf6bbbc1ac47795474111ca678463ffd4ddfedfdeb980a339310af8d8a77bef36274b202ef96b3aa3362e208de8737b432129e41e2b0
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.331
1
+ 1.0.334
@@ -265,6 +265,37 @@ module TencentCloud
265
265
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
266
266
  end
267
267
 
268
+ # 文件封识别可检测图片中是否包含符合文件封(即文件、单据、资料等的袋状包装)特征的物品,覆盖顺丰快递文件封、文件袋、档案袋等多种文件封类型,可应用于物流行业对文件快递的包装审核等场景。
269
+
270
+ # >?
271
+ # - 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
272
+
273
+ # @param request: Request instance for DetectEnvelope.
274
+ # @type request: :class:`Tencentcloud::tiia::V20190529::DetectEnvelopeRequest`
275
+ # @rtype: :class:`Tencentcloud::tiia::V20190529::DetectEnvelopeResponse`
276
+ def DetectEnvelope(request)
277
+ body = send_request('DetectEnvelope', request.serialize)
278
+ response = JSON.parse(body)
279
+ if response['Response'].key?('Error') == false
280
+ model = DetectEnvelopeResponse.new
281
+ model.deserialize(response['Response'])
282
+ model
283
+ else
284
+ code = response['Response']['Error']['Code']
285
+ message = response['Response']['Error']['Message']
286
+ reqid = response['Response']['RequestId']
287
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
288
+ end
289
+ rescue TencentCloud::Common::TencentCloudSDKException => e
290
+ raise e
291
+ rescue StandardError => e
292
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
293
+ end
294
+
295
+ # >!
296
+ # - **图像标签已升级服务,建议前往使用新版接口[通用图像标签](https://cloud.tencent.com/document/product/865/75196)。**
297
+ # - **与本接口相比,[通用图像标签](https://cloud.tencent.com/document/product/865/75196)新版接口提供更高精度的图像标签识别服务,覆盖更广泛的物体与场景类型,效果和通用性更优。**
298
+
268
299
  # 图像标签利用深度学习技术,可以对图片进行智能分类、物体识别等。
269
300
 
270
301
  # 目前支持8个大类、六十多个子类、数千个标签。涵盖各种日常场景、动植物、物品、美食、卡证等。具体分类请见[图像分析常见问题功能与限制相关](https://cloud.tencent.com/document/product/865/39164)。
@@ -284,7 +315,9 @@ module TencentCloud
284
315
  # 为了方便使用、减少图片传输次数,图像标签包装成多合一接口,实际上是多个服务。
285
316
 
286
317
  # 图像标签按照服务的实际使用数量进行收费。例如一张图片同时调用相册版、摄像头版两个服务,那么此次调用按照两次计费。
287
- # >
318
+
319
+ # >?
320
+ # - 图像标签摄像头版、相册版、网络版、新闻版分别按照各自的使用次数进行收费,例如一张图片同时使用相册版、摄像头版,则按照两次调用计费。建议测试对比后从中选择一个最合适的版本使用即可。
288
321
  # - 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
289
322
 
290
323
  # @param request: Request instance for DetectLabel.
@@ -338,8 +371,9 @@ module TencentCloud
338
371
 
339
372
  # 通用图像标签可识别数千种常见物体或场景,覆盖日常物品、场景、动物、植物、食物、饮品、交通工具等多个大类,返回主体的标签名称和所属细分类目等,广泛应用于拍照识物、场景分析、图像内容审核与推荐、智能相册分类等场景。
340
373
 
341
- # >
342
- # - 通用图像标签在原图像标签接口的基础上进行了升级,识别精度和标签覆盖范围相比原图像标签接口更优,推荐使用。
374
+ # >?
375
+ # - **通用图像标签**在原图像标签接口的基础上进行了**升级**,识别精度和标签覆盖范围相比原图像标签接口更优,**推荐使用**。
376
+ # - 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
343
377
 
344
378
  # @param request: Request instance for DetectLabelPro.
345
379
  # @type request: :class:`Tencentcloud::tiia::V20190529::DetectLabelProRequest`
@@ -390,7 +424,7 @@ module TencentCloud
390
424
  end
391
425
 
392
426
  # 本接口支持识别图片中包含的商品,能够输出商品的品类名称、类别,还可以输出商品在图片中的位置。支持一张图片多个商品的识别。
393
- # >
427
+ # >?
394
428
  # - 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
395
429
 
396
430
  # @param request: Request instance for DetectProduct.
@@ -418,7 +452,7 @@ module TencentCloud
418
452
  # 商品识别-微信识物版,基于人工智能技术、海量训练图片、亿级商品库,可以实现全覆盖、细粒度、高准确率的商品识别和商品推荐功能。
419
453
  # 本服务可以识别出图片中的主体位置、主体商品类型,覆盖亿级SKU,输出具体商品的价格、型号等详细信息。
420
454
  # 客户无需自建商品库,即可快速实现商品识别、拍照搜商品等功能。
421
- # >
455
+ # >?
422
456
  # - 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
423
457
 
424
458
  # @param request: Request instance for DetectProductBeta.
@@ -471,9 +505,9 @@ module TencentCloud
471
505
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
472
506
  end
473
507
 
474
- # 车辆识别可对图片中车辆的车型进行识别,可识别7000多种车型,输出车辆的品牌(如路虎)、车系(如神行者2)、类型(如中型SUV)、颜色、年份和坐标等信息,覆盖轿车、SUV、大型客车等市面常见车。如果图片中存在多辆车,会分别输出每辆车的车型和坐标。
508
+ # 车辆识别可对图片中车辆的车型进行识别,输出车辆的品牌(如路虎)、车系(如神行者2)、类型(如中型SUV)、颜色和车辆在图中的坐标等信息,覆盖轿车、SUV、大型客车等市面常见车,支持三千多种车辆型号。如果图片中存在多辆车,会分别输出每辆车的车型和坐标。
475
509
 
476
- # >
510
+ # >?
477
511
  # - 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
478
512
 
479
513
  # @param request: Request instance for RecognizeCar.
@@ -498,9 +532,9 @@ module TencentCloud
498
532
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
499
533
  end
500
534
 
501
- # 车辆识别(增强版)可对图片中车辆的车型和车牌进行识别,输出车辆的车牌,以及品牌(如路虎)、车系(如神行者2)、类型(如中型SUV)、颜色和坐标等信息,覆盖轿车、SUV、大型客车等市面常见车。如果图片中存在多辆车,会分别输出每辆车的车型、车牌和坐标。
535
+ # 车辆识别(增强版)在车辆识别的基础上**增加了车牌识别的功能,并升级了车型识别的效果**。可对图片中车辆的车型和车牌进行同时识别,输出车辆的车牌信息,以及车辆品牌(如路虎)、车系(如神行者2)、类型(如中型SUV)、颜色和车辆在图中的坐标等信息,覆盖轿车、SUV、大型客车等市面常见车,支持三千多种车辆型号。如果图片中存在多辆车,会分别输出每辆车的车型、车牌和坐标。
502
536
 
503
- # >
537
+ # >?
504
538
  # - 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
505
539
 
506
540
  # @param request: Request instance for RecognizeCarPro.
@@ -792,6 +792,70 @@ module TencentCloud
792
792
  end
793
793
  end
794
794
 
795
+ # DetectEnvelope请求参数结构体
796
+ class DetectEnvelopeRequest < TencentCloud::Common::AbstractModel
797
+ # @param ImageUrl: 图片的URL地址。图片存储于腾讯云的Url可保障更高下载速度和稳定性,建议图片存储于腾讯云。
798
+ # 非腾讯云存储的Url速度和稳定性可能受一定影响。
799
+ # 图片大小的限制为4M,图片像素的限制为4k。
800
+ # @type ImageUrl: String
801
+ # @param ImageBase64: 图片经过base64编码的内容。与ImageUrl同时存在时优先使用ImageUrl字段。
802
+ # 图片大小的限制为4M,图片像素的限制为4k。
803
+ # **注意:图片需要base64编码,并且要去掉编码头部。
804
+ # @type ImageBase64: String
805
+
806
+ attr_accessor :ImageUrl, :ImageBase64
807
+
808
+ def initialize(imageurl=nil, imagebase64=nil)
809
+ @ImageUrl = imageurl
810
+ @ImageBase64 = imagebase64
811
+ end
812
+
813
+ def deserialize(params)
814
+ @ImageUrl = params['ImageUrl']
815
+ @ImageBase64 = params['ImageBase64']
816
+ end
817
+ end
818
+
819
+ # DetectEnvelope返回参数结构体
820
+ class DetectEnvelopeResponse < TencentCloud::Common::AbstractModel
821
+ # @param FirstTags: 一级标签结果数组。识别是否文件封。
822
+ # 注意:此字段可能返回 null,表示取不到有效值。
823
+ # @type FirstTags: Array
824
+ # @param SecondTags: 二级标签结果数组。识别文件封正反面。
825
+ # 注意:此字段可能返回 null,表示取不到有效值。
826
+ # @type SecondTags: Array
827
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
828
+ # @type RequestId: String
829
+
830
+ attr_accessor :FirstTags, :SecondTags, :RequestId
831
+
832
+ def initialize(firsttags=nil, secondtags=nil, requestid=nil)
833
+ @FirstTags = firsttags
834
+ @SecondTags = secondtags
835
+ @RequestId = requestid
836
+ end
837
+
838
+ def deserialize(params)
839
+ unless params['FirstTags'].nil?
840
+ @FirstTags = []
841
+ params['FirstTags'].each do |i|
842
+ imagetag_tmp = ImageTag.new
843
+ imagetag_tmp.deserialize(i)
844
+ @FirstTags << imagetag_tmp
845
+ end
846
+ end
847
+ unless params['SecondTags'].nil?
848
+ @SecondTags = []
849
+ params['SecondTags'].each do |i|
850
+ imagetag_tmp = ImageTag.new
851
+ imagetag_tmp.deserialize(i)
852
+ @SecondTags << imagetag_tmp
853
+ end
854
+ end
855
+ @RequestId = params['RequestId']
856
+ end
857
+ end
858
+
795
859
  # DetectLabelBeta请求参数结构体
796
860
  class DetectLabelBetaRequest < TencentCloud::Common::AbstractModel
797
861
  # @param ImageUrl: 图片URL地址。
@@ -1508,6 +1572,26 @@ module TencentCloud
1508
1572
  end
1509
1573
  end
1510
1574
 
1575
+ # 图片标签。
1576
+ class ImageTag < TencentCloud::Common::AbstractModel
1577
+ # @param Name: 标签内容。
1578
+ # @type Name: String
1579
+ # @param Confidence: 置信度范围在0-100之间。值越高,表示目标为相应结果的可能性越高。
1580
+ # @type Confidence: Float
1581
+
1582
+ attr_accessor :Name, :Confidence
1583
+
1584
+ def initialize(name=nil, confidence=nil)
1585
+ @Name = name
1586
+ @Confidence = confidence
1587
+ end
1588
+
1589
+ def deserialize(params)
1590
+ @Name = params['Name']
1591
+ @Confidence = params['Confidence']
1592
+ end
1593
+ end
1594
+
1511
1595
  # 名人识别的标签
1512
1596
  class Labels < TencentCloud::Common::AbstractModel
1513
1597
  # @param FirstLabel: 公众人物身份标签的一级分类,例如体育明星、娱乐明星等;
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.331
4
+ version: 1.0.334
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-13 00:00:00.000000000 Z
11
+ date: 2022-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common