dynamsoft-capture-vision-bundle 3.4.1000__cp314-cp314-win_amd64.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.
- dynamsoft_capture_vision_bundle/ConfusableChars.data +0 -0
- dynamsoft_capture_vision_bundle/DynamicPdfx64.dll +0 -0
- dynamsoft_capture_vision_bundle/DynamsoftBarcodeReaderx64.dll +0 -0
- dynamsoft_capture_vision_bundle/DynamsoftCaptureVisionRouterx64.dll +0 -0
- dynamsoft_capture_vision_bundle/DynamsoftCodeParserDedicatorx64.dll +0 -0
- dynamsoft_capture_vision_bundle/DynamsoftCodeParserx64.dll +0 -0
- dynamsoft_capture_vision_bundle/DynamsoftCorex64.dll +0 -0
- dynamsoft_capture_vision_bundle/DynamsoftDocumentNormalizerx64.dll +0 -0
- dynamsoft_capture_vision_bundle/DynamsoftIdentityUtilityx64.dll +0 -0
- dynamsoft_capture_vision_bundle/DynamsoftImageProcessingx64.dll +0 -0
- dynamsoft_capture_vision_bundle/DynamsoftLabelRecognizerx64.dll +0 -0
- dynamsoft_capture_vision_bundle/DynamsoftLicensex64.dll +0 -0
- dynamsoft_capture_vision_bundle/DynamsoftNeuralNetworkx64.dll +0 -0
- dynamsoft_capture_vision_bundle/DynamsoftUtilityx64.dll +0 -0
- dynamsoft_capture_vision_bundle/Models/Code128Decoder.data +0 -0
- dynamsoft_capture_vision_bundle/Models/Code39ITFDecoder.data +0 -0
- dynamsoft_capture_vision_bundle/Models/DataMatrixQRCodeDeblur.data +0 -0
- dynamsoft_capture_vision_bundle/Models/DataMatrixQRCodeLocalization.data +0 -0
- dynamsoft_capture_vision_bundle/Models/EAN13Decoder.data +0 -0
- dynamsoft_capture_vision_bundle/Models/LetterCharRecognition.data +0 -0
- dynamsoft_capture_vision_bundle/Models/LowercaseCharRecognition.data +0 -0
- dynamsoft_capture_vision_bundle/Models/MRZCharRecognition.data +0 -0
- dynamsoft_capture_vision_bundle/Models/MRZLocalization.data +0 -0
- dynamsoft_capture_vision_bundle/Models/MRZTextLineRecognition.data +0 -0
- dynamsoft_capture_vision_bundle/Models/NumberCharRecognition.data +0 -0
- dynamsoft_capture_vision_bundle/Models/NumberLetterCharRecognition.data +0 -0
- dynamsoft_capture_vision_bundle/Models/NumberLowercaseCharRecognition.data +0 -0
- dynamsoft_capture_vision_bundle/Models/NumberUppercaseCharRecognition.data +0 -0
- dynamsoft_capture_vision_bundle/Models/OneDDeblur.data +0 -0
- dynamsoft_capture_vision_bundle/Models/OneDLocalization.data +0 -0
- dynamsoft_capture_vision_bundle/Models/PDF417Deblur.data +0 -0
- dynamsoft_capture_vision_bundle/Models/PDF417Localization.data +0 -0
- dynamsoft_capture_vision_bundle/Models/UppercaseCharRecognition.data +0 -0
- dynamsoft_capture_vision_bundle/Models/VINCharRecognition.data +0 -0
- dynamsoft_capture_vision_bundle/OverlappingChars.data +1 -0
- dynamsoft_capture_vision_bundle/ParserResources/AADHAAR.data +0 -0
- dynamsoft_capture_vision_bundle/ParserResources/AAMVA_DL_ID.data +1 -0
- dynamsoft_capture_vision_bundle/ParserResources/GS1_AI.data +66 -0
- dynamsoft_capture_vision_bundle/ParserResources/MRTD.data +1 -0
- dynamsoft_capture_vision_bundle/ParserResources/SOUTH_AFRICA_DL.data +1 -0
- dynamsoft_capture_vision_bundle/ParserResources/VIN.data +0 -0
- dynamsoft_capture_vision_bundle/Templates/DBR-PresetTemplates.json +546 -0
- dynamsoft_capture_vision_bundle/Templates/DDN-PresetTemplates.json +316 -0
- dynamsoft_capture_vision_bundle/Templates/DLR-PresetTemplates.json +471 -0
- dynamsoft_capture_vision_bundle/Templates/DriverLicenseScanner.json +94 -0
- dynamsoft_capture_vision_bundle/Templates/MRZScanner.json +804 -0
- dynamsoft_capture_vision_bundle/Templates/VINScanner.json +299 -0
- dynamsoft_capture_vision_bundle/_DynamsoftBarcodeReader.cp314-win_amd64.pyd +0 -0
- dynamsoft_capture_vision_bundle/_DynamsoftCaptureVisionRouter.cp314-win_amd64.pyd +0 -0
- dynamsoft_capture_vision_bundle/_DynamsoftCodeParser.cp314-win_amd64.pyd +0 -0
- dynamsoft_capture_vision_bundle/_DynamsoftCodeParserDedicator.cp314-win_amd64.pyd +0 -0
- dynamsoft_capture_vision_bundle/_DynamsoftCore.cp314-win_amd64.pyd +0 -0
- dynamsoft_capture_vision_bundle/_DynamsoftDocumentNormalizer.cp314-win_amd64.pyd +0 -0
- dynamsoft_capture_vision_bundle/_DynamsoftIdentityUtility.cp314-win_amd64.pyd +0 -0
- dynamsoft_capture_vision_bundle/_DynamsoftImageProcessing.cp314-win_amd64.pyd +0 -0
- dynamsoft_capture_vision_bundle/_DynamsoftLabelRecognizer.cp314-win_amd64.pyd +0 -0
- dynamsoft_capture_vision_bundle/_DynamsoftLicense.cp314-win_amd64.pyd +0 -0
- dynamsoft_capture_vision_bundle/_DynamsoftUtility.cp314-win_amd64.pyd +0 -0
- dynamsoft_capture_vision_bundle/__init__.py +13 -0
- dynamsoft_capture_vision_bundle/core.py +2785 -0
- dynamsoft_capture_vision_bundle/cvr.py +1347 -0
- dynamsoft_capture_vision_bundle/dbr.py +1223 -0
- dynamsoft_capture_vision_bundle/dcp.py +208 -0
- dynamsoft_capture_vision_bundle/dcpd.py +21 -0
- dynamsoft_capture_vision_bundle/ddn.py +985 -0
- dynamsoft_capture_vision_bundle/dip.py +24 -0
- dynamsoft_capture_vision_bundle/dlr.py +1136 -0
- dynamsoft_capture_vision_bundle/id_utility.py +98 -0
- dynamsoft_capture_vision_bundle/license.py +146 -0
- dynamsoft_capture_vision_bundle/utility.py +835 -0
- dynamsoft_capture_vision_bundle-3.4.1000.dist-info/METADATA +89 -0
- dynamsoft_capture_vision_bundle-3.4.1000.dist-info/RECORD +75 -0
- dynamsoft_capture_vision_bundle-3.4.1000.dist-info/WHEEL +5 -0
- dynamsoft_capture_vision_bundle-3.4.1000.dist-info/licenses/LICENSE.txt +1 -0
- dynamsoft_capture_vision_bundle-3.4.1000.dist-info/top_level.txt +12 -0
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
__version__ = "3.0.40.7449"
|
|
2
|
+
|
|
3
|
+
if __package__ or "." in __name__:
|
|
4
|
+
from . import _DynamsoftCodeParser
|
|
5
|
+
else:
|
|
6
|
+
import _DynamsoftCodeParser
|
|
7
|
+
|
|
8
|
+
from typing import List
|
|
9
|
+
|
|
10
|
+
from enum import IntEnum, Enum
|
|
11
|
+
|
|
12
|
+
if __package__ or "." in __name__:
|
|
13
|
+
from .core import *
|
|
14
|
+
else:
|
|
15
|
+
from core import *
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class EnumMappingStatus(IntEnum):
|
|
20
|
+
MS_NONE = _DynamsoftCodeParser.MS_NONE
|
|
21
|
+
MS_SUCCEEDED = _DynamsoftCodeParser.MS_SUCCEEDED
|
|
22
|
+
MS_FAILED = _DynamsoftCodeParser.MS_FAILED
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class EnumValidationStatus(IntEnum):
|
|
26
|
+
VS_NONE = _DynamsoftCodeParser.VS_NONE
|
|
27
|
+
VS_SUCCEEDED = _DynamsoftCodeParser.VS_SUCCEEDED
|
|
28
|
+
VS_FAILED = _DynamsoftCodeParser.VS_FAILED
|
|
29
|
+
|
|
30
|
+
class EnumCodeType(str, Enum):
|
|
31
|
+
CT_MRTD_TD1_ID = _DynamsoftCodeParser.getCT_MRTD_TD1_ID()
|
|
32
|
+
CT_MRTD_TD2_ID = _DynamsoftCodeParser.getCT_MRTD_TD2_ID()
|
|
33
|
+
CT_MRTD_TD2_VISA = _DynamsoftCodeParser.getCT_MRTD_TD2_VISA()
|
|
34
|
+
CT_MRTD_TD3_PASSPORT = _DynamsoftCodeParser.getCT_MRTD_TD3_PASSPORT()
|
|
35
|
+
CT_MRTD_TD3_VISA = _DynamsoftCodeParser.getCT_MRTD_TD3_VISA()
|
|
36
|
+
CT_MRTD_TD2_FRENCH_ID = _DynamsoftCodeParser.getCT_MRTD_TD2_FRENCH_ID()
|
|
37
|
+
CT_AAMVA_DL_ID = _DynamsoftCodeParser.getCT_AAMVA_DL_ID()
|
|
38
|
+
CT_AAMVA_DL_ID_WITH_MAG_STRIPE = _DynamsoftCodeParser.getCT_AAMVA_DL_ID_WITH_MAG_STRIPE()
|
|
39
|
+
CT_SOUTH_AFRICA_DL = _DynamsoftCodeParser.getCT_SOUTH_AFRICA_DL()
|
|
40
|
+
CT_AADHAAR = _DynamsoftCodeParser.getCT_AADHAAR()
|
|
41
|
+
CT_VIN = _DynamsoftCodeParser.getCT_VIN()
|
|
42
|
+
CT_GS1_AI = _DynamsoftCodeParser.getCT_GS1_AI()
|
|
43
|
+
|
|
44
|
+
class ParsedResultItem(CapturedResultItem):
|
|
45
|
+
"""
|
|
46
|
+
The ParsedResultItem class represents a parsed result item generated by code parser engine.
|
|
47
|
+
|
|
48
|
+
Methods:
|
|
49
|
+
get_code_type(self) -> str: Gets the code type of the parsed result.
|
|
50
|
+
get_field_value(self, field_name: str) -> str: Gets the value of a specified field from the parsed result.
|
|
51
|
+
get_field_mapping_status(self, field_name: str) -> int: Gets the mapping status of a specified field from the parsed result.
|
|
52
|
+
get_field_validation_status(self, field_name: str) -> int: Gets the validation status of a specified field from the parsed result.
|
|
53
|
+
get_json_string(self) -> str: Gets the parsed result as a JSON formatted string.
|
|
54
|
+
"""
|
|
55
|
+
_thisown = property(
|
|
56
|
+
lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag"
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
def __init__(self):
|
|
60
|
+
raise AttributeError("No constructor defined - class is abstract")
|
|
61
|
+
|
|
62
|
+
def get_json_string(self) -> str:
|
|
63
|
+
"""
|
|
64
|
+
Gets the parsed result as a JSON formatted string.
|
|
65
|
+
|
|
66
|
+
Returns:
|
|
67
|
+
A JSON formatted string representing the full parsed result.
|
|
68
|
+
"""
|
|
69
|
+
return _DynamsoftCodeParser.CParsedResultItem_GetJsonString(self)
|
|
70
|
+
|
|
71
|
+
def get_code_type(self) -> str:
|
|
72
|
+
"""
|
|
73
|
+
Gets the code type of the parsed result.
|
|
74
|
+
|
|
75
|
+
Returns:
|
|
76
|
+
A string value representing the code type.
|
|
77
|
+
"""
|
|
78
|
+
return _DynamsoftCodeParser.CParsedResultItem_GetCodeType(self)
|
|
79
|
+
|
|
80
|
+
def get_field_value(self, field_name: str) -> str:
|
|
81
|
+
"""
|
|
82
|
+
Gets the value of a specified field from the parsed result.
|
|
83
|
+
|
|
84
|
+
Args:
|
|
85
|
+
field_name(str): The name of the field.
|
|
86
|
+
|
|
87
|
+
Returns:
|
|
88
|
+
A string representing the specified field value.
|
|
89
|
+
"""
|
|
90
|
+
return _DynamsoftCodeParser.CParsedResultItem_GetFieldValue(self, field_name)
|
|
91
|
+
|
|
92
|
+
def get_field_mapping_status(self, field_name: str) -> int:
|
|
93
|
+
"""
|
|
94
|
+
Gets the mapping status of a specified field from the parsed result.
|
|
95
|
+
|
|
96
|
+
Args:
|
|
97
|
+
field_name(str): The name of the field.
|
|
98
|
+
|
|
99
|
+
Returns:
|
|
100
|
+
An EnumMappingStatus value representing the mapping status of a specified field.
|
|
101
|
+
"""
|
|
102
|
+
return _DynamsoftCodeParser.CParsedResultItem_GetFieldMappingStatus(
|
|
103
|
+
self, field_name
|
|
104
|
+
)
|
|
105
|
+
|
|
106
|
+
def get_field_validation_status(self, field_name: str) -> int:
|
|
107
|
+
"""
|
|
108
|
+
Gets the validation status of a specified field from the parsed result.
|
|
109
|
+
|
|
110
|
+
Args:
|
|
111
|
+
field_name(str): The name of the field.
|
|
112
|
+
|
|
113
|
+
Returns:
|
|
114
|
+
An EnumValidationStatus value representing the validation status of a specified field.
|
|
115
|
+
"""
|
|
116
|
+
return _DynamsoftCodeParser.CParsedResultItem_GetFieldValidationStatus(
|
|
117
|
+
self, field_name
|
|
118
|
+
)
|
|
119
|
+
|
|
120
|
+
def get_field_raw_value(self, field_name: str) -> str:
|
|
121
|
+
"""
|
|
122
|
+
Gets the raw string of a specified field from the parsed result.
|
|
123
|
+
|
|
124
|
+
Args:
|
|
125
|
+
field_name(str): The name of the field.
|
|
126
|
+
|
|
127
|
+
Returns:
|
|
128
|
+
A string representing the specified field raw string.
|
|
129
|
+
"""
|
|
130
|
+
return _DynamsoftCodeParser.CParsedResultItem_GetFieldRawValue(self, field_name)
|
|
131
|
+
|
|
132
|
+
def get_all_field_names(self)->List[str]:
|
|
133
|
+
"""
|
|
134
|
+
Gets the field names of the parsed result.
|
|
135
|
+
|
|
136
|
+
Returns:
|
|
137
|
+
A list of strings representing the field names.
|
|
138
|
+
"""
|
|
139
|
+
list = []
|
|
140
|
+
count = _DynamsoftCodeParser.CParsedResultItem_GetFieldCount(self)
|
|
141
|
+
for i in range(count):
|
|
142
|
+
list.append(_DynamsoftCodeParser.CParsedResultItem_GetFieldName(self, i))
|
|
143
|
+
return list
|
|
144
|
+
|
|
145
|
+
_DynamsoftCodeParser.CParsedResultItem_register(ParsedResultItem)
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
class ParsedResult(CapturedResultBase):
|
|
149
|
+
"""
|
|
150
|
+
The ParsedResult class represents the results of a code parser process.
|
|
151
|
+
|
|
152
|
+
Methods:
|
|
153
|
+
get_items(self) -> List[ParsedResultItem]: Gets all the parsed result items.
|
|
154
|
+
"""
|
|
155
|
+
_thisown = property(
|
|
156
|
+
lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag"
|
|
157
|
+
)
|
|
158
|
+
__destroy__ = _DynamsoftCodeParser.CParsedResult_Release
|
|
159
|
+
|
|
160
|
+
def __init__(self):
|
|
161
|
+
raise AttributeError("No constructor defined - class is abstract")
|
|
162
|
+
|
|
163
|
+
def get_items(self) -> List[ParsedResultItem]:
|
|
164
|
+
"""
|
|
165
|
+
Gets all the parsed result items.
|
|
166
|
+
|
|
167
|
+
Returns:
|
|
168
|
+
A ParsedResultItem list.
|
|
169
|
+
"""
|
|
170
|
+
list = []
|
|
171
|
+
count = _DynamsoftCodeParser.CParsedResult_GetItemsCount(self)
|
|
172
|
+
for i in range(count):
|
|
173
|
+
list.append(_DynamsoftCodeParser.CParsedResult_GetItem(self, i))
|
|
174
|
+
return list
|
|
175
|
+
|
|
176
|
+
_DynamsoftCodeParser.CParsedResult_register(ParsedResult)
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
class CodeParserModule:
|
|
180
|
+
"""
|
|
181
|
+
The CodeParserModule class defines general functions in the code parser module.
|
|
182
|
+
|
|
183
|
+
Methods:
|
|
184
|
+
get_version() -> str: Returns a string representing the version of the code parser module.
|
|
185
|
+
"""
|
|
186
|
+
_thisown = property(
|
|
187
|
+
lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag"
|
|
188
|
+
)
|
|
189
|
+
|
|
190
|
+
@staticmethod
|
|
191
|
+
def get_version() -> str:
|
|
192
|
+
"""
|
|
193
|
+
Returns a string representing the version of the code parser module.
|
|
194
|
+
|
|
195
|
+
Returns:
|
|
196
|
+
A string representing the version of the code parser module.
|
|
197
|
+
"""
|
|
198
|
+
return __version__ + " (Algorithm " + _DynamsoftCodeParser.CCodeParserModule_GetVersion() + ")"
|
|
199
|
+
|
|
200
|
+
def __init__(self):
|
|
201
|
+
_DynamsoftCodeParser.Class_init(
|
|
202
|
+
self, _DynamsoftCodeParser.new_CCodeParserModule()
|
|
203
|
+
)
|
|
204
|
+
|
|
205
|
+
__destroy__ = _DynamsoftCodeParser.delete_CCodeParserModule
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
_DynamsoftCodeParser.CCodeParserModule_register(CodeParserModule)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
__version__ = "3.0.30.7449"
|
|
2
|
+
|
|
3
|
+
if __package__ or "." in __name__:
|
|
4
|
+
from . import _DynamsoftCodeParserDedicator
|
|
5
|
+
else:
|
|
6
|
+
import _DynamsoftCodeParserDedicator
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class DynamsoftCodeParserDedicatorModule:
|
|
10
|
+
"""
|
|
11
|
+
The DynamsoftCodeParserDedicatorModule class represents the Dynamsoft Code Parser Dedicator module.
|
|
12
|
+
"""
|
|
13
|
+
@staticmethod
|
|
14
|
+
def get_version() -> str:
|
|
15
|
+
"""
|
|
16
|
+
Gets the version of the Dynamsoft Code Parser Dedicator module.
|
|
17
|
+
|
|
18
|
+
Returns:
|
|
19
|
+
A string representing the version of the Dynamsoft Code Parser Dedicator module.
|
|
20
|
+
"""
|
|
21
|
+
return __version__ + " (Algorithm " + _DynamsoftCodeParserDedicator.getversion() + ")"
|