Class SessionFunctions


  • public class SessionFunctions
    extends java.lang.Object
    Functions used by Ver-ID session's reactive stream
    Since:
    2.0.0
    • Constructor Detail

      • SessionFunctions

        public SessionFunctions​(VerID verID,
                                VerIDSessionSettings sessionSettings)
        Constructor
        Parameters:
        verID - Ver-ID instance
        sessionSettings - 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
      • 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