public class FaceAttributesInfo extends AbstractModel
header, skipSign
Constructor and Description |
---|
FaceAttributesInfo() |
FaceAttributesInfo(FaceAttributesInfo source)
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.
|
Modifier and Type | Method and Description |
---|---|
Long |
getAge()
Get Age.
|
Long |
getBeauty()
Get Beauty.
|
Long |
getExpression()
Get Expression.
|
Boolean |
getEyeOpen()
Get Whether the eyes are open.
|
Long |
getGender()
Get Gender.
|
Boolean |
getGlass()
Get Whether glasses are present.
|
FaceHairAttributesInfo |
getHair()
Get Hair information, including length, bang, and color.
|
Boolean |
getHat()
Get Whether hat is present.
|
Boolean |
getMask()
Get Whether mask is present.
|
Long |
getPitch()
Get Vertical offset in degrees.
|
Long |
getRoll()
Get Horizontal rotation in degrees.
|
Long |
getYaw()
Get Horizontal offset in degrees.
|
void |
setAge(Long Age)
Set Age.
|
void |
setBeauty(Long Beauty)
Set Beauty.
|
void |
setExpression(Long Expression)
Set Expression.
|
void |
setEyeOpen(Boolean EyeOpen)
Set Whether the eyes are open.
|
void |
setGender(Long Gender)
Set Gender.
|
void |
setGlass(Boolean Glass)
Set Whether glasses are present.
|
void |
setHair(FaceHairAttributesInfo Hair)
Set Hair information, including length, bang, and color.
|
void |
setHat(Boolean Hat)
Set Whether hat is present.
|
void |
setMask(Boolean Mask)
Set Whether mask is present.
|
void |
setPitch(Long Pitch)
Set Vertical offset in degrees.
|
void |
setRoll(Long Roll)
Set Horizontal rotation in degrees.
|
void |
setYaw(Long Yaw)
Set Horizontal offset in degrees.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public FaceAttributesInfo()
public FaceAttributesInfo(FaceAttributesInfo source)
public Long getGender()
public void setGender(Long Gender)
Gender
- Gender. The gender is female for the value range [0,49] and male for the value range [50,100]. The closer the value to 0 or 100, the higher the confidence. If `NeedFaceAttributes` is not 1 or more than 5 faces are detected, this parameter will still be returned but meaningless.public Long getAge()
public void setAge(Long Age)
Age
- Age. Value range: [0,100]. If `NeedFaceAttributes` is not 1 or more than 5 faces are detected, this parameter will still be returned but meaningless.public Long getExpression()
public void setExpression(Long Expression)
Expression
- Expression. Value range: [0 (normal)–50 (smile)–100 (laugh)]. If `NeedFaceAttributes` is not 1 or more than 5 faces are detected, this parameter will still be returned but meaningless.public Boolean getGlass()
public void setGlass(Boolean Glass)
Glass
- Whether glasses are present. Valid values: true, false. If `NeedFaceAttributes` is not 1 or more than 5 faces are detected, this parameter will still be returned but meaningless.public Long getPitch()
public void setPitch(Long Pitch)
Pitch
- Vertical offset in degrees. Value range: [-30,30]. If `NeedFaceAttributes` is not 1 or more than 5 faces are detected, this parameter will still be returned but meaningless.
We recommend selecting images in the [-10,10] range for adding faces.public Long getYaw()
public void setYaw(Long Yaw)
Yaw
- Horizontal offset in degrees. Value range: [-30,30]. If `NeedFaceAttributes` is not 1 or more than 5 faces are detected, this parameter will still be returned but meaningless.
We recommend selecting images in the [-10,10] range for adding faces.public Long getRoll()
public void setRoll(Long Roll)
Roll
- Horizontal rotation in degrees. Value range: [-180,180]. If `NeedFaceAttributes` is not 1 or more than 5 faces are detected, this parameter will still be returned but meaningless.
We recommend selecting images in the [-20,20] range for adding faces.public Long getBeauty()
public void setBeauty(Long Beauty)
Beauty
- Beauty. Value range: [0,100]. If `NeedFaceAttributes` is not 1 or more than 5 faces are detected, this parameter will still be returned but meaningless.public Boolean getHat()
public void setHat(Boolean Hat)
Hat
- Whether hat is present. Valid values: true, false. If `NeedFaceAttributes` is not 1 or more than 5 faces are detected, this parameter will still be returned but meaningless.
Note: this field may return null, indicating that no valid values can be obtained.public Boolean getMask()
public void setMask(Boolean Mask)
Mask
- Whether mask is present. Valid values: true, false. If `NeedFaceAttributes` is not 1 or more than 5 faces are detected, this parameter will still be returned but meaningless.
Note: this field may return null, indicating that no valid values can be obtained.public FaceHairAttributesInfo getHair()
public void setHair(FaceHairAttributesInfo Hair)
Hair
- Hair information, including length, bang, and color. If `NeedFaceAttributes` is not 1 or more than 5 faces are detected, this parameter will still be returned but meaningless.
Note: this field may return null, indicating that no valid values can be obtained.public Boolean getEyeOpen()
public void setEyeOpen(Boolean EyeOpen)
EyeOpen
- Whether the eyes are open. Valid values: true, false. As long as there is more than one eye closed, `false` will be returned. If `NeedFaceAttributes` is not 1 or more than 5 faces are detected, this parameter will still be returned but meaningless.
Note: this field may return null, indicating that no valid values can be obtained.Copyright © 2024. All rights reserved.