regula-documentreader-webclient 8.3.444.dev0__py3-none-any.whl → 8.3.445.dev0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of regula-documentreader-webclient might be problematic. Click here for more details.
- {regula_documentreader_webclient-8.3.444.dev0.dist-info → regula_documentreader_webclient-8.3.445.dev0.dist-info}/METADATA +1 -1
- {regula_documentreader_webclient-8.3.444.dev0.dist-info → regula_documentreader_webclient-8.3.445.dev0.dist-info}/RECORD +4 -5
- regula/documentreader/webclient/gen/models/mrz_position.py +0 -124
- {regula_documentreader_webclient-8.3.444.dev0.dist-info → regula_documentreader_webclient-8.3.445.dev0.dist-info}/WHEEL +0 -0
- {regula_documentreader_webclient-8.3.444.dev0.dist-info → regula_documentreader_webclient-8.3.445.dev0.dist-info}/top_level.txt +0 -0
|
@@ -139,7 +139,6 @@ regula/documentreader/webclient/gen/models/measure_system.py,sha256=CltBZGhqVVeu
|
|
|
139
139
|
regula/documentreader/webclient/gen/models/mrz_detect_mode_enum.py,sha256=gc8c4HTAa5yRutUhXOFbO2ZKhphArW0vhenb24bEJTE,643
|
|
140
140
|
regula/documentreader/webclient/gen/models/mrz_detector_result.py,sha256=3Iy1Emh-78SLcNadQnU4tD5d8WS1Qgt06qXlWO9L7SA,3145
|
|
141
141
|
regula/documentreader/webclient/gen/models/mrz_format.py,sha256=Uct326zRg58CUYdSyKdFbLU76JTSuw1KnDbFaidY5aQ,559
|
|
142
|
-
regula/documentreader/webclient/gen/models/mrz_position.py,sha256=6FgL2GlrCFdiWlHN0lzx2JLAzT8_eCzdGWVlFdY4Th0,5355
|
|
143
142
|
regula/documentreader/webclient/gen/models/mrz_position_item.py,sha256=8qHyJkiM8CavGJ-hRWhAfVBx5mFIR1A442HfCoxopJw,2640
|
|
144
143
|
regula/documentreader/webclient/gen/models/mrz_position_result.py,sha256=ZUJmojw4nDESbdqoa4rXmkz0ifLkJeeRiFmghAcLA-s,3076
|
|
145
144
|
regula/documentreader/webclient/gen/models/mrz_rows_item.py,sha256=zg8ionWM6Zk0foddP0zp8sYnTLKrLo5lU1ZnjhA5coc,2905
|
|
@@ -258,7 +257,7 @@ regula/documentreader/webclient/gen/models/verification_result.py,sha256=E6bCVR5
|
|
|
258
257
|
regula/documentreader/webclient/gen/models/verified_field_map.py,sha256=IY61Fh_I1cfecOYHPywHX-C9zc0w9POm3Jn68tNXq-k,4713
|
|
259
258
|
regula/documentreader/webclient/gen/models/visibility.py,sha256=GACgQd_8lx_cwMwI5lCi7cTxEWxw2atbJo6uI4mTKpQ,602
|
|
260
259
|
regula/documentreader/webclient/gen/models/visual_extended_field_item.py,sha256=3Q86Cngm5H0eIB7NzHtuT90-Kh6GQz4YzT2sDgJWsvM,5001
|
|
261
|
-
regula_documentreader_webclient-8.3.
|
|
262
|
-
regula_documentreader_webclient-8.3.
|
|
263
|
-
regula_documentreader_webclient-8.3.
|
|
264
|
-
regula_documentreader_webclient-8.3.
|
|
260
|
+
regula_documentreader_webclient-8.3.445.dev0.dist-info/METADATA,sha256=aL6rclMP80cVTJTYprPKAMXFDmGAsrzuK2LEgdlbmEY,4001
|
|
261
|
+
regula_documentreader_webclient-8.3.445.dev0.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
|
|
262
|
+
regula_documentreader_webclient-8.3.445.dev0.dist-info/top_level.txt,sha256=SFSSVn4j8QDivd3307s97NtpIJ8zOjiWZloAxZIClJY,7
|
|
263
|
+
regula_documentreader_webclient-8.3.445.dev0.dist-info/RECORD,,
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
Generated by: https://openapi-generator.tech
|
|
5
|
-
"""
|
|
6
|
-
|
|
7
|
-
from __future__ import annotations
|
|
8
|
-
import pprint
|
|
9
|
-
import re # noqa: F401
|
|
10
|
-
import json
|
|
11
|
-
|
|
12
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt
|
|
13
|
-
from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
14
|
-
from regula.documentreader.webclient.gen.models.document_format import DocumentFormat
|
|
15
|
-
from regula.documentreader.webclient.gen.models.point import Point
|
|
16
|
-
from typing import Optional, Set
|
|
17
|
-
from typing_extensions import Self
|
|
18
|
-
|
|
19
|
-
class MrzPosition(BaseModel):
|
|
20
|
-
"""
|
|
21
|
-
MrzPosition
|
|
22
|
-
""" # noqa: E501
|
|
23
|
-
doc_format: DocumentFormat = Field(alias="docFormat")
|
|
24
|
-
angle: Union[StrictFloat, StrictInt] = Field(description="Document rotation angle", alias="Angle")
|
|
25
|
-
width: StrictInt = Field(description="Document width", alias="Width")
|
|
26
|
-
height: StrictInt = Field(description="Document height", alias="Height")
|
|
27
|
-
center: Point = Field(alias="Center")
|
|
28
|
-
left_bottom: Point = Field(alias="LeftBottom")
|
|
29
|
-
left_top: Point = Field(alias="LeftTop")
|
|
30
|
-
right_bottom: Point = Field(alias="RightBottom")
|
|
31
|
-
right_top: Point = Field(alias="RightTop")
|
|
32
|
-
dpi: StrictInt = Field(alias="Dpi")
|
|
33
|
-
inverse: Optional[StrictInt] = Field(default=None, alias="Inverse")
|
|
34
|
-
obj_area: Optional[StrictInt] = Field(default=None, alias="ObjArea")
|
|
35
|
-
obj_int_angle_dev: Optional[StrictInt] = Field(default=None, alias="ObjIntAngleDev")
|
|
36
|
-
perspective_tr: Optional[StrictInt] = Field(default=None, alias="PerspectiveTr")
|
|
37
|
-
result_status: Optional[StrictInt] = Field(default=None, alias="ResultStatus")
|
|
38
|
-
__properties: ClassVar[List[str]] = ["docFormat", "Angle", "Width", "Height", "Center", "LeftBottom", "LeftTop", "RightBottom", "RightTop", "Dpi", "Inverse", "ObjArea", "ObjIntAngleDev", "PerspectiveTr", "ResultStatus"]
|
|
39
|
-
|
|
40
|
-
model_config = ConfigDict(
|
|
41
|
-
populate_by_name=True,
|
|
42
|
-
validate_assignment=True,
|
|
43
|
-
protected_namespaces=(),
|
|
44
|
-
)
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
def to_str(self) -> str:
|
|
48
|
-
"""Returns the string representation of the model using alias"""
|
|
49
|
-
return pprint.pformat(self.model_dump(by_alias=True))
|
|
50
|
-
|
|
51
|
-
def to_json(self) -> str:
|
|
52
|
-
"""Returns the JSON representation of the model using alias"""
|
|
53
|
-
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
54
|
-
return json.dumps(self.to_dict())
|
|
55
|
-
|
|
56
|
-
@classmethod
|
|
57
|
-
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
58
|
-
"""Create an instance of MrzPosition from a JSON string"""
|
|
59
|
-
return cls.from_dict(json.loads(json_str))
|
|
60
|
-
|
|
61
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
62
|
-
"""Return the dictionary representation of the model using alias.
|
|
63
|
-
|
|
64
|
-
This has the following differences from calling pydantic's
|
|
65
|
-
`self.model_dump(by_alias=True)`:
|
|
66
|
-
|
|
67
|
-
* `None` is only added to the output dict for nullable fields that
|
|
68
|
-
were set at model initialization. Other fields with value `None`
|
|
69
|
-
are ignored.
|
|
70
|
-
"""
|
|
71
|
-
excluded_fields: Set[str] = set([
|
|
72
|
-
])
|
|
73
|
-
|
|
74
|
-
_dict = self.model_dump(
|
|
75
|
-
by_alias=True,
|
|
76
|
-
exclude=excluded_fields,
|
|
77
|
-
exclude_none=True,
|
|
78
|
-
)
|
|
79
|
-
# override the default output from pydantic by calling `to_dict()` of center
|
|
80
|
-
if self.center:
|
|
81
|
-
_dict['Center'] = self.center.to_dict()
|
|
82
|
-
# override the default output from pydantic by calling `to_dict()` of left_bottom
|
|
83
|
-
if self.left_bottom:
|
|
84
|
-
_dict['LeftBottom'] = self.left_bottom.to_dict()
|
|
85
|
-
# override the default output from pydantic by calling `to_dict()` of left_top
|
|
86
|
-
if self.left_top:
|
|
87
|
-
_dict['LeftTop'] = self.left_top.to_dict()
|
|
88
|
-
# override the default output from pydantic by calling `to_dict()` of right_bottom
|
|
89
|
-
if self.right_bottom:
|
|
90
|
-
_dict['RightBottom'] = self.right_bottom.to_dict()
|
|
91
|
-
# override the default output from pydantic by calling `to_dict()` of right_top
|
|
92
|
-
if self.right_top:
|
|
93
|
-
_dict['RightTop'] = self.right_top.to_dict()
|
|
94
|
-
return _dict
|
|
95
|
-
|
|
96
|
-
@classmethod
|
|
97
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
98
|
-
"""Create an instance of MrzPosition from a dict"""
|
|
99
|
-
if obj is None:
|
|
100
|
-
return None
|
|
101
|
-
|
|
102
|
-
if not isinstance(obj, dict):
|
|
103
|
-
return cls.model_validate(obj)
|
|
104
|
-
|
|
105
|
-
_obj = cls.model_validate({
|
|
106
|
-
"docFormat": obj.get("docFormat"),
|
|
107
|
-
"Angle": obj.get("Angle"),
|
|
108
|
-
"Width": obj.get("Width"),
|
|
109
|
-
"Height": obj.get("Height"),
|
|
110
|
-
"Center": Point.from_dict(obj["Center"]) if obj.get("Center") is not None else None,
|
|
111
|
-
"LeftBottom": Point.from_dict(obj["LeftBottom"]) if obj.get("LeftBottom") is not None else None,
|
|
112
|
-
"LeftTop": Point.from_dict(obj["LeftTop"]) if obj.get("LeftTop") is not None else None,
|
|
113
|
-
"RightBottom": Point.from_dict(obj["RightBottom"]) if obj.get("RightBottom") is not None else None,
|
|
114
|
-
"RightTop": Point.from_dict(obj["RightTop"]) if obj.get("RightTop") is not None else None,
|
|
115
|
-
"Dpi": obj.get("Dpi"),
|
|
116
|
-
"Inverse": obj.get("Inverse"),
|
|
117
|
-
"ObjArea": obj.get("ObjArea"),
|
|
118
|
-
"ObjIntAngleDev": obj.get("ObjIntAngleDev"),
|
|
119
|
-
"PerspectiveTr": obj.get("PerspectiveTr"),
|
|
120
|
-
"ResultStatus": obj.get("ResultStatus")
|
|
121
|
-
})
|
|
122
|
-
return _obj
|
|
123
|
-
|
|
124
|
-
|
|
File without changes
|