tencentcloud-sdk-iai 3.0.1094 → 3.0.1122
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 -1
- data/lib/v20180301/models.rb +83 -62
- data/lib/v20200303/models.rb +8 -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: c24201c60fc7aed0357563441c1307f59f5c6e52
|
4
|
+
data.tar.gz: f14dfaad6ca9ac7b762ec2eaef4c39c481049d80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f483d79a3d78ad23ed8167c23b5991b8a399f00127b595db06f5c7b9b7f5135f62fe102a1211133a4242cd0e831e3c30a016cea7c4de7fc33eaa238e5e4ba7df
|
7
|
+
data.tar.gz: 71d48b04c8d1e5ac433506cd10ed890bce6abeb12aaaead67b85d5f402479cd076251494639b8890eb416f657994293c01ee4e8341cafd19ec5e27fc931003a1
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1122
|
data/lib/v20180301/client.rb
CHANGED
@@ -788,7 +788,6 @@ module TencentCloud
|
|
788
788
|
# >
|
789
789
|
# - 公共参数中的签名方式请使用V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
|
790
790
|
|
791
|
-
|
792
791
|
# @param request: Request instance for SearchFacesReturnsByGroup.
|
793
792
|
# @type request: :class:`Tencentcloud::iai::V20180301::SearchFacesReturnsByGroupRequest`
|
794
793
|
# @rtype: :class:`Tencentcloud::iai::V20180301::SearchFacesReturnsByGroupResponse`
|
data/lib/v20180301/models.rb
CHANGED
@@ -195,9 +195,11 @@ module TencentCloud
|
|
195
195
|
|
196
196
|
# 人脸属性信息
|
197
197
|
class AttributeItem < TencentCloud::Common::AbstractModel
|
198
|
-
# @param Type:
|
198
|
+
# @param Type: 属性值。
|
199
199
|
# @type Type: Integer
|
200
|
-
# @param Probability: Type
|
200
|
+
# @param Probability: Type识别概率值。
|
201
|
+
# - 取值范围:[0,1]。
|
202
|
+
# - 代表判断正确的概率。
|
201
203
|
# @type Probability: Float
|
202
204
|
|
203
205
|
attr_accessor :Type, :Probability
|
@@ -1018,20 +1020,21 @@ module TencentCloud
|
|
1018
1020
|
# DetectFaceAttributes请求参数结构体
|
1019
1021
|
class DetectFaceAttributesRequest < TencentCloud::Common::AbstractModel
|
1020
1022
|
# @param MaxFaceNum: 最多处理的人脸数目。
|
1021
|
-
# 默认值为1(仅检测图片中面积最大的那张人脸),最大值为120。
|
1022
|
-
# 此参数用于控制处理待检测图片中的人脸个数,值越小,处理速度越快。
|
1023
|
+
# - 默认值为1(仅检测图片中面积最大的那张人脸),最大值为120。
|
1024
|
+
# - 此参数用于控制处理待检测图片中的人脸个数,值越小,处理速度越快。
|
1023
1025
|
# @type MaxFaceNum: Integer
|
1024
|
-
# @param Image: 图片 base64
|
1025
|
-
#
|
1026
|
-
#
|
1026
|
+
# @param Image: 图片 base64 数据。
|
1027
|
+
# - base64 编码后大小不可超过5M。
|
1028
|
+
# - jpg格式长边像素不可超过4000,其他格式图片长边像素不可超2000。
|
1029
|
+
# - 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
|
1027
1030
|
# @type Image: String
|
1028
1031
|
# @param Url: 图片的 Url 。
|
1029
|
-
# 对应图片 base64 编码后大小不可超过5M。
|
1030
|
-
# jpg格式长边像素不可超过4000,其他格式图片长边像素不可超2000。
|
1031
|
-
# Url、Image必须提供一个,如果都提供,只使用 Url。
|
1032
|
-
# 图片存储于腾讯云的Url可保障更高下载速度和稳定性,建议图片存储于腾讯云。
|
1033
|
-
# 非腾讯云存储的Url速度和稳定性可能受一定影响。
|
1034
|
-
# 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
|
1032
|
+
# - 对应图片 base64 编码后大小不可超过5M。
|
1033
|
+
# - jpg格式长边像素不可超过4000,其他格式图片长边像素不可超2000。
|
1034
|
+
# - Url、Image必须提供一个,如果都提供,只使用 Url。
|
1035
|
+
# - 图片存储于腾讯云的Url可保障更高下载速度和稳定性,建议图片存储于腾讯云。
|
1036
|
+
# - 非腾讯云存储的Url速度和稳定性可能受一定影响。
|
1037
|
+
# - 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
|
1035
1038
|
# @type Url: String
|
1036
1039
|
# @param FaceAttributesType: 是否返回年龄、性别、情绪等属性。
|
1037
1040
|
# 合法值为(大小写不敏感):None、Age、Beauty、Emotion、Eye、Eyebrow、
|
@@ -1041,7 +1044,11 @@ module TencentCloud
|
|
1041
1044
|
# 关于各属性的详细描述,参见下文出参。
|
1042
1045
|
# 最多返回面积最大的 5 张人脸属性信息,超过 5 张人脸(第 6 张及以后的人脸)的 AttributesInfo 不具备参考意义。
|
1043
1046
|
# @type FaceAttributesType: String
|
1044
|
-
# @param NeedRotateDetection: 是否开启图片旋转识别支持。
|
1047
|
+
# @param NeedRotateDetection: 是否开启图片旋转识别支持。
|
1048
|
+
# - 0为不开启,1为开启。
|
1049
|
+
# - 默认为0。
|
1050
|
+
# - 本参数的作用为,当图片中的人脸被旋转且图片没有exif信息时,如果不开启图片旋转识别支持则无法正确检测、识别图片中的人脸。
|
1051
|
+
# - 若您确认图片包含exif信息或者您确认输入图中人脸不会出现被旋转情况,请不要开启本参数。开启后,整体耗时将可能增加数百毫秒。
|
1045
1052
|
# @type NeedRotateDetection: Integer
|
1046
1053
|
# @param FaceModelVersion: 人脸识别服务所用的算法模型版本。本接口仅支持“3.0”输入
|
1047
1054
|
# @type FaceModelVersion: String
|
@@ -1280,16 +1287,16 @@ module TencentCloud
|
|
1280
1287
|
# 眼睛信息
|
1281
1288
|
class Eye < TencentCloud::Common::AbstractModel
|
1282
1289
|
# @param Glass: 识别是否佩戴眼镜。
|
1283
|
-
# AttributeItem对应的Type为 —— 0:无眼镜,1:普通眼镜,2
|
1290
|
+
# - AttributeItem对应的Type为 —— 0:无眼镜,1:普通眼镜,2:墨镜。
|
1284
1291
|
# @type Glass: :class:`Tencentcloud::Iai.v20180301.models.AttributeItem`
|
1285
1292
|
# @param EyeOpen: 识别眼睛的睁开、闭合状态。
|
1286
|
-
# AttributeItem对应的Type为 —— 0:睁开,1
|
1293
|
+
# - AttributeItem对应的Type为 —— 0:睁开,1:闭眼。
|
1287
1294
|
# @type EyeOpen: :class:`Tencentcloud::Iai.v20180301.models.AttributeItem`
|
1288
1295
|
# @param EyelidType: 识别是否双眼皮。
|
1289
|
-
# AttributeItem对应的Type为 —— 0:无,1:有。
|
1296
|
+
# - AttributeItem对应的Type为 —— 0:无,1:有。
|
1290
1297
|
# @type EyelidType: :class:`Tencentcloud::Iai.v20180301.models.AttributeItem`
|
1291
1298
|
# @param EyeSize: 眼睛大小。
|
1292
|
-
# AttributeItem对应的Type为 —— 0:小眼睛,1:普通眼睛,2:大眼睛。
|
1299
|
+
# - AttributeItem对应的Type为 —— 0:小眼睛,1:普通眼睛,2:大眼睛。
|
1293
1300
|
# @type EyeSize: :class:`Tencentcloud::Iai.v20180301.models.AttributeItem`
|
1294
1301
|
|
1295
1302
|
attr_accessor :Glass, :EyeOpen, :EyelidType, :EyeSize
|
@@ -1324,13 +1331,13 @@ module TencentCloud
|
|
1324
1331
|
# 眉毛信息
|
1325
1332
|
class Eyebrow < TencentCloud::Common::AbstractModel
|
1326
1333
|
# @param EyebrowDensity: 眉毛浓密。
|
1327
|
-
# AttributeItem对应的Type为 —— 0:淡眉,1:浓眉。
|
1334
|
+
# - AttributeItem对应的Type为 —— 0:淡眉,1:浓眉。
|
1328
1335
|
# @type EyebrowDensity: :class:`Tencentcloud::Iai.v20180301.models.AttributeItem`
|
1329
1336
|
# @param EyebrowCurve: 眉毛弯曲。
|
1330
|
-
# AttributeItem对应的Type为
|
1337
|
+
# - AttributeItem对应的Type为 —— 0:不弯,1:弯眉。
|
1331
1338
|
# @type EyebrowCurve: :class:`Tencentcloud::Iai.v20180301.models.AttributeItem`
|
1332
1339
|
# @param EyebrowLength: 眉毛长短。
|
1333
|
-
# AttributeItem对应的Type为 —— 0:短眉毛,1:长眉毛。
|
1340
|
+
# - AttributeItem对应的Type为 —— 0:短眉毛,1:长眉毛。
|
1334
1341
|
# @type EyebrowLength: :class:`Tencentcloud::Iai.v20180301.models.AttributeItem`
|
1335
1342
|
|
1336
1343
|
attr_accessor :EyebrowDensity, :EyebrowCurve, :EyebrowLength
|
@@ -1434,60 +1441,70 @@ module TencentCloud
|
|
1434
1441
|
# 鼻子(Nose)、脸型(Shape)、肤色(Skin)、微笑(Smile)等人脸属性信息。
|
1435
1442
|
# 若 FaceAttributesType 没有输入相关类型,则FaceDetaiAttributesInfo返回的细项不具备参考意义。
|
1436
1443
|
class FaceDetailAttributesInfo < TencentCloud::Common::AbstractModel
|
1437
|
-
# @param Age:
|
1438
|
-
#
|
1444
|
+
# @param Age: 年龄。
|
1445
|
+
# - 取值范围:[0,65],其中65代表“65岁及以上”。
|
1446
|
+
# - FaceAttributesType 不含Age 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
|
1439
1447
|
# @type Age: Integer
|
1440
|
-
# @param Beauty:
|
1441
|
-
#
|
1448
|
+
# @param Beauty: 美丑打分。
|
1449
|
+
# - 取值范围:[0,100]。
|
1450
|
+
# - FaceAttributesType不含 Beauty或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
|
1442
1451
|
# @type Beauty: Integer
|
1443
1452
|
# @param Emotion: 情绪,可识别自然、高兴、惊讶、生气、悲伤、厌恶、害怕。
|
1444
|
-
# AttributeItem对应的Type为 —— 0:自然,1:高兴,2:惊讶,3:生气,4:悲伤,5:厌恶,6
|
1445
|
-
# FaceAttributesType 不含Emotion 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
|
1453
|
+
# - AttributeItem对应的Type为 —— 0:自然,1:高兴,2:惊讶,3:生气,4:悲伤,5:厌恶,6:害怕。
|
1454
|
+
# - FaceAttributesType 不含Emotion 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
|
1446
1455
|
# @type Emotion: :class:`Tencentcloud::Iai.v20180301.models.AttributeItem`
|
1447
|
-
# @param Eye:
|
1448
|
-
#
|
1456
|
+
# @param Eye: 眼睛相关信息。
|
1457
|
+
# - 可识别是否戴眼镜、是否闭眼、是否双眼皮和眼睛大小。
|
1458
|
+
# - FaceAttributesType 不含Eye 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
|
1449
1459
|
# @type Eye: :class:`Tencentcloud::Iai.v20180301.models.Eye`
|
1450
|
-
# @param Eyebrow:
|
1451
|
-
#
|
1460
|
+
# @param Eyebrow: 眉毛相关信息。
|
1461
|
+
# - 可识别眉毛浓密、弯曲、长短信息。
|
1462
|
+
# - FaceAttributesType 不含Eyebrow 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
|
1452
1463
|
# @type Eyebrow: :class:`Tencentcloud::Iai.v20180301.models.Eyebrow`
|
1453
1464
|
# @param Gender: 性别信息。
|
1454
|
-
# AttributeItem对应的Type为 ——
|
1455
|
-
# FaceAttributesType 不含Gender 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
|
1465
|
+
# - AttributeItem对应的Type为 —— 0:男性,1:女性。
|
1466
|
+
# - FaceAttributesType 不含Gender 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
|
1456
1467
|
# @type Gender: :class:`Tencentcloud::Iai.v20180301.models.AttributeItem`
|
1457
|
-
# @param Hair:
|
1458
|
-
#
|
1468
|
+
# @param Hair: 头发信息。
|
1469
|
+
# - 包含头发长度、有无刘海、头发颜色。
|
1470
|
+
# - FaceAttributesType 不含Hair 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
|
1459
1471
|
# @type Hair: :class:`Tencentcloud::Iai.v20180301.models.Hair`
|
1460
|
-
# @param Hat:
|
1461
|
-
|
1472
|
+
# @param Hat: 帽子信息。
|
1473
|
+
|
1474
|
+
# - 可识别是否佩戴帽子、帽子款式、帽子颜色。
|
1475
|
+
# - FaceAttributesType 不含Hat 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
|
1462
1476
|
# @type Hat: :class:`Tencentcloud::Iai.v20180301.models.Hat`
|
1463
|
-
# @param HeadPose:
|
1464
|
-
#
|
1477
|
+
# @param HeadPose: 姿态信息。
|
1478
|
+
# - 包含人脸的上下偏移、左右偏移、平面旋转信息。
|
1479
|
+
# - FaceAttributesType 不含Headpose 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
|
1465
1480
|
# @type HeadPose: :class:`Tencentcloud::Iai.v20180301.models.HeadPose`
|
1466
1481
|
# @param Mask: 口罩佩戴信息。
|
1467
|
-
# AttributeItem对应的Type为 —— 0: 无口罩, 1: 有口罩不遮脸,2: 有口罩遮下巴,3: 有口罩遮嘴,4: 正确佩戴口罩。
|
1468
|
-
# FaceAttributesType 不含Mask 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
|
1482
|
+
# - AttributeItem对应的Type为 —— 0: 无口罩, 1: 有口罩不遮脸,2: 有口罩遮下巴,3: 有口罩遮嘴,4: 正确佩戴口罩。
|
1483
|
+
# - FaceAttributesType 不含Mask 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
|
1469
1484
|
# @type Mask: :class:`Tencentcloud::Iai.v20180301.models.AttributeItem`
|
1470
|
-
# @param Mouth:
|
1471
|
-
#
|
1485
|
+
# @param Mouth: 嘴巴信息。
|
1486
|
+
# - 可识别是否张嘴、嘴唇厚度。
|
1487
|
+
# - FaceAttributesType 不含 Mouth 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
|
1472
1488
|
# @type Mouth: :class:`Tencentcloud::Iai.v20180301.models.Mouth`
|
1473
1489
|
# @param Moustache: 胡子信息。
|
1474
|
-
# AttributeItem对应的Type为 —— 0:无胡子,1:有胡子。
|
1475
|
-
# FaceAttributesType 不含 Moustache 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
|
1490
|
+
# - AttributeItem对应的Type为 —— 0:无胡子,1:有胡子。
|
1491
|
+
# - FaceAttributesType 不含 Moustache 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
|
1476
1492
|
# @type Moustache: :class:`Tencentcloud::Iai.v20180301.models.AttributeItem`
|
1477
1493
|
# @param Nose: 鼻子信息。
|
1478
|
-
# AttributeItem对应的Type为 —— 0:朝天鼻,1:鹰钩鼻,2:普通,3
|
1479
|
-
# FaceAttributesType 不含 Nose 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
|
1494
|
+
# - AttributeItem对应的Type为 —— 0:朝天鼻,1:鹰钩鼻,2:普通,3:圆鼻头。
|
1495
|
+
# - FaceAttributesType 不含 Nose 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
|
1480
1496
|
# @type Nose: :class:`Tencentcloud::Iai.v20180301.models.AttributeItem`
|
1481
1497
|
# @param Shape: 脸型信息。
|
1482
|
-
# AttributeItem对应的Type为 —— 0:方脸,1:三角脸,2:鹅蛋脸,3:心形脸,4:圆脸。
|
1483
|
-
# FaceAttributesType 不含 Shape 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
|
1498
|
+
# - AttributeItem对应的Type为 —— 0:方脸,1:三角脸,2:鹅蛋脸,3:心形脸,4:圆脸。
|
1499
|
+
# - FaceAttributesType 不含 Shape 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
|
1484
1500
|
# @type Shape: :class:`Tencentcloud::Iai.v20180301.models.AttributeItem`
|
1485
1501
|
# @param Skin: 肤色信息。
|
1486
|
-
# AttributeItem对应的Type为 ——
|
1487
|
-
# FaceAttributesType 不含 Skin 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
|
1502
|
+
# - AttributeItem对应的Type为 —— 0:黄色皮肤,1:棕色皮肤,2:黑色皮肤,3:白色皮肤。
|
1503
|
+
# - FaceAttributesType 不含 Skin 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
|
1488
1504
|
# @type Skin: :class:`Tencentcloud::Iai.v20180301.models.AttributeItem`
|
1489
|
-
# @param Smile:
|
1490
|
-
#
|
1505
|
+
# @param Smile: 微笑程度。
|
1506
|
+
# - 取值范围:[0,100]。
|
1507
|
+
# - FaceAttributesType 不含 Smile 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
|
1491
1508
|
# @type Smile: Integer
|
1492
1509
|
|
1493
1510
|
attr_accessor :Age, :Beauty, :Emotion, :Eye, :Eyebrow, :Gender, :Hair, :Hat, :HeadPose, :Mask, :Mouth, :Moustache, :Nose, :Shape, :Skin, :Smile
|
@@ -2439,13 +2456,13 @@ module TencentCloud
|
|
2439
2456
|
# 头发信息
|
2440
2457
|
class Hair < TencentCloud::Common::AbstractModel
|
2441
2458
|
# @param Length: 头发长度信息。
|
2442
|
-
# AttributeItem对应的Type为 —— 0:光头,1:短发,2:中发,3:长发,4:绑发。
|
2459
|
+
# - AttributeItem对应的Type为 —— 0:光头,1:短发,2:中发,3:长发,4:绑发。
|
2443
2460
|
# @type Length: :class:`Tencentcloud::Iai.v20180301.models.AttributeItem`
|
2444
2461
|
# @param Bang: 刘海信息。
|
2445
|
-
# AttributeItem对应的Type为 —— 0:无刘海,1:有刘海。
|
2462
|
+
# - AttributeItem对应的Type为 —— 0:无刘海,1:有刘海。
|
2446
2463
|
# @type Bang: :class:`Tencentcloud::Iai.v20180301.models.AttributeItem`
|
2447
2464
|
# @param Color: 头发颜色信息。
|
2448
|
-
# AttributeItem对应的Type为 —— 0:黑色,1:金色,2:棕色,3:灰白色。
|
2465
|
+
# - AttributeItem对应的Type为 —— 0:黑色,1:金色,2:棕色,3:灰白色。
|
2449
2466
|
# @type Color: :class:`Tencentcloud::Iai.v20180301.models.AttributeItem`
|
2450
2467
|
|
2451
2468
|
attr_accessor :Length, :Bang, :Color
|
@@ -2475,10 +2492,10 @@ module TencentCloud
|
|
2475
2492
|
# 帽子信息
|
2476
2493
|
class Hat < TencentCloud::Common::AbstractModel
|
2477
2494
|
# @param Style: 帽子佩戴状态信息。
|
2478
|
-
# AttributeItem对应的Type为 —— 0:不戴帽子,1:普通帽子,2:头盔,3:保安帽。
|
2495
|
+
# - AttributeItem对应的Type为 —— 0:不戴帽子,1:普通帽子,2:头盔,3:保安帽。
|
2479
2496
|
# @type Style: :class:`Tencentcloud::Iai.v20180301.models.AttributeItem`
|
2480
2497
|
# @param Color: 帽子颜色。
|
2481
|
-
# AttributeItem对应的Type为 —— 0:不戴帽子,1:红色系,2:黄色系,3:蓝色系,4:黑色系,5:灰白色系,6:混色系。
|
2498
|
+
# - AttributeItem对应的Type为 —— 0:不戴帽子,1:红色系,2:黄色系,3:蓝色系,4:黑色系,5:灰白色系,6:混色系。
|
2482
2499
|
# @type Color: :class:`Tencentcloud::Iai.v20180301.models.AttributeItem`
|
2483
2500
|
|
2484
2501
|
attr_accessor :Style, :Color
|
@@ -2502,11 +2519,14 @@ module TencentCloud
|
|
2502
2519
|
|
2503
2520
|
# 姿态信息
|
2504
2521
|
class HeadPose < TencentCloud::Common::AbstractModel
|
2505
|
-
# @param Pitch:
|
2522
|
+
# @param Pitch: 上下偏移。
|
2523
|
+
# - 取值范围:[-30,30]。
|
2506
2524
|
# @type Pitch: Integer
|
2507
|
-
# @param Yaw:
|
2525
|
+
# @param Yaw: 左右偏移。
|
2526
|
+
# - 取值范围:[-30,30]。
|
2508
2527
|
# @type Yaw: Integer
|
2509
|
-
# @param Roll:
|
2528
|
+
# @param Roll: 平面旋转。
|
2529
|
+
# - 取值范围:[-180,180]。
|
2510
2530
|
# @type Roll: Integer
|
2511
2531
|
|
2512
2532
|
attr_accessor :Pitch, :Yaw, :Roll
|
@@ -2665,7 +2685,8 @@ module TencentCloud
|
|
2665
2685
|
# 嘴巴信息。
|
2666
2686
|
class Mouth < TencentCloud::Common::AbstractModel
|
2667
2687
|
# @param MouthOpen: 是否张嘴信息。
|
2668
|
-
|
2688
|
+
|
2689
|
+
# - AttributeItem对应的Type为 —— 0:不张嘴,1:张嘴。
|
2669
2690
|
# @type MouthOpen: :class:`Tencentcloud::Iai.v20180301.models.AttributeItem`
|
2670
2691
|
|
2671
2692
|
attr_accessor :MouthOpen
|
data/lib/v20200303/models.rb
CHANGED
@@ -325,10 +325,14 @@ module TencentCloud
|
|
325
325
|
# - 本参数的作用为,当图片中的人脸被旋转且图片没有exif信息时,如果不开启图片旋转识别支持则无法正确检测、识别图片中的人脸。
|
326
326
|
# - 若您确认图片包含exif信息或者您确认输入图中人脸不会出现被旋转情况,请不要开启本参数。开启后,整体耗时将可能增加数百毫秒。
|
327
327
|
# @type NeedRotateDetection: Integer
|
328
|
+
# @param FaceMatchingStrategy: 若图片中包含多张人脸,指定选取策略,默认为0。
|
329
|
+
# - 0:选取其中置信度最高的人脸
|
330
|
+
# - 1:选取其中面积最大的人脸。
|
331
|
+
# @type FaceMatchingStrategy: Integer
|
328
332
|
|
329
|
-
attr_accessor :ImageA, :ImageB, :UrlA, :UrlB, :FaceModelVersion, :QualityControl, :NeedRotateDetection
|
333
|
+
attr_accessor :ImageA, :ImageB, :UrlA, :UrlB, :FaceModelVersion, :QualityControl, :NeedRotateDetection, :FaceMatchingStrategy
|
330
334
|
|
331
|
-
def initialize(imagea=nil, imageb=nil, urla=nil, urlb=nil, facemodelversion=nil, qualitycontrol=nil, needrotatedetection=nil)
|
335
|
+
def initialize(imagea=nil, imageb=nil, urla=nil, urlb=nil, facemodelversion=nil, qualitycontrol=nil, needrotatedetection=nil, facematchingstrategy=nil)
|
332
336
|
@ImageA = imagea
|
333
337
|
@ImageB = imageb
|
334
338
|
@UrlA = urla
|
@@ -336,6 +340,7 @@ module TencentCloud
|
|
336
340
|
@FaceModelVersion = facemodelversion
|
337
341
|
@QualityControl = qualitycontrol
|
338
342
|
@NeedRotateDetection = needrotatedetection
|
343
|
+
@FaceMatchingStrategy = facematchingstrategy
|
339
344
|
end
|
340
345
|
|
341
346
|
def deserialize(params)
|
@@ -346,6 +351,7 @@ module TencentCloud
|
|
346
351
|
@FaceModelVersion = params['FaceModelVersion']
|
347
352
|
@QualityControl = params['QualityControl']
|
348
353
|
@NeedRotateDetection = params['NeedRotateDetection']
|
354
|
+
@FaceMatchingStrategy = params['FaceMatchingStrategy']
|
349
355
|
end
|
350
356
|
end
|
351
357
|
|
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.
|
4
|
+
version: 3.0.1122
|
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
|
+
date: 2025-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|