create

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): LunaConfig

Create config with given parameters and validate it.

Parameters

detectorStep

The count of frames between frames with full detection.

skipFrames

If there is no detection in estimated area, waiting this number of frames and stop the track.

minimalTrackLength

Minimum detections count to consider track as real face.

bestShotsCount

Number of the best shots that need to be collected for liveness.

borderDistance

Minimal distance between face and image borders.

bestShotInterval

Time interval between take best shots for liveness.

compressionQuality

Quality of the image sent to liveness. The value 0 represents the maximum compression.

headPitch

Head pitch threshold in degrees.

headYaw

Head yaw threshold in degrees.

headRoll

Head roll threshold in degrees.

ags

AGS threshold.

livenessType

Liveness type.

similarityThreshold

Liveness similarity threshold.

livenessQuality

Liveness quality.

usePrimaryFaceTracking

Security feature. If set to true, the flow will be performed on the primary face only.