Skip to content

Commit f2ae016

Browse files
test
1 parent 5e4c3eb commit f2ae016

File tree

13 files changed

+1584
-210
lines changed

13 files changed

+1584
-210
lines changed

dynamsoft_capture_vision_bundle/core.py

Lines changed: 624 additions & 73 deletions
Large diffs are not rendered by default.

dynamsoft_capture_vision_bundle/cvr.py

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "3.0.10.8666"
1+
__version__ = "3.0.10.8876"
22

33
if __package__ or "." in __name__:
44
from .core import *
@@ -617,7 +617,7 @@ def get_buffered_character_item_set(self) -> "BufferedCharacterItemSet":
617617

618618
#new
619619

620-
class IntermediateResultReceiver(AbstractIntermediateResultReceiver):
620+
class IntermediateResultReceiver:
621621
_thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
622622

623623
def __init__(self):
@@ -732,6 +732,9 @@ def on_target_roi_results_received(self, result: IntermediateResult, info: Inter
732732
def on_unit_result_received(self, unit: IntermediateResultUnit, info: IntermediateResultExtraInfo) -> None:
733733
pass
734734

735+
def get_observation_parameters(self) -> ObservationParameters:
736+
return _DynamsoftCaptureVisionRouter.CIntermediateResultReceiver_GetObservationParameters(self)
737+
735738
# Register CIntermediateResultReceiver in _DynamsoftCaptureVisionRouter:
736739
_DynamsoftCaptureVisionRouter.CIntermediateResultReceiver_register(IntermediateResultReceiver)
737740
class IntermediateResultManager:
@@ -806,7 +809,7 @@ def init_settings(self, content: str) -> Tuple[int, str]:
806809
807810
Returns:
808811
A tuple containing following elements:
809-
- error_code <int>: The error code indicating the status of the operation.
812+
- error_code (int): The error code indicating the status of the operation.
810813
- error_message <str>: A descriptive message explaining the error.
811814
"""
812815
return _DynamsoftCaptureVisionRouter.CCaptureVisionRouter_InitSettings(
@@ -822,7 +825,7 @@ def init_settings_from_file(self, file_path: str) -> Tuple[int, str]:
822825
823826
Returns:
824827
A tuple containing following elements:
825-
- error_code <int>: The error code indicating the status of the operation.
828+
- error_code (int): The error code indicating the status of the operation.
826829
- error_message <str>: A descriptive message explaining the error.
827830
"""
828831
return _DynamsoftCaptureVisionRouter.CCaptureVisionRouter_InitSettingsFromFile(
@@ -859,7 +862,7 @@ def output_settings_to_file(
859862
860863
Returns:
861864
A tuple containing following elements:
862-
- error_code <int>: The error code indicating the status of the operation.
865+
- error_code (int): The error code indicating the status of the operation.
863866
- error_message <str>: A descriptive message explaining the error.
864867
"""
865868
return _DynamsoftCaptureVisionRouter.CCaptureVisionRouter_OutputSettingsToFile(
@@ -894,7 +897,7 @@ def update_settings(
894897
895898
Returns:
896899
A tuple containing following elements:
897-
- error_code <int>: The error code indicating the status of the operation.
900+
- error_code (int): The error code indicating the status of the operation.
898901
- error_message <str>: A descriptive message explaining the error.
899902
"""
900903
return _DynamsoftCaptureVisionRouter.CCaptureVisionRouter_UpdateSettings(
@@ -907,7 +910,7 @@ def reset_settings(self) -> Tuple[int, str]:
907910
908911
Returns:
909912
A tuple containing following elements:
910-
- error_code <int>: The error code indicating the status of the operation.
913+
- error_code (int): The error code indicating the status of the operation.
911914
- error_message <str>: A descriptive message explaining the error.
912915
"""
913916
return _DynamsoftCaptureVisionRouter.CCaptureVisionRouter_ResetSettings(self)
@@ -973,7 +976,7 @@ def set_input(self, adapter: ImageSourceAdapter) -> Tuple[int, str]:
973976
974977
Returns:
975978
A tuple containing following elements:
976-
- error_code <int>: The error code indicating the status of the operation.
979+
- error_code (int): The error code indicating the status of the operation.
977980
- error_message <str>: A descriptive message explaining the error.
978981
"""
979982
ret = _DynamsoftCaptureVisionRouter.CCaptureVisionRouter_SetInput(self, adapter)
@@ -1001,7 +1004,7 @@ def add_image_source_state_listener(
10011004
10021005
Returns:
10031006
A tuple containing following elements:
1004-
- error_code <int>: The error code indicating the status of the operation.
1007+
- error_code (int): The error code indicating the status of the operation.
10051008
- error_message <str>: A descriptive message explaining the error.
10061009
"""
10071010
return _DynamsoftCaptureVisionRouter.CCaptureVisionRouter_AddImageSourceStateListener(
@@ -1019,7 +1022,7 @@ def remove_image_source_state_listener(
10191022
10201023
Returns:
10211024
A tuple containing following elements:
1022-
- error_code <int>: The error code indicating the status of the operation.
1025+
- error_code (int): The error code indicating the status of the operation.
10231026
- error_message <str>: A descriptive message explaining the error.
10241027
"""
10251028
return _DynamsoftCaptureVisionRouter.CCaptureVisionRouter_RemoveImageSourceStateListener(
@@ -1035,7 +1038,7 @@ def add_result_receiver(self, receiver: CapturedResultReceiver) -> Tuple[int, st
10351038
10361039
Returns:
10371040
A tuple containing following elements:
1038-
- error_code <int>: The error code indicating the status of the operation.
1041+
- error_code (int): The error code indicating the status of the operation.
10391042
- error_message <str>: A descriptive message explaining the error.
10401043
"""
10411044
return _DynamsoftCaptureVisionRouter.CCaptureVisionRouter_AddResultReceiver(
@@ -1053,7 +1056,7 @@ def remove_result_receiver(
10531056
10541057
Returns:
10551058
A tuple containing following elements:
1056-
- error_code <int>: The error code indicating the status of the operation.
1059+
- error_code (int): The error code indicating the status of the operation.
10571060
- error_message <str>: A descriptive message explaining the error.
10581061
"""
10591062
return _DynamsoftCaptureVisionRouter.CCaptureVisionRouter_RemoveResultReceiver(
@@ -1069,7 +1072,7 @@ def add_result_filter(self, filter: CapturedResultFilter) -> Tuple[int, str]:
10691072
10701073
Returns:
10711074
A tuple containing following elements:
1072-
- error_code <int>: The error code indicating the status of the operation.
1075+
- error_code (int): The error code indicating the status of the operation.
10731076
- error_message <str>: A descriptive message explaining the error.
10741077
"""
10751078
return _DynamsoftCaptureVisionRouter.CCaptureVisionRouter_AddResultFilter(
@@ -1085,7 +1088,7 @@ def remove_result_filter(self, filter: CapturedResultFilter) -> Tuple[int, str]:
10851088
10861089
Returns:
10871090
A tuple containing following elements:
1088-
- error_code <int>: The error code indicating the status of the operation.
1091+
- error_code (int): The error code indicating the status of the operation.
10891092
- error_message <str>: A descriptive message explaining the error.
10901093
"""
10911094
return _DynamsoftCaptureVisionRouter.CCaptureVisionRouter_RemoveResultFilter(
@@ -1102,7 +1105,7 @@ def add_capture_state_listener(
11021105
11031106
Returns:
11041107
A tuple containing following elements:
1105-
- error_code <int>: The error code indicating the status of the operation.
1108+
- error_code (int): The error code indicating the status of the operation.
11061109
- error_message <str>: A descriptive message explaining the error.
11071110
"""
11081111
return (
@@ -1121,7 +1124,7 @@ def remove_capture_state_listener(
11211124
11221125
Returns:
11231126
A tuple containing following elements:
1124-
- error_code <int>: The error code indicating the status of the operation.
1127+
- error_code (int): The error code indicating the status of the operation.
11251128
- error_message <str>: A descriptive message explaining the error.
11261129
"""
11271130
return _DynamsoftCaptureVisionRouter.CCaptureVisionRouter_RemoveCaptureStateListener(
@@ -1140,7 +1143,7 @@ def start_capturing(
11401143
11411144
Returns:
11421145
A tuple containing following elements:
1143-
- error_code <int>: The error code indicating the status of the operation.
1146+
- error_code (int): The error code indicating the status of the operation.
11441147
- error_message <str>: A descriptive message explaining the error.
11451148
"""
11461149
ret = _DynamsoftCaptureVisionRouter.CCaptureVisionRouter_StartCapturing(

dynamsoft_capture_vision_bundle/dbr.py

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

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

dynamsoft_capture_vision_bundle/dcp.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "3.0.10.8666"
1+
__version__ = "3.0.10.8876"
22

33
if __package__ or "." in __name__:
44
from . import _DynamsoftCodeParser
@@ -102,7 +102,7 @@ def get_field_validation_status(self, field_name: str) -> int:
102102
return _DynamsoftCodeParser.CParsedResultItem_GetFieldValidationStatus(
103103
self, field_name
104104
)
105-
105+
106106
def get_field_raw_value(self, field_name: str) -> str:
107107
"""
108108
Gets the raw string of a specified field from the parsed result.
@@ -114,7 +114,7 @@ def get_field_raw_value(self, field_name: str) -> str:
114114
A string representing the specified field raw string.
115115
"""
116116
return _DynamsoftCodeParser.CParsedResultItem_GetFieldRawValue(self, field_name)
117-
117+
118118
_DynamsoftCodeParser.CParsedResultItem_register(ParsedResultItem)
119119

120120

@@ -123,11 +123,7 @@ class ParsedResult(CapturedResultBase):
123123
The ParsedResult class represents the results of a code parser process.
124124
125125
Methods:
126-
get_original_image_hash_id(self) -> str: Gets the hash ID of the source image.
127-
get_original_image_tag(self) -> ImageTag: Gets the tag of the source image.
128126
get_items(self) -> List[ParsedResultItem]: Gets all the parsed result items.
129-
get_error_code(self) -> int: Gets the error code of the parsed result, if an error occurred.
130-
get_error_string(self) -> str: Gets the error message of the parsed result, if an error occurred.
131127
"""
132128
_thisown = property(
133129
lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag"

dynamsoft_capture_vision_bundle/dcpd.py

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

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

0 commit comments

Comments
 (0)