你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
AIVisionFaceModelFactory.HairColor(HairColorType, Single) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of HairColor.
public static Azure.AI.Vision.Face.HairColor HairColor(Azure.AI.Vision.Face.HairColorType color = default, float confidence = 0);
static member HairColor : Azure.AI.Vision.Face.HairColorType * single -> Azure.AI.Vision.Face.HairColor
Public Shared Function HairColor (Optional color As HairColorType = Nothing, Optional confidence As Single = 0) As HairColor
Parameters
- color
- HairColorType
Name of the hair color.
- confidence
- Single
Confidence level of the color. Range between [0,1].
Returns
A new HairColor instance for mocking.