代码修改后的版本,全部提交

This commit is contained in:
ss001
2026-02-07 15:48:27 +08:00
parent cccbaa37c9
commit c2cda58c65
15604 changed files with 2455502 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,78 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class AnalyzeFaceRequest : AbstractModel
{
/// <summary>
/// 检测模式。0 为检测所有出现的人脸, 1 为检测面积最大的人脸。默认为 0。最多返回 10 张人脸的五官定位(人脸关键点)具体信息。
/// </summary>
[JsonProperty("Mode")]
public ulong? Mode{ get; set; }
/// <summary>
/// 图片 base64 数据base64 编码后大小不可超过5M。
/// 支持PNG、JPG、JPEG、BMP不支持 GIF 图片。
/// </summary>
[JsonProperty("Image")]
public string Image{ get; set; }
/// <summary>
/// 图片的 Url 。对应图片 base64 编码后大小不可超过5M。
/// Url、Image必须提供一个如果都提供只使用 Url。
/// 图片存储于腾讯云的Url可保障更高下载速度和稳定性建议图片存储于腾讯云。
/// 非腾讯云存储的Url速度和稳定性可能受一定影响。
/// 支持PNG、JPG、JPEG、BMP不支持 GIF 图片。
/// </summary>
[JsonProperty("Url")]
public string Url{ get; set; }
/// <summary>
/// 人脸识别服务所用的算法模型版本。目前入参支持 “2.0”和“3.0“ 两个输入。
/// 2020年4月2日开始默认为“3.0”之前使用过本接口的账号若未填写本参数默认为“2.0”。
/// 不同算法模型版本对应的人脸识别算法不同,新版本的整体效果会优于旧版本,建议使用最新版本。
/// </summary>
[JsonProperty("FaceModelVersion")]
public string FaceModelVersion{ get; set; }
/// <summary>
/// 是否开启图片旋转识别支持。0为不开启1为开启。默认为0。本参数的作用为当图片中的人脸被旋转且图片没有exif信息时如果不开启图片旋转识别支持则无法正确检测、识别图片中的人脸。若您确认图片包含exif信息或者您确认输入图中人脸不会出现被旋转情况请不要开启本参数。开启后整体耗时将可能增加数百毫秒。
/// </summary>
[JsonProperty("NeedRotateDetection")]
public ulong? NeedRotateDetection{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Mode", this.Mode);
this.SetParamSimple(map, prefix + "Image", this.Image);
this.SetParamSimple(map, prefix + "Url", this.Url);
this.SetParamSimple(map, prefix + "FaceModelVersion", this.FaceModelVersion);
this.SetParamSimple(map, prefix + "NeedRotateDetection", this.NeedRotateDetection);
}
}
}

View File

@@ -0,0 +1,71 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class AnalyzeFaceResponse : AbstractModel
{
/// <summary>
/// 请求的图片宽度。
/// </summary>
[JsonProperty("ImageWidth")]
public ulong? ImageWidth{ get; set; }
/// <summary>
/// 请求的图片高度。
/// </summary>
[JsonProperty("ImageHeight")]
public ulong? ImageHeight{ get; set; }
/// <summary>
/// 五官定位(人脸关键点)具体信息。
/// </summary>
[JsonProperty("FaceShapeSet")]
public FaceShape[] FaceShapeSet{ get; set; }
/// <summary>
/// 人脸识别所用的算法模型版本。
/// </summary>
[JsonProperty("FaceModelVersion")]
public string FaceModelVersion{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "ImageWidth", this.ImageWidth);
this.SetParamSimple(map, prefix + "ImageHeight", this.ImageHeight);
this.SetParamArrayObj(map, prefix + "FaceShapeSet.", this.FaceShapeSet);
this.SetParamSimple(map, prefix + "FaceModelVersion", this.FaceModelVersion);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,87 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Candidate : AbstractModel
{
/// <summary>
/// 人员ID
/// </summary>
[JsonProperty("PersonId")]
public string PersonId{ get; set; }
/// <summary>
/// 人脸ID
/// </summary>
[JsonProperty("FaceId")]
public string FaceId{ get; set; }
/// <summary>
/// 候选者的匹配得分。
///
/// 1万大小人脸底库下误识率百分之一对应分数为70分误识率千分之一对应分数为80分误识率万分之一对应分数为90分
/// 10万大小人脸底库下误识率百分之一对应分数为80分误识率千分之一对应分数为90分误识率万分之一对应分数为100分
/// 30万大小人脸底库下误识率百分之一对应分数为85分误识率千分之一对应分数为95分。
///
/// 一般80分左右可适用大部分场景建议分数不要超过90分。您可以根据实际情况选择合适的分数。
/// </summary>
[JsonProperty("Score")]
public float? Score{ get; set; }
/// <summary>
/// 人员名称
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("PersonName")]
public string PersonName{ get; set; }
/// <summary>
/// 人员性别
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Gender")]
public long? Gender{ get; set; }
/// <summary>
/// 包含此人员的人员库及描述字段内容列表
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("PersonGroupInfos")]
public PersonGroupInfo[] PersonGroupInfos{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "PersonId", this.PersonId);
this.SetParamSimple(map, prefix + "FaceId", this.FaceId);
this.SetParamSimple(map, prefix + "Score", this.Score);
this.SetParamSimple(map, prefix + "PersonName", this.PersonName);
this.SetParamSimple(map, prefix + "Gender", this.Gender);
this.SetParamArrayObj(map, prefix + "PersonGroupInfos.", this.PersonGroupInfos);
}
}
}

View File

@@ -0,0 +1,53 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CheckSimilarPersonRequest : AbstractModel
{
/// <summary>
/// 待整理的人员库列表。
/// 人员库总人数不可超过200万人员库个数不可超过10个。
/// </summary>
[JsonProperty("GroupIds")]
public string[] GroupIds{ get; set; }
/// <summary>
/// 人员查重整理力度的控制。
/// 1力度较高的档案整理能够消除更多的重复身份对应稍高的非重复身份误清除率
/// 2力度较低的档案整理非重复身份的误清除率较低对应稍低的重复身份消除率。
/// </summary>
[JsonProperty("UniquePersonControl")]
public long? UniquePersonControl{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "GroupIds.", this.GroupIds);
this.SetParamSimple(map, prefix + "UniquePersonControl", this.UniquePersonControl);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CheckSimilarPersonResponse : AbstractModel
{
/// <summary>
/// 查重任务ID用于查询、获取查重的进度和结果。
/// </summary>
[JsonProperty("JobId")]
public string JobId{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "JobId", this.JobId);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,108 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CompareFaceRequest : AbstractModel
{
/// <summary>
/// A 图片 base64 数据base64 编码后大小不可超过5M。
/// 若图片中包含多张人脸,只选取其中人脸面积最大的人脸。
/// 支持PNG、JPG、JPEG、BMP不支持 GIF 图片。
/// </summary>
[JsonProperty("ImageA")]
public string ImageA{ get; set; }
/// <summary>
/// B 图片 base64 数据base64 编码后大小不可超过5M。
/// 若图片中包含多张人脸,只选取其中人脸面积最大的人脸。
/// 支持PNG、JPG、JPEG、BMP不支持 GIF 图片。
/// </summary>
[JsonProperty("ImageB")]
public string ImageB{ get; set; }
/// <summary>
/// A 图片的 Url ,对应图片 base64 编码后大小不可超过5M。
/// A 图片的 Url、Image必须提供一个如果都提供只使用 Url。
/// 图片存储于腾讯云的Url可保障更高下载速度和稳定性建议图片存储于腾讯云。
/// 非腾讯云存储的Url速度和稳定性可能受一定影响。
/// 若图片中包含多张人脸,只选取其中人脸面积最大的人脸。
/// 支持PNG、JPG、JPEG、BMP不支持 GIF 图片。
/// </summary>
[JsonProperty("UrlA")]
public string UrlA{ get; set; }
/// <summary>
/// B 图片的 Url ,对应图片 base64 编码后大小不可超过5M。
/// B 图片的 Url、Image必须提供一个如果都提供只使用 Url。
/// 图片存储于腾讯云的Url可保障更高下载速度和稳定性建议图片存储于腾讯云。
/// 非腾讯云存储的Url速度和稳定性可能受一定影响。
/// 若图片中包含多张人脸,只选取其中人脸面积最大的人脸。
/// 支持PNG、JPG、JPEG、BMP不支持 GIF 图片。
/// </summary>
[JsonProperty("UrlB")]
public string UrlB{ get; set; }
/// <summary>
/// 人脸识别服务所用的算法模型版本。目前入参支持 “2.0”和“3.0“ 两个输入。
/// 2020年4月2日开始默认为“3.0”之前使用过本接口的账号若未填写本参数默认为“2.0”。
/// 不同算法模型版本对应的人脸识别算法不同新版本的整体效果会优于旧版本建议使用“3.0”版本。
/// </summary>
[JsonProperty("FaceModelVersion")]
public string FaceModelVersion{ get; set; }
/// <summary>
/// 图片质量控制。
/// 0: 不进行控制;
/// 1:较低的质量要求,图像存在非常模糊,眼睛鼻子嘴巴遮挡至少其中一种或多种的情况;
/// 2: 一般的质量要求,图像存在偏亮,偏暗,模糊或一般模糊,眉毛遮挡,脸颊遮挡,下巴遮挡,至少其中三种的情况;
/// 3: 较高的质量要求,图像存在偏亮,偏暗,一般模糊,眉毛遮挡,脸颊遮挡,下巴遮挡,其中一到两种的情况;
/// 4: 很高的质量要求,各个维度均为最好或最多在某一维度上存在轻微问题;
/// 默认 0。
/// 若图片质量不满足要求,则返回结果中会提示图片质量检测不符要求。
/// </summary>
[JsonProperty("QualityControl")]
public ulong? QualityControl{ get; set; }
/// <summary>
/// 是否开启图片旋转识别支持。0为不开启1为开启。默认为0。本参数的作用为当图片中的人脸被旋转且图片没有exif信息时如果不开启图片旋转识别支持则无法正确检测、识别图片中的人脸。若您确认图片包含exif信息或者您确认输入图中人脸不会出现被旋转情况请不要开启本参数。开启后整体耗时将可能增加数百毫秒。
/// </summary>
[JsonProperty("NeedRotateDetection")]
public ulong? NeedRotateDetection{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "ImageA", this.ImageA);
this.SetParamSimple(map, prefix + "ImageB", this.ImageB);
this.SetParamSimple(map, prefix + "UrlA", this.UrlA);
this.SetParamSimple(map, prefix + "UrlB", this.UrlB);
this.SetParamSimple(map, prefix + "FaceModelVersion", this.FaceModelVersion);
this.SetParamSimple(map, prefix + "QualityControl", this.QualityControl);
this.SetParamSimple(map, prefix + "NeedRotateDetection", this.NeedRotateDetection);
}
}
}

View File

@@ -0,0 +1,61 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CompareFaceResponse : AbstractModel
{
/// <summary>
/// 两张图片中人脸的相似度分数。
/// 不同算法版本返回的相似度分数不同。
/// 若需要验证两张图片中人脸是否为同一人3.0版本误识率千分之一对应分数为40分误识率万分之一对应分数为50分误识率十万分之一对应分数为60分。 一般超过50分则可认定为同一人。
/// 2.0版本误识率千分之一对应分数为70分误识率万分之一对应分数为80分误识率十万分之一对应分数为90分。 一般超过80分则可认定为同一人。
/// 若需要验证两张图片中的人脸是否为同一人,建议使用人脸验证接口。
/// </summary>
[JsonProperty("Score")]
public float? Score{ get; set; }
/// <summary>
/// 人脸识别所用的算法模型版本。
/// </summary>
[JsonProperty("FaceModelVersion")]
public string FaceModelVersion{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Score", this.Score);
this.SetParamSimple(map, prefix + "FaceModelVersion", this.FaceModelVersion);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CopyPersonRequest : AbstractModel
{
/// <summary>
/// 人员ID
/// </summary>
[JsonProperty("PersonId")]
public string PersonId{ get; set; }
/// <summary>
/// 待加入的人员库列表
/// </summary>
[JsonProperty("GroupIds")]
public string[] GroupIds{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "PersonId", this.PersonId);
this.SetParamArraySimple(map, prefix + "GroupIds.", this.GroupIds);
}
}
}

View File

@@ -0,0 +1,57 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CopyPersonResponse : AbstractModel
{
/// <summary>
/// 成功加入的人员库数量
/// </summary>
[JsonProperty("SucGroupNum")]
public ulong? SucGroupNum{ get; set; }
/// <summary>
/// 成功加入的人员库列表
/// </summary>
[JsonProperty("SucGroupIds")]
public string[] SucGroupIds{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "SucGroupNum", this.SucGroupNum);
this.SetParamArraySimple(map, prefix + "SucGroupIds.", this.SucGroupIds);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,95 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateFaceRequest : AbstractModel
{
/// <summary>
/// 人员ID。
/// </summary>
[JsonProperty("PersonId")]
public string PersonId{ get; set; }
/// <summary>
/// 图片 base64 数据base64 编码后大小不可超过5M。
/// 人员人脸总数量不可超过5张。
/// 若图片中包含多张人脸,只选取其中人脸面积最大的人脸。
/// 支持PNG、JPG、JPEG、BMP不支持 GIF 图片。
/// </summary>
[JsonProperty("Images")]
public string[] Images{ get; set; }
/// <summary>
/// 图片的 Url 。对应图片 base64 编码后大小不可超过5M。
/// Url、Image必须提供一个如果都提供只使用 Url。
/// 图片存储于腾讯云的Url可保障更高下载速度和稳定性建议图片存储于腾讯云。
/// 非腾讯云存储的Url速度和稳定性可能受一定影响。
/// 支持PNG、JPG、JPEG、BMP不支持 GIF 图片。
/// 人员人脸总数量不可超过5张。
/// 若图片中包含多张人脸,只选取其中人脸面积最大的人脸。
/// </summary>
[JsonProperty("Urls")]
public string[] Urls{ get; set; }
/// <summary>
/// 只有和该人员已有的人脸相似度超过FaceMatchThreshold值的人脸才能增加人脸成功。
/// 默认值60分。取值范围[0,100] 。
/// </summary>
[JsonProperty("FaceMatchThreshold")]
public float? FaceMatchThreshold{ get; set; }
/// <summary>
/// 图片质量控制。
/// 0: 不进行控制;
/// 1:较低的质量要求,图像存在非常模糊,眼睛鼻子嘴巴遮挡至少其中一种或多种的情况;
/// 2: 一般的质量要求,图像存在偏亮,偏暗,模糊或一般模糊,眉毛遮挡,脸颊遮挡,下巴遮挡,至少其中三种的情况;
/// 3: 较高的质量要求,图像存在偏亮,偏暗,一般模糊,眉毛遮挡,脸颊遮挡,下巴遮挡,其中一到两种的情况;
/// 4: 很高的质量要求,各个维度均为最好或最多在某一维度上存在轻微问题;
/// 默认 0。
/// 若图片质量不满足要求,则返回结果中会提示图片质量检测不符要求。
/// </summary>
[JsonProperty("QualityControl")]
public ulong? QualityControl{ get; set; }
/// <summary>
/// 是否开启图片旋转识别支持。0为不开启1为开启。默认为0。本参数的作用为当图片中的人脸被旋转且图片没有exif信息时如果不开启图片旋转识别支持则无法正确检测、识别图片中的人脸。若您确认图片包含exif信息或者您确认输入图中人脸不会出现被旋转情况请不要开启本参数。开启后整体耗时将可能增加数百毫秒。
/// </summary>
[JsonProperty("NeedRotateDetection")]
public ulong? NeedRotateDetection{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "PersonId", this.PersonId);
this.SetParamArraySimple(map, prefix + "Images.", this.Images);
this.SetParamArraySimple(map, prefix + "Urls.", this.Urls);
this.SetParamSimple(map, prefix + "FaceMatchThreshold", this.FaceMatchThreshold);
this.SetParamSimple(map, prefix + "QualityControl", this.QualityControl);
this.SetParamSimple(map, prefix + "NeedRotateDetection", this.NeedRotateDetection);
}
}
}

View File

@@ -0,0 +1,89 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateFaceResponse : AbstractModel
{
/// <summary>
/// 加入成功的人脸数量
/// </summary>
[JsonProperty("SucFaceNum")]
public ulong? SucFaceNum{ get; set; }
/// <summary>
/// 加入成功的人脸ID列表
/// </summary>
[JsonProperty("SucFaceIds")]
public string[] SucFaceIds{ get; set; }
/// <summary>
/// 每张人脸图片添加结果,-1101 代表未检测到人脸,-1102 代表图片解码失败,
/// -1601代表不符合图片质量控制要求, -1604 代表人脸相似度没有超过FaceMatchThreshold。
/// 其他非 0 值代表算法服务异常。
/// RetCode的顺序和入参中 Images 或 Urls 的顺序一致。
/// </summary>
[JsonProperty("RetCode")]
public long?[] RetCode{ get; set; }
/// <summary>
/// 加入成功的人脸索引。索引顺序和入参中 Images 或 Urls 的顺序一致。
/// 例, Urls 中 有 3 个 url第二个 url 失败,则 SucIndexes 值为 [0,2] 。
/// </summary>
[JsonProperty("SucIndexes")]
public ulong?[] SucIndexes{ get; set; }
/// <summary>
/// 加入成功的人脸框位置。顺序和入参中 Images 或 Urls 的顺序一致。
/// </summary>
[JsonProperty("SucFaceRects")]
public FaceRect[] SucFaceRects{ get; set; }
/// <summary>
/// 人脸识别所用的算法模型版本。
/// </summary>
[JsonProperty("FaceModelVersion")]
public string FaceModelVersion{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "SucFaceNum", this.SucFaceNum);
this.SetParamArraySimple(map, prefix + "SucFaceIds.", this.SucFaceIds);
this.SetParamArraySimple(map, prefix + "RetCode.", this.RetCode);
this.SetParamArraySimple(map, prefix + "SucIndexes.", this.SucIndexes);
this.SetParamArrayObj(map, prefix + "SucFaceRects.", this.SucFaceRects);
this.SetParamSimple(map, prefix + "FaceModelVersion", this.FaceModelVersion);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,79 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateGroupRequest : AbstractModel
{
/// <summary>
/// 人员库名称,[1,60]个字符,可修改,不可重复。
/// </summary>
[JsonProperty("GroupName")]
public string GroupName{ get; set; }
/// <summary>
/// 人员库 ID不可修改不可重复。支持英文、数字、-%@#&_长度限制64B。
/// </summary>
[JsonProperty("GroupId")]
public string GroupId{ get; set; }
/// <summary>
/// 人员库自定义描述字段,用于描述人员库中人员属性,该人员库下所有人员将拥有此描述字段。
/// 最多可以创建5个。
/// 每个自定义描述字段支持[1,30]个字符。
/// 在同一人员库中自定义描述字段不可重复。
/// 例: 设置某人员库“自定义描述字段”为["学号","工号","手机号"]
/// 则该人员库下所有人员将拥有名为“学号”、“工号”、“手机号”的描述字段,
/// 可在对应人员描述字段中填写内容,登记该人员的学号、工号、手机号等信息。
/// </summary>
[JsonProperty("GroupExDescriptions")]
public string[] GroupExDescriptions{ get; set; }
/// <summary>
/// 人员库信息备注,[040]个字符。
/// </summary>
[JsonProperty("Tag")]
public string Tag{ get; set; }
/// <summary>
/// 人脸识别服务所用的算法模型版本。目前入参支持 “2.0”和“3.0“ 两个输入。
/// 2020年4月2日开始默认为“3.0”之前使用过本接口的账号若未填写本参数默认为“2.0”。
/// 不同算法模型版本对应的人脸识别算法不同新版本的整体效果会优于旧版本建议使用“3.0”版本。
/// </summary>
[JsonProperty("FaceModelVersion")]
public string FaceModelVersion{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "GroupName", this.GroupName);
this.SetParamSimple(map, prefix + "GroupId", this.GroupId);
this.SetParamArraySimple(map, prefix + "GroupExDescriptions.", this.GroupExDescriptions);
this.SetParamSimple(map, prefix + "Tag", this.Tag);
this.SetParamSimple(map, prefix + "FaceModelVersion", this.FaceModelVersion);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateGroupResponse : AbstractModel
{
/// <summary>
/// 人脸识别所用的算法模型版本。
/// </summary>
[JsonProperty("FaceModelVersion")]
public string FaceModelVersion{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "FaceModelVersion", this.FaceModelVersion);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,127 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreatePersonRequest : AbstractModel
{
/// <summary>
/// 待加入的人员库ID。
/// </summary>
[JsonProperty("GroupId")]
public string GroupId{ get; set; }
/// <summary>
/// 人员名称。[160]个字符,可修改,可重复。
/// </summary>
[JsonProperty("PersonName")]
public string PersonName{ get; set; }
/// <summary>
/// 人员ID单个腾讯云账号下不可修改不可重复。支持英文、数字、-%@#&_长度限制64B。
/// </summary>
[JsonProperty("PersonId")]
public string PersonId{ get; set; }
/// <summary>
/// 0代表未填写1代表男性2代表女性。
/// </summary>
[JsonProperty("Gender")]
public long? Gender{ get; set; }
/// <summary>
/// 人员描述字段内容key-value。[060]个字符,可修改,可重复。
/// </summary>
[JsonProperty("PersonExDescriptionInfos")]
public PersonExDescriptionInfo[] PersonExDescriptionInfos{ get; set; }
/// <summary>
/// 图片 base64 数据base64 编码后大小不可超过5M。
/// 支持PNG、JPG、JPEG、BMP不支持 GIF 图片。
/// </summary>
[JsonProperty("Image")]
public string Image{ get; set; }
/// <summary>
/// 图片的 Url 。对应图片 base64 编码后大小不可超过5M。
/// Url、Image必须提供一个如果都提供只使用 Url。
/// 图片存储于腾讯云的Url可保障更高下载速度和稳定性建议图片存储于腾讯云。
/// 非腾讯云存储的Url速度和稳定性可能受一定影响。
/// 支持PNG、JPG、JPEG、BMP不支持 GIF 图片。
/// </summary>
[JsonProperty("Url")]
public string Url{ get; set; }
/// <summary>
/// 此参数用于控制判断 Image 或 Url 中图片包含的人脸,是否在人员库中已有疑似的同一人。
/// 如果判断为已有相同人在人员库中,则不会创建新的人员,返回疑似同一人的人员信息。
/// 如果判断没有,则完成创建人员。
/// 0: 不进行判断,无论是否有疑似同一人在库中均完成入库;
/// 1:较低的同一人判断要求(百一误识别率);
/// 2: 一般的同一人判断要求(千一误识别率);
/// 3: 较高的同一人判断要求(万一误识别率);
/// 4: 很高的同一人判断要求(十万一误识别率)。
/// 默认 0。
/// 注: 要求越高,则疑似同一人的概率越小。不同要求对应的误识别率仅为参考值,您可以根据实际情况调整。
/// </summary>
[JsonProperty("UniquePersonControl")]
public ulong? UniquePersonControl{ get; set; }
/// <summary>
/// 图片质量控制。
/// 0: 不进行控制;
/// 1:较低的质量要求,图像存在非常模糊,眼睛鼻子嘴巴遮挡至少其中一种或多种的情况;
/// 2: 一般的质量要求,图像存在偏亮,偏暗,模糊或一般模糊,眉毛遮挡,脸颊遮挡,下巴遮挡,至少其中三种的情况;
/// 3: 较高的质量要求,图像存在偏亮,偏暗,一般模糊,眉毛遮挡,脸颊遮挡,下巴遮挡,其中一到两种的情况;
/// 4: 很高的质量要求,各个维度均为最好或最多在某一维度上存在轻微问题;
/// 默认 0。
/// 若图片质量不满足要求,则返回结果中会提示图片质量检测不符要求。
/// </summary>
[JsonProperty("QualityControl")]
public ulong? QualityControl{ get; set; }
/// <summary>
/// 是否开启图片旋转识别支持。0为不开启1为开启。默认为0。本参数的作用为当图片中的人脸被旋转且图片没有exif信息时如果不开启图片旋转识别支持则无法正确检测、识别图片中的人脸。若您确认图片包含exif信息或者您确认输入图中人脸不会出现被旋转情况请不要开启本参数。开启后整体耗时将可能增加数百毫秒。
/// </summary>
[JsonProperty("NeedRotateDetection")]
public ulong? NeedRotateDetection{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "GroupId", this.GroupId);
this.SetParamSimple(map, prefix + "PersonName", this.PersonName);
this.SetParamSimple(map, prefix + "PersonId", this.PersonId);
this.SetParamSimple(map, prefix + "Gender", this.Gender);
this.SetParamArrayObj(map, prefix + "PersonExDescriptionInfos.", this.PersonExDescriptionInfos);
this.SetParamSimple(map, prefix + "Image", this.Image);
this.SetParamSimple(map, prefix + "Url", this.Url);
this.SetParamSimple(map, prefix + "UniquePersonControl", this.UniquePersonControl);
this.SetParamSimple(map, prefix + "QualityControl", this.QualityControl);
this.SetParamSimple(map, prefix + "NeedRotateDetection", this.NeedRotateDetection);
}
}
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreatePersonResponse : AbstractModel
{
/// <summary>
/// 人脸图片唯一标识。
/// </summary>
[JsonProperty("FaceId")]
public string FaceId{ get; set; }
/// <summary>
/// 检测出的人脸框的位置。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("FaceRect")]
public FaceRect FaceRect{ get; set; }
/// <summary>
/// 疑似同一人的PersonId。
/// 当 UniquePersonControl 参数不为0且人员库中有疑似的同一人此参数才有意义。
/// </summary>
[JsonProperty("SimilarPersonId")]
public string SimilarPersonId{ get; set; }
/// <summary>
/// 人脸识别所用的算法模型版本。
/// </summary>
[JsonProperty("FaceModelVersion")]
public string FaceModelVersion{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "FaceId", this.FaceId);
this.SetParamObj(map, prefix + "FaceRect.", this.FaceRect);
this.SetParamSimple(map, prefix + "SimilarPersonId", this.SimilarPersonId);
this.SetParamSimple(map, prefix + "FaceModelVersion", this.FaceModelVersion);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeleteFaceRequest : AbstractModel
{
/// <summary>
/// 人员ID
/// </summary>
[JsonProperty("PersonId")]
public string PersonId{ get; set; }
/// <summary>
/// 待删除的人脸ID列表
/// </summary>
[JsonProperty("FaceIds")]
public string[] FaceIds{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "PersonId", this.PersonId);
this.SetParamArraySimple(map, prefix + "FaceIds.", this.FaceIds);
}
}
}

View File

@@ -0,0 +1,57 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeleteFaceResponse : AbstractModel
{
/// <summary>
/// 删除成功的人脸数量
/// </summary>
[JsonProperty("SucDeletedNum")]
public ulong? SucDeletedNum{ get; set; }
/// <summary>
/// 删除成功的人脸ID列表
/// </summary>
[JsonProperty("SucFaceIds")]
public string[] SucFaceIds{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "SucDeletedNum", this.SucDeletedNum);
this.SetParamArraySimple(map, prefix + "SucFaceIds.", this.SucFaceIds);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeleteGroupRequest : AbstractModel
{
/// <summary>
/// 人员库ID。
/// </summary>
[JsonProperty("GroupId")]
public string GroupId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "GroupId", this.GroupId);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeleteGroupResponse : AbstractModel
{
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeletePersonFromGroupRequest : AbstractModel
{
/// <summary>
/// 人员ID
/// </summary>
[JsonProperty("PersonId")]
public string PersonId{ get; set; }
/// <summary>
/// 人员库ID
/// </summary>
[JsonProperty("GroupId")]
public string GroupId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "PersonId", this.PersonId);
this.SetParamSimple(map, prefix + "GroupId", this.GroupId);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeletePersonFromGroupResponse : AbstractModel
{
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeletePersonRequest : AbstractModel
{
/// <summary>
/// 人员ID
/// </summary>
[JsonProperty("PersonId")]
public string PersonId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "PersonId", this.PersonId);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeletePersonResponse : AbstractModel
{
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,108 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DetectFaceRequest : AbstractModel
{
/// <summary>
/// 最多处理的人脸数目。默认值为1仅检测图片中面积最大的那张人脸最大值为120。
/// 此参数用于控制处理待检测图片中的人脸个数,值越小,处理速度越快。
/// </summary>
[JsonProperty("MaxFaceNum")]
public ulong? MaxFaceNum{ get; set; }
/// <summary>
/// 人脸长和宽的最小尺寸,单位为像素。
/// 默认为34。建议不低于34。
/// 低于MinFaceSize值的人脸不会被检测。
/// </summary>
[JsonProperty("MinFaceSize")]
public ulong? MinFaceSize{ get; set; }
/// <summary>
/// 图片 base64 数据base64 编码后大小不可超过5M。
/// 支持PNG、JPG、JPEG、BMP不支持 GIF 图片。
/// </summary>
[JsonProperty("Image")]
public string Image{ get; set; }
/// <summary>
/// 图片的 Url 。对应图片 base64 编码后大小不可超过5M。
/// Url、Image必须提供一个如果都提供只使用 Url。
/// 图片存储于腾讯云的Url可保障更高下载速度和稳定性建议图片存储于腾讯云。
/// 非腾讯云存储的Url速度和稳定性可能受一定影响。
/// 支持PNG、JPG、JPEG、BMP不支持 GIF 图片。
/// </summary>
[JsonProperty("Url")]
public string Url{ get; set; }
/// <summary>
/// 是否需要返回人脸属性信息FaceAttributesInfo。0 为不需要返回1 为需要返回。默认为 0。
/// 非 1 值均视为不需要返回,此时 FaceAttributesInfo 不具备参考意义。
/// 最多返回面积最大的 5 张人脸属性信息,超过 5 张人脸(第 6 张及以后的人脸)的 FaceAttributesInfo 不具备参考意义。
/// 提取人脸属性信息较为耗时,如不需要人脸属性信息,建议关闭此项功能,加快人脸检测速度。
/// </summary>
[JsonProperty("NeedFaceAttributes")]
public ulong? NeedFaceAttributes{ get; set; }
/// <summary>
/// 是否开启质量检测。0 为关闭1 为开启。默认为 0。
/// 非 1 值均视为不进行质量检测。
/// 最多返回面积最大的 30 张人脸质量分信息,超过 30 张人脸(第 31 张及以后的人脸)的 FaceQualityInfo不具备参考意义。
/// 建议:人脸入库操作建议开启此功能。
/// </summary>
[JsonProperty("NeedQualityDetection")]
public ulong? NeedQualityDetection{ get; set; }
/// <summary>
/// 人脸识别服务所用的算法模型版本。目前入参支持 “2.0”和“3.0“ 两个输入。
/// 2020年4月2日开始默认为“3.0”之前使用过本接口的账号若未填写本参数默认为“2.0”。
/// 不同算法模型版本对应的人脸识别算法不同新版本的整体效果会优于旧版本建议使用“3.0”版本。
/// </summary>
[JsonProperty("FaceModelVersion")]
public string FaceModelVersion{ get; set; }
/// <summary>
/// 是否开启图片旋转识别支持。0为不开启1为开启。默认为0。本参数的作用为当图片中的人脸被旋转且图片没有exif信息时如果不开启图片旋转识别支持则无法正确检测、识别图片中的人脸。若您确认图片包含exif信息或者您确认输入图中人脸不会出现被旋转情况请不要开启本参数。开启后整体耗时将可能增加数百毫秒。
/// </summary>
[JsonProperty("NeedRotateDetection")]
public ulong? NeedRotateDetection{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "MaxFaceNum", this.MaxFaceNum);
this.SetParamSimple(map, prefix + "MinFaceSize", this.MinFaceSize);
this.SetParamSimple(map, prefix + "Image", this.Image);
this.SetParamSimple(map, prefix + "Url", this.Url);
this.SetParamSimple(map, prefix + "NeedFaceAttributes", this.NeedFaceAttributes);
this.SetParamSimple(map, prefix + "NeedQualityDetection", this.NeedQualityDetection);
this.SetParamSimple(map, prefix + "FaceModelVersion", this.FaceModelVersion);
this.SetParamSimple(map, prefix + "NeedRotateDetection", this.NeedRotateDetection);
}
}
}

View File

@@ -0,0 +1,71 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DetectFaceResponse : AbstractModel
{
/// <summary>
/// 请求的图片宽度。
/// </summary>
[JsonProperty("ImageWidth")]
public long? ImageWidth{ get; set; }
/// <summary>
/// 请求的图片高度。
/// </summary>
[JsonProperty("ImageHeight")]
public long? ImageHeight{ get; set; }
/// <summary>
/// 人脸信息列表。包含人脸坐标信息、属性信息(若需要)、质量分信息(若需要)。
/// </summary>
[JsonProperty("FaceInfos")]
public FaceInfo[] FaceInfos{ get; set; }
/// <summary>
/// 人脸识别所用的算法模型版本。
/// </summary>
[JsonProperty("FaceModelVersion")]
public string FaceModelVersion{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "ImageWidth", this.ImageWidth);
this.SetParamSimple(map, prefix + "ImageHeight", this.ImageHeight);
this.SetParamArrayObj(map, prefix + "FaceInfos.", this.FaceInfos);
this.SetParamSimple(map, prefix + "FaceModelVersion", this.FaceModelVersion);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,65 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DetectLiveFaceRequest : AbstractModel
{
/// <summary>
/// 图片 base64 数据base64 编码后大小不可超过5M图片的宽高比请接近3:4不符合宽高比的图片返回的分值不具备参考意义
/// 支持PNG、JPG、JPEG、BMP不支持 GIF 图片。
/// </summary>
[JsonProperty("Image")]
public string Image{ get; set; }
/// <summary>
/// 图片的 Url 。对应图片 base64 编码后大小不可超过5M。
/// Url、Image必须提供一个如果都提供只使用 Url。
/// (图片的宽高比请接近 3:4不符合宽高比的图片返回的分值不具备参考意义
/// 图片存储于腾讯云的Url可保障更高下载速度和稳定性建议图片存储于腾讯云。
/// 非腾讯云存储的Url速度和稳定性可能受一定影响。
/// 支持PNG、JPG、JPEG、BMP不支持 GIF 图片。
/// </summary>
[JsonProperty("Url")]
public string Url{ get; set; }
/// <summary>
/// 人脸识别服务所用的算法模型版本。目前入参支持 “2.0”和“3.0“ 两个输入。
/// 2020年4月2日开始默认为“3.0”之前使用过本接口的账号若未填写本参数默认为“2.0”。
/// 不同算法模型版本对应的人脸识别算法不同新版本的整体效果会优于旧版本建议使用“3.0”版本。
/// </summary>
[JsonProperty("FaceModelVersion")]
public string FaceModelVersion{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Image", this.Image);
this.SetParamSimple(map, prefix + "Url", this.Url);
this.SetParamSimple(map, prefix + "FaceModelVersion", this.FaceModelVersion);
}
}
}

View File

@@ -0,0 +1,66 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DetectLiveFaceResponse : AbstractModel
{
/// <summary>
/// 活体打分,取值范围 [0,100],分数一般落于[80, 100]区间内0分也为常见值。推荐相大于 87 时可判断为活体。可根据具体场景自行调整阈值。
/// 本字段当且仅当FaceModelVersion为2.0时才具备参考意义。
/// </summary>
[JsonProperty("Score")]
public float? Score{ get; set; }
/// <summary>
/// 人脸识别所用的算法模型版本。
/// </summary>
[JsonProperty("FaceModelVersion")]
public string FaceModelVersion{ get; set; }
/// <summary>
/// 活体检测是否通过。
/// 本字段只有FaceModelVersion为3.0时才具备参考意义。
/// </summary>
[JsonProperty("IsLiveness")]
public bool? IsLiveness{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Score", this.Score);
this.SetParamSimple(map, prefix + "FaceModelVersion", this.FaceModelVersion);
this.SetParamSimple(map, prefix + "IsLiveness", this.IsLiveness);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class EstimateCheckSimilarPersonCostTimeRequest : AbstractModel
{
/// <summary>
/// 待整理的人员库列表。
/// 人员库总人数不可超过200万人员库个数不可超过10个。
/// </summary>
[JsonProperty("GroupIds")]
public string[] GroupIds{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "GroupIds.", this.GroupIds);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class EstimateCheckSimilarPersonCostTimeResponse : AbstractModel
{
/// <summary>
/// 人员查重任务预估需要耗费时间。 单位为分钟。
/// </summary>
[JsonProperty("EstimatedTimeCost")]
public ulong? EstimatedTimeCost{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "EstimatedTimeCost", this.EstimatedTimeCost);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,127 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class FaceAttributesInfo : AbstractModel
{
/// <summary>
/// 性别[0~49]为女性,[50100]为男性越接近0和100表示置信度越高。NeedFaceAttributes 不为 1 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
/// </summary>
[JsonProperty("Gender")]
public long? Gender{ get; set; }
/// <summary>
/// 年龄 [0~100]。NeedFaceAttributes 不为1 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
/// </summary>
[JsonProperty("Age")]
public long? Age{ get; set; }
/// <summary>
/// 微笑[0(normal正常)~50(smile微笑)~100(laugh大笑)]。NeedFaceAttributes 不为1 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
/// </summary>
[JsonProperty("Expression")]
public long? Expression{ get; set; }
/// <summary>
/// 是否有眼镜 [true,false]。NeedFaceAttributes 不为1 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
/// </summary>
[JsonProperty("Glass")]
public bool? Glass{ get; set; }
/// <summary>
/// 上下偏移[-30,30]单位角度。NeedFaceAttributes 不为1 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
/// 建议:人脸入库选择[-10,10]的图片。
/// </summary>
[JsonProperty("Pitch")]
public long? Pitch{ get; set; }
/// <summary>
/// 左右偏移[-30,30],单位角度。 NeedFaceAttributes 不为1 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
/// 建议:人脸入库选择[-10,10]的图片。
/// </summary>
[JsonProperty("Yaw")]
public long? Yaw{ get; set; }
/// <summary>
/// 平面旋转[-180,180],单位角度。 NeedFaceAttributes 不为1 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
/// 建议:人脸入库选择[-20,20]的图片。
/// </summary>
[JsonProperty("Roll")]
public long? Roll{ get; set; }
/// <summary>
/// 魅力[0~100]。NeedFaceAttributes 不为1 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
/// </summary>
[JsonProperty("Beauty")]
public long? Beauty{ get; set; }
/// <summary>
/// 是否有帽子 [true,false]。NeedFaceAttributes 不为1 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Hat")]
public bool? Hat{ get; set; }
/// <summary>
/// 是否有口罩 [true,false]。NeedFaceAttributes 不为1 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Mask")]
public bool? Mask{ get; set; }
/// <summary>
/// 头发信息包含头发长度length、有无刘海bang、头发颜色color。NeedFaceAttributes 不为1 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Hair")]
public FaceHairAttributesInfo Hair{ get; set; }
/// <summary>
/// 双眼是否睁开 [true,false]。只要有超过一只眼睛闭眼就返回false。 NeedFaceAttributes 不为1 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("EyeOpen")]
public bool? EyeOpen{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Gender", this.Gender);
this.SetParamSimple(map, prefix + "Age", this.Age);
this.SetParamSimple(map, prefix + "Expression", this.Expression);
this.SetParamSimple(map, prefix + "Glass", this.Glass);
this.SetParamSimple(map, prefix + "Pitch", this.Pitch);
this.SetParamSimple(map, prefix + "Yaw", this.Yaw);
this.SetParamSimple(map, prefix + "Roll", this.Roll);
this.SetParamSimple(map, prefix + "Beauty", this.Beauty);
this.SetParamSimple(map, prefix + "Hat", this.Hat);
this.SetParamSimple(map, prefix + "Mask", this.Mask);
this.SetParamObj(map, prefix + "Hair.", this.Hair);
this.SetParamSimple(map, prefix + "EyeOpen", this.EyeOpen);
}
}
}

View File

@@ -0,0 +1,60 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class FaceHairAttributesInfo : AbstractModel
{
/// <summary>
/// 0光头1短发2中发3长发4绑发
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Length")]
public long? Length{ get; set; }
/// <summary>
/// 0有刘海1无刘海
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Bang")]
public long? Bang{ get; set; }
/// <summary>
/// 0黑色1金色2棕色3灰白色
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Color")]
public long? Color{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Length", this.Length);
this.SetParamSimple(map, prefix + "Bang", this.Bang);
this.SetParamSimple(map, prefix + "Color", this.Color);
}
}
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class FaceInfo : AbstractModel
{
/// <summary>
/// 人脸框左上角横坐标。
/// 人脸框包含人脸五官位置并在此基础上进行一定的扩展,若人脸框超出图片范围,会导致坐标负值。
/// 若需截取完整人脸可以在完整分completess满足需求的情况下将负值坐标取0。
/// </summary>
[JsonProperty("X")]
public long? X{ get; set; }
/// <summary>
/// 人脸框左上角纵坐标。
/// 人脸框包含人脸五官位置并在此基础上进行一定的扩展,若人脸框超出图片范围,会导致坐标负值。
/// 若需截取完整人脸可以在完整分completess满足需求的情况下将负值坐标取0。
/// </summary>
[JsonProperty("Y")]
public long? Y{ get; set; }
/// <summary>
/// 人脸框宽度。
/// </summary>
[JsonProperty("Width")]
public long? Width{ get; set; }
/// <summary>
/// 人脸框高度。
/// </summary>
[JsonProperty("Height")]
public long? Height{ get; set; }
/// <summary>
/// 人脸属性信息,包含性别( gender )、年龄( age )、表情( expression )、
/// 魅力( beauty )、眼镜( glass )、口罩mask、头发hair和姿态 (pitchrollyaw )。只有当 NeedFaceAttributes 设为 1 时才返回有效信息。
/// </summary>
[JsonProperty("FaceAttributesInfo")]
public FaceAttributesInfo FaceAttributesInfo{ get; set; }
/// <summary>
/// 人脸质量信息包含质量分score、模糊分sharpness、光照分brightness、遮挡分completeness。只有当NeedFaceDetection设为1时才返回有效信息。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("FaceQualityInfo")]
public FaceQualityInfo FaceQualityInfo{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "X", this.X);
this.SetParamSimple(map, prefix + "Y", this.Y);
this.SetParamSimple(map, prefix + "Width", this.Width);
this.SetParamSimple(map, prefix + "Height", this.Height);
this.SetParamObj(map, prefix + "FaceAttributesInfo.", this.FaceAttributesInfo);
this.SetParamObj(map, prefix + "FaceQualityInfo.", this.FaceQualityInfo);
}
}
}

View File

@@ -0,0 +1,90 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class FaceQualityCompleteness : AbstractModel
{
/// <summary>
/// 眉毛的遮挡分数[0,100],分数越高遮挡越少。
/// 参考范围:[0,80]表示发生遮挡。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Eyebrow")]
public long? Eyebrow{ get; set; }
/// <summary>
/// 眼睛的遮挡分数[0,100],分数越高遮挡越少。
/// 参考范围:[0,80]表示发生遮挡。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Eye")]
public long? Eye{ get; set; }
/// <summary>
/// 鼻子的遮挡分数[0,100],分数越高遮挡越少。
/// 参考范围:[0,60]表示发生遮挡。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Nose")]
public long? Nose{ get; set; }
/// <summary>
/// 脸颊的遮挡分数[0,100],分数越高遮挡越少。
/// 参考范围:[0,70]表示发生遮挡。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Cheek")]
public long? Cheek{ get; set; }
/// <summary>
/// 嘴巴的遮挡分数[0,100],分数越高遮挡越少。
/// 参考范围:[0,50]表示发生遮挡。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Mouth")]
public long? Mouth{ get; set; }
/// <summary>
/// 下巴的遮挡分数[0,100],分数越高遮挡越少。
/// 参考范围:[0,70]表示发生遮挡。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Chin")]
public long? Chin{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Eyebrow", this.Eyebrow);
this.SetParamSimple(map, prefix + "Eye", this.Eye);
this.SetParamSimple(map, prefix + "Nose", this.Nose);
this.SetParamSimple(map, prefix + "Cheek", this.Cheek);
this.SetParamSimple(map, prefix + "Mouth", this.Mouth);
this.SetParamSimple(map, prefix + "Chin", this.Chin);
}
}
}

View File

@@ -0,0 +1,75 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class FaceQualityInfo : AbstractModel
{
/// <summary>
/// 质量分: [0,100],综合评价图像质量是否适合人脸识别,分数越高质量越好。
/// 正常情况只需要使用Score作为质量分总体的判断标准即可。Sharpness、Brightness、Completeness等细项分仅供参考。
/// 参考范围:[0,40]较差,[40,60] 一般,[60,80]较好,[80,100]很好。
/// 建议人脸入库选取70以上的图片。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Score")]
public long? Score{ get; set; }
/// <summary>
/// 清晰分:[0,100],评价图片清晰程度,分数越高越清晰。
/// 参考范围:[0,40]特别模糊,[40,60]模糊,[60,80]一般,[80,100]清晰。
/// 建议人脸入库选取80以上的图片。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Sharpness")]
public long? Sharpness{ get; set; }
/// <summary>
/// 光照分:[0,100],评价图片光照程度,分数越高越亮。
/// 参考范围: [0,30]偏暗,[30,70]光照正常,[70,100]偏亮。
/// 建议:人脸入库选取[30,70]的图片。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Brightness")]
public long? Brightness{ get; set; }
/// <summary>
/// 五官遮挡分评价眉毛Eyebrow、眼睛Eye、鼻子Nose、脸颊Cheek、嘴巴Mouth、下巴Chin的被遮挡程度。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Completeness")]
public FaceQualityCompleteness Completeness{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Score", this.Score);
this.SetParamSimple(map, prefix + "Sharpness", this.Sharpness);
this.SetParamSimple(map, prefix + "Brightness", this.Brightness);
this.SetParamObj(map, prefix + "Completeness.", this.Completeness);
}
}
}

View File

@@ -0,0 +1,68 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class FaceRect : AbstractModel
{
/// <summary>
/// 人脸框左上角横坐标。
/// 人脸框包含人脸五官位置并在此基础上进行一定的扩展,若人脸框超出图片范围,会导致坐标负值。
/// 若需截取完整人脸可以在完整分completess满足需求的情况下将负值坐标取0。
/// </summary>
[JsonProperty("X")]
public long? X{ get; set; }
/// <summary>
/// 人脸框左上角纵坐标。
/// 人脸框包含人脸五官位置并在此基础上进行一定的扩展,若人脸框超出图片范围,会导致坐标负值。
/// 若需截取完整人脸可以在完整分completess满足需求的情况下将负值坐标取0。
/// </summary>
[JsonProperty("Y")]
public long? Y{ get; set; }
/// <summary>
/// 人脸宽度
/// </summary>
[JsonProperty("Width")]
public ulong? Width{ get; set; }
/// <summary>
/// 人脸高度
/// </summary>
[JsonProperty("Height")]
public ulong? Height{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "X", this.X);
this.SetParamSimple(map, prefix + "Y", this.Y);
this.SetParamSimple(map, prefix + "Width", this.Width);
this.SetParamSimple(map, prefix + "Height", this.Height);
}
}
}

View File

@@ -0,0 +1,99 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class FaceShape : AbstractModel
{
/// <summary>
/// 描述脸型轮廓的 21 点。
/// </summary>
[JsonProperty("FaceProfile")]
public Point[] FaceProfile{ get; set; }
/// <summary>
/// 描述左侧眼睛轮廓的 8 点。
/// </summary>
[JsonProperty("LeftEye")]
public Point[] LeftEye{ get; set; }
/// <summary>
/// 描述右侧眼睛轮廓的 8 点。
/// </summary>
[JsonProperty("RightEye")]
public Point[] RightEye{ get; set; }
/// <summary>
/// 描述左侧眉毛轮廓的 8 点。
/// </summary>
[JsonProperty("LeftEyeBrow")]
public Point[] LeftEyeBrow{ get; set; }
/// <summary>
/// 描述右侧眉毛轮廓的 8 点。
/// </summary>
[JsonProperty("RightEyeBrow")]
public Point[] RightEyeBrow{ get; set; }
/// <summary>
/// 描述嘴巴轮廓的 22 点。
/// </summary>
[JsonProperty("Mouth")]
public Point[] Mouth{ get; set; }
/// <summary>
/// 描述鼻子轮廓的 13 点。
/// </summary>
[JsonProperty("Nose")]
public Point[] Nose{ get; set; }
/// <summary>
/// 左瞳孔轮廓的 1 个点。
/// </summary>
[JsonProperty("LeftPupil")]
public Point[] LeftPupil{ get; set; }
/// <summary>
/// 右瞳孔轮廓的 1 个点。
/// </summary>
[JsonProperty("RightPupil")]
public Point[] RightPupil{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArrayObj(map, prefix + "FaceProfile.", this.FaceProfile);
this.SetParamArrayObj(map, prefix + "LeftEye.", this.LeftEye);
this.SetParamArrayObj(map, prefix + "RightEye.", this.RightEye);
this.SetParamArrayObj(map, prefix + "LeftEyeBrow.", this.LeftEyeBrow);
this.SetParamArrayObj(map, prefix + "RightEyeBrow.", this.RightEyeBrow);
this.SetParamArrayObj(map, prefix + "Mouth.", this.Mouth);
this.SetParamArrayObj(map, prefix + "Nose.", this.Nose);
this.SetParamArrayObj(map, prefix + "LeftPupil.", this.LeftPupil);
this.SetParamArrayObj(map, prefix + "RightPupil.", this.RightPupil);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class GetCheckSimilarPersonJobIdListRequest : AbstractModel
{
/// <summary>
/// 起始序号默认值为0。
/// </summary>
[JsonProperty("Offset")]
public ulong? Offset{ get; set; }
/// <summary>
/// 返回数量默认值为10最大值为1000。
/// </summary>
[JsonProperty("Limit")]
public ulong? Limit{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
}
}
}

View File

@@ -0,0 +1,57 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class GetCheckSimilarPersonJobIdListResponse : AbstractModel
{
/// <summary>
/// 人员查重任务信息列表。
/// </summary>
[JsonProperty("JobIdInfos")]
public JobIdInfo[] JobIdInfos{ get; set; }
/// <summary>
/// 查重任务总数量。
/// </summary>
[JsonProperty("JobIdNum")]
public ulong? JobIdNum{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArrayObj(map, prefix + "JobIdInfos.", this.JobIdInfos);
this.SetParamSimple(map, prefix + "JobIdNum", this.JobIdNum);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class GetGroupInfoRequest : AbstractModel
{
/// <summary>
/// 人员库 ID。
/// </summary>
[JsonProperty("GroupId")]
public string GroupId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "GroupId", this.GroupId);
}
}
}

View File

@@ -0,0 +1,85 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class GetGroupInfoResponse : AbstractModel
{
/// <summary>
/// 人员库名称
/// </summary>
[JsonProperty("GroupName")]
public string GroupName{ get; set; }
/// <summary>
/// 人员库ID
/// </summary>
[JsonProperty("GroupId")]
public string GroupId{ get; set; }
/// <summary>
/// 人员库自定义描述字段
/// </summary>
[JsonProperty("GroupExDescriptions")]
public string[] GroupExDescriptions{ get; set; }
/// <summary>
/// 人员库信息备注
/// </summary>
[JsonProperty("Tag")]
public string Tag{ get; set; }
/// <summary>
/// 人脸识别所用的算法模型版本。
/// </summary>
[JsonProperty("FaceModelVersion")]
public string FaceModelVersion{ get; set; }
/// <summary>
/// Group的创建时间和日期 CreationTimestamp。CreationTimestamp 的值是自 Unix 纪元时间到Group创建时间的毫秒数。
/// </summary>
[JsonProperty("CreationTimestamp")]
public ulong? CreationTimestamp{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "GroupName", this.GroupName);
this.SetParamSimple(map, prefix + "GroupId", this.GroupId);
this.SetParamArraySimple(map, prefix + "GroupExDescriptions.", this.GroupExDescriptions);
this.SetParamSimple(map, prefix + "Tag", this.Tag);
this.SetParamSimple(map, prefix + "FaceModelVersion", this.FaceModelVersion);
this.SetParamSimple(map, prefix + "CreationTimestamp", this.CreationTimestamp);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class GetGroupListRequest : AbstractModel
{
/// <summary>
/// 起始序号默认值为0
/// </summary>
[JsonProperty("Offset")]
public ulong? Offset{ get; set; }
/// <summary>
/// 返回数量默认值为10最大值为1000
/// </summary>
[JsonProperty("Limit")]
public ulong? Limit{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
}
}
}

View File

@@ -0,0 +1,58 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class GetGroupListResponse : AbstractModel
{
/// <summary>
/// 返回的人员库信息
/// </summary>
[JsonProperty("GroupInfos")]
public GroupInfo[] GroupInfos{ get; set; }
/// <summary>
/// 人员库总数量
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("GroupNum")]
public ulong? GroupNum{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArrayObj(map, prefix + "GroupInfos.", this.GroupInfos);
this.SetParamSimple(map, prefix + "GroupNum", this.GroupNum);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class GetPersonBaseInfoRequest : AbstractModel
{
/// <summary>
/// 人员ID
/// </summary>
[JsonProperty("PersonId")]
public string PersonId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "PersonId", this.PersonId);
}
}
}

View File

@@ -0,0 +1,64 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class GetPersonBaseInfoResponse : AbstractModel
{
/// <summary>
/// 人员名称
/// </summary>
[JsonProperty("PersonName")]
public string PersonName{ get; set; }
/// <summary>
/// 人员性别
/// </summary>
[JsonProperty("Gender")]
public long? Gender{ get; set; }
/// <summary>
/// 包含的人脸 ID 列表
/// </summary>
[JsonProperty("FaceIds")]
public string[] FaceIds{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "PersonName", this.PersonName);
this.SetParamSimple(map, prefix + "Gender", this.Gender);
this.SetParamArraySimple(map, prefix + "FaceIds.", this.FaceIds);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,57 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class GetPersonGroupInfoRequest : AbstractModel
{
/// <summary>
/// 人员ID
/// </summary>
[JsonProperty("PersonId")]
public string PersonId{ get; set; }
/// <summary>
/// 起始序号默认值为0
/// </summary>
[JsonProperty("Offset")]
public ulong? Offset{ get; set; }
/// <summary>
/// 返回数量默认值为10最大值为100
/// </summary>
[JsonProperty("Limit")]
public ulong? Limit{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "PersonId", this.PersonId);
this.SetParamSimple(map, prefix + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
}
}
}

View File

@@ -0,0 +1,66 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class GetPersonGroupInfoResponse : AbstractModel
{
/// <summary>
/// 包含此人员的人员库及描述字段内容列表
/// </summary>
[JsonProperty("PersonGroupInfos")]
public PersonGroupInfo[] PersonGroupInfos{ get; set; }
/// <summary>
/// 人员库总数量
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("GroupNum")]
public ulong? GroupNum{ get; set; }
/// <summary>
/// 人脸识别服务所用的算法模型版本。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("FaceModelVersion")]
public string FaceModelVersion{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArrayObj(map, prefix + "PersonGroupInfos.", this.PersonGroupInfos);
this.SetParamSimple(map, prefix + "GroupNum", this.GroupNum);
this.SetParamSimple(map, prefix + "FaceModelVersion", this.FaceModelVersion);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class GetPersonListNumRequest : AbstractModel
{
/// <summary>
/// 人员库ID
/// </summary>
[JsonProperty("GroupId")]
public string GroupId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "GroupId", this.GroupId);
}
}
}

View File

@@ -0,0 +1,57 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class GetPersonListNumResponse : AbstractModel
{
/// <summary>
/// 人员数量
/// </summary>
[JsonProperty("PersonNum")]
public ulong? PersonNum{ get; set; }
/// <summary>
/// 人脸数量
/// </summary>
[JsonProperty("FaceNum")]
public ulong? FaceNum{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "PersonNum", this.PersonNum);
this.SetParamSimple(map, prefix + "FaceNum", this.FaceNum);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,57 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class GetPersonListRequest : AbstractModel
{
/// <summary>
/// 人员库ID
/// </summary>
[JsonProperty("GroupId")]
public string GroupId{ get; set; }
/// <summary>
/// 起始序号默认值为0
/// </summary>
[JsonProperty("Offset")]
public ulong? Offset{ get; set; }
/// <summary>
/// 返回数量默认值为10最大值为1000
/// </summary>
[JsonProperty("Limit")]
public ulong? Limit{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "GroupId", this.GroupId);
this.SetParamSimple(map, prefix + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
}
}
}

View File

@@ -0,0 +1,74 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class GetPersonListResponse : AbstractModel
{
/// <summary>
/// 返回的人员信息
/// </summary>
[JsonProperty("PersonInfos")]
public PersonInfo[] PersonInfos{ get; set; }
/// <summary>
/// 该人员库的人员数量
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("PersonNum")]
public ulong? PersonNum{ get; set; }
/// <summary>
/// 该人员库的人脸数量
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("FaceNum")]
public ulong? FaceNum{ get; set; }
/// <summary>
/// 人脸识别所用的算法模型版本。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("FaceModelVersion")]
public string FaceModelVersion{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArrayObj(map, prefix + "PersonInfos.", this.PersonInfos);
this.SetParamSimple(map, prefix + "PersonNum", this.PersonNum);
this.SetParamSimple(map, prefix + "FaceNum", this.FaceNum);
this.SetParamSimple(map, prefix + "FaceModelVersion", this.FaceModelVersion);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class GetSimilarPersonResultRequest : AbstractModel
{
/// <summary>
/// 查重任务ID用于查询、获取查重的进度和结果。
/// </summary>
[JsonProperty("JobId")]
public string JobId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "JobId", this.JobId);
}
}
}

View File

@@ -0,0 +1,58 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class GetSimilarPersonResultResponse : AbstractModel
{
/// <summary>
/// 查重任务完成进度。取值[0.0100.0]。当且仅当值为100时SimilarPersons才有意义。
/// </summary>
[JsonProperty("Progress")]
public float? Progress{ get; set; }
/// <summary>
/// 疑似同一人的人员信息文件临时下载链接, 有效时间为5分钟结果文件实际保存90天。
/// 文件内容由 SimilarPerson 的数组组成。
/// </summary>
[JsonProperty("SimilarPersonsUrl")]
public string SimilarPersonsUrl{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Progress", this.Progress);
this.SetParamSimple(map, prefix + "SimilarPersonsUrl", this.SimilarPersonsUrl);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class GroupCandidate : AbstractModel
{
/// <summary>
/// 人员库ID 。
/// </summary>
[JsonProperty("GroupId")]
public string GroupId{ get; set; }
/// <summary>
/// 识别出的最相似候选人。
/// </summary>
[JsonProperty("Candidates")]
public Candidate[] Candidates{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "GroupId", this.GroupId);
this.SetParamArrayObj(map, prefix + "Candidates.", this.Candidates);
}
}
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class GroupExDescriptionInfo : AbstractModel
{
/// <summary>
/// 人员库自定义描述字段Index从0开始
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("GroupExDescriptionIndex")]
public ulong? GroupExDescriptionIndex{ get; set; }
/// <summary>
/// 需要更新的人员库自定义描述字段内容
/// </summary>
[JsonProperty("GroupExDescription")]
public string GroupExDescription{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "GroupExDescriptionIndex", this.GroupExDescriptionIndex);
this.SetParamSimple(map, prefix + "GroupExDescription", this.GroupExDescription);
}
}
}

View File

@@ -0,0 +1,83 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class GroupInfo : AbstractModel
{
/// <summary>
/// 人员库名称
/// </summary>
[JsonProperty("GroupName")]
public string GroupName{ get; set; }
/// <summary>
/// 人员库ID
/// </summary>
[JsonProperty("GroupId")]
public string GroupId{ get; set; }
/// <summary>
/// 人员库自定义描述字段
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("GroupExDescriptions")]
public string[] GroupExDescriptions{ get; set; }
/// <summary>
/// 人员库信息备注
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Tag")]
public string Tag{ get; set; }
/// <summary>
/// 人脸识别所用的算法模型版本。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("FaceModelVersion")]
public string FaceModelVersion{ get; set; }
/// <summary>
/// Group的创建时间和日期 CreationTimestamp。CreationTimestamp 的值是自 Unix 纪元时间到Group创建时间的毫秒数。
/// Unix 纪元时间是 1970 年 1 月 1 日星期四,协调世界时 (UTC) 00:00:00。有关更多信息请参阅 Unix 时间。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("CreationTimestamp")]
public ulong? CreationTimestamp{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "GroupName", this.GroupName);
this.SetParamSimple(map, prefix + "GroupId", this.GroupId);
this.SetParamArraySimple(map, prefix + "GroupExDescriptions.", this.GroupExDescriptions);
this.SetParamSimple(map, prefix + "Tag", this.Tag);
this.SetParamSimple(map, prefix + "FaceModelVersion", this.FaceModelVersion);
this.SetParamSimple(map, prefix + "CreationTimestamp", this.CreationTimestamp);
}
}
}

View File

@@ -0,0 +1,60 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class JobIdInfo : AbstractModel
{
/// <summary>
/// 查重任务ID用于查询、获取查重的进度和结果。
/// </summary>
[JsonProperty("JobId")]
public string JobId{ get; set; }
/// <summary>
/// 查重起始时间。
/// StartTime的值是自 Unix 纪元时间到Group创建时间的毫秒数。
/// Unix 纪元时间是 1970 年 1 月 1 日星期四,协调世界时 (UTC) 00:00:00。
/// 有关更多信息,请参阅 Unix 时间。
/// </summary>
[JsonProperty("StartTime")]
public ulong? StartTime{ get; set; }
/// <summary>
/// 查重任务是否已完成。0: 成功 1: 未完成 2: 失败
/// </summary>
[JsonProperty("JobStatus")]
public long? JobStatus{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "JobId", this.JobId);
this.SetParamSimple(map, prefix + "StartTime", this.StartTime);
this.SetParamSimple(map, prefix + "JobStatus", this.JobStatus);
}
}
}

View File

@@ -0,0 +1,64 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifyGroupRequest : AbstractModel
{
/// <summary>
/// 人员库ID
/// </summary>
[JsonProperty("GroupId")]
public string GroupId{ get; set; }
/// <summary>
/// 人员库名称
/// </summary>
[JsonProperty("GroupName")]
public string GroupName{ get; set; }
/// <summary>
/// 需要修改的人员库自定义描述字段key-value
/// </summary>
[JsonProperty("GroupExDescriptionInfos")]
public GroupExDescriptionInfo[] GroupExDescriptionInfos{ get; set; }
/// <summary>
/// 人员库信息备注
/// </summary>
[JsonProperty("Tag")]
public string Tag{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "GroupId", this.GroupId);
this.SetParamSimple(map, prefix + "GroupName", this.GroupName);
this.SetParamArrayObj(map, prefix + "GroupExDescriptionInfos.", this.GroupExDescriptionInfos);
this.SetParamSimple(map, prefix + "Tag", this.Tag);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifyGroupResponse : AbstractModel
{
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,57 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifyPersonBaseInfoRequest : AbstractModel
{
/// <summary>
/// 人员ID
/// </summary>
[JsonProperty("PersonId")]
public string PersonId{ get; set; }
/// <summary>
/// 需要修改的人员名称
/// </summary>
[JsonProperty("PersonName")]
public string PersonName{ get; set; }
/// <summary>
/// 需要修改的人员性别
/// </summary>
[JsonProperty("Gender")]
public long? Gender{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "PersonId", this.PersonId);
this.SetParamSimple(map, prefix + "PersonName", this.PersonName);
this.SetParamSimple(map, prefix + "Gender", this.Gender);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifyPersonBaseInfoResponse : AbstractModel
{
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,57 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifyPersonGroupInfoRequest : AbstractModel
{
/// <summary>
/// 人员库ID
/// </summary>
[JsonProperty("GroupId")]
public string GroupId{ get; set; }
/// <summary>
/// 人员ID
/// </summary>
[JsonProperty("PersonId")]
public string PersonId{ get; set; }
/// <summary>
/// 需要修改的人员描述字段内容key-value
/// </summary>
[JsonProperty("PersonExDescriptionInfos")]
public PersonExDescriptionInfo[] PersonExDescriptionInfos{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "GroupId", this.GroupId);
this.SetParamSimple(map, prefix + "PersonId", this.PersonId);
this.SetParamArrayObj(map, prefix + "PersonExDescriptionInfos.", this.PersonExDescriptionInfos);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifyPersonGroupInfoResponse : AbstractModel
{
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class PersonExDescriptionInfo : AbstractModel
{
/// <summary>
/// 人员描述字段Index从0开始
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("PersonExDescriptionIndex")]
public ulong? PersonExDescriptionIndex{ get; set; }
/// <summary>
/// 需要更新的人员描述字段内容
/// </summary>
[JsonProperty("PersonExDescription")]
public string PersonExDescription{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "PersonExDescriptionIndex", this.PersonExDescriptionIndex);
this.SetParamSimple(map, prefix + "PersonExDescription", this.PersonExDescription);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class PersonGroupInfo : AbstractModel
{
/// <summary>
/// 包含此人员的人员库ID
/// </summary>
[JsonProperty("GroupId")]
public string GroupId{ get; set; }
/// <summary>
/// 人员描述字段内容
/// </summary>
[JsonProperty("PersonExDescriptions")]
public string[] PersonExDescriptions{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "GroupId", this.GroupId);
this.SetParamArraySimple(map, prefix + "PersonExDescriptions.", this.PersonExDescriptions);
}
}
}

View File

@@ -0,0 +1,79 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class PersonInfo : AbstractModel
{
/// <summary>
/// 人员名称
/// </summary>
[JsonProperty("PersonName")]
public string PersonName{ get; set; }
/// <summary>
/// 人员Id
/// </summary>
[JsonProperty("PersonId")]
public string PersonId{ get; set; }
/// <summary>
/// 人员性别
/// </summary>
[JsonProperty("Gender")]
public long? Gender{ get; set; }
/// <summary>
/// 人员描述字段内容
/// </summary>
[JsonProperty("PersonExDescriptions")]
public string[] PersonExDescriptions{ get; set; }
/// <summary>
/// 包含的人脸照片列表
/// </summary>
[JsonProperty("FaceIds")]
public string[] FaceIds{ get; set; }
/// <summary>
/// 人员的创建时间和日期 CreationTimestamp。CreationTimestamp 的值是自 Unix 纪元时间到Group创建时间的毫秒数。
/// Unix 纪元时间是 1970 年 1 月 1 日星期四,协调世界时 (UTC) 00:00:00。有关更多信息请参阅 Unix 时间。
/// </summary>
[JsonProperty("CreationTimestamp")]
public ulong? CreationTimestamp{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "PersonName", this.PersonName);
this.SetParamSimple(map, prefix + "PersonId", this.PersonId);
this.SetParamSimple(map, prefix + "Gender", this.Gender);
this.SetParamArraySimple(map, prefix + "PersonExDescriptions.", this.PersonExDescriptions);
this.SetParamArraySimple(map, prefix + "FaceIds.", this.FaceIds);
this.SetParamSimple(map, prefix + "CreationTimestamp", this.CreationTimestamp);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Point : AbstractModel
{
/// <summary>
/// x坐标
/// </summary>
[JsonProperty("X")]
public long? X{ get; set; }
/// <summary>
/// Y坐标
/// </summary>
[JsonProperty("Y")]
public long? Y{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "X", this.X);
this.SetParamSimple(map, prefix + "Y", this.Y);
}
}
}

View File

@@ -0,0 +1,58 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Result : AbstractModel
{
/// <summary>
/// 识别出的最相似候选人
/// </summary>
[JsonProperty("Candidates")]
public Candidate[] Candidates{ get; set; }
/// <summary>
/// 检测出的人脸框位置
/// </summary>
[JsonProperty("FaceRect")]
public FaceRect FaceRect{ get; set; }
/// <summary>
/// 检测出的人脸图片状态返回码。0 表示正常。
/// -1601代表不符合图片质量控制要求此时Candidate内容为空。
/// </summary>
[JsonProperty("RetCode")]
public long? RetCode{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArrayObj(map, prefix + "Candidates.", this.Candidates);
this.SetParamObj(map, prefix + "FaceRect.", this.FaceRect);
this.SetParamSimple(map, prefix + "RetCode", this.RetCode);
}
}
}

View File

@@ -0,0 +1,58 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ResultsReturnsByGroup : AbstractModel
{
/// <summary>
/// 检测出的人脸框位置。
/// </summary>
[JsonProperty("FaceRect")]
public FaceRect FaceRect{ get; set; }
/// <summary>
/// 识别结果。
/// </summary>
[JsonProperty("GroupCandidates")]
public GroupCandidate[] GroupCandidates{ get; set; }
/// <summary>
/// 检测出的人脸图片状态返回码。0 表示正常。
/// -1601代表不符合图片质量控制要求此时Candidate内容为空。
/// </summary>
[JsonProperty("RetCode")]
public long? RetCode{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamObj(map, prefix + "FaceRect.", this.FaceRect);
this.SetParamArrayObj(map, prefix + "GroupCandidates.", this.GroupCandidates);
this.SetParamSimple(map, prefix + "RetCode", this.RetCode);
}
}
}

View File

@@ -0,0 +1,122 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class SearchFacesRequest : AbstractModel
{
/// <summary>
/// 希望搜索的人员库列表上限100个。
/// </summary>
[JsonProperty("GroupIds")]
public string[] GroupIds{ get; set; }
/// <summary>
/// 图片 base64 数据base64 编码后大小不可超过5M。
/// 支持PNG、JPG、JPEG、BMP不支持 GIF 图片。
/// </summary>
[JsonProperty("Image")]
public string Image{ get; set; }
/// <summary>
/// 图片的 Url 。对应图片 base64 编码后大小不可超过5M。
/// Url、Image必须提供一个如果都提供只使用 Url。
/// 图片存储于腾讯云的Url可保障更高下载速度和稳定性建议图片存储于腾讯云。
/// 非腾讯云存储的Url速度和稳定性可能受一定影响。
/// 支持PNG、JPG、JPEG、BMP不支持 GIF 图片。
/// </summary>
[JsonProperty("Url")]
public string Url{ get; set; }
/// <summary>
/// 最多识别的人脸数目。默认值为1仅检测图片中面积最大的那张人脸最大值为10。
/// MaxFaceNum用于当输入的待识别图片包含多张人脸时设定要搜索的人脸的数量。
/// 例输入的Image或Url中的图片包含多张人脸设MaxFaceNum=5则会识别图片中面积最大的5张人脸。
/// </summary>
[JsonProperty("MaxFaceNum")]
public ulong? MaxFaceNum{ get; set; }
/// <summary>
/// 人脸长和宽的最小尺寸单位为像素。默认为34。低于34的人脸图片无法被识别。建议设置为80。
/// </summary>
[JsonProperty("MinFaceSize")]
public ulong? MinFaceSize{ get; set; }
/// <summary>
/// 单张被识别的人脸返回的最相似人员数量。默认值为5最大值为100。
/// 例设MaxFaceNum为1MaxPersonNum为8则返回Top8相似的人员信息。
/// 值越大需要处理的时间越长。建议不要超过10。
/// </summary>
[JsonProperty("MaxPersonNum")]
public ulong? MaxPersonNum{ get; set; }
/// <summary>
/// 是否返回人员具体信息。0 为关闭1 为开启。默认为 0。其他非0非1值默认为0
/// </summary>
[JsonProperty("NeedPersonInfo")]
public long? NeedPersonInfo{ get; set; }
/// <summary>
/// 图片质量控制。
/// 0: 不进行控制;
/// 1:较低的质量要求,图像存在非常模糊,眼睛鼻子嘴巴遮挡至少其中一种或多种的情况;
/// 2: 一般的质量要求,图像存在偏亮,偏暗,模糊或一般模糊,眉毛遮挡,脸颊遮挡,下巴遮挡,至少其中三种的情况;
/// 3: 较高的质量要求,图像存在偏亮,偏暗,一般模糊,眉毛遮挡,脸颊遮挡,下巴遮挡,其中一到两种的情况;
/// 4: 很高的质量要求,各个维度均为最好或最多在某一维度上存在轻微问题;
/// 默认 0。
/// 若图片质量不满足要求,则返回结果中会提示图片质量检测不符要求。
/// </summary>
[JsonProperty("QualityControl")]
public ulong? QualityControl{ get; set; }
/// <summary>
/// 出参Score中只有超过FaceMatchThreshold值的结果才会返回。默认为0。
/// </summary>
[JsonProperty("FaceMatchThreshold")]
public float? FaceMatchThreshold{ get; set; }
/// <summary>
/// 是否开启图片旋转识别支持。0为不开启1为开启。默认为0。本参数的作用为当图片中的人脸被旋转且图片没有exif信息时如果不开启图片旋转识别支持则无法正确检测、识别图片中的人脸。若您确认图片包含exif信息或者您确认输入图中人脸不会出现被旋转情况请不要开启本参数。开启后整体耗时将可能增加数百毫秒。
/// </summary>
[JsonProperty("NeedRotateDetection")]
public ulong? NeedRotateDetection{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "GroupIds.", this.GroupIds);
this.SetParamSimple(map, prefix + "Image", this.Image);
this.SetParamSimple(map, prefix + "Url", this.Url);
this.SetParamSimple(map, prefix + "MaxFaceNum", this.MaxFaceNum);
this.SetParamSimple(map, prefix + "MinFaceSize", this.MinFaceSize);
this.SetParamSimple(map, prefix + "MaxPersonNum", this.MaxPersonNum);
this.SetParamSimple(map, prefix + "NeedPersonInfo", this.NeedPersonInfo);
this.SetParamSimple(map, prefix + "QualityControl", this.QualityControl);
this.SetParamSimple(map, prefix + "FaceMatchThreshold", this.FaceMatchThreshold);
this.SetParamSimple(map, prefix + "NeedRotateDetection", this.NeedRotateDetection);
}
}
}

View File

@@ -0,0 +1,64 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class SearchFacesResponse : AbstractModel
{
/// <summary>
/// 识别结果。
/// </summary>
[JsonProperty("Results")]
public Result[] Results{ get; set; }
/// <summary>
/// 搜索的人员库中包含的人脸数。
/// </summary>
[JsonProperty("FaceNum")]
public ulong? FaceNum{ get; set; }
/// <summary>
/// 人脸识别所用的算法模型版本。
/// </summary>
[JsonProperty("FaceModelVersion")]
public string FaceModelVersion{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArrayObj(map, prefix + "Results.", this.Results);
this.SetParamSimple(map, prefix + "FaceNum", this.FaceNum);
this.SetParamSimple(map, prefix + "FaceModelVersion", this.FaceModelVersion);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,123 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class SearchFacesReturnsByGroupRequest : AbstractModel
{
/// <summary>
/// 希望搜索的人员库列表上限60个。
/// </summary>
[JsonProperty("GroupIds")]
public string[] GroupIds{ get; set; }
/// <summary>
/// 图片 base64 数据base64 编码后大小不可超过5M。
/// 支持PNG、JPG、JPEG、BMP不支持 GIF 图片。
/// </summary>
[JsonProperty("Image")]
public string Image{ get; set; }
/// <summary>
/// 图片的 Url 。对应图片 base64 编码后大小不可超过5M。
/// Url、Image必须提供一个如果都提供只使用 Url。
/// 图片存储于腾讯云的Url可保障更高下载速度和稳定性建议图片存储于腾讯云。
/// 非腾讯云存储的Url速度和稳定性可能受一定影响。
/// 支持PNG、JPG、JPEG、BMP不支持 GIF 图片。
/// </summary>
[JsonProperty("Url")]
public string Url{ get; set; }
/// <summary>
/// 最多识别的人脸数目。默认值为1仅检测图片中面积最大的那张人脸最大值为10。
/// MaxFaceNum用于当输入的待识别图片包含多张人脸时设定要搜索的人脸的数量。
/// 例输入的Image或Url中的图片包含多张人脸设MaxFaceNum=5则会识别图片中面积最大的5张人脸。
/// </summary>
[JsonProperty("MaxFaceNum")]
public ulong? MaxFaceNum{ get; set; }
/// <summary>
/// 人脸长和宽的最小尺寸单位为像素。默认为34。低于34将影响搜索精度。建议设置为80。
/// </summary>
[JsonProperty("MinFaceSize")]
public ulong? MinFaceSize{ get; set; }
/// <summary>
/// 被检测到的人脸对应最多返回的最相似人员数目。默认值为5最大值为10。
/// 例设MaxFaceNum为3MaxPersonNum为5则最多可能返回3*5=15个人员。
/// </summary>
[JsonProperty("MaxPersonNumPerGroup")]
public ulong? MaxPersonNumPerGroup{ get; set; }
/// <summary>
/// 是否返回人员具体信息。0 为关闭1 为开启。默认为 0。其他非0非1值默认为0
/// </summary>
[JsonProperty("NeedPersonInfo")]
public long? NeedPersonInfo{ get; set; }
/// <summary>
/// 图片质量控制。
/// 0: 不进行控制;
/// 1:较低的质量要求,图像存在非常模糊,眼睛鼻子嘴巴遮挡至少其中一种或多种的情况;
/// 2: 一般的质量要求,图像存在偏亮,偏暗,模糊或一般模糊,眉毛遮挡,脸颊遮挡,下巴遮挡,至少其中三种的情况;
/// 3: 较高的质量要求,图像存在偏亮,偏暗,一般模糊,眉毛遮挡,脸颊遮挡,下巴遮挡,其中一到两种的情况;
/// 4: 很高的质量要求,各个维度均为最好或最多在某一维度上存在轻微问题;
/// 默认 0。
/// 若图片质量不满足要求,则返回结果中会提示图片质量检测不符要求。
/// </summary>
[JsonProperty("QualityControl")]
public ulong? QualityControl{ get; set; }
/// <summary>
/// 出参Score中只有大于等于FaceMatchThreshold值的结果才会返回。
/// 默认为0。
/// 取值范围[0.0,100.0) 。
/// </summary>
[JsonProperty("FaceMatchThreshold")]
public float? FaceMatchThreshold{ get; set; }
/// <summary>
/// 是否开启图片旋转识别支持。0为不开启1为开启。默认为0。本参数的作用为当图片中的人脸被旋转且图片没有exif信息时如果不开启图片旋转识别支持则无法正确检测、识别图片中的人脸。若您确认图片包含exif信息或者您确认输入图中人脸不会出现被旋转情况请不要开启本参数。开启后整体耗时将可能增加数百毫秒。
/// </summary>
[JsonProperty("NeedRotateDetection")]
public ulong? NeedRotateDetection{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "GroupIds.", this.GroupIds);
this.SetParamSimple(map, prefix + "Image", this.Image);
this.SetParamSimple(map, prefix + "Url", this.Url);
this.SetParamSimple(map, prefix + "MaxFaceNum", this.MaxFaceNum);
this.SetParamSimple(map, prefix + "MinFaceSize", this.MinFaceSize);
this.SetParamSimple(map, prefix + "MaxPersonNumPerGroup", this.MaxPersonNumPerGroup);
this.SetParamSimple(map, prefix + "NeedPersonInfo", this.NeedPersonInfo);
this.SetParamSimple(map, prefix + "QualityControl", this.QualityControl);
this.SetParamSimple(map, prefix + "FaceMatchThreshold", this.FaceMatchThreshold);
this.SetParamSimple(map, prefix + "NeedRotateDetection", this.NeedRotateDetection);
}
}
}

View File

@@ -0,0 +1,64 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class SearchFacesReturnsByGroupResponse : AbstractModel
{
/// <summary>
/// 搜索的人员库中包含的人脸数。
/// </summary>
[JsonProperty("FaceNum")]
public ulong? FaceNum{ get; set; }
/// <summary>
/// 识别结果。
/// </summary>
[JsonProperty("ResultsReturnsByGroup")]
public ResultsReturnsByGroup[] ResultsReturnsByGroup{ get; set; }
/// <summary>
/// 人脸识别所用的算法模型版本。
/// </summary>
[JsonProperty("FaceModelVersion")]
public string FaceModelVersion{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "FaceNum", this.FaceNum);
this.SetParamArrayObj(map, prefix + "ResultsReturnsByGroup.", this.ResultsReturnsByGroup);
this.SetParamSimple(map, prefix + "FaceModelVersion", this.FaceModelVersion);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,123 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class SearchPersonsRequest : AbstractModel
{
/// <summary>
/// 希望搜索的人员库列表上限100个。
/// </summary>
[JsonProperty("GroupIds")]
public string[] GroupIds{ get; set; }
/// <summary>
/// 图片 base64 数据base64 编码后大小不可超过5M。
/// 若图片中包含多张人脸,只选取其中人脸面积最大的人脸。
/// 支持PNG、JPG、JPEG、BMP不支持 GIF 图片。
/// </summary>
[JsonProperty("Image")]
public string Image{ get; set; }
/// <summary>
/// 图片的 Url 。对应图片 base64 编码后大小不可超过5M。
/// Url、Image必须提供一个如果都提供只使用 Url。
/// 图片存储于腾讯云的Url可保障更高下载速度和稳定性建议图片存储于腾讯云。
/// 非腾讯云存储的Url速度和稳定性可能受一定影响。
/// 支持PNG、JPG、JPEG、BMP不支持 GIF 图片。
/// </summary>
[JsonProperty("Url")]
public string Url{ get; set; }
/// <summary>
/// 最多识别的人脸数目。默认值为1仅检测图片中面积最大的那张人脸最大值为10。
/// MaxFaceNum用于当输入的待识别图片包含多张人脸时设定要搜索的人脸的数量。
/// 例输入的Image或Url中的图片包含多张人脸设MaxFaceNum=5则会识别图片中面积最大的5张人脸。
/// </summary>
[JsonProperty("MaxFaceNum")]
public ulong? MaxFaceNum{ get; set; }
/// <summary>
/// 人脸长和宽的最小尺寸单位为像素。默认为34。低于34将影响搜索精度。建议设置为80。
/// </summary>
[JsonProperty("MinFaceSize")]
public ulong? MinFaceSize{ get; set; }
/// <summary>
/// 单张被识别的人脸返回的最相似人员数量。默认值为5最大值为100。
/// 例设MaxFaceNum为1MaxPersonNum为8则返回Top8相似的人员信息。
/// 值越大需要处理的时间越长。建议不要超过10。
/// </summary>
[JsonProperty("MaxPersonNum")]
public ulong? MaxPersonNum{ get; set; }
/// <summary>
/// 图片质量控制。
/// 0: 不进行控制;
/// 1:较低的质量要求,图像存在非常模糊,眼睛鼻子嘴巴遮挡至少其中一种或多种的情况;
/// 2: 一般的质量要求,图像存在偏亮,偏暗,模糊或一般模糊,眉毛遮挡,脸颊遮挡,下巴遮挡,至少其中三种的情况;
/// 3: 较高的质量要求,图像存在偏亮,偏暗,一般模糊,眉毛遮挡,脸颊遮挡,下巴遮挡,其中一到两种的情况;
/// 4: 很高的质量要求,各个维度均为最好或最多在某一维度上存在轻微问题;
/// 默认 0。
/// 若图片质量不满足要求,则返回结果中会提示图片质量检测不符要求。
/// </summary>
[JsonProperty("QualityControl")]
public ulong? QualityControl{ get; set; }
/// <summary>
/// 出参Score中只有大于等于FaceMatchThreshold值的结果才会返回。默认为0。取值范围[0.0,100.0) 。
/// </summary>
[JsonProperty("FaceMatchThreshold")]
public float? FaceMatchThreshold{ get; set; }
/// <summary>
/// 是否返回人员具体信息。0 为关闭1 为开启。默认为 0。其他非0非1值默认为0
/// </summary>
[JsonProperty("NeedPersonInfo")]
public long? NeedPersonInfo{ get; set; }
/// <summary>
/// 是否开启图片旋转识别支持。0为不开启1为开启。默认为0。本参数的作用为当图片中的人脸被旋转且图片没有exif信息时如果不开启图片旋转识别支持则无法正确检测、识别图片中的人脸。若您确认图片包含exif信息或者您确认输入图中人脸不会出现被旋转情况请不要开启本参数。开启后整体耗时将可能增加数百毫秒。
/// </summary>
[JsonProperty("NeedRotateDetection")]
public ulong? NeedRotateDetection{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "GroupIds.", this.GroupIds);
this.SetParamSimple(map, prefix + "Image", this.Image);
this.SetParamSimple(map, prefix + "Url", this.Url);
this.SetParamSimple(map, prefix + "MaxFaceNum", this.MaxFaceNum);
this.SetParamSimple(map, prefix + "MinFaceSize", this.MinFaceSize);
this.SetParamSimple(map, prefix + "MaxPersonNum", this.MaxPersonNum);
this.SetParamSimple(map, prefix + "QualityControl", this.QualityControl);
this.SetParamSimple(map, prefix + "FaceMatchThreshold", this.FaceMatchThreshold);
this.SetParamSimple(map, prefix + "NeedPersonInfo", this.NeedPersonInfo);
this.SetParamSimple(map, prefix + "NeedRotateDetection", this.NeedRotateDetection);
}
}
}

View File

@@ -0,0 +1,65 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class SearchPersonsResponse : AbstractModel
{
/// <summary>
/// 识别结果。
/// </summary>
[JsonProperty("Results")]
public Result[] Results{ get; set; }
/// <summary>
/// 搜索的人员库中包含的人员数。若输入图片中所有人脸均不符合质量要求则返回0。
/// </summary>
[JsonProperty("PersonNum")]
public ulong? PersonNum{ get; set; }
/// <summary>
/// 人脸识别所用的算法模型版本。
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("FaceModelVersion")]
public string FaceModelVersion{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArrayObj(map, prefix + "Results.", this.Results);
this.SetParamSimple(map, prefix + "PersonNum", this.PersonNum);
this.SetParamSimple(map, prefix + "FaceModelVersion", this.FaceModelVersion);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,121 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class SearchPersonsReturnsByGroupRequest : AbstractModel
{
/// <summary>
/// 希望搜索的人员库列表上限60个。
/// </summary>
[JsonProperty("GroupIds")]
public string[] GroupIds{ get; set; }
/// <summary>
/// 图片 base64 数据base64 编码后大小不可超过5M。
/// 支持PNG、JPG、JPEG、BMP不支持 GIF 图片。
/// </summary>
[JsonProperty("Image")]
public string Image{ get; set; }
/// <summary>
/// 图片的 Url 。对应图片 base64 编码后大小不可超过5M。
/// Url、Image必须提供一个如果都提供只使用 Url。
/// 图片存储于腾讯云的Url可保障更高下载速度和稳定性建议图片存储于腾讯云。
/// 非腾讯云存储的Url速度和稳定性可能受一定影响。
/// 支持PNG、JPG、JPEG、BMP不支持 GIF 图片。
/// </summary>
[JsonProperty("Url")]
public string Url{ get; set; }
/// <summary>
/// 最多识别的人脸数目。默认值为1仅检测图片中面积最大的那张人脸最大值为10。
/// MaxFaceNum用于当输入的待识别图片包含多张人脸时设定要搜索的人脸的数量。
/// 例输入的Image或Url中的图片包含多张人脸设MaxFaceNum=5则会识别图片中面积最大的5张人脸。
/// </summary>
[JsonProperty("MaxFaceNum")]
public ulong? MaxFaceNum{ get; set; }
/// <summary>
/// 人脸长和宽的最小尺寸单位为像素。默认为34。低于34将影响搜索精度。建议设置为80。
/// </summary>
[JsonProperty("MinFaceSize")]
public ulong? MinFaceSize{ get; set; }
/// <summary>
/// 被检测到的人脸对应最多返回的最相似人员数目。默认值为5最大值为10。
/// 例设MaxFaceNum为3MaxPersonNumPerGroup为5GroupIds长度为3则最多可能返回3*5*3=45个人员。
/// </summary>
[JsonProperty("MaxPersonNumPerGroup")]
public ulong? MaxPersonNumPerGroup{ get; set; }
/// <summary>
/// 图片质量控制。
/// 0: 不进行控制;
/// 1:较低的质量要求,图像存在非常模糊,眼睛鼻子嘴巴遮挡至少其中一种或多种的情况;
/// 2: 一般的质量要求,图像存在偏亮,偏暗,模糊或一般模糊,眉毛遮挡,脸颊遮挡,下巴遮挡,至少其中三种的情况;
/// 3: 较高的质量要求,图像存在偏亮,偏暗,一般模糊,眉毛遮挡,脸颊遮挡,下巴遮挡,其中一到两种的情况;
/// 4: 很高的质量要求,各个维度均为最好或最多在某一维度上存在轻微问题;
/// 默认 0。
/// 若图片质量不满足要求,则返回结果中会提示图片质量检测不符要求。
/// </summary>
[JsonProperty("QualityControl")]
public ulong? QualityControl{ get; set; }
/// <summary>
/// 出参Score中只有超过FaceMatchThreshold值的结果才会返回。默认为0。
/// </summary>
[JsonProperty("FaceMatchThreshold")]
public float? FaceMatchThreshold{ get; set; }
/// <summary>
/// 是否返回人员具体信息。0 为关闭1 为开启。默认为 0。其他非0非1值默认为0
/// </summary>
[JsonProperty("NeedPersonInfo")]
public long? NeedPersonInfo{ get; set; }
/// <summary>
/// 是否开启图片旋转识别支持。0为不开启1为开启。默认为0。本参数的作用为当图片中的人脸被旋转且图片没有exif信息时如果不开启图片旋转识别支持则无法正确检测、识别图片中的人脸。若您确认图片包含exif信息或者您确认输入图中人脸不会出现被旋转情况请不要开启本参数。开启后整体耗时将可能增加数百毫秒。
/// </summary>
[JsonProperty("NeedRotateDetection")]
public ulong? NeedRotateDetection{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "GroupIds.", this.GroupIds);
this.SetParamSimple(map, prefix + "Image", this.Image);
this.SetParamSimple(map, prefix + "Url", this.Url);
this.SetParamSimple(map, prefix + "MaxFaceNum", this.MaxFaceNum);
this.SetParamSimple(map, prefix + "MinFaceSize", this.MinFaceSize);
this.SetParamSimple(map, prefix + "MaxPersonNumPerGroup", this.MaxPersonNumPerGroup);
this.SetParamSimple(map, prefix + "QualityControl", this.QualityControl);
this.SetParamSimple(map, prefix + "FaceMatchThreshold", this.FaceMatchThreshold);
this.SetParamSimple(map, prefix + "NeedPersonInfo", this.NeedPersonInfo);
this.SetParamSimple(map, prefix + "NeedRotateDetection", this.NeedRotateDetection);
}
}
}

View File

@@ -0,0 +1,64 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class SearchPersonsReturnsByGroupResponse : AbstractModel
{
/// <summary>
/// 搜索的人员库中包含的人员数。若输入图片中所有人脸均不符合质量要求则返回0。
/// </summary>
[JsonProperty("PersonNum")]
public ulong? PersonNum{ get; set; }
/// <summary>
/// 识别结果。
/// </summary>
[JsonProperty("ResultsReturnsByGroup")]
public ResultsReturnsByGroup[] ResultsReturnsByGroup{ get; set; }
/// <summary>
/// 人脸识别所用的算法模型版本。
/// </summary>
[JsonProperty("FaceModelVersion")]
public string FaceModelVersion{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "PersonNum", this.PersonNum);
this.SetParamArrayObj(map, prefix + "ResultsReturnsByGroup.", this.ResultsReturnsByGroup);
this.SetParamSimple(map, prefix + "FaceModelVersion", this.FaceModelVersion);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,85 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class VerifyFaceRequest : AbstractModel
{
/// <summary>
/// 待验证的人员ID。人员ID具体信息请参考人员库管理相关接口。
/// </summary>
[JsonProperty("PersonId")]
public string PersonId{ get; set; }
/// <summary>
/// 图片 base64 数据base64 编码后大小不可超过5M。
/// 若图片中包含多张人脸,只选取其中人脸面积最大的人脸。
/// 支持PNG、JPG、JPEG、BMP不支持 GIF 图片。
/// </summary>
[JsonProperty("Image")]
public string Image{ get; set; }
/// <summary>
/// 图片的 Url 。对应图片 base64 编码后大小不可超过5M。
/// Url、Image必须提供一个如果都提供只使用 Url。
/// 图片存储于腾讯云的Url可保障更高下载速度和稳定性建议图片存储于腾讯云。
/// 非腾讯云存储的Url速度和稳定性可能受一定影响。
/// 若图片中包含多张人脸,只选取其中人脸面积最大的人脸。
/// 支持PNG、JPG、JPEG、BMP不支持 GIF 图片。
/// </summary>
[JsonProperty("Url")]
public string Url{ get; set; }
/// <summary>
/// 图片质量控制。
/// 0: 不进行控制;
/// 1:较低的质量要求,图像存在非常模糊,眼睛鼻子嘴巴遮挡至少其中一种或多种的情况;
/// 2: 一般的质量要求,图像存在偏亮,偏暗,模糊或一般模糊,眉毛遮挡,脸颊遮挡,下巴遮挡,至少其中三种的情况;
/// 3: 较高的质量要求,图像存在偏亮,偏暗,一般模糊,眉毛遮挡,脸颊遮挡,下巴遮挡,其中一到两种的情况;
/// 4: 很高的质量要求,各个维度均为最好或最多在某一维度上存在轻微问题;
/// 默认 0。
/// 若图片质量不满足要求,则返回结果中会提示图片质量检测不符要求。
/// </summary>
[JsonProperty("QualityControl")]
public ulong? QualityControl{ get; set; }
/// <summary>
/// 是否开启图片旋转识别支持。0为不开启1为开启。默认为0。本参数的作用为当图片中的人脸被旋转且图片没有exif信息时如果不开启图片旋转识别支持则无法正确检测、识别图片中的人脸。若您确认图片包含exif信息或者您确认输入图中人脸不会出现被旋转情况请不要开启本参数。开启后整体耗时将可能增加数百毫秒。
/// </summary>
[JsonProperty("NeedRotateDetection")]
public ulong? NeedRotateDetection{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "PersonId", this.PersonId);
this.SetParamSimple(map, prefix + "Image", this.Image);
this.SetParamSimple(map, prefix + "Url", this.Url);
this.SetParamSimple(map, prefix + "QualityControl", this.QualityControl);
this.SetParamSimple(map, prefix + "NeedRotateDetection", this.NeedRotateDetection);
}
}
}

View File

@@ -0,0 +1,68 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class VerifyFaceResponse : AbstractModel
{
/// <summary>
/// 给定的人脸图片与 PersonId 对应人脸的相似度。若 PersonId 下有多张人脸Face返回相似度最大的分数。
///
/// 不同算法版本返回的相似度分数不同。
/// 若需要验证两张图片中人脸是否为同一人3.0版本误识率千分之一对应分数为40分误识率万分之一对应分数为50分误识率十万分之一对应分数为60分。 一般超过50分则可认定为同一人。
/// 2.0版本误识率千分之一对应分数为70分误识率万分之一对应分数为80分误识率十万分之一对应分数为90分。 一般超过80分则可认定为同一人。
/// </summary>
[JsonProperty("Score")]
public float? Score{ get; set; }
/// <summary>
/// 是否为同一人的判断。
/// </summary>
[JsonProperty("IsMatch")]
public bool? IsMatch{ get; set; }
/// <summary>
/// 人脸识别所用的算法模型版本。
/// </summary>
[JsonProperty("FaceModelVersion")]
public string FaceModelVersion{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Score", this.Score);
this.SetParamSimple(map, prefix + "IsMatch", this.IsMatch);
this.SetParamSimple(map, prefix + "FaceModelVersion", this.FaceModelVersion);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class VerifyPersonRequest : AbstractModel
{
/// <summary>
/// 图片 base64 数据。
/// 若图片中包含多张人脸,只选取其中人脸面积最大的人脸。
/// 支持PNG、JPG、JPEG、BMP不支持 GIF 图片。
/// </summary>
[JsonProperty("Image")]
public string Image{ get; set; }
/// <summary>
/// 图片的 Url 。 图片的 Url、Image必须提供一个如果都提供只使用 Url。
/// 图片存储于腾讯云的Url可保障更高下载速度和稳定性建议图片存储于腾讯云。
/// 非腾讯云存储的Url速度和稳定性可能受一定影响。
/// 若图片中包含多张人脸,只选取其中人脸面积最大的人脸。
/// 支持PNG、JPG、JPEG、BMP不支持 GIF 图片。
/// </summary>
[JsonProperty("Url")]
public string Url{ get; set; }
/// <summary>
/// 待验证的人员ID。人员ID具体信息请参考人员库管理相关接口。
/// </summary>
[JsonProperty("PersonId")]
public string PersonId{ get; set; }
/// <summary>
/// 图片质量控制。
/// 0: 不进行控制;
/// 1:较低的质量要求,图像存在非常模糊,眼睛鼻子嘴巴遮挡至少其中一种或多种的情况;
/// 2: 一般的质量要求,图像存在偏亮,偏暗,模糊或一般模糊,眉毛遮挡,脸颊遮挡,下巴遮挡,至少其中三种的情况;
/// 3: 较高的质量要求,图像存在偏亮,偏暗,一般模糊,眉毛遮挡,脸颊遮挡,下巴遮挡,其中一到两种的情况;
/// 4: 很高的质量要求,各个维度均为最好或最多在某一维度上存在轻微问题;
/// 默认 0。
/// 若图片质量不满足要求,则返回结果中会提示图片质量检测不符要求。
/// </summary>
[JsonProperty("QualityControl")]
public ulong? QualityControl{ get; set; }
/// <summary>
/// 是否开启图片旋转识别支持。0为不开启1为开启。默认为0。本参数的作用为当图片中的人脸被旋转且图片没有exif信息时如果不开启图片旋转识别支持则无法正确检测、识别图片中的人脸。若您确认图片包含exif信息或者您确认输入图中人脸不会出现被旋转情况请不要开启本参数。开启后整体耗时将可能增加数百毫秒。
/// </summary>
[JsonProperty("NeedRotateDetection")]
public ulong? NeedRotateDetection{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Image", this.Image);
this.SetParamSimple(map, prefix + "Url", this.Url);
this.SetParamSimple(map, prefix + "PersonId", this.PersonId);
this.SetParamSimple(map, prefix + "QualityControl", this.QualityControl);
this.SetParamSimple(map, prefix + "NeedRotateDetection", this.NeedRotateDetection);
}
}
}

View File

@@ -0,0 +1,64 @@
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iai.V20180301.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class VerifyPersonResponse : AbstractModel
{
/// <summary>
/// 给定的人脸照片与 PersonId 对应的相似度。若 PersonId 下有多张人脸Face会融合多张人脸信息进行验证。
/// </summary>
[JsonProperty("Score")]
public float? Score{ get; set; }
/// <summary>
/// 是否为同一人的判断。
/// </summary>
[JsonProperty("IsMatch")]
public bool? IsMatch{ get; set; }
/// <summary>
/// 人脸识别所用的算法模型版本。
/// </summary>
[JsonProperty("FaceModelVersion")]
public string FaceModelVersion{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Score", this.Score);
this.SetParamSimple(map, prefix + "IsMatch", this.IsMatch);
this.SetParamSimple(map, prefix + "FaceModelVersion", this.FaceModelVersion);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}