Class FaceAnalysisOptions

  • All Implemented Interfaces:
    AutoCloseable

    public final class FaceAnalysisOptions
    extends Object
    implements AutoCloseable
    Defines the options used during an "analysis" operation.
    • Constructor Detail

      • FaceAnalysisOptions

        public FaceAnalysisOptions()
        Instantiates a new FaceAnalysisOptions.
    • 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 interface AutoCloseable
        Throws:
        Exception