Files
g.hnyhua.cn/TencentCloud/Iai/V20180301/Models/FaceInfo.cs
2026-02-07 15:48:27 +08:00

85 lines
3.4 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* 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);
}
}
}