1- __version__ = "3.0.60.3040 "
1+ __version__ = "3.2.10.4096 "
22
33if __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 )
0 commit comments