Skip to content

Commit 0c34fae

Browse files
authored
Release 21.2 (#15)
* Version 21.2.0
1 parent 3ace489 commit 0c34fae

13 files changed

Lines changed: 275 additions & 17 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Aspose.BarCode Cloud SDK for Python
22

33
- API version: 3.0
4-
- Package version: 20.12.0
4+
- Package version: 21.2.0
55

66
[Aspose.BarCode for Cloud](https://products.aspose.cloud/barcode/cloud) is a REST API for Linear, 2D and postal barcode generation and recognition in the cloud. API recognizes and generates barcode images in a variety of formats. Barcode REST API allows to specify barcode image attributes like image width, height, border style and output image format in order to customize the generation process. Developers can also specify the barcode type and text attributes such as text location and font styles in order to suit the application requirements.
77

aspose_barcode_cloud/api/barcode_api.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,7 @@ def get_barcode_recognize(
426426
allow_regular_image=None,
427427
allow_salt_and_pepper_filtering=None,
428428
allow_white_spots_removing=None,
429+
check_more1_d_variants=None,
429430
region_likelihood_threshold_percent=None,
430431
scan_window_sizes=None,
431432
similarity=None,
@@ -471,6 +472,7 @@ def get_barcode_recognize(
471472
:param bool allow_regular_image: Allows engine to recognize regular image without any restorations as main scan. Mode to recognize image as is. # noqa: E501
472473
:param bool allow_salt_and_pepper_filtering: Allows engine to recognize barcodes with salt and pepper noise type. Mode can remove small noise with white and black dots. # noqa: E501
473474
: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
475+
:param bool check_more1_d_variants: Allows engine to recognize 1D barcodes with checksum by checking more recognition variants. Default value: False. # noqa: E501
474476
: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
475477
: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
476478
: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
@@ -514,6 +516,7 @@ def get_barcode_recognize(
514516
allow_regular_image=allow_regular_image,
515517
allow_salt_and_pepper_filtering=allow_salt_and_pepper_filtering,
516518
allow_white_spots_removing=allow_white_spots_removing,
519+
check_more1_d_variants=check_more1_d_variants,
517520
region_likelihood_threshold_percent=region_likelihood_threshold_percent,
518521
scan_window_sizes=scan_window_sizes,
519522
similarity=similarity,
@@ -553,6 +556,7 @@ def get_barcode_recognize(
553556
allow_regular_image=allow_regular_image,
554557
allow_salt_and_pepper_filtering=allow_salt_and_pepper_filtering,
555558
allow_white_spots_removing=allow_white_spots_removing,
559+
check_more1_d_variants=check_more1_d_variants,
556560
region_likelihood_threshold_percent=region_likelihood_threshold_percent,
557561
scan_window_sizes=scan_window_sizes,
558562
similarity=similarity,
@@ -607,6 +611,7 @@ def get_barcode_recognize_with_http_info(self, name, **kwargs):
607611
"allow_regular_image",
608612
"allow_salt_and_pepper_filtering",
609613
"allow_white_spots_removing",
614+
"check_more1_d_variants",
610615
"region_likelihood_threshold_percent",
611616
"scan_window_sizes",
612617
"similarity",
@@ -692,6 +697,8 @@ def get_barcode_recognize_with_http_info(self, name, **kwargs):
692697
query_params.append(("AllowSaltAndPepperFiltering", params["allow_salt_and_pepper_filtering"]))
693698
if "allow_white_spots_removing" in params:
694699
query_params.append(("AllowWhiteSpotsRemoving", params["allow_white_spots_removing"]))
700+
if "check_more1_d_variants" in params:
701+
query_params.append(("CheckMore1DVariants", params["check_more1_d_variants"]))
695702
if "region_likelihood_threshold_percent" in params:
696703
query_params.append(("RegionLikelihoodThresholdPercent", params["region_likelihood_threshold_percent"]))
697704
if "scan_window_sizes" in params:
@@ -772,6 +779,7 @@ def post_barcode_recognize_from_url_or_content(
772779
allow_regular_image=None,
773780
allow_salt_and_pepper_filtering=None,
774781
allow_white_spots_removing=None,
782+
check_more1_d_variants=None,
775783
region_likelihood_threshold_percent=None,
776784
scan_window_sizes=None,
777785
similarity=None,
@@ -816,6 +824,7 @@ def post_barcode_recognize_from_url_or_content(
816824
:param bool allow_regular_image: Allows engine to recognize regular image without any restorations as main scan. Mode to recognize image as is. # noqa: E501
817825
:param bool allow_salt_and_pepper_filtering: Allows engine to recognize barcodes with salt and pepper noise type. Mode can remove small noise with white and black dots. # noqa: E501
818826
: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
827+
:param bool check_more1_d_variants: Allows engine to recognize 1D barcodes with checksum by checking more recognition variants. Default value: False. # noqa: E501
819828
: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
820829
: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
821830
: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
@@ -858,6 +867,7 @@ def post_barcode_recognize_from_url_or_content(
858867
allow_regular_image=allow_regular_image,
859868
allow_salt_and_pepper_filtering=allow_salt_and_pepper_filtering,
860869
allow_white_spots_removing=allow_white_spots_removing,
870+
check_more1_d_variants=check_more1_d_variants,
861871
region_likelihood_threshold_percent=region_likelihood_threshold_percent,
862872
scan_window_sizes=scan_window_sizes,
863873
similarity=similarity,
@@ -896,6 +906,7 @@ def post_barcode_recognize_from_url_or_content(
896906
allow_regular_image=allow_regular_image,
897907
allow_salt_and_pepper_filtering=allow_salt_and_pepper_filtering,
898908
allow_white_spots_removing=allow_white_spots_removing,
909+
check_more1_d_variants=check_more1_d_variants,
899910
region_likelihood_threshold_percent=region_likelihood_threshold_percent,
900911
scan_window_sizes=scan_window_sizes,
901912
similarity=similarity,
@@ -948,6 +959,7 @@ def post_barcode_recognize_from_url_or_content_with_http_info(self, **kwargs):
948959
"allow_regular_image",
949960
"allow_salt_and_pepper_filtering",
950961
"allow_white_spots_removing",
962+
"check_more1_d_variants",
951963
"region_likelihood_threshold_percent",
952964
"scan_window_sizes",
953965
"similarity",
@@ -1031,6 +1043,8 @@ def post_barcode_recognize_from_url_or_content_with_http_info(self, **kwargs):
10311043
query_params.append(("AllowSaltAndPepperFiltering", params["allow_salt_and_pepper_filtering"]))
10321044
if "allow_white_spots_removing" in params:
10331045
query_params.append(("AllowWhiteSpotsRemoving", params["allow_white_spots_removing"]))
1046+
if "check_more1_d_variants" in params:
1047+
query_params.append(("CheckMore1DVariants", params["check_more1_d_variants"]))
10341048
if "region_likelihood_threshold_percent" in params:
10351049
query_params.append(("RegionLikelihoodThresholdPercent", params["region_likelihood_threshold_percent"]))
10361050
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
@@ -82,12 +82,12 @@ def __init__(self, configuration=None, header_name=None, header_value=None, cook
8282
# Use the pool property to lazily initialize the ThreadPool.
8383
self._pool = None
8484
self.rest_client = rest.RESTClientObject(configuration)
85-
self.default_headers = {"x-aspose-client": "python sdk", "x-aspose-client-version": "20.12.0"}
85+
self.default_headers = {"x-aspose-client": "python sdk", "x-aspose-client-version": "21.2.0"}
8686
if header_name is not None:
8787
self.default_headers[header_name] = header_value
8888
self.cookie = cookie
8989
# Set default User-Agent.
90-
self.user_agent = "Aspose-Barcode-SDK/20.12.0/python"
90+
self.user_agent = "Aspose-Barcode-SDK/21.2.0/python"
9191

9292
def __del__(self):
9393
if self._pool is not None:

aspose_barcode_cloud/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def to_debug_report(self):
285285
"OS: {env}\n"
286286
"Python Version: {pyversion}\n"
287287
"Version of the API: 3.0\n"
288-
"SDK Package Version: 20.12.0".format(env=sys.platform, pyversion=sys.version)
288+
"SDK Package Version: 21.2.0".format(env=sys.platform, pyversion=sys.version)
289289
)
290290

291291
@staticmethod

aspose_barcode_cloud/models/pdf417_params.py

Lines changed: 203 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ class Pdf417Params(object):
5757
"truncate": "bool",
5858
"pdf417_eci_encoding": "ECIEncodings",
5959
"is_reader_initialization": "bool",
60+
"macro_time_stamp": "datetime",
61+
"macro_sender": "str",
62+
"macro_file_size": "int",
63+
"macro_checksum": "int",
64+
"macro_file_name": "str",
65+
"macro_addressee": "str",
66+
"macro_eci_encoding": "ECIEncodings",
6067
}
6168

6269
attribute_map = {
@@ -72,6 +79,13 @@ class Pdf417Params(object):
7279
"truncate": "Truncate",
7380
"pdf417_eci_encoding": "Pdf417ECIEncoding",
7481
"is_reader_initialization": "IsReaderInitialization",
82+
"macro_time_stamp": "MacroTimeStamp",
83+
"macro_sender": "MacroSender",
84+
"macro_file_size": "MacroFileSize",
85+
"macro_checksum": "MacroChecksum",
86+
"macro_file_name": "MacroFileName",
87+
"macro_addressee": "MacroAddressee",
88+
"macro_eci_encoding": "MacroECIEncoding",
7589
}
7690

7791
def __init__(
@@ -88,6 +102,13 @@ def __init__(
88102
truncate=None,
89103
pdf417_eci_encoding=None,
90104
is_reader_initialization=None,
105+
macro_time_stamp=None,
106+
macro_sender=None,
107+
macro_file_size=None,
108+
macro_checksum=None,
109+
macro_file_name=None,
110+
macro_addressee=None,
111+
macro_eci_encoding=None,
91112
): # noqa: E501
92113
"""Pdf417Params - a model defined in Swagger""" # noqa: E501
93114

@@ -103,6 +124,13 @@ def __init__(
103124
self._truncate = None
104125
self._pdf417_eci_encoding = None
105126
self._is_reader_initialization = None
127+
self._macro_time_stamp = None
128+
self._macro_sender = None
129+
self._macro_file_size = None
130+
self._macro_checksum = None
131+
self._macro_file_name = None
132+
self._macro_addressee = None
133+
self._macro_eci_encoding = None
106134
self.discriminator = None
107135

108136
if aspect_ratio is not None:
@@ -129,6 +157,20 @@ def __init__(
129157
self.pdf417_eci_encoding = pdf417_eci_encoding
130158
if is_reader_initialization is not None:
131159
self.is_reader_initialization = is_reader_initialization
160+
if macro_time_stamp is not None:
161+
self.macro_time_stamp = macro_time_stamp
162+
if macro_sender is not None:
163+
self.macro_sender = macro_sender
164+
if macro_file_size is not None:
165+
self.macro_file_size = macro_file_size
166+
if macro_checksum is not None:
167+
self.macro_checksum = macro_checksum
168+
if macro_file_name is not None:
169+
self.macro_file_name = macro_file_name
170+
if macro_addressee is not None:
171+
self.macro_addressee = macro_addressee
172+
if macro_eci_encoding is not None:
173+
self.macro_eci_encoding = macro_eci_encoding
132174

133175
@property
134176
def aspect_ratio(self):
@@ -406,6 +448,167 @@ def is_reader_initialization(self, is_reader_initialization):
406448

407449
self._is_reader_initialization = is_reader_initialization
408450

451+
@property
452+
def macro_time_stamp(self):
453+
"""Gets the macro_time_stamp of this Pdf417Params. # noqa: E501
454+
455+
Macro Pdf417 barcode time stamp # noqa: E501
456+
457+
:return: The macro_time_stamp of this Pdf417Params. # noqa: E501
458+
:rtype: datetime
459+
"""
460+
return self._macro_time_stamp
461+
462+
@macro_time_stamp.setter
463+
def macro_time_stamp(self, macro_time_stamp):
464+
"""Sets the macro_time_stamp of this Pdf417Params.
465+
466+
Macro Pdf417 barcode time stamp # noqa: E501
467+
468+
:param macro_time_stamp: The macro_time_stamp of this Pdf417Params. # noqa: E501
469+
:type: datetime
470+
"""
471+
472+
self._macro_time_stamp = macro_time_stamp
473+
474+
@property
475+
def macro_sender(self):
476+
"""Gets the macro_sender of this Pdf417Params. # noqa: E501
477+
478+
Macro Pdf417 barcode sender name # noqa: E501
479+
480+
:return: The macro_sender of this Pdf417Params. # noqa: E501
481+
:rtype: str
482+
"""
483+
return self._macro_sender
484+
485+
@macro_sender.setter
486+
def macro_sender(self, macro_sender):
487+
"""Sets the macro_sender of this Pdf417Params.
488+
489+
Macro Pdf417 barcode sender name # noqa: E501
490+
491+
:param macro_sender: The macro_sender of this Pdf417Params. # noqa: E501
492+
:type: str
493+
"""
494+
495+
self._macro_sender = macro_sender
496+
497+
@property
498+
def macro_file_size(self):
499+
"""Gets the macro_file_size of this Pdf417Params. # noqa: E501
500+
501+
Macro Pdf417 file size. The file size field contains the size in bytes of the entire source file # noqa: E501
502+
503+
:return: The macro_file_size of this Pdf417Params. # noqa: E501
504+
:rtype: int
505+
"""
506+
return self._macro_file_size
507+
508+
@macro_file_size.setter
509+
def macro_file_size(self, macro_file_size):
510+
"""Sets the macro_file_size of this Pdf417Params.
511+
512+
Macro Pdf417 file size. The file size field contains the size in bytes of the entire source file # noqa: E501
513+
514+
:param macro_file_size: The macro_file_size of this Pdf417Params. # noqa: E501
515+
:type: int
516+
"""
517+
518+
self._macro_file_size = macro_file_size
519+
520+
@property
521+
def macro_checksum(self):
522+
"""Gets the macro_checksum of this Pdf417Params. # noqa: E501
523+
524+
Macro Pdf417 barcode checksum. The checksum field contains the value of the 16-bit (2 bytes) CRC checksum using the CCITT-16 polynomial # noqa: E501
525+
526+
:return: The macro_checksum of this Pdf417Params. # noqa: E501
527+
:rtype: int
528+
"""
529+
return self._macro_checksum
530+
531+
@macro_checksum.setter
532+
def macro_checksum(self, macro_checksum):
533+
"""Sets the macro_checksum of this Pdf417Params.
534+
535+
Macro Pdf417 barcode checksum. The checksum field contains the value of the 16-bit (2 bytes) CRC checksum using the CCITT-16 polynomial # noqa: E501
536+
537+
:param macro_checksum: The macro_checksum of this Pdf417Params. # noqa: E501
538+
:type: int
539+
"""
540+
541+
self._macro_checksum = macro_checksum
542+
543+
@property
544+
def macro_file_name(self):
545+
"""Gets the macro_file_name of this Pdf417Params. # noqa: E501
546+
547+
Macro Pdf417 barcode file name # noqa: E501
548+
549+
:return: The macro_file_name of this Pdf417Params. # noqa: E501
550+
:rtype: str
551+
"""
552+
return self._macro_file_name
553+
554+
@macro_file_name.setter
555+
def macro_file_name(self, macro_file_name):
556+
"""Sets the macro_file_name of this Pdf417Params.
557+
558+
Macro Pdf417 barcode file name # noqa: E501
559+
560+
:param macro_file_name: The macro_file_name of this Pdf417Params. # noqa: E501
561+
:type: str
562+
"""
563+
564+
self._macro_file_name = macro_file_name
565+
566+
@property
567+
def macro_addressee(self):
568+
"""Gets the macro_addressee of this Pdf417Params. # noqa: E501
569+
570+
Macro Pdf417 barcode addressee name # noqa: E501
571+
572+
:return: The macro_addressee of this Pdf417Params. # noqa: E501
573+
:rtype: str
574+
"""
575+
return self._macro_addressee
576+
577+
@macro_addressee.setter
578+
def macro_addressee(self, macro_addressee):
579+
"""Sets the macro_addressee of this Pdf417Params.
580+
581+
Macro Pdf417 barcode addressee name # noqa: E501
582+
583+
:param macro_addressee: The macro_addressee of this Pdf417Params. # noqa: E501
584+
:type: str
585+
"""
586+
587+
self._macro_addressee = macro_addressee
588+
589+
@property
590+
def macro_eci_encoding(self):
591+
"""Gets the macro_eci_encoding of this Pdf417Params. # noqa: E501
592+
593+
Extended Channel Interpretation Identifiers. Applies for Macro PDF417 text fields. # noqa: E501
594+
595+
:return: The macro_eci_encoding of this Pdf417Params. # noqa: E501
596+
:rtype: ECIEncodings
597+
"""
598+
return self._macro_eci_encoding
599+
600+
@macro_eci_encoding.setter
601+
def macro_eci_encoding(self, macro_eci_encoding):
602+
"""Sets the macro_eci_encoding of this Pdf417Params.
603+
604+
Extended Channel Interpretation Identifiers. Applies for Macro PDF417 text fields. # noqa: E501
605+
606+
:param macro_eci_encoding: The macro_eci_encoding of this Pdf417Params. # noqa: E501
607+
:type: ECIEncodings
608+
"""
609+
610+
self._macro_eci_encoding = macro_eci_encoding
611+
409612
def to_dict(self):
410613
"""Returns the model properties as a dict"""
411614
result = {}

0 commit comments

Comments
 (0)