-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathresult.py
More file actions
66 lines (58 loc) · 1.32 KB
/
result.py
File metadata and controls
66 lines (58 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# 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 Result(int, Enum):
"""
Result
"""
"""
allowed enum values
"""
DOCUMENT_IMAGE = 1
MRZ_TEXT = 3
BARCODES = 5
VISUAL_GRAPHICS = 6
MRZ_TEST_QUALITY = 7
DOCUMENT_TYPE_CANDIDATES = 8
DOCUMENT_TYPE = 9
LEXICAL_ANALYSIS = 15
RAW_UNCROPPED_IMAGE = 16
VISUAL_TEXT = 17
BARCODE_TEXT = 18
BARCODE_GRAPHICS = 19
AUTHENTICITY = 20
MAGNETIC_STRIPE_TEXT_DATA = 26
IMAGE_QUALITY = 30
LIVE_PORTRAIT = 32
STATUS = 33
PORTRAIT_COMPARISON = 34
EXT_PORTRAIT = 35
TEXT = 36
IMAGES = 37
FINGERPRINTS = 38
FINGERPRINT_COMPARISON = 39
ENCRYPTED_RCL = 49
LICENSE = 50
MRZ_POSITION = 61
BARCODE_POSITION = 62
DOCUMENT_POSITION = 85
MRZ_DETECTOR = 87
FACE_DETECTION = 97
RFID_RAW_DATA = 101
RFID_TEXT = 102
RFID_GRAPHICS = 103
RFID_BINARY_DATA = 104
RFID_ORIGINAL_GRAPHICS = 105
DTC_VC = 109
MDL_PARSED_RESPONSE = 121
VDS_NC = 124
VDS = 125
@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of Result from a JSON string"""
return cls(json.loads(json_str))