Class FaceAnalyzer
- java.lang.Object
-
- com.azure.android.ai.vision.faceanalyzer.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 Summary
Fields Modifier and Type Field Description 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 sceneEventSource<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 eventEventSource<FaceAnalysisStartedEventArgs>
started
Started event source.EventSource<FaceAnalysisStoppedEventArgs>
stopped
Stopped event source.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)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)void
close()
Dispose of associated resources.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 imagesvoid
stopAnalyzeOnce()
Stop one-time analysis.void
stopContinuousAnalysis()
Stop continuous analysis.
-
-
-
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
-
started
public final EventSource<FaceAnalysisStartedEventArgs> started
Started event source.
-
stopped
public final EventSource<FaceAnalysisStoppedEventArgs> stopped
Stopped event source.
-
-
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 interfaceAutoCloseable
-
-