2020from 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