Skip to content

Commit 5d342d4

Browse files
test
1 parent 1336e98 commit 5d342d4

File tree

85 files changed

+466
-30
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+466
-30
lines changed

Legal.txt

Lines changed: 322 additions & 3 deletions
Large diffs are not rendered by default.

dynamsoft_capture_vision_bundle/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "4.0.40.4393"
1+
__version__ = "4.0.40.4484"
22

33
import sys
44

dynamsoft_capture_vision_bundle/cvr.py

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "3.2.10.4393"
1+
__version__ = "3.2.10.4484"
22

33
if __package__ or "." in __name__:
44
from .core import *
@@ -848,7 +848,7 @@ def output_settings(self, template_name: str, include_default_values: bool = Fal
848848
include_default_values (bool): Specifies whether to include default values in the exported template. Default values is False.
849849
850850
Returns:
851-
A tuple containing an error code, error message, and a string containing the exported template.
851+
A tuple containing an error code, a string containing the exported template, and error message.
852852
"""
853853
return _DynamsoftCaptureVisionRouter.CCaptureVisionRouter_OutputSettings(
854854
self, template_name, include_default_values
@@ -1234,9 +1234,42 @@ def append_model_buffer(model_name: str, model_buffer: bytes, max_model_instance
12341234
- error_code (int): The error code indicating the status of the operation.
12351235
- error_message (str): A descriptive message explaining the error.
12361236
"""
1237+
import warnings
1238+
warnings.warn(
1239+
"Function 'append_model_buffer' Will be removed in future versions. Please use `append_dl_model_buffer` function instead.",
1240+
DeprecationWarning,
1241+
stacklevel=2
1242+
)
12371243
return _DynamsoftCaptureVisionRouter.CCaptureVisionRouter_AppendModelBuffer(
12381244
model_name, model_buffer, max_model_instances
12391245
)
1246+
1247+
@staticmethod
1248+
def append_dl_model_buffer(model_name: str, model_buffer: bytes, max_model_instances: int) -> Tuple[int, str]:
1249+
"""
1250+
Appends a deep learning model to the memory buffer.
1251+
1252+
Args:
1253+
model_name (str): The name of the model.
1254+
model_buffer (bytes): The bytes of the model.
1255+
max_model_instances (int): The max instances created for the model.
1256+
1257+
Returns:
1258+
A tuple containing following elements:
1259+
- error_code (int): The error code indicating the status of the operation.
1260+
- error_message (str): A descriptive message explaining the error.
1261+
"""
1262+
return _DynamsoftCaptureVisionRouter.CCaptureVisionRouter_AppendDLModelBuffer(
1263+
model_name, model_buffer, max_model_instances
1264+
)
1265+
1266+
@staticmethod
1267+
def clear_dl_model_buffers() -> None:
1268+
"""
1269+
Clears all deep learning models from buffer to free up memory.
1270+
"""
1271+
_DynamsoftCaptureVisionRouter.CCaptureVisionRouter_ClearDLModelBuffers()
1272+
12401273
def switch_capturing_template(self, template_name: str) -> Tuple[int, str]:
12411274
"""
12421275
Switch the capturing template during the image processing workflow.

dynamsoft_capture_vision_bundle/dbr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "11.2.10.4393"
1+
__version__ = "11.2.10.4484"
22

33
if __package__ or "." in __name__:
44
from .core import *

dynamsoft_capture_vision_bundle/dcp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "3.0.40.4393"
1+
__version__ = "3.0.40.4484"
22

33
if __package__ or "." in __name__:
44
from . import _DynamsoftCodeParser

dynamsoft_capture_vision_bundle/dcpd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "3.0.30.4393"
1+
__version__ = "3.0.30.4484"
22

33
if __package__ or "." in __name__:
44
from . import _DynamsoftCodeParserDedicator

dynamsoft_capture_vision_bundle/ddn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "3.0.40.4393"
1+
__version__ = "3.0.40.4484"
22

33
if __package__ or "." in __name__:
44
from .core import *

dynamsoft_capture_vision_bundle/dip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "3.0.30.4393"
1+
__version__ = "3.0.30.4484"
22

33
if __package__ or "." in __name__:
44
from . import _DynamsoftImageProcessing

dynamsoft_capture_vision_bundle/dlr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "4.0.30.4393"
1+
__version__ = "4.0.30.4484"
22

33
if __package__ or "." in __name__:
44
from .core import *

dynamsoft_capture_vision_bundle/dnn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "2.0.30.4393"
1+
__version__ = "2.0.30.4484"
22

33
if __package__ or "." in __name__:
44
from . import _DynamsoftNeuralNetwork

0 commit comments

Comments
 (0)