HairProperties Class
- java.
lang. Object - com.
azure. ai. vision. face. models. HairProperties
- com.
Implements
public final class HairProperties
implements JsonSerializable<HairProperties>
Properties describing hair attributes.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Hair |
fromJson(JsonReader jsonReader)
Reads an instance of Hair |
| double |
getBald()
Get the bald property: A number describing confidence level of whether the person is bald. |
|
List<Hair |
getHairColor()
Get the hair |
| boolean |
isInvisible()
Get the invisible property: A boolean value describing whether the hair is visible in the image. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static HairProperties fromJson(JsonReader jsonReader)
Reads an instance of HairProperties from the JsonReader.
Parameters:
Returns:
Throws:
getBald
public double getBald()
Get the bald property: A number describing confidence level of whether the person is bald.
Returns:
getHairColor
public List<HairColor> getHairColor()
Get the hairColor property: An array of candidate colors and confidence level in the presence of each.
Returns:
isInvisible
public boolean isInvisible()
Get the invisible property: A boolean value describing whether the hair is visible in the image.
Returns: