public class FaceInfo extends AbstractModel
Constructor and Description |
---|
FaceInfo() |
FaceInfo(FaceInfo 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 |
---|---|
FaceAttributesInfo |
getFaceAttributesInfo()
Get Face attributes, including gender, age, expression,
beauty, glass, mask, hair, and pose (pitch, roll, yaw).
|
FaceQualityInfo |
getFaceQualityInfo()
Get Face quality information, including score, sharpness, brightness, and completeness.
|
Long |
getHeight()
Get Face frame height.
|
Long |
getWidth()
Get Face frame width.
|
Long |
getX()
Get Horizontal coordinate of the top-left vertex of the face frame.
|
Long |
getY()
Get Vertical coordinate of the top-left vertex of the face frame.
|
void |
setFaceAttributesInfo(FaceAttributesInfo FaceAttributesInfo)
Set Face attributes, including gender, age, expression,
beauty, glass, mask, hair, and pose (pitch, roll, yaw).
|
void |
setFaceQualityInfo(FaceQualityInfo FaceQualityInfo)
Set Face quality information, including score, sharpness, brightness, and completeness.
|
void |
setHeight(Long Height)
Set Face frame height.
|
void |
setWidth(Long Width)
Set Face frame width.
|
void |
setX(Long X)
Set Horizontal coordinate of the top-left vertex of the face frame.
|
void |
setY(Long Y)
Set Vertical coordinate of the top-left vertex of the face frame.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public FaceInfo()
public FaceInfo(FaceInfo source)
public Long getX()
public void setX(Long X)
X
- Horizontal coordinate of the top-left vertex of the face frame.
The face frame encompasses the facial features and is extended accordingly. If it is larger than the image, the coordinates will be negative.
If you want to capture a complete face, you can set the negative coordinates to 0 if the `completeness` score meets the requirement.public Long getY()
public void setY(Long Y)
Y
- Vertical coordinate of the top-left vertex of the face frame.
The face frame encompasses the facial features and is extended accordingly. If it is larger than the image, the coordinates will be negative.
If you want to capture a complete face, you can set the negative coordinates to 0 if the `completeness` score meets the requirement.public Long getWidth()
public void setWidth(Long Width)
Width
- Face frame width.public Long getHeight()
public void setHeight(Long Height)
Height
- Face frame height.public FaceAttributesInfo getFaceAttributesInfo()
public void setFaceAttributesInfo(FaceAttributesInfo FaceAttributesInfo)
FaceAttributesInfo
- Face attributes, including gender, age, expression,
beauty, glass, mask, hair, and pose (pitch, roll, yaw). Valid information will be returned only if `NeedFaceAttributes` is set to 1.public FaceQualityInfo getFaceQualityInfo()
public void setFaceQualityInfo(FaceQualityInfo FaceQualityInfo)
FaceQualityInfo
- Face quality information, including score, sharpness, brightness, and completeness. Valid information will be returned only if `NeedFaceDetection` is set to 1.
Note: this field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.