你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
AIVisionFaceModelFactory.FaceVerificationResult(Boolean, 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 FaceVerificationResult.
public static Azure.AI.Vision.Face.FaceVerificationResult FaceVerificationResult(bool isIdentical = false, float confidence = 0);
static member FaceVerificationResult : bool * single -> Azure.AI.Vision.Face.FaceVerificationResult
Public Shared Function FaceVerificationResult (Optional isIdentical As Boolean = false, Optional confidence As Single = 0) As FaceVerificationResult
Parameters
- isIdentical
- Boolean
True if the two faces belong to the same person or the face belongs to the person, otherwise false.
- confidence
- Single
A number indicates the similarity confidence of whether two faces belong to the same person, or whether the face belongs to the person. By default, isIdentical is set to True if similarity confidence is greater than or equal to 0.5. This is useful for advanced users to override 'isIdentical' and fine-tune the result on their own data.
Returns
A new FaceVerificationResult instance for mocking.