Skip to content

Commit 59a3527

Browse files
Merge pull request #211 from regulaforensics/feature/SP-23476
SP-23476 - update eLDS_ParsingNotificationCodes, generator version
2 parents 532390a + 57b2036 commit 59a3527

File tree

10 files changed

+53
-51
lines changed

10 files changed

+53
-51
lines changed

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.12.0
1+
7.13.0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ with open("australia_passport.jpg", "rb") as f:
3939

4040
with DocumentReaderApi(host='http://localhost:8080') as api:
4141
params = ProcessParams(
42-
scenario=Scenario.FULLPROCESS,
42+
scenario=Scenario.FULL_PROCESS,
4343
result_type_output=[Result.DOCUMENT_IMAGE, Result.STATUS, Result.TEXT, Result.IMAGES]
4444
)
4545
request = RecognitionRequest(process_params=params, images=[input_image])

example/example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"X-CLIENT-KEY": "123",
1919
"Authorization": "Bearer 123"
2020
}
21-
params = ProcessParams(alreadyCropped=True, scenario=Scenario.FULLPROCESS)
21+
params = ProcessParams(alreadyCropped=True, scenario=Scenario.FULL_PROCESS)
2222

2323
request = RecognitionRequest(process_params=params, images=[
2424
RecognitionImage(image=white_page_0, light_index=Light.WHITE, page_index=0),

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

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,26 @@ class InputBarcodeType(str, Enum):
1818
"""
1919
allowed enum values
2020
"""
21-
BCT_UNKNOWN = 'bct_unknown'
22-
BCT_CODE128 = 'bct_Code128'
23-
BCT_CODE39 = 'bct_Code39'
24-
BCT_EAN8 = 'bct_EAN8'
25-
BCT_ITF = 'bct_ITF'
26-
BCT_PDF417 = 'bct_PDF417'
27-
BCT_STF = 'bct_STF'
28-
BCT_MTF = 'bct_MTF'
29-
BCT_IATA = 'bct_IATA'
30-
BCT_CODABAR = 'bct_CODABAR'
31-
BCT_UPCA = 'bct_UPCA'
32-
BCT_CODE93 = 'bct_CODE93'
33-
BCT_UPCE = 'bct_UPCE'
34-
BCT_EAN13 = 'bct_EAN13'
35-
BCT_QRCODE = 'bct_QRCODE'
36-
BCT_AZTEC = 'bct_AZTEC'
37-
BCT_DATAMATRIX = 'bct_DATAMATRIX'
38-
BCT_ALL_1_D = 'bct_ALL_1D'
39-
BCT_CODE11 = 'bct_Code11'
40-
BCT_JABCODE = 'bct_JABCODE'
21+
UNKNOWN = 'bct_unknown'
22+
CODE128 = 'bct_Code128'
23+
CODE39 = 'bct_Code39'
24+
EAN8 = 'bct_EAN8'
25+
ITF = 'bct_ITF'
26+
PDF417 = 'bct_PDF417'
27+
STF = 'bct_STF'
28+
MTF = 'bct_MTF'
29+
IATA = 'bct_IATA'
30+
CODABAR = 'bct_CODABAR'
31+
UPCA = 'bct_UPCA'
32+
CODE93 = 'bct_CODE93'
33+
UPCE = 'bct_UPCE'
34+
EAN13 = 'bct_EAN13'
35+
QRCODE = 'bct_QRCODE'
36+
AZTEC = 'bct_AZTEC'
37+
DATAMATRIX = 'bct_DATAMATRIX'
38+
ALL_1D = 'bct_ALL_1D'
39+
CODE11 = 'bct_Code11'
40+
JABCODE = 'bct_JABCODE'
4141

4242
@classmethod
4343
def from_json(cls, json_str: str) -> Self:

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ class InputImageQualityChecks(str, Enum):
1818
"""
1919
allowed enum values
2020
"""
21-
GLARESCHECK = 'glaresCheck'
22-
FOCUSCHECK = 'focusCheck'
23-
DPITHRESHOLD = 'dpiThreshold'
24-
COLORNESSCHECK = 'colornessCheck'
25-
PERSPECTIVECHECK = 'perspectiveCheck'
26-
DOCUMENTPOSITION = 'documentPosition'
27-
PORTRAITCHECK = 'portraitCheck'
28-
BRIGHTNESSCHECK = 'brightnessCheck'
29-
OCCLUSIONCHECK = 'occlusionCheck'
21+
Glares = 'glaresCheck'
22+
Focus = 'focusCheck'
23+
Resolution = 'dpiThreshold'
24+
Colorness = 'colornessCheck'
25+
Perspective = 'perspectiveCheck'
26+
Bounds = 'documentPosition'
27+
Portrait = 'portraitCheck'
28+
Brightness = 'brightnessCheck'
29+
Occlusion = 'occlusionCheck'
3030

3131
@classmethod
3232
def from_json(cls, json_str: str) -> Self:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class LogLevel(str, Enum):
1818
"""
1919
allowed enum values
2020
"""
21-
FATALERROR = 'FatalError'
21+
FATAL_ERROR = 'FatalError'
2222
ERROR = 'Error'
2323
WARNING = 'Warning'
2424
INFO = 'Info'

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ class MRZFormat(str, Enum):
1818
"""
1919
allowed enum values
2020
"""
21-
ENUM_1X30 = '1x30'
22-
ENUM_3X30 = '3x30'
23-
ENUM_2X36 = '2x36'
24-
ENUM_2X44 = '2x44'
25-
ENUM_1X6 = '1x6'
26-
ENUM_2X30 = '2x30'
21+
IDL = '1x30'
22+
ID1 = '3x30'
23+
ID2 = '2x36'
24+
ID3 = '2x44'
25+
CAN = '1x6'
26+
ID1_2_30 = '2x30'
2727

2828
@classmethod
2929
def from_json(cls, json_str: str) -> Self:

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,8 @@ class ParsingNotificationCodes(int, Enum):
240240
ntfLDS_ICAO_Certificate_VisualMrz_Country_NonMatching = 2415919697
241241
ntfLDS_MRZ_CountryCode_VisualMrz_NonMatching = 139289
242242
ntfLDS_ICAO_Certificate_MRZ_Country_NonMatching = 2415919698
243+
ntfLDS_ICAO_Certificate_Issuer_CountryNonUpperCase = 2415919699
244+
ntfLDS_ICAO_Certificate_Subject_CountryNonUpperCase = 2415919700
243245

244246
@classmethod
245247
def from_json(cls, json_str: str) -> Self:

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ class Scenario(str, Enum):
2323
LOCATE = 'Locate'
2424
OCR = 'Ocr'
2525
DOCTYPE = 'DocType'
26-
MRZORBARCODE = 'MrzOrBarcode'
27-
MRZORLOCATE = 'MrzOrLocate'
28-
MRZANDLOCATE = 'MrzAndLocate'
29-
BARCODEANDLOCATE = 'BarcodeAndLocate'
30-
MRZOROCR = 'MrzOrOcr'
31-
MRZORBARCODEOROCR = 'MrzOrBarcodeOrOcr'
26+
MRZ_OR_BARCODE = 'MrzOrBarcode'
27+
MRZ_OR_LOCATE = 'MrzOrLocate'
28+
MRZ_AND_LOCATE = 'MrzAndLocate'
29+
BARCODE_AND_LOCATE = 'BarcodeAndLocate'
30+
MRZ_OR_OCR = 'MrzOrOcr'
31+
MRZ_OR_BARCODE_OR_OCR = 'MrzOrBarcodeOrOcr'
3232
LOCATE_VISUAL_AND_MRZ_OR_OCR = 'LocateVisual_And_MrzOrOcr'
33-
FULLPROCESS = 'FullProcess'
34-
FULLAUTH = 'FullAuth'
35-
RUSSTAMP = 'RusStamp'
36-
OCRFREE = 'OcrFree'
37-
CREDITCARD = 'CreditCard'
33+
FULL_PROCESS = 'FullProcess'
34+
FULL_AUTH = 'FullAuth'
35+
RUS_STAMP = 'RusStamp'
36+
OCR_FREE = 'OcrFree'
37+
CREDIT_CARD = 'CreditCard'
3838
CAPTURE = 'Capture'
3939
DTC = 'DTC'
4040
RFID = 'RFID'

update-models.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ DOCS_DEFINITION_FOLDER="${PWD}/../DocumentReader-web-openapi" \
55
&& docker run --user "$(id -u):$(id -g)" --rm \
66
-v "${PWD}:/client" \
77
-v "$DOCS_DEFINITION_FOLDER:/definitions" \
8-
openapitools/openapi-generator-cli:v7.12.0 generate \
8+
openapitools/openapi-generator-cli:v7.13.0 generate \
99
-g python \
1010
-i /definitions/index.yml \
1111
-o /client \

0 commit comments

Comments
 (0)