你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
AIVisionFaceModelFactory.HairProperties 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 HairProperties.
public static Azure.AI.Vision.Face.HairProperties HairProperties(float bald = 0, bool invisible = false, System.Collections.Generic.IEnumerable<Azure.AI.Vision.Face.HairColor> hairColor = default);
static member HairProperties : single * bool * seq<Azure.AI.Vision.Face.HairColor> -> Azure.AI.Vision.Face.HairProperties
Public Shared Function HairProperties (Optional bald As Single = 0, Optional invisible As Boolean = false, Optional hairColor As IEnumerable(Of HairColor) = Nothing) As HairProperties
Parameters
- bald
- Single
A number describing confidence level of whether the person is bald.
- invisible
- Boolean
A boolean value describing whether the hair is visible in the image.
- hairColor
- IEnumerable<HairColor>
An array of candidate colors and confidence level in the presence of each.
Returns
A new HairProperties instance for mocking.