tencentcloud-sdk-ims 3.0.563 → 3.0.565
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/v20200713/models.rb +85 -4
- data/lib/v20201229/models.rb +7 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54260feff39e5486e42a022779e801f6ea0b2f35
|
4
|
+
data.tar.gz: df8de0eb010ab9f18d4d8082af467cdd8c2a55ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 310ffdb9a811511d49a26f210b31d2d55e7a66f9312f5206c991e428bdbad95dec7c1a605706451d37eebb2164b1a2c3926368a9cd51cd365fbdba53fb02f973
|
7
|
+
data.tar.gz: ef224d3da14e83d29d099cea61a9074cd83647aad86760c4a9b26ab64cabef2a2a53530e47d7ea8cdb7b9df08986a2e675069f842db78935fa344c6e0b1faf15
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.565
|
data/lib/v20200713/models.rb
CHANGED
@@ -148,12 +148,15 @@ module TencentCloud
|
|
148
148
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
149
149
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
150
150
|
# @type Extra: String
|
151
|
+
# @param RecognitionResults: 该字段用于返回仅识别图片元素的模型结果;包括:场景模型命中的标签、置信度和位置信息
|
152
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
153
|
+
# @type RecognitionResults: Array
|
151
154
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
152
155
|
# @type RequestId: String
|
153
156
|
|
154
|
-
attr_accessor :HitFlag, :Suggestion, :Label, :SubLabel, :Score, :LabelResults, :ObjectResults, :OcrResults, :LibResults, :DataId, :BizType, :Extra, :RequestId
|
157
|
+
attr_accessor :HitFlag, :Suggestion, :Label, :SubLabel, :Score, :LabelResults, :ObjectResults, :OcrResults, :LibResults, :DataId, :BizType, :Extra, :RecognitionResults, :RequestId
|
155
158
|
|
156
|
-
def initialize(hitflag=nil, suggestion=nil, label=nil, sublabel=nil, score=nil, labelresults=nil, objectresults=nil, ocrresults=nil, libresults=nil, dataid=nil, biztype=nil, extra=nil, requestid=nil)
|
159
|
+
def initialize(hitflag=nil, suggestion=nil, label=nil, sublabel=nil, score=nil, labelresults=nil, objectresults=nil, ocrresults=nil, libresults=nil, dataid=nil, biztype=nil, extra=nil, recognitionresults=nil, requestid=nil)
|
157
160
|
@HitFlag = hitflag
|
158
161
|
@Suggestion = suggestion
|
159
162
|
@Label = label
|
@@ -166,6 +169,7 @@ module TencentCloud
|
|
166
169
|
@DataId = dataid
|
167
170
|
@BizType = biztype
|
168
171
|
@Extra = extra
|
172
|
+
@RecognitionResults = recognitionresults
|
169
173
|
@RequestId = requestid
|
170
174
|
end
|
171
175
|
|
@@ -210,6 +214,14 @@ module TencentCloud
|
|
210
214
|
@DataId = params['DataId']
|
211
215
|
@BizType = params['BizType']
|
212
216
|
@Extra = params['Extra']
|
217
|
+
unless params['RecognitionResults'].nil?
|
218
|
+
@RecognitionResults = []
|
219
|
+
params['RecognitionResults'].each do |i|
|
220
|
+
recognitionresult_tmp = RecognitionResult.new
|
221
|
+
recognitionresult_tmp.deserialize(i)
|
222
|
+
@RecognitionResults << recognitionresult_tmp
|
223
|
+
end
|
224
|
+
end
|
213
225
|
@RequestId = params['RequestId']
|
214
226
|
end
|
215
227
|
end
|
@@ -425,16 +437,24 @@ module TencentCloud
|
|
425
437
|
# @type Location: :class:`Tencentcloud::Ims.v20200713.models.Location`
|
426
438
|
# @param SubLabel: 二级标签名称
|
427
439
|
# @type SubLabel: String
|
440
|
+
# @param GroupId: 图库或人脸库id
|
441
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
442
|
+
# @type GroupId: String
|
443
|
+
# @param ObjectId: 图或人脸id
|
444
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
445
|
+
# @type ObjectId: String
|
428
446
|
|
429
|
-
attr_accessor :Id, :Name, :Value, :Score, :Location, :SubLabel
|
447
|
+
attr_accessor :Id, :Name, :Value, :Score, :Location, :SubLabel, :GroupId, :ObjectId
|
430
448
|
|
431
|
-
def initialize(id=nil, name=nil, value=nil, score=nil, location=nil, sublabel=nil)
|
449
|
+
def initialize(id=nil, name=nil, value=nil, score=nil, location=nil, sublabel=nil, groupid=nil, objectid=nil)
|
432
450
|
@Id = id
|
433
451
|
@Name = name
|
434
452
|
@Value = value
|
435
453
|
@Score = score
|
436
454
|
@Location = location
|
437
455
|
@SubLabel = sublabel
|
456
|
+
@GroupId = groupid
|
457
|
+
@ObjectId = objectid
|
438
458
|
end
|
439
459
|
|
440
460
|
def deserialize(params)
|
@@ -447,6 +467,8 @@ module TencentCloud
|
|
447
467
|
@Location.deserialize(params['Location'])
|
448
468
|
end
|
449
469
|
@SubLabel = params['SubLabel']
|
470
|
+
@GroupId = params['GroupId']
|
471
|
+
@ObjectId = params['ObjectId']
|
450
472
|
end
|
451
473
|
end
|
452
474
|
|
@@ -607,6 +629,65 @@ module TencentCloud
|
|
607
629
|
end
|
608
630
|
end
|
609
631
|
|
632
|
+
# 识别类型标签结果信息
|
633
|
+
class RecognitionResult < TencentCloud::Common::AbstractModel
|
634
|
+
# @param Label: 当前可能的取值:Scene(图片场景模型)
|
635
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
636
|
+
# @type Label: String
|
637
|
+
# @param Tags: Label对应模型下的识别标签信息
|
638
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
639
|
+
# @type Tags: Array
|
640
|
+
|
641
|
+
attr_accessor :Label, :Tags
|
642
|
+
|
643
|
+
def initialize(label=nil, tags=nil)
|
644
|
+
@Label = label
|
645
|
+
@Tags = tags
|
646
|
+
end
|
647
|
+
|
648
|
+
def deserialize(params)
|
649
|
+
@Label = params['Label']
|
650
|
+
unless params['Tags'].nil?
|
651
|
+
@Tags = []
|
652
|
+
params['Tags'].each do |i|
|
653
|
+
recognitiontag_tmp = RecognitionTag.new
|
654
|
+
recognitiontag_tmp.deserialize(i)
|
655
|
+
@Tags << recognitiontag_tmp
|
656
|
+
end
|
657
|
+
end
|
658
|
+
end
|
659
|
+
end
|
660
|
+
|
661
|
+
# 识别类型标签信息
|
662
|
+
class RecognitionTag < TencentCloud::Common::AbstractModel
|
663
|
+
# @param Name: 标签名称
|
664
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
665
|
+
# @type Name: String
|
666
|
+
# @param Score: 置信分:0~100,数值越大表示置信度越高
|
667
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
668
|
+
# @type Score: Integer
|
669
|
+
# @param Location: 标签位置信息,若模型无位置信息,则可能为零值
|
670
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
671
|
+
# @type Location: :class:`Tencentcloud::Ims.v20200713.models.Location`
|
672
|
+
|
673
|
+
attr_accessor :Name, :Score, :Location
|
674
|
+
|
675
|
+
def initialize(name=nil, score=nil, location=nil)
|
676
|
+
@Name = name
|
677
|
+
@Score = score
|
678
|
+
@Location = location
|
679
|
+
end
|
680
|
+
|
681
|
+
def deserialize(params)
|
682
|
+
@Name = params['Name']
|
683
|
+
@Score = params['Score']
|
684
|
+
unless params['Location'].nil?
|
685
|
+
@Location = Location.new
|
686
|
+
@Location.deserialize(params['Location'])
|
687
|
+
end
|
688
|
+
end
|
689
|
+
end
|
690
|
+
|
610
691
|
# User结果
|
611
692
|
class User < TencentCloud::Common::AbstractModel
|
612
693
|
# @param UserId: 业务用户ID 如填写,会根据账号历史恶意情况,判定消息有害结果,特别是有利于可疑恶意情况下的辅助判断。账号可以填写微信uin、QQ号、微信openid、QQopenid、字符串等。该字段和账号类别确定唯一账号。
|
data/lib/v20201229/models.rb
CHANGED
@@ -499,16 +499,20 @@ module TencentCloud
|
|
499
499
|
# @type Location: :class:`Tencentcloud::Ims.v20201229.models.Location`
|
500
500
|
# @param SubLabel: 该参数用于返回命中的实体二级标签。
|
501
501
|
# @type SubLabel: String
|
502
|
+
# @param ObjectId: 该参数用于返回命中的人脸id
|
503
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
504
|
+
# @type ObjectId: String
|
502
505
|
|
503
|
-
attr_accessor :Id, :Name, :Value, :Score, :Location, :SubLabel
|
506
|
+
attr_accessor :Id, :Name, :Value, :Score, :Location, :SubLabel, :ObjectId
|
504
507
|
|
505
|
-
def initialize(id=nil, name=nil, value=nil, score=nil, location=nil, sublabel=nil)
|
508
|
+
def initialize(id=nil, name=nil, value=nil, score=nil, location=nil, sublabel=nil, objectid=nil)
|
506
509
|
@Id = id
|
507
510
|
@Name = name
|
508
511
|
@Value = value
|
509
512
|
@Score = score
|
510
513
|
@Location = location
|
511
514
|
@SubLabel = sublabel
|
515
|
+
@ObjectId = objectid
|
512
516
|
end
|
513
517
|
|
514
518
|
def deserialize(params)
|
@@ -521,6 +525,7 @@ module TencentCloud
|
|
521
525
|
@Location.deserialize(params['Location'])
|
522
526
|
end
|
523
527
|
@SubLabel = params['SubLabel']
|
528
|
+
@ObjectId = params['ObjectId']
|
524
529
|
end
|
525
530
|
end
|
526
531
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-ims
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.565
|
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-05-
|
11
|
+
date: 2023-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|