ActiveFaceCaptureAnalyzer

This class is used to analyze the pose of the user's face.

Constructors

Link copied to clipboard
public ActiveFaceCaptureAnalyzer ActiveFaceCaptureAnalyzer(ActiveFaceCaptureSessionListener listener, ActiveFaceCaptureSession session, Boolean isFirstFrameNotified, Mutex mutex)

Properties

Link copied to clipboard
private ActiveFaceCaptureProcessingResult cachedResult

A cached result for change detection

Link copied to clipboard

Flag to check if the first frame has been notified

Link copied to clipboard

The listener for the active face capture session

Link copied to clipboard
private final Mutex mutex
Link copied to clipboard
private ActiveFaceCaptureSession session

The active face capture session

Functions

Link copied to clipboard
public Unit analyze(ImageProxy image)

Analyzes the image and processes it using the SenseCrypt SDK

Link copied to clipboard
private final ActiveFaceCaptureProcessingResult getCachedResult()

A cached result for change detection

Link copied to clipboard

The listener for the active face capture session

Link copied to clipboard
private final Mutex getMutex()
Link copied to clipboard
private final ActiveFaceCaptureSession getSession()

The active face capture session

Link copied to clipboard
private final Boolean isFirstFrameNotified()

Flag to check if the first frame has been notified

Link copied to clipboard
private final Boolean isResultChanged(ActiveFaceCaptureProcessingResult result)
Link copied to clipboard
private final Unit processFrame(ByteArray imgBytes, Integer width, Integer height)

Processes the frame using the SenseCrypt SDK

Link copied to clipboard
private final Unit setCachedResult(ActiveFaceCaptureProcessingResult cachedResult)

A cached result for change detection

Link copied to clipboard
private final Unit setFirstFrameNotified(Boolean isFirstFrameNotified)

Flag to check if the first frame has been notified

Link copied to clipboard
private final Unit setSession(ActiveFaceCaptureSession session)

The active face capture session