Share via


HairColor Constructors

Definition

Overloads

HairColor()

Initializes a new instance of the HairColor class.

HairColor(HairColorType, Double)

Initializes a new instance of the HairColor class.

HairColor()

Source:
HairColor.cs

Initializes a new instance of the HairColor class.

public HairColor ();
Public Sub New ()

Applies to

HairColor(HairColorType, Double)

Source:
HairColor.cs

Initializes a new instance of the HairColor class.

public HairColor (Microsoft.Azure.CognitiveServices.Vision.Face.Models.HairColorType color = Microsoft.Azure.CognitiveServices.Vision.Face.Models.HairColorType.Unknown, double confidence = 0);
new Microsoft.Azure.CognitiveServices.Vision.Face.Models.HairColor : Microsoft.Azure.CognitiveServices.Vision.Face.Models.HairColorType * double -> Microsoft.Azure.CognitiveServices.Vision.Face.Models.HairColor
Public Sub New (Optional color As HairColorType = Microsoft.Azure.CognitiveServices.Vision.Face.Models.HairColorType.Unknown, Optional confidence As Double = 0)

Parameters

color
HairColorType

Name of the hair color. Possible values include: 'unknown', 'white', 'gray', 'blond', 'brown', 'red', 'black', 'other'

confidence
Double

Confidence level of the color

Applies to