fun create(livenessFormat: Bitmap.CompressFormat = DEFAULT_LIVENESS_FORMAT, compressionQuality: Int = DEFAULT_LIVENESS_COMPRESSION_QUALITY, detectorStep: Int = DEFAULT_DETECTOR_STEP, skipFrames: Int = DEFAULT_SKIP_FRAMES, minimalTrackLength: Int = DEFAULT_MINIMAL_TRACK_LENGTH, bestShotsCount: Int = DEFAULT_BEST_SHOTS_COUNT, detectFrameSize: Int = DEFAULT_MIN_DETECT_FRAME_SIZE, bestShotInterval: Long = DEFAULT_BEST_SHOTS_INTERVAL, headPitch: Float = DEFAULT_HEAD_PITCH, headYaw: Float = DEFAULT_HEAD_YAW, headRoll: Float = DEFAULT_HEAD_ROLL, ags: Float = DEFAULT_AGS, livenessErrorTimeout: Int = DEFAULT_ONLINE_LIVENESS_ERROR_TIMEOUT, livenessType: LivenessType = DEFAULT_LIVENESS_TYPE, acceptOneEyed: Boolean = DEFAULT_ACCEPT_ONE_EYED, acceptOneEyeClose: Boolean = DEFAULT_ACCEPT_ONE_EYED_CLOSE, acceptOccludedFaces: Boolean = DEFAULT_ACCEPT_OCCLUDED_FACES, foundFaceDelay: Long = DEFAULT_FOUND_FACE_DELAY, interactionDelayMs: Long = DEFAULT_INTERACTION_DELAY_MS, acceptEyesClosed: Boolean = DEFAULT_ACCEPT_EYES_CLOSED, glassesChecks: Set<GlassesCheckType> = DEFAULT_GLASSES_CHECKS, usePrimaryFaceTracking: Boolean = DEFAULT_USE_PRIMARY_FACE_TRACKING, faceSimilarityThreshold: Float = DEFAULT_SIMILARITY_THRESHOLD, livenessQuality: Float = DEFAULT_LIVENESS_QUALITY, checkSecurity: Boolean = DEFAULT_CHECK_SECURITY, livenessNetVersion: Int = DEFAULT_LIVENESS_NET): LunaConfig Create config with given parameters and validate it.
Parameters
The count of frames between frames with full detection.
If there is no detection in estimated area, waiting this number of frames and stop the track.
Minimum detections count to consider track as real face.
Number of the best shots that need to be collected for liveness.
Minimal distance between face and image borders.
Time interval between take best shots for liveness.
Quality of the image sent to liveness. The value 0 represents the maximum compression.
Head pitch threshold in degrees.
Head yaw threshold in degrees.
Head roll threshold in degrees.
Liveness similarity threshold.
Security feature. If set to true, the flow will be performed on the primary face only.