/* * 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 { /// /// 性别[0~49]为女性,[50,100]为男性,越接近0和100表示置信度越高。NeedFaceAttributes 不为 1 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。 /// [JsonProperty("Gender")] public long? Gender{ get; set; } /// /// 年龄 [0~100]。NeedFaceAttributes 不为1 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。 /// [JsonProperty("Age")] public long? Age{ get; set; } /// /// 微笑[0(normal,正常)~50(smile,微笑)~100(laugh,大笑)]。NeedFaceAttributes 不为1 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。 /// [JsonProperty("Expression")] public long? Expression{ get; set; } /// /// 是否有眼镜 [true,false]。NeedFaceAttributes 不为1 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。 /// [JsonProperty("Glass")] public bool? Glass{ get; set; } /// /// 上下偏移[-30,30],单位角度。NeedFaceAttributes 不为1 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。 /// 建议:人脸入库选择[-10,10]的图片。 /// [JsonProperty("Pitch")] public long? Pitch{ get; set; } /// /// 左右偏移[-30,30],单位角度。 NeedFaceAttributes 不为1 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。 /// 建议:人脸入库选择[-10,10]的图片。 /// [JsonProperty("Yaw")] public long? Yaw{ get; set; } /// /// 平面旋转[-180,180],单位角度。 NeedFaceAttributes 不为1 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。 /// 建议:人脸入库选择[-20,20]的图片。 /// [JsonProperty("Roll")] public long? Roll{ get; set; } /// /// 魅力[0~100]。NeedFaceAttributes 不为1 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。 /// [JsonProperty("Beauty")] public long? Beauty{ get; set; } /// /// 是否有帽子 [true,false]。NeedFaceAttributes 不为1 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Hat")] public bool? Hat{ get; set; } /// /// 是否有口罩 [true,false]。NeedFaceAttributes 不为1 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Mask")] public bool? Mask{ get; set; } /// /// 头发信息,包含头发长度(length)、有无刘海(bang)、头发颜色(color)。NeedFaceAttributes 不为1 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("Hair")] public FaceHairAttributesInfo Hair{ get; set; } /// /// 双眼是否睁开 [true,false]。只要有超过一只眼睛闭眼,就返回false。 NeedFaceAttributes 不为1 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("EyeOpen")] public bool? EyeOpen{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary 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); } } }