Skip to content

Commit d10f494

Browse files
test
1 parent ba9dbe9 commit d10f494

File tree

71 files changed

+228
-85
lines changed

Some content is hidden

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

71 files changed

+228
-85
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ which is newly established to aggregate the features of functional products powe
3838
Version
3939
-------
4040

41-
- 11.0.6000
41+
- 11.2.1000
4242

4343
Supported Platforms
4444
-------------------

dynamsoft_barcode_reader_bundle/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
from .license import *
66
from .utility import *
77

8-
__version__ = "11.0.6000"
8+
__version__ = "11.2.1000"

dynamsoft_barcode_reader_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.3978"
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_barcode_reader_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.3978"
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_barcode_reader_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.3978"
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_barcode_reader_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.3978"
22

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

dynamsoft_barcode_reader_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.3040"
1+
__version__ = "2.0.30.3978"
22

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

dynamsoft_barcode_reader_bundle/license.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.3978"
22

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

dynamsoft_barcode_reader_bundle/utility.py

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

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

include/DynamsoftBarcodeReader.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ typedef void* HANDLE;
1818

1919
#include "DynamsoftCore.h"
2020

21-
#define DBR_VERSION "11.0.60.5318"
21+
#define DBR_VERSION "11.2.10.5768"
2222

2323
/**Enumeration section*/
2424

@@ -227,6 +227,10 @@ typedef enum LocalizationMode
227227
/**Localizes 1D barcodes fast. Check @ref LM for available argument settings. */
228228
LM_ONED_FAST_SCAN = 0x100,
229229

230+
// added in v11.0.10
231+
/** Localizes barcodes by utilizing a neural network model. */
232+
LM_NEURAL_NETWORK = 0X200,
233+
230234
/**Reserved setting for localization mode.*/
231235
#if defined(_WIN32) || defined(_WIN64)
232236
LM_REV = 0x80000000,
@@ -1346,7 +1350,6 @@ namespace dynamsoft
13461350
*/
13471351
virtual int SetDecodedBarcode(const CDecodedBarcodeElement* element, const double matrixToOriginalImage[9] = IDENTITY_MATRIX) = 0;
13481352

1349-
13501353
virtual int RemoveDecodedBarcode(int index) = 0;
13511354
};
13521355
}
@@ -1468,6 +1471,7 @@ namespace dynamsoft
14681471
*
14691472
*/
14701473
virtual int SetLocation(const CQuadrilateral& location) = 0;
1474+
14711475
};
14721476

14731477
/**

0 commit comments

Comments
 (0)