tencentcloud-sdk-tiia 1.0.364 → 3.0.371

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: d5e82470d51228d542c4de46ff8c2bd81fa1f4bb
4
- data.tar.gz: e2a9d8126085cf6bf3ef673ce825f603be70fed7
3
+ metadata.gz: bca435cb12bd2e4492dd95e02bed10caa9047305
4
+ data.tar.gz: a5ed1fe76267d5be912b7d2dc47c923c8ec74f55
5
5
  SHA512:
6
- metadata.gz: 7183505cc683492e69a1db9cd4a71fafb35398efe3e7f77e30ca5a03cd5df21b52c602efa2e8856f70339fe47741880a274e7b1939f6405dfbdfe684c086aab4
7
- data.tar.gz: aa3f7d53bec46dcb7adfa30f076aef1607bf949fae89e1cd86e8a94074be90a8b4e0a146be3731265f323fed292dd335fcfacc8791dd013f4452418fe84c1a5c
6
+ metadata.gz: 84c3706f324caaa9372d3e47ba7fa8d0b0e2066b7ed98f8685d101f3a624e0f3bf7263257138d13597a7bc0c5bfb29d6ab144562c714801f8025a607ac72f750
7
+ data.tar.gz: 95f0d752f12e3270d796fbfda76c56334ea47955ca7fff82de970d9ba0e241aa709433a7b789e399888643982e925bc01e90807b6f6b2f66a9ba37acc870c780
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.364
1
+ 3.0.371
@@ -209,34 +209,6 @@ module TencentCloud
209
209
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
210
210
  end
211
211
 
212
- # 传入一张图片,可以识别图片中包含的人物是否为公众人物,如果是,输出人物的姓名、基本信息、脸部坐标。
213
-
214
- # 支持识别一张图片中存在的多个人脸,针对每个人脸,会给出与之最相似的公众人物。
215
- # >
216
- # - 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
217
-
218
- # @param request: Request instance for DetectCelebrity.
219
- # @type request: :class:`Tencentcloud::tiia::V20190529::DetectCelebrityRequest`
220
- # @rtype: :class:`Tencentcloud::tiia::V20190529::DetectCelebrityResponse`
221
- def DetectCelebrity(request)
222
- body = send_request('DetectCelebrity', request.serialize)
223
- response = JSON.parse(body)
224
- if response['Response'].key?('Error') == false
225
- model = DetectCelebrityResponse.new
226
- model.deserialize(response['Response'])
227
- model
228
- else
229
- code = response['Response']['Error']['Code']
230
- message = response['Response']['Error']['Message']
231
- reqid = response['Response']['RequestId']
232
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
233
- end
234
- rescue TencentCloud::Common::TencentCloudSDKException => e
235
- raise e
236
- rescue StandardError => e
237
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
238
- end
239
-
240
212
  # 输入一张图片,返回AI针对一张图片是否是恶心的一系列判断值。
241
213
 
242
214
  # 通过恶心图片识别, 可以判断一张图片是否令人恶心, 同时给出它属于的潜在类别, 让您能够过滤掉使人不愉快的图片。
@@ -689,72 +689,6 @@ module TencentCloud
689
689
  end
690
690
  end
691
691
 
692
- # DetectCelebrity请求参数结构体
693
- class DetectCelebrityRequest < TencentCloud::Common::AbstractModel
694
- # @param ImageUrl: 图片URL地址。
695
- # 图片限制:
696
- # • 图片格式:PNG、JPG、JPEG。
697
- # • 图片大小:所下载图片经Base64编码后不超过4M。图片下载时间不超过3秒。
698
- # 建议:
699
- # • 图片像素:大于50*50像素,否则影响识别效果;
700
- # • 长宽比:长边:短边<5;
701
- # 接口响应时间会受到图片下载时间的影响,建议使用更可靠的存储服务,推荐将图片存储在腾讯云COS。
702
- # @type ImageUrl: String
703
- # @param ImageBase64: 图片经过base64编码的内容。最大不超过4M。与ImageUrl同时存在时优先使用ImageUrl字段。
704
- # **注意:图片需要base64编码,并且要去掉编码头部。**
705
- # @type ImageBase64: String
706
-
707
- attr_accessor :ImageUrl, :ImageBase64
708
-
709
- def initialize(imageurl=nil, imagebase64=nil)
710
- @ImageUrl = imageurl
711
- @ImageBase64 = imagebase64
712
- end
713
-
714
- def deserialize(params)
715
- @ImageUrl = params['ImageUrl']
716
- @ImageBase64 = params['ImageBase64']
717
- end
718
- end
719
-
720
- # DetectCelebrity返回参数结构体
721
- class DetectCelebrityResponse < TencentCloud::Common::AbstractModel
722
- # @param Faces: 公众人物识别结果数组。如果检测不到人脸,返回为空;最多可以返回10个人脸识别结果。
723
- # @type Faces: Array
724
- # @param Threshold: 本服务在不同误识率水平下(将图片中的人物识别错误的比例)的推荐阈值,可以用于控制识别结果的精度。
725
- # FalseRate1Percent, FalseRate5Permil, FalseRate1Permil分别代表误识率在百分之一、千分之五、千分之一情况下的推荐阈值。
726
- # 因为阈值会存在变动,请勿将此处输出的固定值处理,而是每次取值与confidence对比,来判断本次的识别结果是否可信。
727
- # 例如,如果您业务中可以接受的误识率是1%,则可以将所有confidence>=FalseRate1Percent的结论认为是正确的。
728
- # 注意:此字段可能返回 null,表示取不到有效值。
729
- # @type Threshold: :class:`Tencentcloud::Tiia.v20190529.models.Threshold`
730
- # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
731
- # @type RequestId: String
732
-
733
- attr_accessor :Faces, :Threshold, :RequestId
734
-
735
- def initialize(faces=nil, threshold=nil, requestid=nil)
736
- @Faces = faces
737
- @Threshold = threshold
738
- @RequestId = requestid
739
- end
740
-
741
- def deserialize(params)
742
- unless params['Faces'].nil?
743
- @Faces = []
744
- params['Faces'].each do |i|
745
- face_tmp = Face.new
746
- face_tmp.deserialize(i)
747
- @Faces << face_tmp
748
- end
749
- end
750
- unless params['Threshold'].nil?
751
- @Threshold = Threshold.new
752
- @Threshold.deserialize(params['Threshold'])
753
- end
754
- @RequestId = params['RequestId']
755
- end
756
- end
757
-
758
692
  # DetectDisgust请求参数结构体
759
693
  class DetectDisgustRequest < TencentCloud::Common::AbstractModel
760
694
  # @param ImageUrl: 图片URL地址。
@@ -1419,62 +1353,6 @@ module TencentCloud
1419
1353
  end
1420
1354
  end
1421
1355
 
1422
- # 公众人物识别人脸信息
1423
- class Face < TencentCloud::Common::AbstractModel
1424
- # @param Name: 与图片中人脸最相似的公众人物的名字。
1425
- # @type Name: String
1426
- # @param Labels: 公众人物身份标签的数组,一个公众人物可能有多个身份标签。
1427
- # @type Labels: Array
1428
- # @param BasicInfo: 对人物的简介。
1429
- # @type BasicInfo: String
1430
- # @param Confidence: 算法对于Name的置信度(图像中人脸与公众人物的相似度),0-100之间,值越高,表示对于Name越确定。
1431
- # @type Confidence: Integer
1432
- # @param X: 人脸区域左上角横坐标。
1433
- # @type X: Integer
1434
- # @param Y: 人脸区域左上角纵坐标。
1435
- # @type Y: Integer
1436
- # @param Width: 人脸区域宽度。
1437
- # @type Width: Integer
1438
- # @param Height: 人脸区域高度。
1439
- # @type Height: Integer
1440
- # @param ID: 公众人物的唯一编号,可以用于区分同名人物、一个人物不同称呼等情况。唯一编号为8个字符构成的字符串。
1441
- # 注意:此字段可能返回 null,表示取不到有效值。
1442
- # @type ID: String
1443
-
1444
- attr_accessor :Name, :Labels, :BasicInfo, :Confidence, :X, :Y, :Width, :Height, :ID
1445
-
1446
- def initialize(name=nil, labels=nil, basicinfo=nil, confidence=nil, x=nil, y=nil, width=nil, height=nil, id=nil)
1447
- @Name = name
1448
- @Labels = labels
1449
- @BasicInfo = basicinfo
1450
- @Confidence = confidence
1451
- @X = x
1452
- @Y = y
1453
- @Width = width
1454
- @Height = height
1455
- @ID = id
1456
- end
1457
-
1458
- def deserialize(params)
1459
- @Name = params['Name']
1460
- unless params['Labels'].nil?
1461
- @Labels = []
1462
- params['Labels'].each do |i|
1463
- labels_tmp = Labels.new
1464
- labels_tmp.deserialize(i)
1465
- @Labels << labels_tmp
1466
- end
1467
- end
1468
- @BasicInfo = params['BasicInfo']
1469
- @Confidence = params['Confidence']
1470
- @X = params['X']
1471
- @Y = params['Y']
1472
- @Width = params['Width']
1473
- @Height = params['Height']
1474
- @ID = params['ID']
1475
- end
1476
- end
1477
-
1478
1356
  # 图库信息。
1479
1357
  class GroupInfo < TencentCloud::Common::AbstractModel
1480
1358
  # @param GroupId: 图库Id。
@@ -1607,28 +1485,6 @@ module TencentCloud
1607
1485
  end
1608
1486
  end
1609
1487
 
1610
- # 名人识别的标签
1611
- class Labels < TencentCloud::Common::AbstractModel
1612
- # @param FirstLabel: 公众人物身份标签的一级分类,例如体育明星、娱乐明星等;
1613
- # 注意:此字段可能返回 null,表示取不到有效值。
1614
- # @type FirstLabel: String
1615
- # @param SecondLabel: 公众人物身份标签的二级分类,例如歌手(对应一级标签为“娱乐明星”);
1616
- # 注意:此字段可能返回 null,表示取不到有效值。
1617
- # @type SecondLabel: String
1618
-
1619
- attr_accessor :FirstLabel, :SecondLabel
1620
-
1621
- def initialize(firstlabel=nil, secondlabel=nil)
1622
- @FirstLabel = firstlabel
1623
- @SecondLabel = secondlabel
1624
- end
1625
-
1626
- def deserialize(params)
1627
- @FirstLabel = params['FirstLabel']
1628
- @SecondLabel = params['SecondLabel']
1629
- end
1630
- end
1631
-
1632
1488
  # 百科词条信息
1633
1489
  class LemmaInfo < TencentCloud::Common::AbstractModel
1634
1490
  # @param LemmaTitle: 词条
@@ -2157,33 +2013,6 @@ module TencentCloud
2157
2013
  end
2158
2014
  end
2159
2015
 
2160
- # 本服务在不同误识率水平下(将图片中的人物识别错误的比例)的推荐阈值,可以用于控制识别结果的精度。
2161
- # {FalseRate1Percent, FalseRate5Permil, FalseRate1Permil}分别代表误识率在百分之一、千分之五、千分之一情况下的推荐阈值。
2162
- # 因为阈值会存在变动,请勿将此处输出的固定值处理,而是每次取值与confidence对比,来判断本次的识别结果是否可信。
2163
- # 例如,如果您业务中可以接受的误识率是1%,则可以将所有confidence>=FalseRate1Percent的结论认为是正确的。
2164
- class Threshold < TencentCloud::Common::AbstractModel
2165
- # @param FalseRate1Percent: 误识率在百分之一时的推荐阈值。
2166
- # @type FalseRate1Percent: Integer
2167
- # @param FalseRate5Permil: 误识率在千分之五时的推荐阈值。
2168
- # @type FalseRate5Permil: Integer
2169
- # @param FalseRate1Permil: 误识率在千分之一时的推荐阈值。
2170
- # @type FalseRate1Permil: Integer
2171
-
2172
- attr_accessor :FalseRate1Percent, :FalseRate5Permil, :FalseRate1Permil
2173
-
2174
- def initialize(falserate1percent=nil, falserate5permil=nil, falserate1permil=nil)
2175
- @FalseRate1Percent = falserate1percent
2176
- @FalseRate5Permil = falserate5permil
2177
- @FalseRate1Permil = falserate1permil
2178
- end
2179
-
2180
- def deserialize(params)
2181
- @FalseRate1Percent = params['FalseRate1Percent']
2182
- @FalseRate5Permil = params['FalseRate5Permil']
2183
- @FalseRate1Permil = params['FalseRate1Permil']
2184
- end
2185
- end
2186
-
2187
2016
  end
2188
2017
  end
2189
2018
  end
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.364
4
+ version: 3.0.371
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-07-27 00:00:00.000000000 Z
11
+ date: 2022-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common