Skip to content

Commit 6f242fb

Browse files
test
1 parent d40d475 commit 6f242fb

File tree

113 files changed

+232
-89
lines changed

Some content is hidden

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

113 files changed

+232
-89
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ is an aggregating SDK of a series of specific functional products including:
2929
Version
3030
-------
3131

32-
- 3.0.6000
32+
- 3.2.1000
3333

3434
Supported Platforms
3535
-------------------

dynamsoft_capture_vision_bundle/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
from .license import *
1111
from .utility import *
1212

13-
__version__ = "3.0.6000"
13+
__version__ = "3.2.1000"

dynamsoft_capture_vision_bundle/core.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "4.0.40.3040"
1+
__version__ = "4.0.40.4096"
22

33
import sys
44

@@ -452,10 +452,18 @@ class Quadrilateral:
452452
get_area(self) -> int: Gets the area of the quadrilateral.
453453
get_bounding_rect(self) -> Rect: Gets the bounding rectangle of the quadrilateral.
454454
"""
455+
456+
class _OwnerList(List):
457+
def __init__(self,owner, list):
458+
self._owner = owner
459+
super().__init__(list)
460+
455461
_thisown = property(
456462
lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag"
457463
)
458464

465+
466+
459467
def __init__(self):
460468
"""
461469
Initializes a new instance of the Quadrilateral class with default values.
@@ -472,13 +480,13 @@ def __repr__(self):
472480
@property
473481
def points(self) -> List[Point]:
474482
if not hasattr(self, '_point_list') or self._point_list is None:
475-
self._point_list = _DynamsoftCore.CQuadrilateral_points_get(self)
483+
self._point_list = Quadrilateral._OwnerList(self,_DynamsoftCore.CQuadrilateral_points_get(self))
476484
return self._point_list
477485

478486
@points.setter
479487
def points(self, point_list):
480488
if not hasattr(self, '_point_list') or self._point_list is None:
481-
self._point_list = _DynamsoftCore.CQuadrilateral_points_get(self)
489+
self._point_list = Quadrilateral._OwnerList(self,_DynamsoftCore.CQuadrilateral_points_get(self))
482490
_DynamsoftCore.CQuadrilateral_points_set(self, point_list)
483491
self._point_list = point_list
484492

dynamsoft_capture_vision_bundle/cvr.py

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "3.0.60.3040"
1+
__version__ = "3.2.10.4096"
22

33
if __package__ or "." in __name__:
44
from .core import *
@@ -1219,7 +1219,8 @@ def get_parameter_template_name(self, index: int) -> Tuple[int, str]:
12191219
"""
12201220
return _DynamsoftCaptureVisionRouter.CCaptureVisionRouter_GetParameterTemplateName(self, index)
12211221

1222-
def append_model_buffer(self, model_name: str, model_buffer: bytes, max_model_instances: int) -> Tuple[int, str]:
1222+
@staticmethod
1223+
def append_model_buffer(model_name: str, model_buffer: bytes, max_model_instances: int) -> Tuple[int, str]:
12231224
"""
12241225
Appends a model to the model buffer.
12251226
@@ -1234,8 +1235,32 @@ def append_model_buffer(self, model_name: str, model_buffer: bytes, max_model_in
12341235
- error_message (str): A descriptive message explaining the error.
12351236
"""
12361237
return _DynamsoftCaptureVisionRouter.CCaptureVisionRouter_AppendModelBuffer(
1237-
self, model_name, model_buffer, max_model_instances
1238+
model_name, model_buffer, max_model_instances
12381239
)
1240+
def switch_capturing_template(self, template_name: str) -> Tuple[int, str]:
1241+
"""
1242+
Switch the capturing template during the image processing workflow.
1243+
1244+
Args:
1245+
template_name (str): The name of the new capturing template to apply.
1246+
1247+
Returns:
1248+
A tuple containing following elements:
1249+
- error_code (int): The error code indicating the status of the operation.
1250+
- error_message (str): A descriptive message explaining the error.
1251+
"""
1252+
return _DynamsoftCaptureVisionRouter.CCaptureVisionRouter_SwitchCapturingTemplate(self, template_name)
1253+
1254+
@staticmethod
1255+
def set_global_intra_op_num_threads(intra_op_num_threads: int) -> None:
1256+
"""
1257+
Sets the global number of threads used internally for model execution.
1258+
1259+
Args:
1260+
intra_op_num_threads (int): Number of threads used internally for model execution. Valid range: [0, 256]. If the value is outside the range [0, 256], it will be treated as 0 (default).
1261+
"""
1262+
_DynamsoftCaptureVisionRouter.CCaptureVisionRouter_SetGlobalIntraOpNumThreads(intra_op_num_threads)
1263+
12391264
def get_intermediate_result_manager(self)->IntermediateResultManager:
12401265
if self._intermediate_result_manager is None:
12411266
self._intermediate_result_manager = _DynamsoftCaptureVisionRouter.CCaptureVisionRouter_GetIntermediateResultManager(self)

dynamsoft_capture_vision_bundle/dbr.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "11.0.60.3040"
1+
__version__ = "11.2.10.4096"
22

33
if __package__ or "." in __name__:
44
from .core import *
@@ -86,6 +86,7 @@ class EnumLocalizationMode(IntEnum):
8686
LM_STATISTICS_POSTAL_CODE = _DynamsoftBarcodeReader.LM_STATISTICS_POSTAL_CODE
8787
LM_CENTRE = _DynamsoftBarcodeReader.LM_CENTRE
8888
LM_ONED_FAST_SCAN = _DynamsoftBarcodeReader.LM_ONED_FAST_SCAN
89+
LM_NEURAL_NETWORK = _DynamsoftBarcodeReader.LM_NEURAL_NETWORK
8990
LM_REV = _DynamsoftBarcodeReader.LM_REV
9091
LM_END = _DynamsoftBarcodeReader.LM_END
9192
LM_SKIP = _DynamsoftBarcodeReader.LM_SKIP

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.3040"
1+
__version__ = "3.0.40.4096"
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.3040"
1+
__version__ = "3.0.30.4096"
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.3040"
1+
__version__ = "3.0.40.4096"
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.3040"
1+
__version__ = "3.0.30.4096"
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.3040"
1+
__version__ = "4.0.30.4096"
22

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

0 commit comments

Comments
 (0)