Skip to content

Commit ecb6e8e

Browse files
test
1 parent 4754a3c commit ecb6e8e

File tree

10 files changed

+5324
-3128
lines changed

10 files changed

+5324
-3128
lines changed

dynamsoft_barcode_reader_bundle/core.py

Lines changed: 651 additions & 35 deletions
Large diffs are not rendered by default.

dynamsoft_barcode_reader_bundle/cvr.py

Lines changed: 159 additions & 23 deletions
Large diffs are not rendered by default.

dynamsoft_barcode_reader_bundle/dbr.py

Lines changed: 300 additions & 22 deletions
Large diffs are not rendered by default.

dynamsoft_barcode_reader_bundle/license.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import _DynamsoftLicense
77
from typing import Tuple
88

9-
class LicenseManager(object):
9+
class LicenseManager:
1010
"""
1111
The LicenseManager class provides a set of APIs to manage SDK licensing.
1212
@@ -17,7 +17,7 @@ class LicenseManager(object):
1717
get_device_uuid(uuid_generation_method: int) -> Tuple[int, str, str]: Gets the unique identifier of the device.
1818
set_license_cache_path(directory_path: str) -> Tuple[int, str]: Sets the directory path for the license cache.
1919
"""
20-
thisown = property(
20+
_thisown = property(
2121
lambda self: self.this.own(),
2222
lambda self, value: self.this.own(value),
2323
doc="The membership flag",
@@ -104,7 +104,7 @@ def set_license_cache_path(directory_path: str) -> Tuple[int, str]:
104104
return _DynamsoftLicense.CLicenseManager_SetLicenseCachePath(directory_path)
105105

106106
def __init__(self):
107-
_DynamsoftLicense.CLicenseManager_init(
107+
_DynamsoftLicense.Class_init(
108108
self, _DynamsoftLicense.new_CLicenseManager()
109109
)
110110

@@ -114,14 +114,14 @@ def __init__(self):
114114
_DynamsoftLicense.CLicenseManager_register(LicenseManager)
115115

116116

117-
class LicenseModule(object):
117+
class LicenseModule:
118118
"""
119119
The LicenseModule class represents the Dynamsoft License module.
120120
121121
Methods:
122122
get_version() -> str: Gets the version of the Dynamsoft License module.
123123
"""
124-
thisown = property(
124+
_thisown = property(
125125
lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag"
126126
)
127127

@@ -136,7 +136,7 @@ def get_version() -> str:
136136
return __version__ + " (Algotithm " + _DynamsoftLicense.CLicenseModule_GetVersion() + ")"
137137

138138
def __init__(self):
139-
_DynamsoftLicense.CLicenseModule_init(
139+
_DynamsoftLicense.Class_init(
140140
self, _DynamsoftLicense.new_CLicenseModule()
141141
)
142142

dynamsoft_barcode_reader_bundle/utility.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
from typing import List, Tuple
2121

2222

23-
class UtilityModule(object):
23+
class UtilityModule:
2424
"""
2525
The UtilityModule class contains utility functions.
2626
2727
Methods:
2828
get_version() -> str: Returns the version of the utility module.
2929
"""
30-
thisown = property(
30+
_thisown = property(
3131
lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag"
3232
)
3333

@@ -42,7 +42,7 @@ def get_version() -> str:
4242
return __version__ + " (Algotithm " + _DynamsoftUtility.CUtilityModule_GetVersion() + ")"
4343

4444
def __init__(self):
45-
_DynamsoftUtility.CUtilityModule_init(
45+
_DynamsoftUtility.Class_init(
4646
self, _DynamsoftUtility.new_CUtilityModule()
4747
)
4848

@@ -67,12 +67,12 @@ class MultiFrameResultCrossFilter(CapturedResultFilter):
6767
enable_latest_overlapping(self, result_item_types: int, enable: bool) -> None: Enable to-the-latest overlapping feature. The output decoded barcode result will become a combination of the recent results if the latest frame is proved to be similar with the previous.
6868
is_latest_overlapping_enabled(self, type: int) -> bool: Determines whether the to-the-latest overlapping feature is enabled for the specific result item type.
6969
"""
70-
thisown = property(
70+
_thisown = property(
7171
lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag"
7272
)
7373

7474
def __init__(self, cvr: CaptureVisionRouter = None):
75-
_DynamsoftUtility.CMultiFrameResultCrossFilter_init(
75+
_DynamsoftUtility.Class_init(
7676
self, _DynamsoftUtility.new_CMultiFrameResultCrossFilter(cvr)
7777
)
7878

@@ -227,12 +227,12 @@ class ProactiveImageSourceAdapter(ImageSourceAdapter, ABC):
227227
start_fetching(self) -> None: Starts fetching images.
228228
stop_fetching(self) -> None: Stops fetching images.
229229
"""
230-
thisown = property(
230+
_thisown = property(
231231
lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag"
232232
)
233233

234234
def __init__(self):
235-
_DynamsoftUtility.CMultiFrameResultCrossFilter_init(
235+
_DynamsoftUtility.Class_init(
236236
self, _DynamsoftUtility.new_CProactiveImageSourceAdapter(self)
237237
)
238238

@@ -301,12 +301,12 @@ class DirectoryFetcher(ProactiveImageSourceAdapter):
301301
set_pages(self, pages: List[int]) -> Tuple[int, str]: Sets the 0-based page indexes of a file (.tiff or .pdf) for barcode searching.
302302
has_next_image_to_fetch(self) -> bool: Determines whether there are more images left to fetch.
303303
"""
304-
thisown = property(
304+
_thisown = property(
305305
lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag"
306306
)
307307

308308
def __init__(self):
309-
_DynamsoftUtility.CDirectoryFetcher_init(
309+
_DynamsoftUtility.Class_init(
310310
self, _DynamsoftUtility.new_CDirectoryFetcher()
311311
)
312312

@@ -383,12 +383,12 @@ class FileFetcher(ImageSourceAdapter):
383383
get_image(self) -> ImageData: Gets the next image.
384384
"""
385385

386-
thisown = property(
386+
_thisown = property(
387387
lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag"
388388
)
389389

390390
def __init__(self):
391-
_DynamsoftUtility.CFileFetcher_init(self, _DynamsoftUtility.new_CFileFetcher())
391+
_DynamsoftUtility.Class_init(self, _DynamsoftUtility.new_CFileFetcher())
392392

393393
__destroy__ = _DynamsoftUtility.delete_CFileFetcher
394394

@@ -459,7 +459,7 @@ def set_pages(self, pages: List[int]) -> Tuple[int, str]:
459459
_DynamsoftUtility.CFileFetcher_register(FileFetcher)
460460

461461

462-
class ImageManager(object):
462+
class ImageManager:
463463
"""
464464
The ImageManager class is a utility class for managing and manipulating images. It provides functionality for saving images to files and drawing various shapes on images.
465465
@@ -468,7 +468,7 @@ class ImageManager(object):
468468
draw_on_image(self, *args) -> Tuple[int, str]: Draws an image on an image.
469469
"""
470470

471-
thisown = property(
471+
_thisown = property(
472472
lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag"
473473
)
474474

@@ -499,7 +499,7 @@ def draw_on_image(self, *args):
499499
return _DynamsoftUtility.CImageManager_DrawOnImage(self, *args)
500500

501501
def __init__(self):
502-
_DynamsoftUtility.CImageManager_init(
502+
_DynamsoftUtility.Class_init(
503503
self, _DynamsoftUtility.new_CImageManager()
504504
)
505505

0 commit comments

Comments
 (0)