Companion

object Companion

LunaConfig companion object.

Properties

Link copied to clipboard
const val AGS_MAX: Float = 1.0f

Maximal valid ags value.

Link copied to clipboard
const val AGS_MIN: Float = 0.0f

Minimal valid ags value.

Link copied to clipboard

Maximal valid bestShotInterval value.

Link copied to clipboard

Minimal valid bestShotInterval value.

Link copied to clipboard
const val BEST_SHOTS_COUNT_MAX: Int = 10

Maximal valid bestShotsCount value.

Link copied to clipboard
const val BEST_SHOTS_COUNT_MIN: Int = 1

Minimal valid bestShotsCount value.

Link copied to clipboard
const val COMPRESSION_QUALITY_MAX: Int = 100

Maximal valid livenessCompressionQuality value.

Link copied to clipboard

Minimal valid livenessCompressionQuality value.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val DEFAULT_ACCEPT_ONE_EYED: Boolean = false

Default acceptOneEyed value.

Link copied to clipboard
Link copied to clipboard
const val DEFAULT_AGS: Float = 0.5f

Default ags value.

Link copied to clipboard

Default bestShotsCount value.

Link copied to clipboard

Default bestShotInterval value.

Link copied to clipboard
const val DEFAULT_DETECTOR_STEP: Int = 1

Default detectorStep value.

Link copied to clipboard
Link copied to clipboard

Default delay between face found and bestshot search start.

Link copied to clipboard
const val DEFAULT_HEAD_PITCH: Float = 25.0f

Default headPitch value.

Link copied to clipboard
const val DEFAULT_HEAD_ROLL: Float = 25.0f

Default headRoll value.

Link copied to clipboard
const val DEFAULT_HEAD_YAW: Float = 25.0f

Default headYaw value.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Default detectFrameSize value.

Link copied to clipboard
Link copied to clipboard

// * Default similarityThreshold value.

Link copied to clipboard
const val DEFAULT_SKIP_FRAMES: Int = 36

Default skipFrames value.

Link copied to clipboard
const val DETECTOR_STEP_MAX: Int = 30

Maximal valid detectorStep value.

Link copied to clipboard
const val DETECTOR_STEP_MIN: Int = 0

Minimal valid detectorStep value.

Link copied to clipboard
const val HEAD_DEGREES_MAX: Float = 45.0f

Maximal valid head position value.

Link copied to clipboard
const val HEAD_DEGREES_MIN: Float = 0.0f

Minimal valid head position value.

Link copied to clipboard
const val LIVENESS_QUALITY_MAX: Float = 1.0f

Maximal valid livenessQuality value.

Link copied to clipboard
const val LIVENESS_QUALITY_MIN: Float = 0.0f

Minimal valid livenessQuality value.

Link copied to clipboard

Maximal valid minimalTrackLength value.

Link copied to clipboard

Minimal valid minimalTrackLength value.

Link copied to clipboard

Maximal similarityThreshold value.

Link copied to clipboard
const val SIMILARITY_THRESHOLD_MIN: Float = 0.01f

Minimal valid similarityThreshold value.

Link copied to clipboard
const val SKIP_FRAMES_MAX: Int = 50

Maximal valid skipFrames value.

Link copied to clipboard
const val SKIP_FRAMES_MIN: Int = 0

Minimal valid skipFrames value.

Functions

Link copied to clipboard
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.