BestShotError

Objective-C

enum BestShotError : NSInteger {}

Swift

enum BestShotError : Int, @unchecked Sendable

List of error codes of the LunaCore module.

  • LunaCore module initialization error.

    Declaration

    Objective-C

    INITIALIZATION_ERROR = 1000

    Swift

    case INITIALIZATION_ERROR = 1000
  • Bad quality.

    Declaration

    Objective-C

    BAD_QUALITY = 1001

    Swift

    case BAD_QUALITY = 1001
  • The user’s head is turned too much.

    Declaration

    Objective-C

    BAD_HEAD_POSE = 1002

    Swift

    case BAD_HEAD_POSE = 1002
  • Multiple faces were detected in the frame.

    Declaration

    Objective-C

    MULTIPLE_FACES = 1003

    Swift

    case MULTIPLE_FACES = 1003
  • Liveness check has not been passed.

    Declaration

    Objective-C

    LIVENESS_ERROR = 1004

    Swift

    case LIVENESS_ERROR = 1004
  • A face has not been found.

    Declaration

    Objective-C

    TRACK_END = 1005

    Swift

    case TRACK_END = 1005
  • Need to blink.

    Declaration

    Objective-C

    NEED_TO_BLINK = 1006

    Swift

    case NEED_TO_BLINK = 1006
  • Interaction timeout.

    Declaration

    Objective-C

    INTERACTION_TIMEOUT = 1007

    Swift

    case INTERACTION_TIMEOUT = 1007
  • Medical mask is on the face.

    Declaration

    Objective-C

    MASK = 1008

    Swift

    case MASK = 1008
  • Mask is not on the right place.

    Declaration

    Objective-C

    MASK_NOT_IN_PLACE = 1009

    Swift

    case MASK_NOT_IN_PLACE = 1009
  • Face is occluded by something.

    Declaration

    Objective-C

    OCCLUDED_FACE = 1010

    Swift

    case OCCLUDED_FACE = 1010
  • The image is blurred.

    Declaration

    Objective-C

    IMAGE_IS_BLURRED = 1011

    Swift

    case IMAGE_IS_BLURRED = 1011
  • The image is underexposed (i.e., too dark).

    Declaration

    Objective-C

    IMAGE_IS_UNDEREXPOSED = 1012

    Swift

    case IMAGE_IS_UNDEREXPOSED = 1012
  • The image is overexposed(i.e., too light).

    Declaration

    Objective-C

    IMAGE_IS_OVEREXPOSED = 1013

    Swift

    case IMAGE_IS_OVEREXPOSED = 1013
  • The face in the image is illuminated unevenly (there is a great difference between light and dark regions).

    Declaration

    Objective-C

    IMAGE_IS_ILLUMINATED_UNEVENLY = 1014

    Swift

    case IMAGE_IS_ILLUMINATED_UNEVENLY = 1014
  • Image contains flares on face (too specular).

    Declaration

    Objective-C

    IMAGE_IS_TOO_SPECULAR = 1015

    Swift

    case IMAGE_IS_TOO_SPECULAR = 1015
  • The face is too far.

    Declaration

    Objective-C

    TOO_FAR = 1016

    Swift

    case TOO_FAR = 1016
  • The face ovelapses borders.

    Declaration

    Objective-C

    BORDERS = 1017

    Swift

    case BORDERS = 1017