Skip to content

Commit 1ab57bc

Browse files
Merge pull request #213 from regulaforensics/fix/sp18211
SP-18211 - update models
2 parents 0eae7f5 + c27a8b3 commit 1ab57bc

File tree

3 files changed

+2
-45
lines changed

3 files changed

+2
-45
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class ChosenDocumentType(BaseModel):
2424
document_name: Optional[StrictStr] = Field(default=None, description="Document name", alias="DocumentName")
2525
id: StrictInt = Field(description="Unique document type template identifier (Regula's internal numeric code)", alias="ID")
2626
p: Union[Annotated[float, Field(le=1, strict=True, ge=0)], Annotated[int, Field(le=1, strict=True, ge=0)]] = Field(description="A measure of the likelihood of correct recognition in the analysis of this type of document", alias="P")
27-
rotated180: StrictInt = Field(description="true if the document of the given type is rotated by 180 degrees", alias="Rotated180")
27+
rotated180: StrictInt = Field(description="Indicates if the document of the given type is rotated by 180 degrees", alias="Rotated180")
2828
rfid_presence: RfidLocation = Field(alias="RFID_Presence")
2929
fdsid_list: Optional[FDSIDList] = Field(default=None, alias="FDSIDList")
3030
necessary_lights: StrictInt = Field(description="Combination of lighting scheme identifiers (Light enum) required to conduct OCR for this type of document", alias="NecessaryLights")

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

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -19,53 +19,10 @@ class Light(int, Enum):
1919
allowed enum values
2020
"""
2121
OFF = 0
22-
OVI = 1
23-
WHITE_TOP = 2
24-
WHITE_SIDE = 4
25-
WHITE_FRONT = 8388608
2622
WHITE = 6
27-
IR_TOP = 8
28-
IR_SIDE = 16
29-
IR_FRONT = 16777216
3023
IR = 24
31-
WHITE_GRAY = 33554432
3224
UV = 128
33-
OVD = 67108864
34-
VIDEODETECTION = 134217728
35-
IR_870_OBL = 268435456
36-
IR_LUMINESCENCE = 256
37-
AXIAL_WHITE_LEFT = 1024
38-
AXIAL_WHITE_RIGHT = 2048
39-
AXIAL_WHITE_FRONT = 512
40-
IR_720 = 4096
41-
IR_940 = 8192
4225
AXIAL_WHITE_FULL = 3072
43-
RAW_DATA = 2147483648
44-
RAW_DATA_GRBG = 2415919104
45-
RAW_DATA_GBGR = 2684354560
46-
RAW_DATA_RGGB = 2952790016
47-
RAW_DATA_BGGR = 3221225472
48-
TRANSMITTED = 32
49-
TRANSMITTED_IR = 64
50-
ANTI_STOKES = 65536
51-
TRANSMITTED_IR940 = 16384
52-
OVD_RIGHT = 262144
53-
OVD_LEFT = 131072
54-
IR_700 = 32768
55-
IR_870 = 16777216
56-
HOLO = 67108864
57-
IR_BOTTOM = 64
58-
WHITE_BOTTOM = 32
59-
UVC = 524288
60-
UVB = 1048576
61-
WHITE_OBL = 2097152
62-
WHITE_SPECIAL = 4194304
63-
WHITE_UV = 134
64-
WHITE_FULL_HOLO = 67108870
65-
HR_LIGHT = 1073741824
66-
HR_WHITE = 1073741830
67-
HR_UV = 1073741952
68-
HR_IR = 1073741848
6926

7027
@classmethod
7128
def from_json(cls, json_str: str) -> Self:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class OneCandidate(BaseModel):
2424
document_name: Optional[StrictStr] = Field(default=None, description="Document name", alias="DocumentName")
2525
id: StrictInt = Field(description="Unique document type template identifier (Regula's internal numeric code)", alias="ID")
2626
p: Union[Annotated[float, Field(le=1, strict=True, ge=0)], Annotated[int, Field(le=1, strict=True, ge=0)]] = Field(description="A measure of the likelihood of correct recognition in the analysis of this type of document", alias="P")
27-
rotated180: StrictInt = Field(description="true if the document of the given type is rotated by 180 degrees", alias="Rotated180")
27+
rotated180: StrictInt = Field(description="Indicates if the document of the given type is rotated by 180 degrees", alias="Rotated180")
2828
rfid_presence: RfidLocation = Field(alias="RFID_Presence")
2929
fdsid_list: Optional[FDSIDList] = Field(default=None, alias="FDSIDList")
3030
necessary_lights: StrictInt = Field(description="Combination of lighting scheme identifiers (Light enum) required to conduct OCR for this type of document", alias="NecessaryLights")

0 commit comments

Comments
 (0)