HairColor Class

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.vision.faceapi.models.HairColor

public class HairColor

Hair color and associated confidence.

Method Summary

Modifier and Type Method and Description
HairColorType color()

Get the color value.

double confidence()

Get the confidence value.

HairColor withColor(HairColorType color)

Set the color value.

HairColor withConfidence(double confidence)

Set the confidence value.

Method Details

color

public HairColorType color()

Get the color value.

Returns:

the color value

confidence

public double confidence()

Get the confidence value.

Returns:

the confidence value

withColor

public HairColor withColor(HairColorType color)

Set the color value.

Parameters:

color - the color value to set

Returns:

the HairColor object itself.

withConfidence

public HairColor withConfidence(double confidence)

Set the confidence value.

Parameters:

confidence - the confidence value to set

Returns:

the HairColor object itself.

Applies to