1- __version__ = "3.0.10.8295 "
1+ __version__ = "3.0.10.8485 "
22
33if __package__ or "." in __name__ :
44 from .core import *
@@ -162,7 +162,7 @@ def document_settings(self) -> "SimplifiedDocumentNormalizerSettings":
162162 return self ._document_settings
163163 @document_settings .setter
164164 def document_settings (self , value : "SimplifiedDocumentNormalizerSettings" ):
165- if not hasattr (self , '_document_settings' ) or self ._document_settings is None :
165+ if not hasattr (self , '_document_settings' ) or self ._document_settings is None :
166166 self ._document_settings = _DynamsoftCaptureVisionRouter .SimplifiedCaptureVisionSettings_documentSettings_get (self )
167167 _DynamsoftCaptureVisionRouter .SimplifiedCaptureVisionSettings_documentSettings_set (self , value )
168168 self ._document_settings = value
@@ -287,7 +287,7 @@ def get_results(self) -> List[CapturedResult]:
287287 for i in range (count ):
288288 list .append (_DynamsoftCaptureVisionRouter .CCapturedResultArray_GetResult (self , i ))
289289 return list
290-
290+
291291 __destroy__ = _DynamsoftCaptureVisionRouter .CCapturedResultArray_Release
292292
293293_DynamsoftCaptureVisionRouter .CCapturedResultArray_register (CapturedResultArray )
@@ -423,7 +423,7 @@ class CapturedResultFilter:
423423
424424 Methods:
425425 get_name(self): Gets the name of the captured result filter.
426- set_name(self, name: str): Sets the name of the captured result filter.
426+ set_name(self, name: str): Sets the name of the captured result filter.
427427 """
428428 _thisown = property (
429429 lambda x : x .this .own (), lambda x , v : x .this .own (v ), doc = "The membership flag"
@@ -612,7 +612,7 @@ def get_buffered_character_item_set(self) -> "BufferedCharacterItemSet":
612612 return _DynamsoftCaptureVisionRouter .CBufferedItemsManager_GetBufferedCharacterItemSet (
613613 self
614614 )
615-
615+
616616_DynamsoftCaptureVisionRouter .CBufferedItemsManager_register (BufferedItemsManager )
617617
618618#new
@@ -648,6 +648,9 @@ def on_localized_text_lines_received(self, result: "LocalizedTextLinesUnit", inf
648648 def on_recognized_text_lines_received (self , result : "RecognizedTextLinesUnit" , info : IntermediateResultExtraInfo ) -> None :
649649 return _DynamsoftCaptureVisionRouter .CIntermediateResultReceiver_OnRecognizedTextLinesReceived (self , result , info )
650650
651+ def on_detected_quads_received (self , result : "DetectedQuadsUnit" , info : IntermediateResultExtraInfo ) -> None :
652+ return _DynamsoftCaptureVisionRouter .CIntermediateResultReceiver_OnDetectedQuadsReceived (self , result , info )
653+
651654 def on_deskewed_image_received (self , result : "DeskewedImageUnit" , info : IntermediateResultExtraInfo ) -> None :
652655 return _DynamsoftCaptureVisionRouter .CIntermediateResultReceiver_OnDeskewedImageReceived (self , result , info )
653656
@@ -705,7 +708,7 @@ def on_candidate_quad_edges_unit_received(self, result: "CandidateQuadEdgesUnit"
705708 def on_candidate_barcode_zones_unit_received (self , result : "CandidateBarcodeZonesUnit" , info : IntermediateResultExtraInfo ) -> None :
706709 return _DynamsoftCaptureVisionRouter .CIntermediateResultReceiver_OnCandidateBarcodeZonesUnitReceived (self , result , info )
707710
708- def on_scaled_barcode_image_unit_received (self , result : "ScaledUpBarcodeImageUnit " , info : IntermediateResultExtraInfo ) -> None :
711+ def on_scaled_barcode_image_unit_received (self , result : "ScaledBarcodeImageUnit " , info : IntermediateResultExtraInfo ) -> None :
709712 return _DynamsoftCaptureVisionRouter .CIntermediateResultReceiver_OnScaledBarcodeImageUnitReceived (self , result , info )
710713
711714 def on_deformation_resisted_barcode_image_unit_received (self , result : "DeformationResistedBarcodeImageUnit" , info : IntermediateResultExtraInfo ) -> None :
@@ -716,19 +719,19 @@ def on_complemented_barcode_image_unit_received(self, result: "ComplementedBarco
716719
717720 def on_raw_text_lines_unit_received (self , result : "RawTextLinesUnit" , info : IntermediateResultExtraInfo ) -> None :
718721 return _DynamsoftCaptureVisionRouter .CIntermediateResultReceiver_OnRawTextLinesUnitReceived (self , result , info )
719-
722+
720723 def on_logic_lines_unit_received (self , result : "LogicLinesUnit" , info : IntermediateResultExtraInfo ) -> None :
721724 return _DynamsoftCaptureVisionRouter .CIntermediateResultReceiver_OnLogicLinesUnitReceived (self , result )
722-
725+
723726 def on_enhanced_image_received (self , result : "EnhancedImageUnit" , info : IntermediateResultExtraInfo ) -> None :
724727 return _DynamsoftCaptureVisionRouter .CIntermediateResultReceiver_OnEnhancedImageReceived (self , result , info )
725-
728+
726729 def on_target_roi_results_received (self , result : IntermediateResult , info : IntermediateResultExtraInfo ) -> None :
727730 return _DynamsoftCaptureVisionRouter .CIntermediateResultReceiver_OnTargetROIResultsReceived (self , result , info )
728-
731+
729732 def on_unit_result_received (self , unit : IntermediateResultUnit , info : IntermediateResultExtraInfo ) -> None :
730733 pass
731-
734+
732735# Register CIntermediateResultReceiver in _DynamsoftCaptureVisionRouter:
733736_DynamsoftCaptureVisionRouter .CIntermediateResultReceiver_register (IntermediateResultReceiver )
734737class IntermediateResultManager :
@@ -743,7 +746,7 @@ def add_result_receiver(self, receiver: IntermediateResultReceiver) -> int:
743746
744747 def remove_result_receiver (self , receiver : IntermediateResultReceiver ) -> int :
745748 return _DynamsoftCaptureVisionRouter .CIntermediateResultManager_RemoveResultReceiver (self , receiver )
746-
749+
747750 def get_original_image (self , image_hash_id : str )-> ImageData :
748751 return _DynamsoftCaptureVisionRouter .CIntermediateResultManager_GetOriginalImage (self , image_hash_id )
749752
@@ -836,7 +839,7 @@ def output_settings(self, template_name: str, include_default_values: bool = Fal
836839 include_default_values (bool): Specifies whether to include default values in the exported template. Default values is False.
837840
838841 Returns:
839- A tuple containing an error code, error message, and a string containing the exported template.
842+ A tuple containing an error code, error message, and a string containing the exported template.
840843 """
841844 return _DynamsoftCaptureVisionRouter .CCaptureVisionRouter_OutputSettings (
842845 self , template_name , include_default_values
@@ -878,7 +881,7 @@ def get_simplified_settings(
878881 return _DynamsoftCaptureVisionRouter .CCaptureVisionRouter_GetSimplifiedSettings (
879882 self , template_name
880883 )
881-
884+
882885 def update_settings (
883886 self , template_name : str , settings : SimplifiedCaptureVisionSettings
884887 ) -> Tuple [int , str ]:
@@ -897,7 +900,7 @@ def update_settings(
897900 return _DynamsoftCaptureVisionRouter .CCaptureVisionRouter_UpdateSettings (
898901 self , template_name , settings
899902 )
900-
903+
901904 def reset_settings (self ) -> Tuple [int , str ]:
902905 """
903906 Resets all templates to factory settings.
@@ -939,7 +942,7 @@ def capture(self, *args) -> CapturedResult:
939942 else :
940943 if len (args ) == 2 :
941944 template_name = args [1 ]
942-
945+
943946 ret = _DynamsoftCaptureVisionRouter .CCaptureVisionRouter_Capture (self , image , template_name )
944947 return ret
945948
@@ -950,7 +953,7 @@ def capture_multi_pages(self, file: Union[str, bytes], template_name: str = "")
950953 Args:
951954 file (Union[str, bytes]): Specifies the path of the file or the memory location containing the image to be processed.
952955 template_name (str, optional): Specifies the template to use for capturing. Default value is an empty string which means the factory default template.
953-
956+
954957 Returns:
955958 A 'CapturedResultArray' object containing the captured result.
956959 """
@@ -967,7 +970,7 @@ def set_input(self, adapter: ImageSourceAdapter) -> Tuple[int, str]:
967970
968971 Args:
969972 adapter (ImageSourceAdapter): Specifies an object which has implemented the ImageSourceAdapter Class.
970-
973+
971974 Returns:
972975 A tuple containing following elements:
973976 - error_code <int>: The error code indicating the status of the operation.
@@ -1183,30 +1186,30 @@ def get_buffered_items_manager(self) -> BufferedItemsManager:
11831186 self
11841187 )
11851188 )
1186-
1189+
11871190 def get_parameter_template_count (self ) -> int :
11881191 """
11891192 Gets the count of parameter templates.
1190-
1193+
11911194 Returns:
11921195 An integer representing the count of parameter templates.
11931196 """
11941197 return _DynamsoftCaptureVisionRouter .CCaptureVisionRouter_GetParameterTemplateCount (self )
1195-
1198+
11961199 def get_parameter_template_name (self , index : int ) -> Tuple [int , str ]:
11971200 """
11981201 Gets the name of a parameter template at the specified index.
11991202
12001203 Args:
12011204 index (int): Specifies the index of the parameter template.
1202-
1205+
12031206 Returns:
12041207 A tuple containing following elements:
12051208 - error_code (int): The error code indicating the status of the operation.
12061209 - template_name (str): The name of the parameter template.
12071210 """
12081211 return _DynamsoftCaptureVisionRouter .CCaptureVisionRouter_GetParameterTemplateName (self , index )
1209-
1212+
12101213 def append_model_buffer (self , model_name : str , model_buffer : bytes , max_model_instances : int ) -> Tuple [int , str ]:
12111214 """
12121215 Appends a model to the model buffer.
@@ -1215,7 +1218,7 @@ def append_model_buffer(self, model_name: str, model_buffer: bytes, max_model_in
12151218 model_name (str): Specifies the name of the model.
12161219 model_buffer (bytes): Specifies the model buffer in bytes.
12171220 max_model_instances (int): Specifies the maximum number of model instances.
1218-
1221+
12191222 Returns:
12201223 A tuple containing following elements:
12211224 - error_code (int): The error code indicating the status of the operation.
0 commit comments