LCBestShotConfiguration

Objective-C

@interface LCBestShotConfiguration : NSObject

Swift

class LCBestShotConfiguration : NSObject

Some critical values which can change bestshot collection logic

  • Liveness type. Which can be offline or online

    Declaration

    Objective-C

    @property (nonatomic) LivenessType livenessType;

    Swift

    var livenessType: LivenessType { get set }
  • Check eyes condition. If true then best shots with closed eyes will be skipped. Works with combinatino of LCLunaConfiguration.eyeInjury flag

    Declaration

    Objective-C

    @property (nonatomic) BOOL eyesCheck;

    Swift

    var eyesCheck: Bool { get set }
  • Distance between face detection and frame edges.

    Declaration

    Objective-C

    @property (nonatomic) NSInteger borderDistance;

    Swift

    var borderDistance: Int { get set }
  • Minimum detection size in pixels. Used to define if the face is too close or too far from camera

    Declaration

    Objective-C

    @property (nonatomic) NSInteger minDetSize;

    Swift

    var minDetSize: Int { get set }
  • Minimum detection of any face size in pixels.

    Declaration

    Objective-C

    @property (nonatomic) NSInteger minFaceSize;

    Swift

    var minFaceSize: Int { get set }
  • The amount of the best shots which is necessary to conduct Liveness procedure. 3 by default.

    Declaration

    Objective-C

    @property (nonatomic) NSUInteger numberOfBestShots;

    Swift

    var numberOfBestShots: UInt { get set }
  • DEPRECATED. Minimal time interval between the best shots. Value in seconds. 0.5 by default.

    Declaration

    Objective-C

    @property (nonatomic) NSTimeInterval bestShotInterval;

    Swift

    var bestShotInterval: TimeInterval { get set }
  • Liveness quality threshold. If the liveness quality is less than the established value, the liveness is considered not passed. 0 by default.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat livenessQuality;

    Swift

    var livenessQuality: Double { get set }
  • Limits the head rotation along the X axis.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat headPitch;

    Swift

    var headPitch: Double { get set }
  • Limits the head rotation along the Y axis.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat headYaw;

    Swift

    var headYaw: Double { get set }
  • Limits the head rotation along the Z axis.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat headRoll;

    Swift

    var headRoll: Double { get set }
  • ags

    Minimum value of frame’s quality estimation.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat ags;

    Swift

    var ags: Double { get set }