Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.12.0
7.13.0
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ with open("australia_passport.jpg", "rb") as f:

with DocumentReaderApi(host='http://localhost:8080') as api:
params = ProcessParams(
scenario=Scenario.FULLPROCESS,
scenario=Scenario.FULL_PROCESS,
result_type_output=[Result.DOCUMENT_IMAGE, Result.STATUS, Result.TEXT, Result.IMAGES]
)
request = RecognitionRequest(process_params=params, images=[input_image])
Expand Down
2 changes: 1 addition & 1 deletion example/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"X-CLIENT-KEY": "123",
"Authorization": "Bearer 123"
}
params = ProcessParams(alreadyCropped=True, scenario=Scenario.FULLPROCESS)
params = ProcessParams(alreadyCropped=True, scenario=Scenario.FULL_PROCESS)

request = RecognitionRequest(process_params=params, images=[
RecognitionImage(image=white_page_0, light_index=Light.WHITE, page_index=0),
Expand Down
40 changes: 20 additions & 20 deletions regula/documentreader/webclient/gen/models/input_barcode_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,26 @@ class InputBarcodeType(str, Enum):
"""
allowed enum values
"""
BCT_UNKNOWN = 'bct_unknown'
BCT_CODE128 = 'bct_Code128'
BCT_CODE39 = 'bct_Code39'
BCT_EAN8 = 'bct_EAN8'
BCT_ITF = 'bct_ITF'
BCT_PDF417 = 'bct_PDF417'
BCT_STF = 'bct_STF'
BCT_MTF = 'bct_MTF'
BCT_IATA = 'bct_IATA'
BCT_CODABAR = 'bct_CODABAR'
BCT_UPCA = 'bct_UPCA'
BCT_CODE93 = 'bct_CODE93'
BCT_UPCE = 'bct_UPCE'
BCT_EAN13 = 'bct_EAN13'
BCT_QRCODE = 'bct_QRCODE'
BCT_AZTEC = 'bct_AZTEC'
BCT_DATAMATRIX = 'bct_DATAMATRIX'
BCT_ALL_1_D = 'bct_ALL_1D'
BCT_CODE11 = 'bct_Code11'
BCT_JABCODE = 'bct_JABCODE'
UNKNOWN = 'bct_unknown'
CODE128 = 'bct_Code128'
CODE39 = 'bct_Code39'
EAN8 = 'bct_EAN8'
ITF = 'bct_ITF'
PDF417 = 'bct_PDF417'
STF = 'bct_STF'
MTF = 'bct_MTF'
IATA = 'bct_IATA'
CODABAR = 'bct_CODABAR'
UPCA = 'bct_UPCA'
CODE93 = 'bct_CODE93'
UPCE = 'bct_UPCE'
EAN13 = 'bct_EAN13'
QRCODE = 'bct_QRCODE'
AZTEC = 'bct_AZTEC'
DATAMATRIX = 'bct_DATAMATRIX'
ALL_1D = 'bct_ALL_1D'
CODE11 = 'bct_Code11'
JABCODE = 'bct_JABCODE'

@classmethod
def from_json(cls, json_str: str) -> Self:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ class InputImageQualityChecks(str, Enum):
"""
allowed enum values
"""
GLARESCHECK = 'glaresCheck'
FOCUSCHECK = 'focusCheck'
DPITHRESHOLD = 'dpiThreshold'
COLORNESSCHECK = 'colornessCheck'
PERSPECTIVECHECK = 'perspectiveCheck'
DOCUMENTPOSITION = 'documentPosition'
PORTRAITCHECK = 'portraitCheck'
BRIGHTNESSCHECK = 'brightnessCheck'
OCCLUSIONCHECK = 'occlusionCheck'
Glares = 'glaresCheck'
Focus = 'focusCheck'
Resolution = 'dpiThreshold'
Colorness = 'colornessCheck'
Perspective = 'perspectiveCheck'
Bounds = 'documentPosition'
Portrait = 'portraitCheck'
Brightness = 'brightnessCheck'
Occlusion = 'occlusionCheck'

@classmethod
def from_json(cls, json_str: str) -> Self:
Expand Down
2 changes: 1 addition & 1 deletion regula/documentreader/webclient/gen/models/log_level.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class LogLevel(str, Enum):
"""
allowed enum values
"""
FATALERROR = 'FatalError'
FATAL_ERROR = 'FatalError'
ERROR = 'Error'
WARNING = 'Warning'
INFO = 'Info'
Expand Down
12 changes: 6 additions & 6 deletions regula/documentreader/webclient/gen/models/mrz_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ class MRZFormat(str, Enum):
"""
allowed enum values
"""
ENUM_1X30 = '1x30'
ENUM_3X30 = '3x30'
ENUM_2X36 = '2x36'
ENUM_2X44 = '2x44'
ENUM_1X6 = '1x6'
ENUM_2X30 = '2x30'
IDL = '1x30'
ID1 = '3x30'
ID2 = '2x36'
ID3 = '2x44'
CAN = '1x6'
ID1_2_30 = '2x30'

@classmethod
def from_json(cls, json_str: str) -> Self:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ class ParsingNotificationCodes(int, Enum):
ntfLDS_ICAO_Certificate_VisualMrz_Country_NonMatching = 2415919697
ntfLDS_MRZ_CountryCode_VisualMrz_NonMatching = 139289
ntfLDS_ICAO_Certificate_MRZ_Country_NonMatching = 2415919698
ntfLDS_ICAO_Certificate_Issuer_CountryNonUpperCase = 2415919699
ntfLDS_ICAO_Certificate_Subject_CountryNonUpperCase = 2415919700

@classmethod
def from_json(cls, json_str: str) -> Self:
Expand Down
22 changes: 11 additions & 11 deletions regula/documentreader/webclient/gen/models/scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ class Scenario(str, Enum):
LOCATE = 'Locate'
OCR = 'Ocr'
DOCTYPE = 'DocType'
MRZORBARCODE = 'MrzOrBarcode'
MRZORLOCATE = 'MrzOrLocate'
MRZANDLOCATE = 'MrzAndLocate'
BARCODEANDLOCATE = 'BarcodeAndLocate'
MRZOROCR = 'MrzOrOcr'
MRZORBARCODEOROCR = 'MrzOrBarcodeOrOcr'
MRZ_OR_BARCODE = 'MrzOrBarcode'
MRZ_OR_LOCATE = 'MrzOrLocate'
MRZ_AND_LOCATE = 'MrzAndLocate'
BARCODE_AND_LOCATE = 'BarcodeAndLocate'
MRZ_OR_OCR = 'MrzOrOcr'
MRZ_OR_BARCODE_OR_OCR = 'MrzOrBarcodeOrOcr'
LOCATE_VISUAL_AND_MRZ_OR_OCR = 'LocateVisual_And_MrzOrOcr'
FULLPROCESS = 'FullProcess'
FULLAUTH = 'FullAuth'
RUSSTAMP = 'RusStamp'
OCRFREE = 'OcrFree'
CREDITCARD = 'CreditCard'
FULL_PROCESS = 'FullProcess'
FULL_AUTH = 'FullAuth'
RUS_STAMP = 'RusStamp'
OCR_FREE = 'OcrFree'
CREDIT_CARD = 'CreditCard'
CAPTURE = 'Capture'
DTC = 'DTC'
RFID = 'RFID'
Expand Down
2 changes: 1 addition & 1 deletion update-models.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ DOCS_DEFINITION_FOLDER="${PWD}/../DocumentReader-web-openapi" \
&& docker run --user "$(id -u):$(id -g)" --rm \
-v "${PWD}:/client" \
-v "$DOCS_DEFINITION_FOLDER:/definitions" \
openapitools/openapi-generator-cli:v7.12.0 generate \
openapitools/openapi-generator-cli:v7.13.0 generate \
-g python \
-i /definitions/index.yml \
-o /client \
Expand Down