tencentcloud-sdk-iai 3.0.1172 → 3.0.1173

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: 235f3442e157d8570c0c6f921058026e82f882c3
4
- data.tar.gz: 503d6765258765f711e06cfac18a44fd70d7220a
3
+ metadata.gz: 06335a6730c6437e05e96d76b0e4a9f7c1716054
4
+ data.tar.gz: 3fafdec8ea86971175e588c4f128f334358d80c0
5
5
  SHA512:
6
- metadata.gz: a2573e78a9e544d7cd3c6d3bf271d6770f2fe3c933ebae83faa4d79543e1d17cc61f9a6b85b03210e4012635230f56833c0091a9c9b783df639a9f1cc27a0826
7
- data.tar.gz: f41472ed359c053134c1d396ff1572627045ad9eb61080836fc0bc431b05076bf0835fd9391422b2c0a0ceacd5541c90ae515215a9d827c83443fdc4eecb3453
6
+ metadata.gz: 6b6a2079cc97f72c335d282241529b5db10b4bb2c4d8028ddf97d3d6bdedafcd58fe4dc655076bf435c66292e1d8e9ab883c89879fd557f45985b6dd9e1af6f8
7
+ data.tar.gz: 43ae34ff592825fd4a1d77bb1d53ae7243c25e2c447ee1296749e0bcdb43825f59842fdb0395760fc3bd40180f57fd6e4226f70d7bdb5208c60d4752d3e6e72c
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1172
1
+ 3.0.1173
@@ -398,51 +398,6 @@ module TencentCloud
398
398
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
399
399
  end
400
400
 
401
- # 用于对用户上传的静态图片进行人脸活体检测。与动态活体检测的区别是:静态活体检测中,用户不需要通过唇语或摇头眨眼等动作来识别。
402
-
403
- # 静态活体检测适用于手机自拍的场景,或对防攻击要求不高的场景。如果对活体检测有更高安全性要求,请使用[人脸核身·云智慧眼](https://cloud.tencent.com/product/faceid)产品。
404
-
405
- # >
406
- # - 图片的宽高比请接近3:4,不符合宽高比的图片返回的分值不具备参考意义。本接口适用于类手机自拍场景,非类手机自拍照返回的分值不具备参考意义。
407
-
408
- # >
409
- # - 使用过程中建议正对摄像头,不要距离太远,使面部可以完整地显示在识别的框内,识别过程中不要移动设备或遮挡面部。不要选择光线过强或过弱的环境进行面部识别,识别时不要添加任何滤镜。
410
-
411
- # >
412
- # - 公共参数中的签名方式请使用V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
413
-
414
- # ## 调用次数计费(资源包)
415
- # |资源包规格|100万次|1000万次|5000万次|1亿次|
416
- # |-|-|-|-|-|
417
- # |人脸静态活体检测|1800元|17400元|75000元|110000元|
418
-
419
- # ## 调用次数计费(后付费)
420
- # |月接口调用总量|0<调用量≤300万|300万<调用量≤1500万|调用量>1500万|
421
- # |-|-|-|-|
422
- # |人脸静态活体检测|0.0019元/次|0.0017元/次|0.0013元/次|
423
-
424
- # @param request: Request instance for DetectLiveFace.
425
- # @type request: :class:`Tencentcloud::iai::V20180301::DetectLiveFaceRequest`
426
- # @rtype: :class:`Tencentcloud::iai::V20180301::DetectLiveFaceResponse`
427
- def DetectLiveFace(request)
428
- body = send_request('DetectLiveFace', request.serialize)
429
- response = JSON.parse(body)
430
- if response['Response'].key?('Error') == false
431
- model = DetectLiveFaceResponse.new
432
- model.deserialize(response['Response'])
433
- model
434
- else
435
- code = response['Response']['Error']['Code']
436
- message = response['Response']['Error']['Message']
437
- reqid = response['Response']['RequestId']
438
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
439
- end
440
- rescue TencentCloud::Common::TencentCloudSDKException => e
441
- raise e
442
- rescue StandardError => e
443
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
444
- end
445
-
446
401
  # 获取人员库信息。
447
402
 
448
403
  # @param request: Request instance for GetGroupInfo.
@@ -1216,74 +1216,6 @@ module TencentCloud
1216
1216
  end
1217
1217
  end
1218
1218
 
1219
- # DetectLiveFace请求参数结构体
1220
- class DetectLiveFaceRequest < TencentCloud::Common::AbstractModel
1221
- # @param Image: 图片 base64 数据,base64 编码后大小不可超过5M(图片的宽高比请接近3:4,不符合宽高比的图片返回的分值不具备参考意义)。
1222
- # 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
1223
- # @type Image: String
1224
- # @param Url: 图片的 Url 。对应图片 base64 编码后大小不可超过5M。
1225
- # Url、Image必须提供一个,如果都提供,只使用 Url。
1226
- # (图片的宽高比请接近 3:4,不符合宽高比的图片返回的分值不具备参考意义)
1227
- # 图片存储于腾讯云的Url可保障更高下载速度和稳定性,建议图片存储于腾讯云。
1228
- # 非腾讯云存储的Url速度和稳定性可能受一定影响。
1229
- # 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
1230
- # @type Url: String
1231
- # @param FaceModelVersion: 人脸识别服务所用的算法模型版本。
1232
-
1233
- # 目前入参支持 “2.0”和“3.0“ 两个输入。
1234
-
1235
- # 2020年4月2日开始,默认为“3.0”,之前使用过本接口的账号若未填写本参数默认为“2.0”。
1236
-
1237
- # 2020年11月26日后开通服务的账号仅支持输入“3.0”。
1238
-
1239
- # 不同算法模型版本对应的人脸识别算法不同,新版本的整体效果会优于旧版本,建议使用“3.0”版本。
1240
- # @type FaceModelVersion: String
1241
-
1242
- attr_accessor :Image, :Url, :FaceModelVersion
1243
-
1244
- def initialize(image=nil, url=nil, facemodelversion=nil)
1245
- @Image = image
1246
- @Url = url
1247
- @FaceModelVersion = facemodelversion
1248
- end
1249
-
1250
- def deserialize(params)
1251
- @Image = params['Image']
1252
- @Url = params['Url']
1253
- @FaceModelVersion = params['FaceModelVersion']
1254
- end
1255
- end
1256
-
1257
- # DetectLiveFace返回参数结构体
1258
- class DetectLiveFaceResponse < TencentCloud::Common::AbstractModel
1259
- # @param Score: 活体打分,取值范围 [0,100],分数一般落于[80, 100]区间内,0分也为常见值。推荐相大于 87 时可判断为活体。可根据具体场景自行调整阈值。
1260
- # 本字段当且仅当FaceModelVersion为2.0时才具备参考意义。
1261
- # @type Score: Float
1262
- # @param FaceModelVersion: 人脸识别所用的算法模型版本。
1263
- # @type FaceModelVersion: String
1264
- # @param IsLiveness: 活体检测是否通过。
1265
- # 本字段只有FaceModelVersion为3.0时才具备参考意义。
1266
- # @type IsLiveness: Boolean
1267
- # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1268
- # @type RequestId: String
1269
-
1270
- attr_accessor :Score, :FaceModelVersion, :IsLiveness, :RequestId
1271
-
1272
- def initialize(score=nil, facemodelversion=nil, isliveness=nil, requestid=nil)
1273
- @Score = score
1274
- @FaceModelVersion = facemodelversion
1275
- @IsLiveness = isliveness
1276
- @RequestId = requestid
1277
- end
1278
-
1279
- def deserialize(params)
1280
- @Score = params['Score']
1281
- @FaceModelVersion = params['FaceModelVersion']
1282
- @IsLiveness = params['IsLiveness']
1283
- @RequestId = params['RequestId']
1284
- end
1285
- end
1286
-
1287
1219
  # 眼睛信息
1288
1220
  class Eye < TencentCloud::Common::AbstractModel
1289
1221
  # @param Glass: 识别是否佩戴眼镜。
@@ -426,7 +426,7 @@ module TencentCloud
426
426
 
427
427
  # 对两张图片中的人脸进行相似度比对,返回人脸相似度分数。
428
428
 
429
- # 若您需要判断 “此人是否是某人”,即验证某张图片中的人是否是已知身份的某人,如常见的人脸登录场景,建议使用[人脸验证](https://www.tencentcloud.com/document/product/1059/36972)或[人员验证](https://www.tencentcloud.com/document/product/1059/36971)接口。
429
+ # 若您需要判断 “此人是否是某人”,即验证某张图片中的人是否是已知身份的某人,如常见的人脸登录场景,建议使用[人脸验证](https://cloud.tencent.com/document/product/867/44983)或[人员验证](https://cloud.tencent.com/document/product/867/44982)接口。
430
430
 
431
431
  # >
432
432
  # - 公共参数中的签名方式请使用V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
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: 3.0.1172
4
+ version: 3.0.1173
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-11-23 00:00:00.000000000 Z
11
+ date: 2025-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common