Class FaceDescription
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.vision.computervision.models.FaceDescription
-
public class FaceDescription extends Object
An object describing a face identified in the image.
-
-
Constructor Summary
Constructors Constructor Description FaceDescription()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
age()
Get the age value.FaceRectangle
faceRectangle()
Get the faceRectangle value.Gender
gender()
Get the gender value.FaceDescription
withAge(int age)
Set the age value.FaceDescription
withFaceRectangle(FaceRectangle faceRectangle)
Set the faceRectangle value.FaceDescription
withGender(Gender gender)
Set the gender value.
-
-
-
Method Detail
-
age
public int age()
Get the age value.- Returns:
- the age value
-
withAge
public FaceDescription withAge(int age)
Set the age value.- Parameters:
age
- the age value to set- Returns:
- the FaceDescription object itself.
-
gender
public Gender gender()
Get the gender value.- Returns:
- the gender value
-
withGender
public FaceDescription withGender(Gender gender)
Set the gender value.- Parameters:
gender
- the gender value to set- Returns:
- the FaceDescription object itself.
-
faceRectangle
public FaceRectangle faceRectangle()
Get the faceRectangle value.- Returns:
- the faceRectangle value
-
withFaceRectangle
public FaceDescription withFaceRectangle(FaceRectangle faceRectangle)
Set the faceRectangle value.- Parameters:
faceRectangle
- the faceRectangle value to set- Returns:
- the FaceDescription object itself.
-
-