# 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 FaceQualityScenarios(str, Enum):
    """
    Face detection scenario. If set and the scenario is found, it automatically applies the relevant parameters, overriding any other parameters specified in the request. If the scenario is not set, is empty, or the name is not recognized, processing will follow the parameters directly set in the request. For detailed descriptions of available scenarios, refer to the [Scenarios page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/scenarios/).
    """

    """
    allowed enum values
    """
    OLD_MODE = 'OldMode'
    QUALITY_FULL = 'QualityFull'
    QUALITY_ICAO = 'QualityICAO'
    QUALITY_VISA_SCHENGEN = 'QualityVisaSchengen'
    QUALITY_VISA_USA = 'QualityVisaUSA'
    CROP_CENTRAL_FACE = 'CropCentralFace'
    CROP_ALL_FACES = 'CropAllFaces'
    THUMBNAIL = 'Thumbnail'
    ATTRIBUTES_ALL = 'AttributesAll'
    EMPTY = ''

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


