Skip to content

Commit f222593

Browse files
authored
Merge pull request #75 from regulaforensics/ac122a86
update clients
2 parents 4dec852 + 5c40de8 commit f222593

File tree

7 files changed

+263
-18
lines changed

7 files changed

+263
-18
lines changed

regula/documentreader/webclient/gen/configuration.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ def to_debug_report(self):
374374
return "Python SDK Debug Report:\n"\
375375
"OS: {env}\n"\
376376
"Python Version: {pyversion}\n"\
377-
"Version of the API: 6.5.0\n"\
377+
"Version of the API: 6.6.0\n"\
378378
"SDK Package Version: 1.0.0".\
379379
format(env=sys.platform, pyversion=sys.version)
380380

regula/documentreader/webclient/gen/models/authenticity_check_result_item.py

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ class AuthenticityCheckResultItem(object):
6464
65536 : 'SecurityFeatureResult',
6565
8 : 'SecurityFeatureResult',
6666
8192 : 'SecurityFeatureResult',
67+
8388608 : 'SecurityFeatureResult',
6768
}
6869

6970
def __init__(self, type=0, element_result=None, element_diagnose=None, local_vars_configuration=None): # noqa: E501

regula/documentreader/webclient/gen/models/authenticity_result_type.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,15 @@ class AuthenticityResultType(object):
5454

5555
LETTER_SCREEN = int("262144")
5656

57-
allowable_values = [UV_LUMINESCENCE, IR_B900, IMAGE_PATTERN, AXIAL_PROTECTION, UV_FIBERS, IR_VISIBILITY, OCR_SECURITY_TEXT, IPI, PHOTO_EMBED_TYPE, HOLOGRAMS, PHOTO_AREA, PORTRAIT_COMPARISON, BARCODE_FORMAT_CHECK, KINEGRAM, LETTER_SCREEN] # noqa: E501
57+
HOLOGRAM_DETECTION = int("524288")
58+
59+
FINGERPRINT_COMPARISON = int("1048576")
60+
61+
LIVENESS = int("2097152")
62+
63+
MRZ = int("8388608")
64+
65+
allowable_values = [UV_LUMINESCENCE, IR_B900, IMAGE_PATTERN, AXIAL_PROTECTION, UV_FIBERS, IR_VISIBILITY, OCR_SECURITY_TEXT, IPI, PHOTO_EMBED_TYPE, HOLOGRAMS, PHOTO_AREA, PORTRAIT_COMPARISON, BARCODE_FORMAT_CHECK, KINEGRAM, LETTER_SCREEN, HOLOGRAM_DETECTION, FINGERPRINT_COMPARISON, LIVENESS, MRZ] # noqa: E501
5866

5967
"""
6068
Attributes:

regula/documentreader/webclient/gen/models/check_diagnose.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,15 @@ class CheckDiagnose(object):
180180

181181
PORTRAIT_COMPARISON_NO_PORTRAIT_DETECTED = int("156")
182182

183-
LAST_DIAGNOSE_VALUE = int("157")
184-
185183
FIELD_POS_CORRECTOR_PHOTO_REPLACED = int("82")
186184

187-
allowable_values = [UNKNOWN, PASS, INVALID_INPUT_DATA, INTERNAL_ERROR, EXCEPTION_IN_MODULE, UNCERTAIN_VERIFICATION, NECESSARY_IMAGE_NOT_FOUND, PHOTO_SIDES_NOT_FOUND, INVALID_CHECKSUM, SYNTAX_ERROR, LOGIC_ERROR, SOURCES_COMPARISON_ERROR, FIELDS_COMPARISON_LOGIC_ERROR, INVALID_FIELD_FORMAT, TRUE_LUMINESCENCE_ERROR, FALSE_LUMINESCENCE_ERROR, FIXED_PATTERN_ERROR, LOW_CONTRAST_IN_IR_LIGHT, INCORRECT_BACKGROUND_LIGHT, BACKGROUND_COMPARISON_ERROR, INCORRECT_TEXT_COLOR, PHOTO_FALSE_LUMINESCENCE, TOO_MUCH_SHIFT, FIBERS_NOT_FOUND, TOO_MANY_OBJECTS, SPECKS_IN_UV, TOO_LOW_RESOLUTION, INVISIBLE_ELEMENT_PRESENT, VISIBLE_ELEMENT_ABSENT, ELEMENT_SHOULD_BE_COLORED, ELEMENT_SHOULD_BE_GRAYSCALE, PHOTO_WHITE_IR_DONT_MATCH, UV_DULL_PAPER_MRZ, FALSE_LUMINESCENCE_IN_MRZ, UV_DULL_PAPER_PHOTO, UV_DULL_PAPER_BLANK, UV_DULL_PAPER_ERROR, FALSE_LUMINESCENCE_IN_BLANK, BAD_AREA_IN_AXIAL, FALSE_IP_PARAMETERS, FIELD_POS_CORRECTOR_HIGHLIGHT_IR, OVI_IR_INVISIBLE, OVI_INSUFFICIENT_AREA, OVI_COLOR_INVARIABLE, OVI_BAD_COLOR_FRONT, OVI_BAD_COLOR_SIDE, OVI_WIDE_COLOR_SPREAD, OVI_BAD_COLOR_PERCENT, HOLOGRAM_ELEMENT_ABSENT, HOLOGRAM_SIDE_TOP_IMAGES_ABSENT, HOLOGRAM_ELEMENT_PRESENT, PHOTO_PATTERN_INTERRUPTED, PHOTO_PATTERN_SHIFTED, PHOTO_PATTERN_DIFFERENT_COLORS, PHOTO_PATTERN_IR_VISIBLE, PHOTO_PATTERN_NOT_INTERSECT, PHOTO_SIZE_IS_WRONG, PHOTO_PATTERN_INVALID_COLOR, PHOTO_PATTERN_SHIFTED_VERT, PHOTO_PATTERN_PATTERN_NOT_FOUND, PHOTO_PATTERN_DIFFERENT_LINES_THICKNESS, PHOTO_IS_NOT_RECTANGLE, PHOTO_CORNERS_IS_WRONG, TEXT_COLOR_SHOULD_BE_BLUE, TEXT_COLOR_SHOULD_BE_GREEN, TEXT_COLOR_SHOULD_BE_RED, TEXT_SHOULD_BE_BLACK, BARCODE_WAS_READ_WITH_ERRORS, BARCODE_DATA_FORMAT_ERROR, BARCODE_SIZE_PARAMS_ERROR, NOT_ALL_BARCODES_READ, PORTRAIT_COMPARISON_PORTRAITS_DIFFER, PORTRAIT_COMPARISON_NO_SERVICE_REPLY, PORTRAIT_COMPARISON_SERVICE_ERROR, PORTRAIT_COMPARISON_NOT_ENOUGH_IMAGES, PORTRAIT_COMPARISON_NO_LIVE_PHOTO, PORTRAIT_COMPARISON_NO_SERVICE_LICENSE, PORTRAIT_COMPARISON_NO_PORTRAIT_DETECTED, LAST_DIAGNOSE_VALUE, FIELD_POS_CORRECTOR_PHOTO_REPLACED] # noqa: E501
185+
WRONG_MRZ_DPI = int("200")
186+
187+
WRONG_BACKGROUND = int("201")
188+
189+
LAST_DIAGNOSE_VALUE = int("210")
190+
191+
allowable_values = [UNKNOWN, PASS, INVALID_INPUT_DATA, INTERNAL_ERROR, EXCEPTION_IN_MODULE, UNCERTAIN_VERIFICATION, NECESSARY_IMAGE_NOT_FOUND, PHOTO_SIDES_NOT_FOUND, INVALID_CHECKSUM, SYNTAX_ERROR, LOGIC_ERROR, SOURCES_COMPARISON_ERROR, FIELDS_COMPARISON_LOGIC_ERROR, INVALID_FIELD_FORMAT, TRUE_LUMINESCENCE_ERROR, FALSE_LUMINESCENCE_ERROR, FIXED_PATTERN_ERROR, LOW_CONTRAST_IN_IR_LIGHT, INCORRECT_BACKGROUND_LIGHT, BACKGROUND_COMPARISON_ERROR, INCORRECT_TEXT_COLOR, PHOTO_FALSE_LUMINESCENCE, TOO_MUCH_SHIFT, FIBERS_NOT_FOUND, TOO_MANY_OBJECTS, SPECKS_IN_UV, TOO_LOW_RESOLUTION, INVISIBLE_ELEMENT_PRESENT, VISIBLE_ELEMENT_ABSENT, ELEMENT_SHOULD_BE_COLORED, ELEMENT_SHOULD_BE_GRAYSCALE, PHOTO_WHITE_IR_DONT_MATCH, UV_DULL_PAPER_MRZ, FALSE_LUMINESCENCE_IN_MRZ, UV_DULL_PAPER_PHOTO, UV_DULL_PAPER_BLANK, UV_DULL_PAPER_ERROR, FALSE_LUMINESCENCE_IN_BLANK, BAD_AREA_IN_AXIAL, FALSE_IP_PARAMETERS, FIELD_POS_CORRECTOR_HIGHLIGHT_IR, OVI_IR_INVISIBLE, OVI_INSUFFICIENT_AREA, OVI_COLOR_INVARIABLE, OVI_BAD_COLOR_FRONT, OVI_BAD_COLOR_SIDE, OVI_WIDE_COLOR_SPREAD, OVI_BAD_COLOR_PERCENT, HOLOGRAM_ELEMENT_ABSENT, HOLOGRAM_SIDE_TOP_IMAGES_ABSENT, HOLOGRAM_ELEMENT_PRESENT, PHOTO_PATTERN_INTERRUPTED, PHOTO_PATTERN_SHIFTED, PHOTO_PATTERN_DIFFERENT_COLORS, PHOTO_PATTERN_IR_VISIBLE, PHOTO_PATTERN_NOT_INTERSECT, PHOTO_SIZE_IS_WRONG, PHOTO_PATTERN_INVALID_COLOR, PHOTO_PATTERN_SHIFTED_VERT, PHOTO_PATTERN_PATTERN_NOT_FOUND, PHOTO_PATTERN_DIFFERENT_LINES_THICKNESS, PHOTO_IS_NOT_RECTANGLE, PHOTO_CORNERS_IS_WRONG, TEXT_COLOR_SHOULD_BE_BLUE, TEXT_COLOR_SHOULD_BE_GREEN, TEXT_COLOR_SHOULD_BE_RED, TEXT_SHOULD_BE_BLACK, BARCODE_WAS_READ_WITH_ERRORS, BARCODE_DATA_FORMAT_ERROR, BARCODE_SIZE_PARAMS_ERROR, NOT_ALL_BARCODES_READ, PORTRAIT_COMPARISON_PORTRAITS_DIFFER, PORTRAIT_COMPARISON_NO_SERVICE_REPLY, PORTRAIT_COMPARISON_SERVICE_ERROR, PORTRAIT_COMPARISON_NOT_ENOUGH_IMAGES, PORTRAIT_COMPARISON_NO_LIVE_PHOTO, PORTRAIT_COMPARISON_NO_SERVICE_LICENSE, PORTRAIT_COMPARISON_NO_PORTRAIT_DETECTED, FIELD_POS_CORRECTOR_PHOTO_REPLACED, WRONG_MRZ_DPI, WRONG_BACKGROUND, LAST_DIAGNOSE_VALUE] # noqa: E501
188192

189193
"""
190194
Attributes:

regula/documentreader/webclient/gen/models/image_qa.py

+31-3
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ class ImageQA(object):
3737
'focus_check': 'bool',
3838
'glares_check': 'bool',
3939
'colorness_check': 'bool',
40-
'moire_check': 'bool'
40+
'moire_check': 'bool',
41+
'document_position_indent': 'int'
4142
}
4243

4344
attribute_map = {
@@ -46,10 +47,11 @@ class ImageQA(object):
4647
'focus_check': 'focusCheck',
4748
'glares_check': 'glaresCheck',
4849
'colorness_check': 'colornessCheck',
49-
'moire_check': 'moireCheck'
50+
'moire_check': 'moireCheck',
51+
'document_position_indent': 'documentPositionIndent'
5052
}
5153

52-
def __init__(self, dpi_threshold=None, angle_threshold=None, focus_check=None, glares_check=None, colorness_check=None, moire_check=None, local_vars_configuration=None): # noqa: E501
54+
def __init__(self, dpi_threshold=None, angle_threshold=None, focus_check=None, glares_check=None, colorness_check=None, moire_check=None, document_position_indent=None, local_vars_configuration=None): # noqa: E501
5355
"""ImageQA - a model defined in OpenAPI""" # noqa: E501
5456
if local_vars_configuration is None:
5557
local_vars_configuration = Configuration()
@@ -61,6 +63,7 @@ def __init__(self, dpi_threshold=None, angle_threshold=None, focus_check=None, g
6163
self._glares_check = None
6264
self._colorness_check = None
6365
self._moire_check = None
66+
self._document_position_indent = None
6467
self.discriminator = None
6568

6669
if dpi_threshold is not None:
@@ -75,6 +78,8 @@ def __init__(self, dpi_threshold=None, angle_threshold=None, focus_check=None, g
7578
self.colorness_check = colorness_check
7679
if moire_check is not None:
7780
self.moire_check = moire_check
81+
if document_position_indent is not None:
82+
self.document_position_indent = document_position_indent
7883

7984
@property
8085
def dpi_threshold(self):
@@ -214,6 +219,29 @@ def moire_check(self, moire_check):
214219

215220
self._moire_check = moire_check
216221

222+
@property
223+
def document_position_indent(self):
224+
"""Gets the document_position_indent of this ImageQA. # noqa: E501
225+
226+
This parameter specifies the necessary margin. Default 0. # noqa: E501
227+
228+
:return: The document_position_indent of this ImageQA. # noqa: E501
229+
:rtype: int
230+
"""
231+
return self._document_position_indent
232+
233+
@document_position_indent.setter
234+
def document_position_indent(self, document_position_indent):
235+
"""Sets the document_position_indent of this ImageQA.
236+
237+
This parameter specifies the necessary margin. Default 0. # noqa: E501
238+
239+
:param document_position_indent: The document_position_indent of this ImageQA. # noqa: E501
240+
:type document_position_indent: int
241+
"""
242+
243+
self._document_position_indent = document_position_indent
244+
217245
def to_dict(self):
218246
"""Returns the model properties as a dict"""
219247
result = {}

0 commit comments

Comments
 (0)