Partilhar via


HairColor Class

Definition

An array of candidate colors and confidence level in the presence of each.

public class HairColor : System.ClientModel.Primitives.IJsonModel<Azure.AI.Vision.Face.HairColor>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Vision.Face.HairColor>
type HairColor = class
    interface IJsonModel<HairColor>
    interface IPersistableModel<HairColor>
Public Class HairColor
Implements IJsonModel(Of HairColor), IPersistableModel(Of HairColor)
Inheritance
HairColor
Implements

Properties

Color

Name of the hair color.

Confidence

Confidence level of the color. Range between [0,1].

Explicit Interface Implementations

IJsonModel<HairColor>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<HairColor>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<HairColor>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<HairColor>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<HairColor>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to