ActiveLivenessDetectionModel
A class derived from LivenessDetectionModel containing details specific to active liveness detection
Declaration
Only relevant details are shown, boilerplate or standard Swift generated code is omitted
Summary
Public variables
Name | Type | Description |
An array containing all the actions that were executed during active liveness detection. |
Public methods
Signature | Return Type | Description |
[UIImage] | Returns an array of images from the liveness detection question action images. | |
[UIImage] | Returns an array of images from the liveness detection question focus images. | |
Void | Iterates through all the liveness detection questions and calls saveImages() on each question. | |
Void | Encodes the model using the encoder provided. Used to convert the model to JSON. |
Public variables
livenessDetectionQuestions
@objc final public var livenessDetectionQuestions: [
LivenessDetectionQuestion
] { get }
An array containing all the actions that were executed during active liveness detection.
Public methods
actionImages()
@objc final public func actionImages() -> [UIImage]
Returns an array of images from the liveness detection question action images.
focusImages()
@objc final public func focusImages() -> [UIImage]
Returns an array of images from the liveness detection question focus images.
saveImages()
@objc override final public func saveImages()
This function also calls its super function
Iterates through all the liveness detection questions and calls saveImages() on each question.
encode(to encoder: Encoder)
override final 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