HairColor Class
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. vision. faceapi. models. HairColor
- com.
public class HairColor
Hair color and associated confidence.
Method Summary
Modifier and Type | Method and Description |
---|---|
Hair |
color()
Get the color value. |
double |
confidence()
Get the confidence value. |
Hair |
withColor(HairColorType color)
Set the color value. |
Hair |
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java