Class FaceAnalysisOptions
- java.lang.Object
-
- com.azure.android.ai.vision.faceanalyzer.FaceAnalysisOptions
-
- All Implemented Interfaces:
AutoCloseable
public final class FaceAnalysisOptions extends Object implements AutoCloseable
Defines the options used during an "analysis" operation.
-
-
Constructor Summary
Constructors Constructor Description FaceAnalysisOptions()
Instantiates a new FaceAnalysisOptions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Dispose of associated resources.PropertyCollection
getProperties()
Gets properties.VisionSource
getRecognitionTargetVisionSource()
Gets recognition target vision source.void
setAdvancedOptions(FaceAnalysisAdvancedOptions advancedOptions)
Defines the advanced options used during an "analysis" operation.void
setFaceSelectionMode(FaceSelectionMode faceSelectionMode)
Defines if any filtering needs to be done when multiple faces are seen in the field of view.void
setRecognitionMode(RecognitionMode recognitionMode)
Sets the recognition mode to perform facial recognition.
-
-
-
Method Detail
-
setAdvancedOptions
public void setAdvancedOptions(FaceAnalysisAdvancedOptions advancedOptions)
Defines the advanced options used during an "analysis" operation.- Parameters:
advancedOptions
- the advanced options
-
setRecognitionMode
public void setRecognitionMode(RecognitionMode recognitionMode)
Sets the recognition mode to perform facial recognition.- Parameters:
recognitionMode
- the recognition mode
-
setFaceSelectionMode
public void setFaceSelectionMode(FaceSelectionMode faceSelectionMode)
Defines if any filtering needs to be done when multiple faces are seen in the field of view.- Parameters:
faceSelectionMode
- the face selection mode
-
getProperties
public final PropertyCollection getProperties()
Gets properties.- Returns:
- The properties
-
getRecognitionTargetVisionSource
public final VisionSource getRecognitionTargetVisionSource()
Gets recognition target vision source.- Returns:
- The recognition target vision source
-
close
public void close() throws Exception
Dispose of associated resources. Note: close() must be called in order to release underlying resources held by the object.- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
-