Skip to content

Commit fc131d6

Browse files
Merge pull request #101 from regulaforensics/d26f10cc
Issue with processing the document
2 parents 2a285dd + 3b3d290 commit fc131d6

File tree

6 files changed

+202
-181
lines changed

6 files changed

+202
-181
lines changed

Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "pypi"
77
certifi = "==2023.7.22"
88
six = ">=1.10"
99
python-dateutil = ">=2.5.3"
10-
urllib3 = ">=1.15.1"
10+
urllib3 = "~=1.26.17"
1111
vistir = ">=0.4.0, <=0.6.1"
1212

1313
[dev-packages]

Pipfile.lock

Lines changed: 188 additions & 175 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

regula/documentreader/webclient/gen/configuration.py

Lines changed: 1 addition & 1 deletion
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.8.0\n"\
377+
"Version of the API: 6.9.0\n"\
378378
"SDK Package Version: 1.0.0".\
379379
format(env=sys.platform, pyversion=sys.version)
380380

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class ProcessParams(object):
7474
'split_names': 'bool',
7575
'disable_perforation_ocr': 'bool',
7676
'document_group_filter': 'list[DocumentType]',
77-
'process_auth': 'AuthenticityResultType[object]',
77+
'process_auth': 'int',
7878
'device_id': 'int',
7979
'device_type': 'int',
8080
'device_type_hex': 'str',
@@ -1248,19 +1248,21 @@ def document_group_filter(self, document_group_filter):
12481248
def process_auth(self):
12491249
"""Gets the process_auth of this ProcessParams. # noqa: E501
12501250
1251+
Authenticity checks that should be performed regardless of the document type. The available checks are listed in the eRPRM_Authenticity enum. Note that only supported by your license checks can be added. # noqa: E501
12511252
12521253
:return: The process_auth of this ProcessParams. # noqa: E501
1253-
:rtype: AuthenticityResultType[object]
1254+
:rtype: int
12541255
"""
12551256
return self._process_auth
12561257

12571258
@process_auth.setter
12581259
def process_auth(self, process_auth):
12591260
"""Sets the process_auth of this ProcessParams.
12601261
1262+
Authenticity checks that should be performed regardless of the document type. The available checks are listed in the eRPRM_Authenticity enum. Note that only supported by your license checks can be added. # noqa: E501
12611263
12621264
:param process_auth: The process_auth of this ProcessParams. # noqa: E501
1263-
:type process_auth: AuthenticityResultType[object]
1265+
:type process_auth: int
12641266
"""
12651267

12661268
self._process_auth = process_auth

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,14 @@ class Result(object):
5050

5151
STATUS = int("33")
5252

53+
PORTRAIT_COMPARISON = int("34")
54+
5355
TEXT = int("36")
5456

5557
IMAGES = int("37")
5658

59+
FINGERPRINT_COMPARISON = int("39")
60+
5761
ENCRYPTED_RCL = int("49")
5862

5963
LICENSE = int("50")
@@ -70,7 +74,7 @@ class Result(object):
7074

7175
RFID_ORIGINAL_GRAPHICS = int("105")
7276

73-
allowable_values = [DOCUMENT_IMAGE, MRZ_TEXT, BARCODES, VISUAL_GRAPHICS, DOCUMENT_TYPE_CANDIDATES, DOCUMENT_TYPE, LEXICAL_ANALYSIS, VISUAL_TEXT, BARCODE_TEXT, BARCODE_GRAPHICS, AUTHENTICITY, IMAGE_QUALITY, STATUS, TEXT, IMAGES, ENCRYPTED_RCL, LICENSE, DOCUMENT_POSITION, RFID_RAW_DATA, RFID_TEXT, RFID_GRAPHICS, RFID_BINARY_DATA, RFID_ORIGINAL_GRAPHICS] # noqa: E501
77+
allowable_values = [DOCUMENT_IMAGE, MRZ_TEXT, BARCODES, VISUAL_GRAPHICS, DOCUMENT_TYPE_CANDIDATES, DOCUMENT_TYPE, LEXICAL_ANALYSIS, VISUAL_TEXT, BARCODE_TEXT, BARCODE_GRAPHICS, AUTHENTICITY, IMAGE_QUALITY, STATUS, PORTRAIT_COMPARISON, TEXT, IMAGES, FINGERPRINT_COMPARISON, ENCRYPTED_RCL, LICENSE, DOCUMENT_POSITION, RFID_RAW_DATA, RFID_TEXT, RFID_GRAPHICS, RFID_BINARY_DATA, RFID_ORIGINAL_GRAPHICS] # noqa: E501
7478

7579
"""
7680
Attributes:

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,10 @@ class ResultItem(object):
5858
3 : 'TextDataResult',
5959
30 : 'ImageQualityResult',
6060
33 : 'StatusResult',
61+
34 : 'AuthenticityResult',
6162
36 : 'TextResult',
6263
37 : 'ImagesResult',
64+
39 : 'AuthenticityResult',
6365
49 : 'EncryptedRCLResult',
6466
5 : 'DocBarCodeInfo',
6567
50 : 'LicenseResult',

0 commit comments

Comments
 (0)