Class RecognitionMode
- java.lang.Object
-
- com.azure.android.ai.vision.faceanalyzer.RecognitionMode
-
public final class RecognitionMode extends Object
Sets the recognition mode to perform facial recognition.
-
-
Constructor Summary
Constructors Constructor Description RecognitionMode()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RecognitionMode
valueOfDisabled()
Creates the recognition mode to disable facial recognition.static RecognitionMode
valueOfVerifyingMatchToFaceInSessionConfiguration()
Creates the recognition mode to perform verification of a preset face within session configuration.static RecognitionMode
valueOfVerifyingMatchToFaceInSingleFaceImage(VisionSource visionSource)
Creates the recognition mode to perform verification of a single face in a VisionSource.
-
-
-
Method Detail
-
valueOfDisabled
public static RecognitionMode valueOfDisabled()
Creates the recognition mode to disable facial recognition.- Returns:
- The recognition mode to be used to perform facial recognition.
-
valueOfVerifyingMatchToFaceInSingleFaceImage
public static RecognitionMode valueOfVerifyingMatchToFaceInSingleFaceImage(VisionSource visionSource)
Creates the recognition mode to perform verification of a single face in a VisionSource. If the provided VisionSource contains no face or more than a single face, the analysis operation will encounter an error.- Parameters:
visionSource
- The VisionSource that contains only a single face.- Returns:
- The recognition mode to be used to perform facial recognition.
-
valueOfVerifyingMatchToFaceInSessionConfiguration
public static RecognitionMode valueOfVerifyingMatchToFaceInSessionConfiguration()
Creates the recognition mode to perform verification of a preset face within session configuration.- Returns:
- The recognition mode to be used to perform facial recognition.
-
-