tencentcloud-sdk-iai 1.0.302 → 1.0.303
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180301/client.rb +0 -112
- data/lib/v20180301/models.rb +0 -199
- data/lib/v20200303/client.rb +2 -114
- data/lib/v20200303/models.rb +0 -201
- 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: bd9ae6ba58dd4d2ae8143c3db40d6a1460c79ec1
|
4
|
+
data.tar.gz: 8ae89951f169c269a203398cab3edd3b3f85749f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b12584a342125c8162735cfecb5f56041341c52e9ce187a76bc1ce691a8d6ac7287e88979e04a5cbfb98d9cedf35ab0b369d3f388b23fbfed37255cddaeca7f6
|
7
|
+
data.tar.gz: 23333e1e517d464d7ec2dad697a507872d5d362395ca409e84a91f9120e5a4aec8016404d70fda5813d54a1134db29deaa5a95ddb2b8693c65e640ff3771b1c1
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.303
|
data/lib/v20180301/client.rb
CHANGED
@@ -80,40 +80,6 @@ module TencentCloud
|
|
80
80
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
81
81
|
end
|
82
82
|
|
83
|
-
# 对指定的人员库进行人员查重,给出疑似相同人的信息。
|
84
|
-
|
85
|
-
# 可以使用本接口对已有的单个人员库进行人员查重,避免同一人在单个人员库中拥有多个身份;也可以使用本接口对已有的多个人员库进行人员查重,查询同一人是否同时存在多个人员库中。
|
86
|
-
|
87
|
-
# 不支持跨算法模型版本查重,且目前仅支持算法模型为3.0的人员库使用查重功能。
|
88
|
-
|
89
|
-
# >
|
90
|
-
# - 若对完全相同的指定人员库进行查重操作,需等待上次操作完成才可。即,若两次请求输入的 GroupIds 相同,第一次请求若未完成,第二次请求将返回失败。
|
91
|
-
|
92
|
-
# >
|
93
|
-
# - 查重的人员库状态为腾讯云开始进行查重任务的那一刻,即您可以理解为当您发起查重请求后,若您的查重任务需要排队,在排队期间您对人员库的增删操作均会会影响查重的结果。腾讯云将以开始进行查重任务的那一刻人员库的状态进行查重。查重任务开始后,您对人员库的任何操作均不影响查重任务的进行。但建议查重任务开始后,请不要对人员库中人员和人脸进行增删操作。
|
94
|
-
|
95
|
-
# @param request: Request instance for CheckSimilarPerson.
|
96
|
-
# @type request: :class:`Tencentcloud::iai::V20180301::CheckSimilarPersonRequest`
|
97
|
-
# @rtype: :class:`Tencentcloud::iai::V20180301::CheckSimilarPersonResponse`
|
98
|
-
def CheckSimilarPerson(request)
|
99
|
-
body = send_request('CheckSimilarPerson', request.serialize)
|
100
|
-
response = JSON.parse(body)
|
101
|
-
if response['Response'].key?('Error') == false
|
102
|
-
model = CheckSimilarPersonResponse.new
|
103
|
-
model.deserialize(response['Response'])
|
104
|
-
model
|
105
|
-
else
|
106
|
-
code = response['Response']['Error']['Code']
|
107
|
-
message = response['Response']['Error']['Message']
|
108
|
-
reqid = response['Response']['RequestId']
|
109
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
110
|
-
end
|
111
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
112
|
-
raise e
|
113
|
-
rescue StandardError => e
|
114
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
115
|
-
end
|
116
|
-
|
117
83
|
# 对两张图片中的人脸进行相似度比对,返回人脸相似度分数。
|
118
84
|
|
119
85
|
# 若您需要判断 “此人是否是某人”,即验证某张图片中的人是否是已知身份的某人,如常见的人脸登录场景,建议使用[人脸验证](https://cloud.tencent.com/document/product/867/32806)或[人员验证](https://cloud.tencent.com/document/product/867/38879)接口。
|
@@ -468,60 +434,6 @@ module TencentCloud
|
|
468
434
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
469
435
|
end
|
470
436
|
|
471
|
-
# 获取若要开始一个人员查重任务,这个任务结束的预估时间。
|
472
|
-
|
473
|
-
# 若EndTimestamp符合您预期,请您尽快发起人员查重请求,否则导致可能需要更多处理时间。
|
474
|
-
|
475
|
-
# 若预估时间超过5小时,则无法使用人员查重功能。
|
476
|
-
|
477
|
-
# @param request: Request instance for EstimateCheckSimilarPersonCostTime.
|
478
|
-
# @type request: :class:`Tencentcloud::iai::V20180301::EstimateCheckSimilarPersonCostTimeRequest`
|
479
|
-
# @rtype: :class:`Tencentcloud::iai::V20180301::EstimateCheckSimilarPersonCostTimeResponse`
|
480
|
-
def EstimateCheckSimilarPersonCostTime(request)
|
481
|
-
body = send_request('EstimateCheckSimilarPersonCostTime', request.serialize)
|
482
|
-
response = JSON.parse(body)
|
483
|
-
if response['Response'].key?('Error') == false
|
484
|
-
model = EstimateCheckSimilarPersonCostTimeResponse.new
|
485
|
-
model.deserialize(response['Response'])
|
486
|
-
model
|
487
|
-
else
|
488
|
-
code = response['Response']['Error']['Code']
|
489
|
-
message = response['Response']['Error']['Message']
|
490
|
-
reqid = response['Response']['RequestId']
|
491
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
492
|
-
end
|
493
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
494
|
-
raise e
|
495
|
-
rescue StandardError => e
|
496
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
497
|
-
end
|
498
|
-
|
499
|
-
# 获取人员查重任务列表,按任务创建时间逆序(最新的在前面)。
|
500
|
-
|
501
|
-
# 只保留最近1年的数据。
|
502
|
-
|
503
|
-
# @param request: Request instance for GetCheckSimilarPersonJobIdList.
|
504
|
-
# @type request: :class:`Tencentcloud::iai::V20180301::GetCheckSimilarPersonJobIdListRequest`
|
505
|
-
# @rtype: :class:`Tencentcloud::iai::V20180301::GetCheckSimilarPersonJobIdListResponse`
|
506
|
-
def GetCheckSimilarPersonJobIdList(request)
|
507
|
-
body = send_request('GetCheckSimilarPersonJobIdList', request.serialize)
|
508
|
-
response = JSON.parse(body)
|
509
|
-
if response['Response'].key?('Error') == false
|
510
|
-
model = GetCheckSimilarPersonJobIdListResponse.new
|
511
|
-
model.deserialize(response['Response'])
|
512
|
-
model
|
513
|
-
else
|
514
|
-
code = response['Response']['Error']['Code']
|
515
|
-
message = response['Response']['Error']['Message']
|
516
|
-
reqid = response['Response']['RequestId']
|
517
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
518
|
-
end
|
519
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
520
|
-
raise e
|
521
|
-
rescue StandardError => e
|
522
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
523
|
-
end
|
524
|
-
|
525
437
|
# 获取人员库信息。
|
526
438
|
|
527
439
|
# @param request: Request instance for GetGroupInfo.
|
@@ -666,30 +578,6 @@ module TencentCloud
|
|
666
578
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
667
579
|
end
|
668
580
|
|
669
|
-
# 获取人员查重接口(CheckSimilarPerson)结果。
|
670
|
-
|
671
|
-
# @param request: Request instance for GetSimilarPersonResult.
|
672
|
-
# @type request: :class:`Tencentcloud::iai::V20180301::GetSimilarPersonResultRequest`
|
673
|
-
# @rtype: :class:`Tencentcloud::iai::V20180301::GetSimilarPersonResultResponse`
|
674
|
-
def GetSimilarPersonResult(request)
|
675
|
-
body = send_request('GetSimilarPersonResult', request.serialize)
|
676
|
-
response = JSON.parse(body)
|
677
|
-
if response['Response'].key?('Error') == false
|
678
|
-
model = GetSimilarPersonResultResponse.new
|
679
|
-
model.deserialize(response['Response'])
|
680
|
-
model
|
681
|
-
else
|
682
|
-
code = response['Response']['Error']['Code']
|
683
|
-
message = response['Response']['Error']['Message']
|
684
|
-
reqid = response['Response']['RequestId']
|
685
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
686
|
-
end
|
687
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
688
|
-
raise e
|
689
|
-
rescue StandardError => e
|
690
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
691
|
-
end
|
692
|
-
|
693
581
|
# 获取人员库升级任务列表
|
694
582
|
|
695
583
|
# @param request: Request instance for GetUpgradeGroupFaceModelVersionJobList.
|
data/lib/v20180301/models.rb
CHANGED
@@ -253,49 +253,6 @@ module TencentCloud
|
|
253
253
|
end
|
254
254
|
end
|
255
255
|
|
256
|
-
# CheckSimilarPerson请求参数结构体
|
257
|
-
class CheckSimilarPersonRequest < TencentCloud::Common::AbstractModel
|
258
|
-
# @param GroupIds: 待整理的人员库列表。
|
259
|
-
# 人员库总人数不可超过200万,人员库个数不可超过10个。
|
260
|
-
# @type GroupIds: Array
|
261
|
-
# @param UniquePersonControl: 人员查重整理力度的控制。
|
262
|
-
# 1:力度较高的人员整理,能够消除更多的重复身份,对应稍高的非重复身份误清除率;
|
263
|
-
# 2:力度较低的人员整理,非重复身份的误清除率较低,对应稍低的重复身份消除率。
|
264
|
-
# @type UniquePersonControl: Integer
|
265
|
-
|
266
|
-
attr_accessor :GroupIds, :UniquePersonControl
|
267
|
-
|
268
|
-
def initialize(groupids=nil, uniquepersoncontrol=nil)
|
269
|
-
@GroupIds = groupids
|
270
|
-
@UniquePersonControl = uniquepersoncontrol
|
271
|
-
end
|
272
|
-
|
273
|
-
def deserialize(params)
|
274
|
-
@GroupIds = params['GroupIds']
|
275
|
-
@UniquePersonControl = params['UniquePersonControl']
|
276
|
-
end
|
277
|
-
end
|
278
|
-
|
279
|
-
# CheckSimilarPerson返回参数结构体
|
280
|
-
class CheckSimilarPersonResponse < TencentCloud::Common::AbstractModel
|
281
|
-
# @param JobId: 查重任务ID,用于查询、获取查重的进度和结果。
|
282
|
-
# @type JobId: String
|
283
|
-
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
284
|
-
# @type RequestId: String
|
285
|
-
|
286
|
-
attr_accessor :JobId, :RequestId
|
287
|
-
|
288
|
-
def initialize(jobid=nil, requestid=nil)
|
289
|
-
@JobId = jobid
|
290
|
-
@RequestId = requestid
|
291
|
-
end
|
292
|
-
|
293
|
-
def deserialize(params)
|
294
|
-
@JobId = params['JobId']
|
295
|
-
@RequestId = params['RequestId']
|
296
|
-
end
|
297
|
-
end
|
298
|
-
|
299
256
|
# CompareFace请求参数结构体
|
300
257
|
class CompareFaceRequest < TencentCloud::Common::AbstractModel
|
301
258
|
# @param ImageA: A 图片 base64 数据,base64 编码后大小不可超过5M。
|
@@ -1316,43 +1273,6 @@ module TencentCloud
|
|
1316
1273
|
end
|
1317
1274
|
end
|
1318
1275
|
|
1319
|
-
# EstimateCheckSimilarPersonCostTime请求参数结构体
|
1320
|
-
class EstimateCheckSimilarPersonCostTimeRequest < TencentCloud::Common::AbstractModel
|
1321
|
-
# @param GroupIds: 待整理的人员库列表。
|
1322
|
-
# 人员库总人数不可超过200万,人员库个数不可超过10个。
|
1323
|
-
# @type GroupIds: Array
|
1324
|
-
|
1325
|
-
attr_accessor :GroupIds
|
1326
|
-
|
1327
|
-
def initialize(groupids=nil)
|
1328
|
-
@GroupIds = groupids
|
1329
|
-
end
|
1330
|
-
|
1331
|
-
def deserialize(params)
|
1332
|
-
@GroupIds = params['GroupIds']
|
1333
|
-
end
|
1334
|
-
end
|
1335
|
-
|
1336
|
-
# EstimateCheckSimilarPersonCostTime返回参数结构体
|
1337
|
-
class EstimateCheckSimilarPersonCostTimeResponse < TencentCloud::Common::AbstractModel
|
1338
|
-
# @param EstimatedTimeCost: 人员查重任务预估需要耗费时间。 单位为分钟。
|
1339
|
-
# @type EstimatedTimeCost: Integer
|
1340
|
-
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1341
|
-
# @type RequestId: String
|
1342
|
-
|
1343
|
-
attr_accessor :EstimatedTimeCost, :RequestId
|
1344
|
-
|
1345
|
-
def initialize(estimatedtimecost=nil, requestid=nil)
|
1346
|
-
@EstimatedTimeCost = estimatedtimecost
|
1347
|
-
@RequestId = requestid
|
1348
|
-
end
|
1349
|
-
|
1350
|
-
def deserialize(params)
|
1351
|
-
@EstimatedTimeCost = params['EstimatedTimeCost']
|
1352
|
-
@RequestId = params['RequestId']
|
1353
|
-
end
|
1354
|
-
end
|
1355
|
-
|
1356
1276
|
# 眼睛信息
|
1357
1277
|
class Eye < TencentCloud::Common::AbstractModel
|
1358
1278
|
# @param Glass: 识别是否佩戴眼镜。
|
@@ -1984,57 +1904,6 @@ module TencentCloud
|
|
1984
1904
|
end
|
1985
1905
|
end
|
1986
1906
|
|
1987
|
-
# GetCheckSimilarPersonJobIdList请求参数结构体
|
1988
|
-
class GetCheckSimilarPersonJobIdListRequest < TencentCloud::Common::AbstractModel
|
1989
|
-
# @param Offset: 起始序号,默认值为0。
|
1990
|
-
# @type Offset: Integer
|
1991
|
-
# @param Limit: 返回数量,默认值为10,最大值为1000。
|
1992
|
-
# @type Limit: Integer
|
1993
|
-
|
1994
|
-
attr_accessor :Offset, :Limit
|
1995
|
-
|
1996
|
-
def initialize(offset=nil, limit=nil)
|
1997
|
-
@Offset = offset
|
1998
|
-
@Limit = limit
|
1999
|
-
end
|
2000
|
-
|
2001
|
-
def deserialize(params)
|
2002
|
-
@Offset = params['Offset']
|
2003
|
-
@Limit = params['Limit']
|
2004
|
-
end
|
2005
|
-
end
|
2006
|
-
|
2007
|
-
# GetCheckSimilarPersonJobIdList返回参数结构体
|
2008
|
-
class GetCheckSimilarPersonJobIdListResponse < TencentCloud::Common::AbstractModel
|
2009
|
-
# @param JobIdInfos: 人员查重任务信息列表。
|
2010
|
-
# @type JobIdInfos: Array
|
2011
|
-
# @param JobIdNum: 查重任务总数量。
|
2012
|
-
# @type JobIdNum: Integer
|
2013
|
-
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2014
|
-
# @type RequestId: String
|
2015
|
-
|
2016
|
-
attr_accessor :JobIdInfos, :JobIdNum, :RequestId
|
2017
|
-
|
2018
|
-
def initialize(jobidinfos=nil, jobidnum=nil, requestid=nil)
|
2019
|
-
@JobIdInfos = jobidinfos
|
2020
|
-
@JobIdNum = jobidnum
|
2021
|
-
@RequestId = requestid
|
2022
|
-
end
|
2023
|
-
|
2024
|
-
def deserialize(params)
|
2025
|
-
unless params['JobIdInfos'].nil?
|
2026
|
-
@JobIdInfos = []
|
2027
|
-
params['JobIdInfos'].each do |i|
|
2028
|
-
jobidinfo_tmp = JobIdInfo.new
|
2029
|
-
jobidinfo_tmp.deserialize(i)
|
2030
|
-
@JobIdInfos << jobidinfo_tmp
|
2031
|
-
end
|
2032
|
-
end
|
2033
|
-
@JobIdNum = params['JobIdNum']
|
2034
|
-
@RequestId = params['RequestId']
|
2035
|
-
end
|
2036
|
-
end
|
2037
|
-
|
2038
1907
|
# GetGroupInfo请求参数结构体
|
2039
1908
|
class GetGroupInfoRequest < TencentCloud::Common::AbstractModel
|
2040
1909
|
# @param GroupId: 人员库 ID。
|
@@ -2354,47 +2223,6 @@ module TencentCloud
|
|
2354
2223
|
end
|
2355
2224
|
end
|
2356
2225
|
|
2357
|
-
# GetSimilarPersonResult请求参数结构体
|
2358
|
-
class GetSimilarPersonResultRequest < TencentCloud::Common::AbstractModel
|
2359
|
-
# @param JobId: 查重任务ID,用于查询、获取查重的进度和结果。
|
2360
|
-
# @type JobId: String
|
2361
|
-
|
2362
|
-
attr_accessor :JobId
|
2363
|
-
|
2364
|
-
def initialize(jobid=nil)
|
2365
|
-
@JobId = jobid
|
2366
|
-
end
|
2367
|
-
|
2368
|
-
def deserialize(params)
|
2369
|
-
@JobId = params['JobId']
|
2370
|
-
end
|
2371
|
-
end
|
2372
|
-
|
2373
|
-
# GetSimilarPersonResult返回参数结构体
|
2374
|
-
class GetSimilarPersonResultResponse < TencentCloud::Common::AbstractModel
|
2375
|
-
# @param Progress: 查重任务完成进度。取值[0.0,100.0]。当且仅当值为100时,SimilarPersons才有意义。
|
2376
|
-
# @type Progress: Float
|
2377
|
-
# @param SimilarPersonsUrl: 疑似同一人的人员信息文件临时下载链接, 有效时间为5分钟,结果文件实际保存90天。
|
2378
|
-
# 文件内容由 SimilarPerson 的数组组成。
|
2379
|
-
# @type SimilarPersonsUrl: String
|
2380
|
-
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2381
|
-
# @type RequestId: String
|
2382
|
-
|
2383
|
-
attr_accessor :Progress, :SimilarPersonsUrl, :RequestId
|
2384
|
-
|
2385
|
-
def initialize(progress=nil, similarpersonsurl=nil, requestid=nil)
|
2386
|
-
@Progress = progress
|
2387
|
-
@SimilarPersonsUrl = similarpersonsurl
|
2388
|
-
@RequestId = requestid
|
2389
|
-
end
|
2390
|
-
|
2391
|
-
def deserialize(params)
|
2392
|
-
@Progress = params['Progress']
|
2393
|
-
@SimilarPersonsUrl = params['SimilarPersonsUrl']
|
2394
|
-
@RequestId = params['RequestId']
|
2395
|
-
end
|
2396
|
-
end
|
2397
|
-
|
2398
2226
|
# GetUpgradeGroupFaceModelVersionJobList请求参数结构体
|
2399
2227
|
class GetUpgradeGroupFaceModelVersionJobListRequest < TencentCloud::Common::AbstractModel
|
2400
2228
|
# @param Offset: 起始序号,默认值为0。
|
@@ -2692,33 +2520,6 @@ module TencentCloud
|
|
2692
2520
|
end
|
2693
2521
|
end
|
2694
2522
|
|
2695
|
-
# 查重任务信息
|
2696
|
-
class JobIdInfo < TencentCloud::Common::AbstractModel
|
2697
|
-
# @param JobId: 查重任务ID,用于查询、获取查重的进度和结果。
|
2698
|
-
# @type JobId: String
|
2699
|
-
# @param StartTime: 查重起始时间。
|
2700
|
-
# StartTime的值是自 Unix 纪元时间到Group创建时间的毫秒数。
|
2701
|
-
# Unix 纪元时间是 1970 年 1 月 1 日星期四,协调世界时 (UTC) 00:00:00。
|
2702
|
-
# 有关更多信息,请参阅 Unix 时间。
|
2703
|
-
# @type StartTime: Integer
|
2704
|
-
# @param JobStatus: 查重任务是否已完成。0: 成功 1: 未完成 2: 失败
|
2705
|
-
# @type JobStatus: Integer
|
2706
|
-
|
2707
|
-
attr_accessor :JobId, :StartTime, :JobStatus
|
2708
|
-
|
2709
|
-
def initialize(jobid=nil, starttime=nil, jobstatus=nil)
|
2710
|
-
@JobId = jobid
|
2711
|
-
@StartTime = starttime
|
2712
|
-
@JobStatus = jobstatus
|
2713
|
-
end
|
2714
|
-
|
2715
|
-
def deserialize(params)
|
2716
|
-
@JobId = params['JobId']
|
2717
|
-
@StartTime = params['StartTime']
|
2718
|
-
@JobStatus = params['JobStatus']
|
2719
|
-
end
|
2720
|
-
end
|
2721
|
-
|
2722
2523
|
# ModifyGroup请求参数结构体
|
2723
2524
|
class ModifyGroupRequest < TencentCloud::Common::AbstractModel
|
2724
2525
|
# @param GroupId: 人员库ID
|
data/lib/v20200303/client.rb
CHANGED
@@ -80,40 +80,6 @@ module TencentCloud
|
|
80
80
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
81
81
|
end
|
82
82
|
|
83
|
-
# 对指定的人员库进行人员查重,给出疑似相同人的信息。
|
84
|
-
|
85
|
-
# 可以使用本接口对已有的单个人员库进行人员查重,避免同一人在单个人员库中拥有多个身份;也可以使用本接口对已有的多个人员库进行人员查重,查询同一人是否同时存在多个人员库中。
|
86
|
-
|
87
|
-
# 不支持跨算法模型版本查重,且目前仅支持算法模型为3.0的人员库使用查重功能。
|
88
|
-
|
89
|
-
# >
|
90
|
-
# - 若对完全相同的指定人员库进行查重操作,需等待上次操作完成才可。即,若两次请求输入的 GroupIds 相同,第一次请求若未完成,第二次请求将返回失败。
|
91
|
-
|
92
|
-
# >
|
93
|
-
# - 查重的人员库状态为腾讯云开始进行查重任务的那一刻,即您可以理解为当您发起查重请求后,若您的查重任务需要排队,在排队期间您对人员库的增删操作均会会影响查重的结果。腾讯云将以开始进行查重任务的那一刻人员库的状态进行查重。查重任务开始后,您对人员库的任何操作均不影响查重任务的进行。但建议查重任务开始后,请不要对人员库中人员和人脸进行增删操作。
|
94
|
-
|
95
|
-
# @param request: Request instance for CheckSimilarPerson.
|
96
|
-
# @type request: :class:`Tencentcloud::iai::V20200303::CheckSimilarPersonRequest`
|
97
|
-
# @rtype: :class:`Tencentcloud::iai::V20200303::CheckSimilarPersonResponse`
|
98
|
-
def CheckSimilarPerson(request)
|
99
|
-
body = send_request('CheckSimilarPerson', request.serialize)
|
100
|
-
response = JSON.parse(body)
|
101
|
-
if response['Response'].key?('Error') == false
|
102
|
-
model = CheckSimilarPersonResponse.new
|
103
|
-
model.deserialize(response['Response'])
|
104
|
-
model
|
105
|
-
else
|
106
|
-
code = response['Response']['Error']['Code']
|
107
|
-
message = response['Response']['Error']['Message']
|
108
|
-
reqid = response['Response']['RequestId']
|
109
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
110
|
-
end
|
111
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
112
|
-
raise e
|
113
|
-
rescue StandardError => e
|
114
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
115
|
-
end
|
116
|
-
|
117
83
|
# 对两张图片中的人脸进行相似度比对,返回人脸相似度分数。
|
118
84
|
|
119
85
|
# 若您需要判断 “此人是否是某人”,即验证某张图片中的人是否是已知身份的某人,如常见的人脸登录场景,建议使用[人脸验证](https://cloud.tencent.com/document/product/867/44983)或[人员验证](https://cloud.tencent.com/document/product/867/44982)接口。
|
@@ -145,9 +111,9 @@ module TencentCloud
|
|
145
111
|
|
146
112
|
# 对两张图片中的人脸进行相似度比对,返回人脸相似度分数。
|
147
113
|
|
148
|
-
#
|
114
|
+
# 防疫场景人脸比对接口可在人脸戴口罩情况下使用,口罩遮挡程度最高可以遮挡鼻尖。
|
149
115
|
|
150
|
-
#
|
116
|
+
# 如图片人脸不存在防疫场景下戴口罩的情况,建议使用人脸比对服务。
|
151
117
|
|
152
118
|
# @param request: Request instance for CompareMaskFace.
|
153
119
|
# @type request: :class:`Tencentcloud::iai::V20200303::CompareMaskFaceRequest`
|
@@ -520,60 +486,6 @@ module TencentCloud
|
|
520
486
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
521
487
|
end
|
522
488
|
|
523
|
-
# 获取若要开始一个人员查重任务,这个任务结束的预估时间。
|
524
|
-
|
525
|
-
# 若EndTimestamp符合您预期,请您尽快发起人员查重请求,否则导致可能需要更多处理时间。
|
526
|
-
|
527
|
-
# 若预估时间超过5小时,则无法使用人员查重功能。
|
528
|
-
|
529
|
-
# @param request: Request instance for EstimateCheckSimilarPersonCostTime.
|
530
|
-
# @type request: :class:`Tencentcloud::iai::V20200303::EstimateCheckSimilarPersonCostTimeRequest`
|
531
|
-
# @rtype: :class:`Tencentcloud::iai::V20200303::EstimateCheckSimilarPersonCostTimeResponse`
|
532
|
-
def EstimateCheckSimilarPersonCostTime(request)
|
533
|
-
body = send_request('EstimateCheckSimilarPersonCostTime', request.serialize)
|
534
|
-
response = JSON.parse(body)
|
535
|
-
if response['Response'].key?('Error') == false
|
536
|
-
model = EstimateCheckSimilarPersonCostTimeResponse.new
|
537
|
-
model.deserialize(response['Response'])
|
538
|
-
model
|
539
|
-
else
|
540
|
-
code = response['Response']['Error']['Code']
|
541
|
-
message = response['Response']['Error']['Message']
|
542
|
-
reqid = response['Response']['RequestId']
|
543
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
544
|
-
end
|
545
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
546
|
-
raise e
|
547
|
-
rescue StandardError => e
|
548
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
549
|
-
end
|
550
|
-
|
551
|
-
# 获取人员查重任务列表,按任务创建时间逆序(最新的在前面)。
|
552
|
-
|
553
|
-
# 只保留最近1年的数据。
|
554
|
-
|
555
|
-
# @param request: Request instance for GetCheckSimilarPersonJobIdList.
|
556
|
-
# @type request: :class:`Tencentcloud::iai::V20200303::GetCheckSimilarPersonJobIdListRequest`
|
557
|
-
# @rtype: :class:`Tencentcloud::iai::V20200303::GetCheckSimilarPersonJobIdListResponse`
|
558
|
-
def GetCheckSimilarPersonJobIdList(request)
|
559
|
-
body = send_request('GetCheckSimilarPersonJobIdList', request.serialize)
|
560
|
-
response = JSON.parse(body)
|
561
|
-
if response['Response'].key?('Error') == false
|
562
|
-
model = GetCheckSimilarPersonJobIdListResponse.new
|
563
|
-
model.deserialize(response['Response'])
|
564
|
-
model
|
565
|
-
else
|
566
|
-
code = response['Response']['Error']['Code']
|
567
|
-
message = response['Response']['Error']['Message']
|
568
|
-
reqid = response['Response']['RequestId']
|
569
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
570
|
-
end
|
571
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
572
|
-
raise e
|
573
|
-
rescue StandardError => e
|
574
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
575
|
-
end
|
576
|
-
|
577
489
|
# 获取人员库信息。
|
578
490
|
|
579
491
|
# @param request: Request instance for GetGroupInfo.
|
@@ -718,30 +630,6 @@ module TencentCloud
|
|
718
630
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
719
631
|
end
|
720
632
|
|
721
|
-
# 获取人员查重接口(CheckSimilarPerson)结果。
|
722
|
-
|
723
|
-
# @param request: Request instance for GetSimilarPersonResult.
|
724
|
-
# @type request: :class:`Tencentcloud::iai::V20200303::GetSimilarPersonResultRequest`
|
725
|
-
# @rtype: :class:`Tencentcloud::iai::V20200303::GetSimilarPersonResultResponse`
|
726
|
-
def GetSimilarPersonResult(request)
|
727
|
-
body = send_request('GetSimilarPersonResult', request.serialize)
|
728
|
-
response = JSON.parse(body)
|
729
|
-
if response['Response'].key?('Error') == false
|
730
|
-
model = GetSimilarPersonResultResponse.new
|
731
|
-
model.deserialize(response['Response'])
|
732
|
-
model
|
733
|
-
else
|
734
|
-
code = response['Response']['Error']['Code']
|
735
|
-
message = response['Response']['Error']['Message']
|
736
|
-
reqid = response['Response']['RequestId']
|
737
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
738
|
-
end
|
739
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
740
|
-
raise e
|
741
|
-
rescue StandardError => e
|
742
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
743
|
-
end
|
744
|
-
|
745
633
|
# 获取人员库升级任务列表
|
746
634
|
|
747
635
|
# @param request: Request instance for GetUpgradeGroupFaceModelVersionJobList.
|
data/lib/v20200303/models.rb
CHANGED
@@ -255,50 +255,6 @@ module TencentCloud
|
|
255
255
|
end
|
256
256
|
end
|
257
257
|
|
258
|
-
# CheckSimilarPerson请求参数结构体
|
259
|
-
class CheckSimilarPersonRequest < TencentCloud::Common::AbstractModel
|
260
|
-
# @param GroupIds: 待整理的人员库列表。
|
261
|
-
# 人员库总人数不可超过200万,人员库个数不可超过10个。
|
262
|
-
# 数组元素取值为创建人员库接口中的GroupId
|
263
|
-
# @type GroupIds: Array
|
264
|
-
# @param UniquePersonControl: 人员查重整理力度的控制。
|
265
|
-
# 1:力度较高的人员整理,能够消除更多的重复身份,对应稍高的非重复身份误清除率;
|
266
|
-
# 2:力度较低的人员整理,非重复身份的误清除率较低,对应稍低的重复身份消除率。
|
267
|
-
# @type UniquePersonControl: Integer
|
268
|
-
|
269
|
-
attr_accessor :GroupIds, :UniquePersonControl
|
270
|
-
|
271
|
-
def initialize(groupids=nil, uniquepersoncontrol=nil)
|
272
|
-
@GroupIds = groupids
|
273
|
-
@UniquePersonControl = uniquepersoncontrol
|
274
|
-
end
|
275
|
-
|
276
|
-
def deserialize(params)
|
277
|
-
@GroupIds = params['GroupIds']
|
278
|
-
@UniquePersonControl = params['UniquePersonControl']
|
279
|
-
end
|
280
|
-
end
|
281
|
-
|
282
|
-
# CheckSimilarPerson返回参数结构体
|
283
|
-
class CheckSimilarPersonResponse < TencentCloud::Common::AbstractModel
|
284
|
-
# @param JobId: 查重任务ID,用于查询、获取查重的进度和结果。
|
285
|
-
# @type JobId: String
|
286
|
-
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
287
|
-
# @type RequestId: String
|
288
|
-
|
289
|
-
attr_accessor :JobId, :RequestId
|
290
|
-
|
291
|
-
def initialize(jobid=nil, requestid=nil)
|
292
|
-
@JobId = jobid
|
293
|
-
@RequestId = requestid
|
294
|
-
end
|
295
|
-
|
296
|
-
def deserialize(params)
|
297
|
-
@JobId = params['JobId']
|
298
|
-
@RequestId = params['RequestId']
|
299
|
-
end
|
300
|
-
end
|
301
|
-
|
302
258
|
# CompareFace请求参数结构体
|
303
259
|
class CompareFaceRequest < TencentCloud::Common::AbstractModel
|
304
260
|
# @param ImageA: A 图片 base64 数据,base64 编码后大小不可超过5M。
|
@@ -1476,44 +1432,6 @@ module TencentCloud
|
|
1476
1432
|
end
|
1477
1433
|
end
|
1478
1434
|
|
1479
|
-
# EstimateCheckSimilarPersonCostTime请求参数结构体
|
1480
|
-
class EstimateCheckSimilarPersonCostTimeRequest < TencentCloud::Common::AbstractModel
|
1481
|
-
# @param GroupIds: 待整理的人员库列表。
|
1482
|
-
# 人员库总人数不可超过200万,人员库个数不可超过10个。
|
1483
|
-
# 数组元素取值为创建人员库接口中的GroupId
|
1484
|
-
# @type GroupIds: Array
|
1485
|
-
|
1486
|
-
attr_accessor :GroupIds
|
1487
|
-
|
1488
|
-
def initialize(groupids=nil)
|
1489
|
-
@GroupIds = groupids
|
1490
|
-
end
|
1491
|
-
|
1492
|
-
def deserialize(params)
|
1493
|
-
@GroupIds = params['GroupIds']
|
1494
|
-
end
|
1495
|
-
end
|
1496
|
-
|
1497
|
-
# EstimateCheckSimilarPersonCostTime返回参数结构体
|
1498
|
-
class EstimateCheckSimilarPersonCostTimeResponse < TencentCloud::Common::AbstractModel
|
1499
|
-
# @param EstimatedTimeCost: 人员查重任务预估需要耗费时间。 单位为分钟。
|
1500
|
-
# @type EstimatedTimeCost: Integer
|
1501
|
-
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1502
|
-
# @type RequestId: String
|
1503
|
-
|
1504
|
-
attr_accessor :EstimatedTimeCost, :RequestId
|
1505
|
-
|
1506
|
-
def initialize(estimatedtimecost=nil, requestid=nil)
|
1507
|
-
@EstimatedTimeCost = estimatedtimecost
|
1508
|
-
@RequestId = requestid
|
1509
|
-
end
|
1510
|
-
|
1511
|
-
def deserialize(params)
|
1512
|
-
@EstimatedTimeCost = params['EstimatedTimeCost']
|
1513
|
-
@RequestId = params['RequestId']
|
1514
|
-
end
|
1515
|
-
end
|
1516
|
-
|
1517
1435
|
# 眼睛信息
|
1518
1436
|
class Eye < TencentCloud::Common::AbstractModel
|
1519
1437
|
# @param Glass: 识别是否佩戴眼镜。
|
@@ -2145,57 +2063,6 @@ module TencentCloud
|
|
2145
2063
|
end
|
2146
2064
|
end
|
2147
2065
|
|
2148
|
-
# GetCheckSimilarPersonJobIdList请求参数结构体
|
2149
|
-
class GetCheckSimilarPersonJobIdListRequest < TencentCloud::Common::AbstractModel
|
2150
|
-
# @param Offset: 起始序号,默认值为0。
|
2151
|
-
# @type Offset: Integer
|
2152
|
-
# @param Limit: 返回数量,默认值为10,最大值为1000。
|
2153
|
-
# @type Limit: Integer
|
2154
|
-
|
2155
|
-
attr_accessor :Offset, :Limit
|
2156
|
-
|
2157
|
-
def initialize(offset=nil, limit=nil)
|
2158
|
-
@Offset = offset
|
2159
|
-
@Limit = limit
|
2160
|
-
end
|
2161
|
-
|
2162
|
-
def deserialize(params)
|
2163
|
-
@Offset = params['Offset']
|
2164
|
-
@Limit = params['Limit']
|
2165
|
-
end
|
2166
|
-
end
|
2167
|
-
|
2168
|
-
# GetCheckSimilarPersonJobIdList返回参数结构体
|
2169
|
-
class GetCheckSimilarPersonJobIdListResponse < TencentCloud::Common::AbstractModel
|
2170
|
-
# @param JobIdInfos: 人员查重任务信息列表。
|
2171
|
-
# @type JobIdInfos: Array
|
2172
|
-
# @param JobIdNum: 查重任务总数量。
|
2173
|
-
# @type JobIdNum: Integer
|
2174
|
-
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2175
|
-
# @type RequestId: String
|
2176
|
-
|
2177
|
-
attr_accessor :JobIdInfos, :JobIdNum, :RequestId
|
2178
|
-
|
2179
|
-
def initialize(jobidinfos=nil, jobidnum=nil, requestid=nil)
|
2180
|
-
@JobIdInfos = jobidinfos
|
2181
|
-
@JobIdNum = jobidnum
|
2182
|
-
@RequestId = requestid
|
2183
|
-
end
|
2184
|
-
|
2185
|
-
def deserialize(params)
|
2186
|
-
unless params['JobIdInfos'].nil?
|
2187
|
-
@JobIdInfos = []
|
2188
|
-
params['JobIdInfos'].each do |i|
|
2189
|
-
jobidinfo_tmp = JobIdInfo.new
|
2190
|
-
jobidinfo_tmp.deserialize(i)
|
2191
|
-
@JobIdInfos << jobidinfo_tmp
|
2192
|
-
end
|
2193
|
-
end
|
2194
|
-
@JobIdNum = params['JobIdNum']
|
2195
|
-
@RequestId = params['RequestId']
|
2196
|
-
end
|
2197
|
-
end
|
2198
|
-
|
2199
2066
|
# GetGroupInfo请求参数结构体
|
2200
2067
|
class GetGroupInfoRequest < TencentCloud::Common::AbstractModel
|
2201
2068
|
# @param GroupId: 人员库 ID,取值为创建人员库接口中的GroupId
|
@@ -2515,47 +2382,6 @@ module TencentCloud
|
|
2515
2382
|
end
|
2516
2383
|
end
|
2517
2384
|
|
2518
|
-
# GetSimilarPersonResult请求参数结构体
|
2519
|
-
class GetSimilarPersonResultRequest < TencentCloud::Common::AbstractModel
|
2520
|
-
# @param JobId: 查重任务ID,用于查询、获取查重的进度和结果。取值为人员查重接口返回的JobId
|
2521
|
-
# @type JobId: String
|
2522
|
-
|
2523
|
-
attr_accessor :JobId
|
2524
|
-
|
2525
|
-
def initialize(jobid=nil)
|
2526
|
-
@JobId = jobid
|
2527
|
-
end
|
2528
|
-
|
2529
|
-
def deserialize(params)
|
2530
|
-
@JobId = params['JobId']
|
2531
|
-
end
|
2532
|
-
end
|
2533
|
-
|
2534
|
-
# GetSimilarPersonResult返回参数结构体
|
2535
|
-
class GetSimilarPersonResultResponse < TencentCloud::Common::AbstractModel
|
2536
|
-
# @param Progress: 查重任务完成进度。取值[0.0,100.0]。当且仅当值为100时,SimilarPersons才有意义。
|
2537
|
-
# @type Progress: Float
|
2538
|
-
# @param SimilarPersonsUrl: 疑似同一人的人员信息文件临时下载链接, 有效时间为5分钟,结果文件实际保存90天。
|
2539
|
-
# 文件内容由 SimilarPerson 的数组组成。
|
2540
|
-
# @type SimilarPersonsUrl: String
|
2541
|
-
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2542
|
-
# @type RequestId: String
|
2543
|
-
|
2544
|
-
attr_accessor :Progress, :SimilarPersonsUrl, :RequestId
|
2545
|
-
|
2546
|
-
def initialize(progress=nil, similarpersonsurl=nil, requestid=nil)
|
2547
|
-
@Progress = progress
|
2548
|
-
@SimilarPersonsUrl = similarpersonsurl
|
2549
|
-
@RequestId = requestid
|
2550
|
-
end
|
2551
|
-
|
2552
|
-
def deserialize(params)
|
2553
|
-
@Progress = params['Progress']
|
2554
|
-
@SimilarPersonsUrl = params['SimilarPersonsUrl']
|
2555
|
-
@RequestId = params['RequestId']
|
2556
|
-
end
|
2557
|
-
end
|
2558
|
-
|
2559
2385
|
# GetUpgradeGroupFaceModelVersionJobList请求参数结构体
|
2560
2386
|
class GetUpgradeGroupFaceModelVersionJobListRequest < TencentCloud::Common::AbstractModel
|
2561
2387
|
# @param Offset: 起始序号,默认值为0。
|
@@ -2853,33 +2679,6 @@ module TencentCloud
|
|
2853
2679
|
end
|
2854
2680
|
end
|
2855
2681
|
|
2856
|
-
# 查重任务信息
|
2857
|
-
class JobIdInfo < TencentCloud::Common::AbstractModel
|
2858
|
-
# @param JobId: 查重任务ID,用于查询、获取查重的进度和结果。
|
2859
|
-
# @type JobId: String
|
2860
|
-
# @param StartTime: 查重起始时间。
|
2861
|
-
# StartTime的值是自 Unix 纪元时间到Group创建时间的毫秒数。
|
2862
|
-
# Unix 纪元时间是 1970 年 1 月 1 日星期四,协调世界时 (UTC) 00:00:00。
|
2863
|
-
# 有关更多信息,请参阅 Unix 时间。
|
2864
|
-
# @type StartTime: Integer
|
2865
|
-
# @param JobStatus: 查重任务是否已完成。0: 成功 1: 未完成 2: 失败
|
2866
|
-
# @type JobStatus: Integer
|
2867
|
-
|
2868
|
-
attr_accessor :JobId, :StartTime, :JobStatus
|
2869
|
-
|
2870
|
-
def initialize(jobid=nil, starttime=nil, jobstatus=nil)
|
2871
|
-
@JobId = jobid
|
2872
|
-
@StartTime = starttime
|
2873
|
-
@JobStatus = jobstatus
|
2874
|
-
end
|
2875
|
-
|
2876
|
-
def deserialize(params)
|
2877
|
-
@JobId = params['JobId']
|
2878
|
-
@StartTime = params['StartTime']
|
2879
|
-
@JobStatus = params['JobStatus']
|
2880
|
-
end
|
2881
|
-
end
|
2882
|
-
|
2883
2682
|
# ModifyGroup请求参数结构体
|
2884
2683
|
class ModifyGroupRequest < TencentCloud::Common::AbstractModel
|
2885
2684
|
# @param GroupId: 人员库ID,取值为创建人员库接口中的GroupId
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-iai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.303
|
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-04-
|
11
|
+
date: 2022-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|