com.tencentcloudapi.iai.v20180301.models.FaceInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-iai Show documentation
Show all versions of tencentcloud-sdk-java-iai Show documentation
Tencent Cloud Open API SDK for Java
/*
* Copyright (c) 2017-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.
*/
package com.tencentcloudapi.iai.v20180301.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class FaceInfo extends AbstractModel{
/**
* 人脸框左上角横坐标。
人脸框包含人脸五官位置并在此基础上进行一定的扩展,若人脸框超出图片范围,会导致坐标负值。
若需截取完整人脸,可以在完整分completess满足需求的情况下,将负值坐标取0。
*/
@SerializedName("X")
@Expose
private Long X;
/**
* 人脸框左上角纵坐标。
人脸框包含人脸五官位置并在此基础上进行一定的扩展,若人脸框超出图片范围,会导致坐标负值。
若需截取完整人脸,可以在完整分completess满足需求的情况下,将负值坐标取0。
*/
@SerializedName("Y")
@Expose
private Long Y;
/**
* 人脸框宽度。
*/
@SerializedName("Width")
@Expose
private Long Width;
/**
* 人脸框高度。
*/
@SerializedName("Height")
@Expose
private Long Height;
/**
* 人脸属性信息,包含性别( gender )、年龄( age )、表情( expression )、
魅力( beauty )、眼镜( glass )、口罩(mask)、头发(hair)和姿态 (pitch,roll,yaw )。只有当 NeedFaceAttributes 设为 1 时才返回有效信息。
*/
@SerializedName("FaceAttributesInfo")
@Expose
private FaceAttributesInfo FaceAttributesInfo;
/**
* 人脸质量信息,包含质量分(score)、模糊分(sharpness)、光照分(brightness)、遮挡分(completeness)。只有当NeedFaceDetection设为1时才返回有效信息。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("FaceQualityInfo")
@Expose
private FaceQualityInfo FaceQualityInfo;
/**
* Get 人脸框左上角横坐标。
人脸框包含人脸五官位置并在此基础上进行一定的扩展,若人脸框超出图片范围,会导致坐标负值。
若需截取完整人脸,可以在完整分completess满足需求的情况下,将负值坐标取0。
* @return X 人脸框左上角横坐标。
人脸框包含人脸五官位置并在此基础上进行一定的扩展,若人脸框超出图片范围,会导致坐标负值。
若需截取完整人脸,可以在完整分completess满足需求的情况下,将负值坐标取0。
*/
public Long getX() {
return this.X;
}
/**
* Set 人脸框左上角横坐标。
人脸框包含人脸五官位置并在此基础上进行一定的扩展,若人脸框超出图片范围,会导致坐标负值。
若需截取完整人脸,可以在完整分completess满足需求的情况下,将负值坐标取0。
* @param X 人脸框左上角横坐标。
人脸框包含人脸五官位置并在此基础上进行一定的扩展,若人脸框超出图片范围,会导致坐标负值。
若需截取完整人脸,可以在完整分completess满足需求的情况下,将负值坐标取0。
*/
public void setX(Long X) {
this.X = X;
}
/**
* Get 人脸框左上角纵坐标。
人脸框包含人脸五官位置并在此基础上进行一定的扩展,若人脸框超出图片范围,会导致坐标负值。
若需截取完整人脸,可以在完整分completess满足需求的情况下,将负值坐标取0。
* @return Y 人脸框左上角纵坐标。
人脸框包含人脸五官位置并在此基础上进行一定的扩展,若人脸框超出图片范围,会导致坐标负值。
若需截取完整人脸,可以在完整分completess满足需求的情况下,将负值坐标取0。
*/
public Long getY() {
return this.Y;
}
/**
* Set 人脸框左上角纵坐标。
人脸框包含人脸五官位置并在此基础上进行一定的扩展,若人脸框超出图片范围,会导致坐标负值。
若需截取完整人脸,可以在完整分completess满足需求的情况下,将负值坐标取0。
* @param Y 人脸框左上角纵坐标。
人脸框包含人脸五官位置并在此基础上进行一定的扩展,若人脸框超出图片范围,会导致坐标负值。
若需截取完整人脸,可以在完整分completess满足需求的情况下,将负值坐标取0。
*/
public void setY(Long Y) {
this.Y = Y;
}
/**
* Get 人脸框宽度。
* @return Width 人脸框宽度。
*/
public Long getWidth() {
return this.Width;
}
/**
* Set 人脸框宽度。
* @param Width 人脸框宽度。
*/
public void setWidth(Long Width) {
this.Width = Width;
}
/**
* Get 人脸框高度。
* @return Height 人脸框高度。
*/
public Long getHeight() {
return this.Height;
}
/**
* Set 人脸框高度。
* @param Height 人脸框高度。
*/
public void setHeight(Long Height) {
this.Height = Height;
}
/**
* Get 人脸属性信息,包含性别( gender )、年龄( age )、表情( expression )、
魅力( beauty )、眼镜( glass )、口罩(mask)、头发(hair)和姿态 (pitch,roll,yaw )。只有当 NeedFaceAttributes 设为 1 时才返回有效信息。
* @return FaceAttributesInfo 人脸属性信息,包含性别( gender )、年龄( age )、表情( expression )、
魅力( beauty )、眼镜( glass )、口罩(mask)、头发(hair)和姿态 (pitch,roll,yaw )。只有当 NeedFaceAttributes 设为 1 时才返回有效信息。
*/
public FaceAttributesInfo getFaceAttributesInfo() {
return this.FaceAttributesInfo;
}
/**
* Set 人脸属性信息,包含性别( gender )、年龄( age )、表情( expression )、
魅力( beauty )、眼镜( glass )、口罩(mask)、头发(hair)和姿态 (pitch,roll,yaw )。只有当 NeedFaceAttributes 设为 1 时才返回有效信息。
* @param FaceAttributesInfo 人脸属性信息,包含性别( gender )、年龄( age )、表情( expression )、
魅力( beauty )、眼镜( glass )、口罩(mask)、头发(hair)和姿态 (pitch,roll,yaw )。只有当 NeedFaceAttributes 设为 1 时才返回有效信息。
*/
public void setFaceAttributesInfo(FaceAttributesInfo FaceAttributesInfo) {
this.FaceAttributesInfo = FaceAttributesInfo;
}
/**
* Get 人脸质量信息,包含质量分(score)、模糊分(sharpness)、光照分(brightness)、遮挡分(completeness)。只有当NeedFaceDetection设为1时才返回有效信息。
注意:此字段可能返回 null,表示取不到有效值。
* @return FaceQualityInfo 人脸质量信息,包含质量分(score)、模糊分(sharpness)、光照分(brightness)、遮挡分(completeness)。只有当NeedFaceDetection设为1时才返回有效信息。
注意:此字段可能返回 null,表示取不到有效值。
*/
public FaceQualityInfo getFaceQualityInfo() {
return this.FaceQualityInfo;
}
/**
* Set 人脸质量信息,包含质量分(score)、模糊分(sharpness)、光照分(brightness)、遮挡分(completeness)。只有当NeedFaceDetection设为1时才返回有效信息。
注意:此字段可能返回 null,表示取不到有效值。
* @param FaceQualityInfo 人脸质量信息,包含质量分(score)、模糊分(sharpness)、光照分(brightness)、遮挡分(completeness)。只有当NeedFaceDetection设为1时才返回有效信息。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setFaceQualityInfo(FaceQualityInfo FaceQualityInfo) {
this.FaceQualityInfo = FaceQualityInfo;
}
public FaceInfo() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public FaceInfo(FaceInfo source) {
if (source.X != null) {
this.X = new Long(source.X);
}
if (source.Y != null) {
this.Y = new Long(source.Y);
}
if (source.Width != null) {
this.Width = new Long(source.Width);
}
if (source.Height != null) {
this.Height = new Long(source.Height);
}
if (source.FaceAttributesInfo != null) {
this.FaceAttributesInfo = new FaceAttributesInfo(source.FaceAttributesInfo);
}
if (source.FaceQualityInfo != null) {
this.FaceQualityInfo = new FaceQualityInfo(source.FaceQualityInfo);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap 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);
}
}