|
1 | | -__version__ = "11.4.10.6672" |
| 1 | +__version__ = "11.4.10.6677" |
2 | 2 |
|
3 | 3 | if __package__ or "." in __name__: |
4 | 4 | from .core import * |
@@ -731,8 +731,7 @@ class BarcodeResultItem(CapturedResultItem): |
731 | 731 | get_details(self) -> BarcodeDetails: Gets the details of the decoded barcode result. |
732 | 732 | is_dpm(self) -> bool: Gets whether the decoded barcode is a DPM code. |
733 | 733 | is_mirrored(self) -> bool: Gets whether the decoded barcode is mirrored. |
734 | | - get_eci_segments_count(self) -> int: Gets the number of ECI segments in the barcode. |
735 | | - get_eci_segment(self, index: int) -> ECISegment: Gets the ECI segment at the specified index. |
| 734 | + get_eci_segments(self) -> List[ECISegment]: Gets all the ECI segments in the barcode. |
736 | 735 | """ |
737 | 736 | _thisown = property( |
738 | 737 | lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag" |
@@ -840,38 +839,17 @@ def is_mirrored(self) -> bool: |
840 | 839 | """ |
841 | 840 | return _DynamsoftBarcodeReader.CBarcodeResultItem_IsMirrored(self) |
842 | 841 |
|
843 | | - def get_eci_segments_count(self) -> int: |
844 | | - """ |
845 | | - Gets the number of ECI segments in the barcode. |
846 | | -
|
847 | | - Returns: |
848 | | - The count of ECI segments. Returns 0 if no ECI information is present. |
849 | | - """ |
850 | | - return _DynamsoftBarcodeReader.CBarcodeResultItem_GetECISegmentsCount(self) |
851 | | - |
852 | | - def get_eci_segment(self, index: int) -> ECISegment: |
853 | | - """ |
854 | | - Gets the ECI segment at the specified index. |
855 | | -
|
856 | | - Args: |
857 | | - index: The zero-based index of the ECI segment to retrieve. |
858 | | -
|
859 | | - Returns: |
860 | | - An ECISegment object, or None if the index is out of range. |
861 | | - """ |
862 | | - return _DynamsoftBarcodeReader.CBarcodeResultItem_GetECISegment(self, index) |
863 | | - |
864 | 842 | def get_eci_segments(self) -> List[ECISegment]: |
865 | 843 | """ |
866 | 844 | Gets all the ECI segments in the barcode. |
867 | 845 |
|
868 | 846 | Returns: |
869 | 847 | A list of ECISegment objects. |
870 | 848 | """ |
871 | | - count = self.get_eci_segments_count() |
| 849 | + count = _DynamsoftBarcodeReader.CBarcodeResultItem_GetECISegmentsCount(self) |
872 | 850 | result = [] |
873 | 851 | for i in range(count): |
874 | | - eci = self.get_eci_segment(i) |
| 852 | + eci = _DynamsoftBarcodeReader.CBarcodeResultItem_GetECISegment(self, i) |
875 | 853 | if eci is not None: |
876 | 854 | result.append(eci) |
877 | 855 | return result |
@@ -1001,38 +979,17 @@ def set_confidence(self, confidence: int) -> None: |
1001 | 979 | def set_location(self, location: Quadrilateral) -> int: |
1002 | 980 | return _DynamsoftBarcodeReader.CDecodedBarcodeElement_SetLocation(self, location) |
1003 | 981 |
|
1004 | | - def get_eci_segments_count(self) -> int: |
1005 | | - """ |
1006 | | - Gets the number of ECI segments in the barcode. |
1007 | | -
|
1008 | | - Returns: |
1009 | | - The count of ECI segments. Returns 0 if no ECI information is present. |
1010 | | - """ |
1011 | | - return _DynamsoftBarcodeReader.CDecodedBarcodeElement_GetECISegmentsCount(self) |
1012 | | - |
1013 | | - def get_eci_segment(self, index: int) -> ECISegment: |
1014 | | - """ |
1015 | | - Gets the ECI segment at the specified index. |
1016 | | -
|
1017 | | - Args: |
1018 | | - index(int): The zero-based index of the ECI segment to retrieve. |
1019 | | -
|
1020 | | - Returns: |
1021 | | - An ECISegment object, or None if the index is out of range. |
1022 | | - """ |
1023 | | - return _DynamsoftBarcodeReader.CDecodedBarcodeElement_GetECISegment(self, index) |
1024 | | - |
1025 | 982 | def get_eci_segments(self) -> List[ECISegment]: |
1026 | 983 | """ |
1027 | 984 | Gets all the ECI segments in the barcode. |
1028 | 985 |
|
1029 | 986 | Returns: |
1030 | 987 | A list of ECISegment objects. |
1031 | 988 | """ |
1032 | | - count = self.get_eci_segments_count() |
| 989 | + count = _DynamsoftBarcodeReader.CDecodedBarcodeElement_GetECISegmentsCount(self) |
1033 | 990 | result = [] |
1034 | 991 | for i in range(count): |
1035 | | - eci = self.get_eci_segment(i) |
| 992 | + eci = _DynamsoftBarcodeReader.CDecodedBarcodeElement_GetECISegment(self, i) |
1036 | 993 | if eci is not None: |
1037 | 994 | result.append(eci) |
1038 | 995 | return result |
|
0 commit comments