Class SessionFunctions
- java.lang.Object
-
- com.appliedrec.verid.core2.session.SessionFunctions
-
public class SessionFunctions extends java.lang.Object
Functions used by Ver-ID session's reactive stream- Since:
- 2.0.0
-
-
Constructor Summary
Constructors Constructor Description SessionFunctions(VerID verID, VerIDSessionSettings sessionSettings)
Constructor
-
Method Summary
-
-
-
Constructor Detail
-
SessionFunctions
public SessionFunctions(VerID verID, VerIDSessionSettings sessionSettings)
Constructor- Parameters:
verID
- Ver-ID instancesessionSettings
- Session settings- Since:
- 2.0.0
-
-
Method Detail
-
reset
public void reset()
-
getSessionFaceTrackingAccumulator
public io.reactivex.rxjava3.functions.Function<androidx.core.util.Pair<IImageProvider,FaceBounds>,SessionFaceTracking> getSessionFaceTrackingAccumulator()
- Returns:
- Function that tracks a face in accumulated session images
- Since:
- 2.0.0
-
getFacePresenceDetectionAccumulator
public io.reactivex.rxjava3.functions.Function<SessionFaceTracking,FacePresenceDetection> getFacePresenceDetectionAccumulator()
- Returns:
- Function that detects a face presence in accumulated session tracking instances
- Since:
- 2.0.0
-
getFaceAlignmentDetectionAccumulator
public io.reactivex.rxjava3.functions.Function<FacePresenceDetection,FaceAlignmentDetection> getFaceAlignmentDetectionAccumulator()
- Returns:
- Function that checks the alignment of a tracked face in accumulated face presence instances
- Since:
- 2.0.0
-
getSpoofingDetectionAccumulator
public io.reactivex.rxjava3.functions.Function<FaceAlignmentDetection,SpoofingDetection> getSpoofingDetectionAccumulator()
- Returns:
- Function that checks for spoof attempts in accumulated instances of face alignment detection
- Since:
- 2.0.0
-
createFaceDetectionResult
public FaceDetectionResult createFaceDetectionResult(SpoofingDetection spoofingDetection)
- Parameters:
spoofingDetection
- Spoofing detection instance from which to create the face detection result- Returns:
- Face detection result
- Since:
- 2.0.0
-
createFaceCapture
public FaceCapture createFaceCapture(FaceDetectionResult faceDetectionResult) throws VerIDSessionException
- Parameters:
faceDetectionResult
- Face detection result from which to create the face capture- Returns:
- Face capture
- Throws:
VerIDSessionException
- If the creation fails- Since:
- 2.0.0
-
getFaceCaptureAccumulator
public io.reactivex.rxjava3.functions.BiConsumer<VerIDSessionResult,FaceCapture> getFaceCaptureAccumulator()
-
processSessionResult
public VerIDSessionResult processSessionResult(VerIDSessionResult result) throws VerIDSessionException
- Throws:
VerIDSessionException
-
getVerID
public VerID getVerID()
- Returns:
- Ver-ID instance used by the functions
- Since:
- 2.0.0
-
getSessionSettings
public VerIDSessionSettings getSessionSettings()
- Returns:
- Session settings
- Since:
- 2.0.0
-
getSessionFaceTracking
public SessionFaceTracking getSessionFaceTracking()
- Returns:
- Face tracking used in the session
- Since:
- 2.0.0
-
getFacePresenceDetection
public FacePresenceDetection getFacePresenceDetection()
- Returns:
- Face presence detection used in the session
- Since:
- 2.0.0
-
getFaceAlignmentDetection
public FaceAlignmentDetection getFaceAlignmentDetection()
- Returns:
- Face alignment detection used in the session
- Since:
- 2.0.0
-
getSpoofingDetection
public SpoofingDetection getSpoofingDetection()
- Returns:
- Spoofing detection used in the session
- Since:
- 2.0.0
-
getScreenArtifactDetector
@Deprecated public java.util.Optional<com.appliedrec.verid.livenessdetection.MoireDetector> getScreenArtifactDetector()
Deprecated.2.8.0- Returns:
- Screen artifact detector used in the session
- Since:
- 2.7.0
-
-