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
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ChosenDocumentType(BaseModel):
document_name: Optional[StrictStr] = Field(default=None, description="Document name", alias="DocumentName")
id: StrictInt = Field(description="Unique document type template identifier (Regula's internal numeric code)", alias="ID")
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")
rotated180: StrictInt = Field(description="true if the document of the given type is rotated by 180 degrees", alias="Rotated180")
rotated180: StrictInt = Field(description="Indicates if the document of the given type is rotated by 180 degrees", alias="Rotated180")
rfid_presence: RfidLocation = Field(alias="RFID_Presence")
fdsid_list: Optional[FDSIDList] = Field(default=None, alias="FDSIDList")
necessary_lights: StrictInt = Field(description="Combination of lighting scheme identifiers (Light enum) required to conduct OCR for this type of document", alias="NecessaryLights")
Expand Down
43 changes: 0 additions & 43 deletions regula/documentreader/webclient/gen/models/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,53 +19,10 @@ class Light(int, Enum):
allowed enum values
"""
OFF = 0
OVI = 1
WHITE_TOP = 2
WHITE_SIDE = 4
WHITE_FRONT = 8388608
WHITE = 6
IR_TOP = 8
IR_SIDE = 16
IR_FRONT = 16777216
IR = 24
WHITE_GRAY = 33554432
UV = 128
OVD = 67108864
VIDEODETECTION = 134217728
IR_870_OBL = 268435456
IR_LUMINESCENCE = 256
AXIAL_WHITE_LEFT = 1024
AXIAL_WHITE_RIGHT = 2048
AXIAL_WHITE_FRONT = 512
IR_720 = 4096
IR_940 = 8192
AXIAL_WHITE_FULL = 3072
RAW_DATA = 2147483648
RAW_DATA_GRBG = 2415919104
RAW_DATA_GBGR = 2684354560
RAW_DATA_RGGB = 2952790016
RAW_DATA_BGGR = 3221225472
TRANSMITTED = 32
TRANSMITTED_IR = 64
ANTI_STOKES = 65536
TRANSMITTED_IR940 = 16384
OVD_RIGHT = 262144
OVD_LEFT = 131072
IR_700 = 32768
IR_870 = 16777216
HOLO = 67108864
IR_BOTTOM = 64
WHITE_BOTTOM = 32
UVC = 524288
UVB = 1048576
WHITE_OBL = 2097152
WHITE_SPECIAL = 4194304
WHITE_UV = 134
WHITE_FULL_HOLO = 67108870
HR_LIGHT = 1073741824
HR_WHITE = 1073741830
HR_UV = 1073741952
HR_IR = 1073741848

@classmethod
def from_json(cls, json_str: str) -> Self:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class OneCandidate(BaseModel):
document_name: Optional[StrictStr] = Field(default=None, description="Document name", alias="DocumentName")
id: StrictInt = Field(description="Unique document type template identifier (Regula's internal numeric code)", alias="ID")
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")
rotated180: StrictInt = Field(description="true if the document of the given type is rotated by 180 degrees", alias="Rotated180")
rotated180: StrictInt = Field(description="Indicates if the document of the given type is rotated by 180 degrees", alias="Rotated180")
rfid_presence: RfidLocation = Field(alias="RFID_Presence")
fdsid_list: Optional[FDSIDList] = Field(default=None, alias="FDSIDList")
necessary_lights: StrictInt = Field(description="Combination of lighting scheme identifiers (Light enum) required to conduct OCR for this type of document", alias="NecessaryLights")
Expand Down