tencentcloud-sdk-mps 3.0.681 → 3.0.683

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20190612/models.rb +145 -2
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 506e06e7157f2e79f14c4123b929d8a59683a180
4
- data.tar.gz: 88cd2c9f020b732aa7cb9379e860d9424b9f2a22
3
+ metadata.gz: 18a1717c8676b138bb69759c603e417ad0a70dce
4
+ data.tar.gz: 92dd13c4132427905929f1dc00574880c783152d
5
5
  SHA512:
6
- metadata.gz: aaa991a1526410fe329a559ab622539f14d4b00df66c84ea84670b90f3c67c91deac489352168ad7475d226c87c85669746420db25462a2d84eef53544d9db66
7
- data.tar.gz: 68c3ba8f0e17ef9f9f738cca79eca72945bf0b621145996420abd2e9dd57131e9993abf113c74a926b84eacd62808f92e7e8cf44e8e0433a9ff6373a2d553e29
6
+ metadata.gz: fd076fe18c82ce6d29e86f909e1c43dd80449c1799c9ef8db232adafe6936afac511812c904c3830747c4479f7eb338f51d24440d7c9546ee5c5c7b2f376707a
7
+ data.tar.gz: e13598305f9fedb0085be649eb216cfa92ff3d093b3dfc171354ed748dc3b421df57dfa7703922380820401555c0ea39695b95108e19223fd60028d5236eb26e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.681
1
+ 3.0.683
@@ -1437,10 +1437,15 @@ module TencentCloud
1437
1437
  # TransTextRecognition 时有效。
1438
1438
  # 注意:此字段可能返回 null,表示取不到有效值。
1439
1439
  # @type TransTextTask: :class:`Tencentcloud::Mps.v20190612.models.AiRecognitionTaskTransTextResult`
1440
+ # @param ObjectTask: 物体识别结果,当Type 为
1440
1441
 
1441
- attr_accessor :Type, :FaceTask, :AsrWordsTask, :AsrFullTextTask, :OcrWordsTask, :OcrFullTextTask, :TransTextTask
1442
+ # ObjectRecognition 时有效。
1443
+ # 注意:此字段可能返回 null,表示取不到有效值。
1444
+ # @type ObjectTask: :class:`Tencentcloud::Mps.v20190612.models.AiRecognitionTaskObjectResult`
1445
+
1446
+ attr_accessor :Type, :FaceTask, :AsrWordsTask, :AsrFullTextTask, :OcrWordsTask, :OcrFullTextTask, :TransTextTask, :ObjectTask
1442
1447
 
1443
- def initialize(type=nil, facetask=nil, asrwordstask=nil, asrfulltexttask=nil, ocrwordstask=nil, ocrfulltexttask=nil, transtexttask=nil)
1448
+ def initialize(type=nil, facetask=nil, asrwordstask=nil, asrfulltexttask=nil, ocrwordstask=nil, ocrfulltexttask=nil, transtexttask=nil, objecttask=nil)
1444
1449
  @Type = type
1445
1450
  @FaceTask = facetask
1446
1451
  @AsrWordsTask = asrwordstask
@@ -1448,6 +1453,7 @@ module TencentCloud
1448
1453
  @OcrWordsTask = ocrwordstask
1449
1454
  @OcrFullTextTask = ocrfulltexttask
1450
1455
  @TransTextTask = transtexttask
1456
+ @ObjectTask = objecttask
1451
1457
  end
1452
1458
 
1453
1459
  def deserialize(params)
@@ -1476,6 +1482,10 @@ module TencentCloud
1476
1482
  @TransTextTask = AiRecognitionTaskTransTextResult.new
1477
1483
  @TransTextTask.deserialize(params['TransTextTask'])
1478
1484
  end
1485
+ unless params['ObjectTask'].nil?
1486
+ @ObjectTask = AiRecognitionTaskObjectResult.new
1487
+ @ObjectTask.deserialize(params['ObjectTask'])
1488
+ end
1479
1489
  end
1480
1490
  end
1481
1491
 
@@ -1950,6 +1960,139 @@ module TencentCloud
1950
1960
  end
1951
1961
  end
1952
1962
 
1963
+ # 物体识别结果。
1964
+ class AiRecognitionTaskObjectResult < TencentCloud::Common::AbstractModel
1965
+ # @param Status: 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
1966
+ # @type Status: String
1967
+ # @param ErrCode: 错误码,0:成功,其他值:失败。
1968
+ # @type ErrCode: Integer
1969
+ # @param Message: 错误信息。
1970
+ # @type Message: String
1971
+ # @param Input: 物体识别任务输入信息。
1972
+ # @type Input: :class:`Tencentcloud::Mps.v20190612.models.AiRecognitionTaskObjectResultInput`
1973
+ # @param Output: 物体识别任务输出信息。
1974
+ # 注意:此字段可能返回 null,表示取不到有效值。
1975
+ # @type Output: :class:`Tencentcloud::Mps.v20190612.models.AiRecognitionTaskObjectResultOutput`
1976
+
1977
+ attr_accessor :Status, :ErrCode, :Message, :Input, :Output
1978
+
1979
+ def initialize(status=nil, errcode=nil, message=nil, input=nil, output=nil)
1980
+ @Status = status
1981
+ @ErrCode = errcode
1982
+ @Message = message
1983
+ @Input = input
1984
+ @Output = output
1985
+ end
1986
+
1987
+ def deserialize(params)
1988
+ @Status = params['Status']
1989
+ @ErrCode = params['ErrCode']
1990
+ @Message = params['Message']
1991
+ unless params['Input'].nil?
1992
+ @Input = AiRecognitionTaskObjectResultInput.new
1993
+ @Input.deserialize(params['Input'])
1994
+ end
1995
+ unless params['Output'].nil?
1996
+ @Output = AiRecognitionTaskObjectResultOutput.new
1997
+ @Output.deserialize(params['Output'])
1998
+ end
1999
+ end
2000
+ end
2001
+
2002
+ # 物体识别任务输入类型。
2003
+ class AiRecognitionTaskObjectResultInput < TencentCloud::Common::AbstractModel
2004
+ # @param Definition: 物体识别模板 ID。
2005
+ # @type Definition: Integer
2006
+
2007
+ attr_accessor :Definition
2008
+
2009
+ def initialize(definition=nil)
2010
+ @Definition = definition
2011
+ end
2012
+
2013
+ def deserialize(params)
2014
+ @Definition = params['Definition']
2015
+ end
2016
+ end
2017
+
2018
+ # 单个物体识别结果。
2019
+ class AiRecognitionTaskObjectResultItem < TencentCloud::Common::AbstractModel
2020
+ # @param Name: 识别的物体名称。
2021
+ # @type Name: String
2022
+ # @param SegmentSet: 物体出现的片段列表。
2023
+ # @type SegmentSet: Array
2024
+
2025
+ attr_accessor :Name, :SegmentSet
2026
+
2027
+ def initialize(name=nil, segmentset=nil)
2028
+ @Name = name
2029
+ @SegmentSet = segmentset
2030
+ end
2031
+
2032
+ def deserialize(params)
2033
+ @Name = params['Name']
2034
+ unless params['SegmentSet'].nil?
2035
+ @SegmentSet = []
2036
+ params['SegmentSet'].each do |i|
2037
+ airecognitiontaskobjectseqmentitem_tmp = AiRecognitionTaskObjectSeqmentItem.new
2038
+ airecognitiontaskobjectseqmentitem_tmp.deserialize(i)
2039
+ @SegmentSet << airecognitiontaskobjectseqmentitem_tmp
2040
+ end
2041
+ end
2042
+ end
2043
+ end
2044
+
2045
+ # 智能物体识别输出。
2046
+ class AiRecognitionTaskObjectResultOutput < TencentCloud::Common::AbstractModel
2047
+ # @param ResultSet: 智能物体识别结果集。
2048
+ # @type ResultSet: Array
2049
+
2050
+ attr_accessor :ResultSet
2051
+
2052
+ def initialize(resultset=nil)
2053
+ @ResultSet = resultset
2054
+ end
2055
+
2056
+ def deserialize(params)
2057
+ unless params['ResultSet'].nil?
2058
+ @ResultSet = []
2059
+ params['ResultSet'].each do |i|
2060
+ airecognitiontaskobjectresultitem_tmp = AiRecognitionTaskObjectResultItem.new
2061
+ airecognitiontaskobjectresultitem_tmp.deserialize(i)
2062
+ @ResultSet << airecognitiontaskobjectresultitem_tmp
2063
+ end
2064
+ end
2065
+ end
2066
+ end
2067
+
2068
+ # 物体识别结果片段。
2069
+ class AiRecognitionTaskObjectSeqmentItem < TencentCloud::Common::AbstractModel
2070
+ # @param StartTimeOffset: 识别片段起始的偏移时间,单位:秒。
2071
+ # @type StartTimeOffset: Float
2072
+ # @param EndTimeOffset: 识别片段终止的偏移时间,单位:秒。
2073
+ # @type EndTimeOffset: Float
2074
+ # @param Confidence: 识别片段置信度。取值:0~100。
2075
+ # @type Confidence: Float
2076
+ # @param AreaCoordSet: 识别结果的区域坐标。数组包含 4 个元素 [x1,y1,x2,y2],依次表示区域左上点、右下点的横纵坐标。
2077
+ # @type AreaCoordSet: Array
2078
+
2079
+ attr_accessor :StartTimeOffset, :EndTimeOffset, :Confidence, :AreaCoordSet
2080
+
2081
+ def initialize(starttimeoffset=nil, endtimeoffset=nil, confidence=nil, areacoordset=nil)
2082
+ @StartTimeOffset = starttimeoffset
2083
+ @EndTimeOffset = endtimeoffset
2084
+ @Confidence = confidence
2085
+ @AreaCoordSet = areacoordset
2086
+ end
2087
+
2088
+ def deserialize(params)
2089
+ @StartTimeOffset = params['StartTimeOffset']
2090
+ @EndTimeOffset = params['EndTimeOffset']
2091
+ @Confidence = params['Confidence']
2092
+ @AreaCoordSet = params['AreaCoordSet']
2093
+ end
2094
+ end
2095
+
1953
2096
  # 文本全文识别结果。
1954
2097
  class AiRecognitionTaskOcrFullTextResult < TencentCloud::Common::AbstractModel
1955
2098
  # @param Status: 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-mps
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.681
4
+ version: 3.0.683
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-20 00:00:00.000000000 Z
11
+ date: 2023-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -34,8 +34,8 @@ extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
36
  - lib/tencentcloud-sdk-mps.rb
37
- - lib/v20190612/client.rb
38
37
  - lib/v20190612/models.rb
38
+ - lib/v20190612/client.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: