FaceDescription Class
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. vision. computervision. models. FaceDescription
- com.
public class FaceDescription
An object describing a face identified in the image.
Method Summary
Modifier and Type | Method and Description |
---|---|
int |
age()
Get the age value. |
Face |
faceRectangle()
Get the faceRectangle value. |
Gender |
gender()
Get the gender value. |
Face |
withAge(int age)
Set the age value. |
Face |
withFaceRectangle(FaceRectangle faceRectangle)
Set the faceRectangle value. |
Face |
withGender(Gender gender)
Set the gender value. |
Method Details
age
public int age()
Get the age value.
Returns:
faceRectangle
public FaceRectangle faceRectangle()
Get the faceRectangle value.
Returns:
gender
public Gender gender()
Get the gender value.
Returns:
withAge
public FaceDescription withAge(int age)
Set the age value.
Parameters:
Returns:
withFaceRectangle
public FaceDescription withFaceRectangle(FaceRectangle faceRectangle)
Set the faceRectangle value.
Parameters:
Returns:
withGender
public FaceDescription withGender(Gender gender)
Set the gender value.
Parameters:
Returns:
Applies to
Azure SDK for Java