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,98 @@
|
|
|
1
|
+
__version__ = "1.0.10.7449"
|
|
2
|
+
|
|
3
|
+
if __package__ or "." in __name__:
|
|
4
|
+
from .cvr import *
|
|
5
|
+
else:
|
|
6
|
+
from cvr import *
|
|
7
|
+
|
|
8
|
+
if __package__ or "." in __name__:
|
|
9
|
+
from .core import *
|
|
10
|
+
else:
|
|
11
|
+
from core import *
|
|
12
|
+
|
|
13
|
+
if __package__ or "." in __name__:
|
|
14
|
+
from . import _DynamsoftIdentityUtility
|
|
15
|
+
else:
|
|
16
|
+
import _DynamsoftIdentityUtility
|
|
17
|
+
from typing import Tuple
|
|
18
|
+
class IdentityUtilityModule:
|
|
19
|
+
"""
|
|
20
|
+
The IdentityUtilityModule class provides common functions of the identity utility module.
|
|
21
|
+
|
|
22
|
+
Methods:
|
|
23
|
+
get_version() -> str: Returns the version of the identity utility module.
|
|
24
|
+
"""
|
|
25
|
+
_thisown = property(
|
|
26
|
+
lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag"
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
@staticmethod
|
|
30
|
+
def get_version() -> str:
|
|
31
|
+
"""
|
|
32
|
+
Returns the version of the identity utility module.
|
|
33
|
+
|
|
34
|
+
Returns:
|
|
35
|
+
A string representing the version of the identity utility module.
|
|
36
|
+
"""
|
|
37
|
+
return __version__ + " (Algorithm " + _DynamsoftIdentityUtility.CIdentityUtilityModule_GetVersion() + ")"
|
|
38
|
+
|
|
39
|
+
def __init__(self):
|
|
40
|
+
_DynamsoftIdentityUtility.Class_init(
|
|
41
|
+
self, _DynamsoftIdentityUtility.new_CIdentityUtilityModule()
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
__destroy__ = _DynamsoftIdentityUtility.delete_CIdentityUtilityModule
|
|
45
|
+
|
|
46
|
+
_DynamsoftIdentityUtility.CIdentityUtilityModule_register(IdentityUtilityModule)
|
|
47
|
+
|
|
48
|
+
class IdentityProcessor:
|
|
49
|
+
"""
|
|
50
|
+
The IdentityProcessor class provides functions to process identity documents, such as locating portrait zones with higher precision.
|
|
51
|
+
|
|
52
|
+
Methods:
|
|
53
|
+
find_portrait_zone(
|
|
54
|
+
self,
|
|
55
|
+
scaled_colour_img_unit: ScaledColourImageUnit,
|
|
56
|
+
localized_text_lines_unit: LocalizedTextLinesUnit,
|
|
57
|
+
recognized_text_lines_unit: RecognizedTextLinesUnit,
|
|
58
|
+
detected_quads_unit: DetectedQuadsUnit,
|
|
59
|
+
deskewed_image_unit: DeskewedImageUnit
|
|
60
|
+
) -> Tuple[int, Quadrilateral]: Finds the location of the portrait zone on an identity document.
|
|
61
|
+
"""
|
|
62
|
+
_thisown = property(
|
|
63
|
+
lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag"
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
def __init__(self):
|
|
67
|
+
_DynamsoftIdentityUtility.Class_init(
|
|
68
|
+
self, _DynamsoftIdentityUtility.new_CIdentityProcessor()
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
__destroy__ = _DynamsoftIdentityUtility.delete_CIdentityProcessor
|
|
72
|
+
|
|
73
|
+
def find_portrait_zone(
|
|
74
|
+
self,
|
|
75
|
+
scaled_colour_img_unit:'ScaledColourImageUnit',
|
|
76
|
+
localized_text_lines_unit:'LocalizedTextLinesUnit',
|
|
77
|
+
recognized_text_lines_unit: 'RecognizedTextLinesUnit',
|
|
78
|
+
detected_quads_unit:'DetectedQuadsUnit',
|
|
79
|
+
deskewed_image_unit:'DeskewedImageUnit'
|
|
80
|
+
) -> Tuple[int, 'Quadrilateral']:
|
|
81
|
+
"""
|
|
82
|
+
Finds the location of the portrait zone on an identity document.
|
|
83
|
+
|
|
84
|
+
Args:
|
|
85
|
+
scaled_colour_img_unit(ScaledColourImageUnit): The scaled colour image unit containing the source image.
|
|
86
|
+
localized_text_lines_unit(LocalizedTextLinesUnit): The localized text lines unit containing MRZ/text regions.
|
|
87
|
+
recognized_text_lines_unit(RecognizedTextLinesUnit): The recognized text lines unit for document type identification.
|
|
88
|
+
detected_quads_unit(DetectedQuadsUnit): The detected quads unit containing document boundaries.
|
|
89
|
+
deskewed_image_unit(DeskewedImageUnit): The deskewed image unit for coordinate transformation.
|
|
90
|
+
|
|
91
|
+
Returns:
|
|
92
|
+
error_code(int): Returns 0 if successful, otherwise returns an error code.
|
|
93
|
+
portrait_zone(Quadrilateral): The output quadrilateral representing the portrait zone location. Returns None if not found.
|
|
94
|
+
"""
|
|
95
|
+
return _DynamsoftIdentityUtility.CIdentityProcessor_FindPortraitZone(
|
|
96
|
+
self, scaled_colour_img_unit, localized_text_lines_unit, recognized_text_lines_unit, detected_quads_unit, deskewed_image_unit
|
|
97
|
+
)
|
|
98
|
+
_DynamsoftIdentityUtility.CIdentityProcessor_register(IdentityProcessor)
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
__version__ = "4.0.30.7449"
|
|
2
|
+
|
|
3
|
+
if __package__ or "." in __name__:
|
|
4
|
+
from . import _DynamsoftLicense
|
|
5
|
+
else:
|
|
6
|
+
import _DynamsoftLicense
|
|
7
|
+
from typing import Tuple
|
|
8
|
+
|
|
9
|
+
class LicenseManager:
|
|
10
|
+
"""
|
|
11
|
+
The LicenseManager class provides a set of APIs to manage SDK licensing.
|
|
12
|
+
|
|
13
|
+
Methods:
|
|
14
|
+
init_license(license: str) -> Tuple[int, str]: Initializes the license using a license key.
|
|
15
|
+
set_device_friendly_name(name: str) -> Tuple[int, str]: Sets the friendly name of the device.
|
|
16
|
+
set_max_concurrent_instance_count(count_for_this_device: int) -> Tuple[int, str]: Sets the maximum number of allowed instances for the given device and process.
|
|
17
|
+
get_device_uuid(uuid_generation_method: int) -> Tuple[int, str, str]: Gets the unique identifier of the device.
|
|
18
|
+
set_license_cache_path(directory_path: str) -> Tuple[int, str]: Sets the directory path for the license cache.
|
|
19
|
+
"""
|
|
20
|
+
_thisown = property(
|
|
21
|
+
lambda self: self.this.own(),
|
|
22
|
+
lambda self, value: self.this.own(value),
|
|
23
|
+
doc="The membership flag",
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
@staticmethod
|
|
27
|
+
def init_license(license: str) -> Tuple[int, str]:
|
|
28
|
+
"""
|
|
29
|
+
Initializes the license using a license key.
|
|
30
|
+
|
|
31
|
+
Args:
|
|
32
|
+
license (str): The license key as a string.
|
|
33
|
+
|
|
34
|
+
Returns:
|
|
35
|
+
A tuple containing following elements:
|
|
36
|
+
- error_code (int): The error code indicating the status of the operation.
|
|
37
|
+
- error_message <str>: A descriptive message explaining the error.
|
|
38
|
+
"""
|
|
39
|
+
return _DynamsoftLicense.CLicenseManager_InitLicense(license)
|
|
40
|
+
|
|
41
|
+
@staticmethod
|
|
42
|
+
def set_device_friendly_name(name: str) -> Tuple[int, str]:
|
|
43
|
+
"""
|
|
44
|
+
Sets the friendly name of the device.
|
|
45
|
+
|
|
46
|
+
Args:
|
|
47
|
+
name (str): The friendly name of the device.
|
|
48
|
+
|
|
49
|
+
Returns:
|
|
50
|
+
A tuple containing following elements:
|
|
51
|
+
- error_code (int): The error code indicating the status of the operation.
|
|
52
|
+
- error_message <str>: A descriptive message explaining the error.
|
|
53
|
+
"""
|
|
54
|
+
return _DynamsoftLicense.CLicenseManager_SetDeviceFriendlyName(name)
|
|
55
|
+
|
|
56
|
+
@staticmethod
|
|
57
|
+
def set_max_concurrent_instance_count(count_for_this_device: int) -> Tuple[int, str]:
|
|
58
|
+
"""
|
|
59
|
+
Sets the maximum number of allowed instances for the given device.
|
|
60
|
+
|
|
61
|
+
Args:
|
|
62
|
+
count_for_this_device (int): The maximum number of allowed instances for the device.
|
|
63
|
+
|
|
64
|
+
Returns:
|
|
65
|
+
A tuple containing following elements:
|
|
66
|
+
- error_code (int): The error code indicating the status of the operation.
|
|
67
|
+
- error_message <str>: A descriptive message explaining the error.
|
|
68
|
+
"""
|
|
69
|
+
return _DynamsoftLicense.CLicenseManager_SetMaxConcurrentInstanceCount(
|
|
70
|
+
count_for_this_device
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
@staticmethod
|
|
74
|
+
def get_device_uuid(uuid_generation_method: int) -> Tuple[int, str, str]:
|
|
75
|
+
"""
|
|
76
|
+
Gets the unique identifier of the device.
|
|
77
|
+
|
|
78
|
+
Args:
|
|
79
|
+
uuid_generation_method (int): The method to generate the UUID.
|
|
80
|
+
- 1: Generates UUID with random values.
|
|
81
|
+
- 2: Generates UUID based on hardware info.
|
|
82
|
+
|
|
83
|
+
Returns:
|
|
84
|
+
A tuple containing following elements:
|
|
85
|
+
- error_code (int): The error code indicating the status of the operation.
|
|
86
|
+
- error_message <str>: A descriptive message explaining the error.
|
|
87
|
+
- uuid <str>: The unique identifier of the device.
|
|
88
|
+
"""
|
|
89
|
+
return _DynamsoftLicense.CLicenseManager_GetDeviceUUID(uuid_generation_method)
|
|
90
|
+
|
|
91
|
+
@staticmethod
|
|
92
|
+
def set_license_cache_path(directory_path: str) -> Tuple[int, str]:
|
|
93
|
+
"""
|
|
94
|
+
Sets the directory path for the license cache.
|
|
95
|
+
|
|
96
|
+
Args:
|
|
97
|
+
directory_path (str): The directory path for the license cache.
|
|
98
|
+
|
|
99
|
+
Returns:
|
|
100
|
+
A tuple containing following elements:
|
|
101
|
+
- error_code (int): The error code indicating the status of the operation.
|
|
102
|
+
- error_message <str>: A descriptive message explaining the error.
|
|
103
|
+
"""
|
|
104
|
+
return _DynamsoftLicense.CLicenseManager_SetLicenseCachePath(directory_path)
|
|
105
|
+
|
|
106
|
+
def __init__(self):
|
|
107
|
+
_DynamsoftLicense.Class_init(
|
|
108
|
+
self, _DynamsoftLicense.new_CLicenseManager()
|
|
109
|
+
)
|
|
110
|
+
|
|
111
|
+
__destroy__ = _DynamsoftLicense.delete_CLicenseManager
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
_DynamsoftLicense.CLicenseManager_register(LicenseManager)
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
class LicenseModule:
|
|
118
|
+
"""
|
|
119
|
+
The LicenseModule class represents the Dynamsoft License module.
|
|
120
|
+
|
|
121
|
+
Methods:
|
|
122
|
+
get_version() -> str: Gets the version of the Dynamsoft License module.
|
|
123
|
+
"""
|
|
124
|
+
_thisown = property(
|
|
125
|
+
lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag"
|
|
126
|
+
)
|
|
127
|
+
|
|
128
|
+
@staticmethod
|
|
129
|
+
def get_version() -> str:
|
|
130
|
+
"""
|
|
131
|
+
Gets the version of the Dynamsoft License module.
|
|
132
|
+
|
|
133
|
+
Returns:
|
|
134
|
+
A string representing the version of the Dynamsoft License module.
|
|
135
|
+
"""
|
|
136
|
+
return __version__ + " (Algorithm " + _DynamsoftLicense.CLicenseModule_GetVersion() + ")"
|
|
137
|
+
|
|
138
|
+
def __init__(self):
|
|
139
|
+
_DynamsoftLicense.Class_init(
|
|
140
|
+
self, _DynamsoftLicense.new_CLicenseModule()
|
|
141
|
+
)
|
|
142
|
+
|
|
143
|
+
__destroy__ = _DynamsoftLicense.delete_CLicenseModule
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
_DynamsoftLicense.CLicenseModule_register(LicenseModule)
|