# coding: utf-8

"""
    Generated by: https://openapi-generator.tech
"""

from __future__ import annotations
import json
from enum import Enum
from typing_extensions import Self


class FaceSDKResultCode(int, Enum):
    """
    The result code, see the [FaceSDKResultCode enum](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/face-sdk-result-code/).
    """

    """
    allowed enum values
    """
    FACER_OK = 0
    FR_IMAGE_EMPTY = 1
    FR_FACE_NOT_DETECTED = 2
    FR_LANDMARKS_NOT_DETECTED = 3
    FR_FACE_ALIGHNER_FAILED = 4
    FR_DESCRIPTOR_EXTRACTOR_ERROR = 5
    FR_IMAGE_DECODE_ERROR = 6
    FR_INTERNAL_ERROR = 7
    FACER_CONFIG_ERROR = 199
    FACER_NO_LICENSE = 200
    FACER_IS_NOT_INITIALIZED = 201
    FACER_COMMAND_IS_NOT_SUPPORTED = 202
    FACER_COMMAND_PARAMS_READ_ERROR = 203
    FACER_LESS_THAN_TWO_IMAGES_IN_REQUEST = 224
    FACER_VIDEO_DECODE_ERROR = 227
    FACER_NOT_ENOUGH_FRAMES = 228
    FACER_OUTPUT_IS_NOT_DEFINED = 229
    FACER_CLOSED_EYES_DETECTED = 230
    FACER_LOW_QUALITY = 231
    FACER_HIGH_ASYMMETRY = 232
    FACER_FACE_OVER_EMOTIONAL = 233
    FACER_SUNGLASSES_DETECTED = 234
    FACER_SMALL_AGE = 235
    FACER_HEADDRESS_DETECTED = 236
    FACER_FACES_NOT_MATCHED = 237
    FACER_IMAGES_COUNT_LIMIT_EXCEEDED = 238
    FACER_MEDICINE_MASK_DETECTED = 239
    FACER_OCCLUSION_DETECTED = 240
    FACER_FOREHEAD_GLASSES_DETECTED = 242
    FACER_MOUTH_OPENED = 243
    FACER_ART_MASK_DETECTED = 244
    FACER_ELECTRONIC_DEVICE_DETECTED = 245
    FACER_TRACK_BREAK = 246
    FACER_WRONG_GEO = 247
    FACER_WRONG_OF = 248
    FACER_WRONG_VIEW = 249
    FACER_TIMEOUT_LIVENESS_TRANSACTION = 250
    FACER_FAILED_LIVENESS_TRANSACTION = 251
    FACER_ABORTED_LIVENESS_TRANSACTION = 252
    FACER_GENERAL_ERROR = 253
    FACER_PASSIVE_LIVENESS_FAIL = 254

    @classmethod
    def from_json(cls, json_str: str) -> Self:
        """Create an instance of FaceSDKResultCode from a JSON string"""
        return cls(json.loads(json_str))


