Package version:

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

interface HairColorOutput {
    color: string;
    confidence: number;
}

Properties

Properties

color: string

Name of the hair color.

Possible values: "unknown", "white", "gray", "blond", "brown", "red", "black", "other"

confidence: number

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