Class FaceAnalyzer

  • All Implemented Interfaces:
    AutoCloseable

    public final class FaceAnalyzer
    extends Object
    implements AutoCloseable
    The type FaceAnalyzer. Note: close() must be called in order to release underlying resources held by the object.
    • Field Detail

      • analyzing

        public final EventSource<FaceAnalyzingEventArgs> analyzing
        Detect-Faces-On-Static-Images modes: provides intermediate results from the analysis of all face/faces analyzed in a single image Track-Faces-Across-Image-Stream modes: updates frequently to provide tracking results of face/faces as they appear in the scene and also aids in leading up to the analyzed event
      • analyzed

        public final EventSource<FaceAnalyzedEventArgs> analyzed
        Detect-Faces-On-Static-Images modes: provides a complete analysis of all face/faces analyzed in a single image Track-Faces-Across-Image-Stream modes: updates less frequently to provide a complete analysis of face/faces as they appear in the scene
    • Method Detail

      • analyzeOnce

        public final FaceAnalyzedResult analyzeOnce​(FaceAnalysisOptions options)
        Detect-Faces-On-Static-Images mode: one-time analysis on a single image Track-Faces-Across-Image-Stream mode: one-time analysis on a correlated sequence of images (multiple frames may be utilized)
        Parameters:
        options - the options
        Returns:
        FaceAnalyzedResult face analyzed result
      • analyzeOnceAsync

        public final CompletableFuture<FaceAnalyzedResult> analyzeOnceAsync​(FaceAnalysisOptions options)
        Detect-Faces-On-Static-Images mode: one-time analysis on a single image Track-Faces-Across-Image-Stream mode: one-time analysis on a correlated sequence of images (multiple frames may be utilized)
        Parameters:
        options - the options
        Returns:
        FaceAnalyzedResult completable future face analyzed result
      • stopAnalyzeOnce

        public final void stopAnalyzeOnce()
        Stop one-time analysis.
      • startContinuousAnalysis

        public final void startContinuousAnalysis​(FaceAnalysisOptions options)
        Detect-Faces-On-Static-Images mode: continuous analysis on a non-correlated sequence of images Track-Faces-Across-Image-Stream mode: continuous analysis on a correlated sequence of images
        Parameters:
        options - the options
      • stopContinuousAnalysis

        public final void stopContinuousAnalysis()
        Stop continuous analysis.
      • close

        public final void close()
        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