tencentcloud-sdk-mps 3.0.681 → 3.0.682
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190612/models.rb +145 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 914581d8140ed5a47c7f1392ad98d6cb12f9afe3
|
4
|
+
data.tar.gz: e9ae32f9cc30e36124bfe0510557ca0ba83a1393
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e1404593028473e457ed51d1bb63eb144467264b1da9dc0c30329a4890d4f5b60d7732a450e8c55a832df131afaaa16cca78b03a58fce0fd0ef3f52ad470fb3
|
7
|
+
data.tar.gz: 3f017a4c007f5936239d9df98e0203af88f718e8e6c67edc1e70392d6e259a358b8e35a30354fdd72568436a2e82d8a3dbbdd79859e6724d7ddd70f9aab17704
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.682
|
data/lib/v20190612/models.rb
CHANGED
@@ -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
|
-
|
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.
|
4
|
+
version: 3.0.682
|
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-
|
11
|
+
date: 2023-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|
@@ -33,9 +33,9 @@ executables: []
|
|
33
33
|
extensions: []
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
|
-
- lib/tencentcloud-sdk-mps.rb
|
37
36
|
- lib/v20190612/client.rb
|
38
37
|
- lib/v20190612/models.rb
|
38
|
+
- lib/tencentcloud-sdk-mps.rb
|
39
39
|
- lib/VERSION
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
41
41
|
licenses:
|