LivenessDetectionModel

A class derived from BiometricsModel containing details pertaining to all forms of liveness detection

Declaration

@objc public class LivenessDetectionModel : BiometricsModel {
    @objc final public var isAlive: Bool { get }
    
    override public func encode(to encoder: Encoder) throws
}

Only relevant details are shown, boilerplate or standard Swift generated code is omitted

Summary

Public variables

Name

Type

Description

Bool

Indicates if the subject is genuine or a spoof.

Public methods

Signature

Return Type

Description

Void

Encodes the model using the encoder provided. Used to convert the model to JSON.

Public variables

isAlive

@objc final public var isAlive: Bool { get }

Indicates if the subject is genuine or a spoof.

True means the subject is perceived to be genuine. False means the subject is perceived to be a spoof.

Public methods

encode(to encoder: Encoder)

override public func encode(to encoder: Encoder) throws

This function also calls its super function

Encodes the model using the encoder provided. Used to convert the model to JSON.

See also

Where this is used

Last updated