Skip to content

Commit 6a72adc

Browse files
Release 23.8 (#64)
* Added AllowAdditionalRestorations flag to reader params Added DataMatrixVersion enum and DataMatrixVersion param into DataMatrixParams * Improved Docs --------- Co-authored-by: Denis Averin <denis.averin@aspose.com>
1 parent e183e2b commit 6a72adc

90 files changed

Lines changed: 1027 additions & 284 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![PyPI](https://img.shields.io/pypi/v/aspose-barcode-cloud)](https://pypi.org/project/aspose-barcode-cloud/)
66

77
- API version: 3.0
8-
- Package version: 23.7.0
8+
- Package version: 23.8.0
99

1010
## Demo applications
1111

@@ -163,6 +163,7 @@ Class | Method | HTTP request | Description
163163
- [DataMatrixEccType](docs/DataMatrixEccType.md)
164164
- [DataMatrixEncodeMode](docs/DataMatrixEncodeMode.md)
165165
- [DataMatrixParams](docs/DataMatrixParams.md)
166+
- [DataMatrixVersion](docs/DataMatrixVersion.md)
166167
- [DecodeBarcodeType](docs/DecodeBarcodeType.md)
167168
- [DiscUsage](docs/DiscUsage.md)
168169
- [DotCodeEncodeMode](docs/DotCodeEncodeMode.md)

aspose_barcode_cloud/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
from aspose_barcode_cloud.models.data_matrix_ecc_type import DataMatrixEccType
7070
from aspose_barcode_cloud.models.data_matrix_encode_mode import DataMatrixEncodeMode
7171
from aspose_barcode_cloud.models.data_matrix_params import DataMatrixParams
72+
from aspose_barcode_cloud.models.data_matrix_version import DataMatrixVersion
7273
from aspose_barcode_cloud.models.decode_barcode_type import DecodeBarcodeType
7374
from aspose_barcode_cloud.models.disc_usage import DiscUsage
7475
from aspose_barcode_cloud.models.dot_code_encode_mode import DotCodeEncodeMode

aspose_barcode_cloud/api/barcode_api.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,7 @@ def get_barcode_recognize(
436436
allow_white_spots_removing=None,
437437
check_more1_d_variants=None,
438438
fast_scan_only=None,
439+
allow_additional_restorations=None,
439440
region_likelihood_threshold_percent=None,
440441
scan_window_sizes=None,
441442
similarity=None,
@@ -483,6 +484,7 @@ def get_barcode_recognize(
483484
:param bool allow_white_spots_removing: Allows engine to recognize image without small white spots as additional scan. Mode helps to recognize noised image as well as median smoothing filtering. # noqa: E501
484485
:param bool check_more1_d_variants: Allows engine to recognize 1D barcodes with checksum by checking more recognition variants. Default value: False. # noqa: E501
485486
:param bool fast_scan_only: Allows engine for 1D barcodes to quickly recognize middle slice of an image and return result without using any time-consuming algorithms. Default value: False. # noqa: E501
487+
:param bool allow_additional_restorations: Allows engine using additional image restorations to recognize corrupted barcodes. At this time, it is used only in MicroPdf417 barcode type. Default value: False. # noqa: E501
486488
:param float region_likelihood_threshold_percent: Sets threshold for detected regions that may contain barcodes. Value 0.7 means that bottom 70% of possible regions are filtered out and not processed further. Region likelihood threshold must be between [0.05, 0.9] Use high values for clear images with few barcodes. Use low values for images with many barcodes or for noisy images. Low value may lead to a bigger recognition time. # noqa: E501
487489
:param list[int] scan_window_sizes: Scan window sizes in pixels. Allowed sizes are 10, 15, 20, 25, 30. Scanning with small window size takes more time and provides more accuracy but may fail in detecting very big barcodes. Combining of several window sizes can improve detection quality. # noqa: E501
488490
:param float similarity: Similarity coefficient depends on how homogeneous barcodes are. Use high value for for clear barcodes. Use low values to detect barcodes that ara partly damaged or not lighten evenly. Similarity coefficient must be between [0.5, 0.9] # noqa: E501
@@ -528,6 +530,7 @@ def get_barcode_recognize(
528530
allow_white_spots_removing=allow_white_spots_removing,
529531
check_more1_d_variants=check_more1_d_variants,
530532
fast_scan_only=fast_scan_only,
533+
allow_additional_restorations=allow_additional_restorations,
531534
region_likelihood_threshold_percent=region_likelihood_threshold_percent,
532535
scan_window_sizes=scan_window_sizes,
533536
similarity=similarity,
@@ -569,6 +572,7 @@ def get_barcode_recognize(
569572
allow_white_spots_removing=allow_white_spots_removing,
570573
check_more1_d_variants=check_more1_d_variants,
571574
fast_scan_only=fast_scan_only,
575+
allow_additional_restorations=allow_additional_restorations,
572576
region_likelihood_threshold_percent=region_likelihood_threshold_percent,
573577
scan_window_sizes=scan_window_sizes,
574578
similarity=similarity,
@@ -625,6 +629,7 @@ def get_barcode_recognize_with_http_info(self, name, **kwargs):
625629
"allow_white_spots_removing",
626630
"check_more1_d_variants",
627631
"fast_scan_only",
632+
"allow_additional_restorations",
628633
"region_likelihood_threshold_percent",
629634
"scan_window_sizes",
630635
"similarity",
@@ -714,6 +719,8 @@ def get_barcode_recognize_with_http_info(self, name, **kwargs):
714719
query_params.append(("CheckMore1DVariants", params["check_more1_d_variants"]))
715720
if "fast_scan_only" in params:
716721
query_params.append(("FastScanOnly", params["fast_scan_only"]))
722+
if "allow_additional_restorations" in params:
723+
query_params.append(("AllowAdditionalRestorations", params["allow_additional_restorations"]))
717724
if "region_likelihood_threshold_percent" in params:
718725
query_params.append(("RegionLikelihoodThresholdPercent", params["region_likelihood_threshold_percent"]))
719726
if "scan_window_sizes" in params:
@@ -798,6 +805,7 @@ def post_barcode_recognize_from_url_or_content(
798805
allow_white_spots_removing=None,
799806
check_more1_d_variants=None,
800807
fast_scan_only=None,
808+
allow_additional_restorations=None,
801809
region_likelihood_threshold_percent=None,
802810
scan_window_sizes=None,
803811
similarity=None,
@@ -844,6 +852,7 @@ def post_barcode_recognize_from_url_or_content(
844852
:param bool allow_white_spots_removing: Allows engine to recognize image without small white spots as additional scan. Mode helps to recognize noised image as well as median smoothing filtering. # noqa: E501
845853
:param bool check_more1_d_variants: Allows engine to recognize 1D barcodes with checksum by checking more recognition variants. Default value: False. # noqa: E501
846854
:param bool fast_scan_only: Allows engine for 1D barcodes to quickly recognize middle slice of an image and return result without using any time-consuming algorithms. Default value: False. # noqa: E501
855+
:param bool allow_additional_restorations: Allows engine using additional image restorations to recognize corrupted barcodes. At this time, it is used only in MicroPdf417 barcode type. Default value: False. # noqa: E501
847856
:param float region_likelihood_threshold_percent: Sets threshold for detected regions that may contain barcodes. Value 0.7 means that bottom 70% of possible regions are filtered out and not processed further. Region likelihood threshold must be between [0.05, 0.9] Use high values for clear images with few barcodes. Use low values for images with many barcodes or for noisy images. Low value may lead to a bigger recognition time. # noqa: E501
848857
:param list[int] scan_window_sizes: Scan window sizes in pixels. Allowed sizes are 10, 15, 20, 25, 30. Scanning with small window size takes more time and provides more accuracy but may fail in detecting very big barcodes. Combining of several window sizes can improve detection quality. # noqa: E501
849858
:param float similarity: Similarity coefficient depends on how homogeneous barcodes are. Use high value for for clear barcodes. Use low values to detect barcodes that ara partly damaged or not lighten evenly. Similarity coefficient must be between [0.5, 0.9] # noqa: E501
@@ -888,6 +897,7 @@ def post_barcode_recognize_from_url_or_content(
888897
allow_white_spots_removing=allow_white_spots_removing,
889898
check_more1_d_variants=check_more1_d_variants,
890899
fast_scan_only=fast_scan_only,
900+
allow_additional_restorations=allow_additional_restorations,
891901
region_likelihood_threshold_percent=region_likelihood_threshold_percent,
892902
scan_window_sizes=scan_window_sizes,
893903
similarity=similarity,
@@ -928,6 +938,7 @@ def post_barcode_recognize_from_url_or_content(
928938
allow_white_spots_removing=allow_white_spots_removing,
929939
check_more1_d_variants=check_more1_d_variants,
930940
fast_scan_only=fast_scan_only,
941+
allow_additional_restorations=allow_additional_restorations,
931942
region_likelihood_threshold_percent=region_likelihood_threshold_percent,
932943
scan_window_sizes=scan_window_sizes,
933944
similarity=similarity,
@@ -982,6 +993,7 @@ def post_barcode_recognize_from_url_or_content_with_http_info(self, **kwargs):
982993
"allow_white_spots_removing",
983994
"check_more1_d_variants",
984995
"fast_scan_only",
996+
"allow_additional_restorations",
985997
"region_likelihood_threshold_percent",
986998
"scan_window_sizes",
987999
"similarity",
@@ -1069,6 +1081,8 @@ def post_barcode_recognize_from_url_or_content_with_http_info(self, **kwargs):
10691081
query_params.append(("CheckMore1DVariants", params["check_more1_d_variants"]))
10701082
if "fast_scan_only" in params:
10711083
query_params.append(("FastScanOnly", params["fast_scan_only"]))
1084+
if "allow_additional_restorations" in params:
1085+
query_params.append(("AllowAdditionalRestorations", params["allow_additional_restorations"]))
10721086
if "region_likelihood_threshold_percent" in params:
10731087
query_params.append(("RegionLikelihoodThresholdPercent", params["region_likelihood_threshold_percent"]))
10741088
if "scan_window_sizes" in params:

aspose_barcode_cloud/api_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,13 @@ def __init__(self, configuration=None, header_name=None, header_value=None, cook
9090
self.rest_client = RESTClientObject(configuration)
9191
self.default_headers = {
9292
"x-aspose-client": "python sdk",
93-
"x-aspose-client-version": "23.7.0",
93+
"x-aspose-client-version": "23.8.0",
9494
}
9595
if header_name is not None:
9696
self.default_headers[header_name] = header_value
9797
self.cookie = cookie
9898
# Set default User-Agent.
99-
self.user_agent = "Aspose-Barcode-SDK/23.7.0/python"
99+
self.user_agent = "Aspose-Barcode-SDK/23.8.0/python"
100100

101101
def __del__(self):
102102
self.rest_client.close()

aspose_barcode_cloud/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def to_debug_report(self):
286286
"OS: {env}\n"
287287
"Python Version: {pyversion}\n"
288288
"Version of the API: 3.0\n"
289-
"SDK Package Version: 23.7.0".format(env=sys.platform, pyversion=sys.version)
289+
"SDK Package Version: 23.8.0".format(env=sys.platform, pyversion=sys.version)
290290
)
291291

292292
@staticmethod

aspose_barcode_cloud/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
from aspose_barcode_cloud.models.data_matrix_ecc_type import DataMatrixEccType
5757
from aspose_barcode_cloud.models.data_matrix_encode_mode import DataMatrixEncodeMode
5858
from aspose_barcode_cloud.models.data_matrix_params import DataMatrixParams
59+
from aspose_barcode_cloud.models.data_matrix_version import DataMatrixVersion
5960
from aspose_barcode_cloud.models.decode_barcode_type import DecodeBarcodeType
6061
from aspose_barcode_cloud.models.disc_usage import DiscUsage
6162
from aspose_barcode_cloud.models.dot_code_encode_mode import DotCodeEncodeMode

aspose_barcode_cloud/models/data_matrix_params.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ class DataMatrixParams(object):
5353
"data_matrix_encode_mode": "DataMatrixEncodeMode",
5454
"rows": "int",
5555
"macro_characters": "MacroCharacter",
56+
"version": "DataMatrixVersion",
5657
}
5758

5859
attribute_map = {
@@ -63,6 +64,7 @@ class DataMatrixParams(object):
6364
"data_matrix_encode_mode": "DataMatrixEncodeMode",
6465
"rows": "Rows",
6566
"macro_characters": "MacroCharacters",
67+
"version": "Version",
6668
}
6769

6870
def __init__(
@@ -74,6 +76,7 @@ def __init__(
7476
data_matrix_encode_mode=None,
7577
rows=None,
7678
macro_characters=None,
79+
version=None,
7780
): # noqa: E501
7881
"""DataMatrixParams - a model defined in Swagger""" # noqa: E501
7982

@@ -84,6 +87,7 @@ def __init__(
8487
self._data_matrix_encode_mode = None
8588
self._rows = None
8689
self._macro_characters = None
90+
self._version = None
8791
self.discriminator = None
8892

8993
if aspect_ratio is not None:
@@ -100,6 +104,8 @@ def __init__(
100104
self.rows = rows
101105
if macro_characters is not None:
102106
self.macro_characters = macro_characters
107+
if version is not None:
108+
self.version = version
103109

104110
@property
105111
def aspect_ratio(self):
@@ -270,6 +276,29 @@ def macro_characters(self, macro_characters):
270276

271277
self._macro_characters = macro_characters
272278

279+
@property
280+
def version(self):
281+
"""Gets the version of this DataMatrixParams. # noqa: E501
282+
283+
Sets a Datamatrix symbol size. Default value: DataMatrixVersion.Auto. # noqa: E501
284+
285+
:return: The version of this DataMatrixParams. # noqa: E501
286+
:rtype: DataMatrixVersion
287+
"""
288+
return self._version
289+
290+
@version.setter
291+
def version(self, version):
292+
"""Sets the version of this DataMatrixParams.
293+
294+
Sets a Datamatrix symbol size. Default value: DataMatrixVersion.Auto. # noqa: E501
295+
296+
:param version: The version of this DataMatrixParams. # noqa: E501
297+
:type: DataMatrixVersion
298+
"""
299+
300+
self._version = version
301+
273302
def to_dict(self):
274303
"""Returns the model properties as a dict"""
275304
result = {}

0 commit comments

Comments
 (0)