Skip to content

Commit f88b4da

Browse files
ivankamkinIvan KamkinDenis-Averin
authored
Release 23.4 (#56)
* Add use_anti_alias generate parameter Remove useless rectangle_region recognize parameter --------- Co-authored-by: Ivan Kamkin <234-Ivan.Kamkin@users.noreply.git.saltov.dynabic.com> Co-authored-by: Denis Averin <denis.averin@aspose.com>
1 parent 55b1c69 commit f88b4da

11 files changed

Lines changed: 81 additions & 51 deletions

File tree

README.md

Lines changed: 1 addition & 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.3.0
8+
- Package version: 23.4.0
99

1010
## Demo applications
1111

aspose_barcode_cloud/api/barcode_api.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ def get_barcode_generate(
8282
supplement_data=None,
8383
supplement_space=None,
8484
bar_width_reduction=None,
85+
use_anti_alias=None,
8586
format=None,
8687
async_req=False,
8788
**kwargs
@@ -127,6 +128,7 @@ def get_barcode_generate(
127128
:param str supplement_data: Supplement parameters. Used for Interleaved2of5, Standard2of5, EAN13, EAN8, UPCA, UPCE, ISBN, ISSN, ISMN. # noqa: E501
128129
:param float supplement_space: Space between main the BarCode and supplement BarCode. # noqa: E501
129130
:param float bar_width_reduction: Bars reduction value that is used to compensate ink spread while printing. # noqa: E501
131+
:param bool use_anti_alias: Indicates whether is used anti-aliasing mode to render image. Anti-aliasing mode is applied to barcode and text drawing. # noqa: E501
130132
:param str format: Result image format. # noqa: E501
131133
:param async_req bool
132134
:return: file
@@ -170,6 +172,7 @@ def get_barcode_generate(
170172
supplement_data=supplement_data,
171173
supplement_space=supplement_space,
172174
bar_width_reduction=bar_width_reduction,
175+
use_anti_alias=use_anti_alias,
173176
format=format,
174177
**kwargs
175178
)
@@ -209,6 +212,7 @@ def get_barcode_generate(
209212
supplement_data=supplement_data,
210213
supplement_space=supplement_space,
211214
bar_width_reduction=bar_width_reduction,
215+
use_anti_alias=use_anti_alias,
212216
format=format,
213217
**kwargs
214218
)
@@ -264,6 +268,7 @@ def get_barcode_generate_with_http_info(self, type, text, **kwargs):
264268
"supplement_data",
265269
"supplement_space",
266270
"bar_width_reduction",
271+
"use_anti_alias",
267272
"format",
268273
}
269274
all_params.add("async_req")
@@ -360,6 +365,8 @@ def get_barcode_generate_with_http_info(self, type, text, **kwargs):
360365
query_params.append(("SupplementSpace", params["supplement_space"]))
361366
if "bar_width_reduction" in params:
362367
query_params.append(("BarWidthReduction", params["bar_width_reduction"]))
368+
if "use_anti_alias" in params:
369+
query_params.append(("UseAntiAlias", params["use_anti_alias"]))
363370
if "format" in params:
364371
query_params.append(("format", params["format"]))
365372

@@ -435,7 +442,6 @@ def get_barcode_recognize(
435442
read_tiny_barcodes=None,
436443
australian_post_encoding_table=None,
437444
ignore_ending_filling_patterns_for_c_table=None,
438-
rectangle_region=None,
439445
storage=None,
440446
folder=None,
441447
async_req=False,
@@ -453,8 +459,8 @@ def get_barcode_recognize(
453459
:param str checksum_validation: Enable checksum validation during recognition for 1D barcodes. Default is treated as Yes for symbologies which must contain checksum, as No where checksum only possible. Checksum never used: Codabar Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN Checksum always used: Rest symbologies # noqa: E501
454460
:param bool detect_encoding: A flag which force engine to detect codetext encoding for Unicode. # noqa: E501
455461
:param str preset: Preset allows to configure recognition quality and speed manually. You can quickly set up Preset by embedded presets: HighPerformance, NormalQuality, HighQuality, MaxBarCodes or you can manually configure separate options. Default value of Preset is NormalQuality. # noqa: E501
456-
:param int rect_x: Set X for area for recognition. # noqa: E501
457-
:param int rect_y: Set Y for area for recognition. # noqa: E501
462+
:param int rect_x: Set X of top left corner of area for recognition. # noqa: E501
463+
:param int rect_y: Set Y of top left corner of area for recognition. # noqa: E501
458464
:param int rect_width: Set Width of area for recognition. # noqa: E501
459465
:param int rect_height: Set Height of area for recognition. # noqa: E501
460466
:param bool strip_fnc: Value indicating whether FNC symbol strip must be done. # noqa: E501
@@ -483,7 +489,6 @@ def get_barcode_recognize(
483489
:param bool read_tiny_barcodes: Allows engine to recognize tiny barcodes on large images. Ignored if AllowIncorrectBarcodes is set to True. Default value: False. # noqa: E501
484490
:param str australian_post_encoding_table: Interpreting Type for the Customer Information of AustralianPost BarCode.Default is CustomerInformationInterpretingType.Other. # noqa: E501
485491
:param bool ignore_ending_filling_patterns_for_c_table: The flag which force AustraliaPost decoder to ignore last filling patterns in Customer Information Field during decoding as CTable method. CTable encoding method does not have any gaps in encoding table and sequence \"333\" of filling patterns is decoded as letter \"z\". # noqa: E501
486-
:param str rectangle_region: # noqa: E501
487492
:param str storage: The image storage. # noqa: E501
488493
:param str folder: The image folder. # noqa: E501
489494
:param async_req bool
@@ -529,7 +534,6 @@ def get_barcode_recognize(
529534
read_tiny_barcodes=read_tiny_barcodes,
530535
australian_post_encoding_table=australian_post_encoding_table,
531536
ignore_ending_filling_patterns_for_c_table=ignore_ending_filling_patterns_for_c_table,
532-
rectangle_region=rectangle_region,
533537
storage=storage,
534538
folder=folder,
535539
**kwargs
@@ -571,7 +575,6 @@ def get_barcode_recognize(
571575
read_tiny_barcodes=read_tiny_barcodes,
572576
australian_post_encoding_table=australian_post_encoding_table,
573577
ignore_ending_filling_patterns_for_c_table=ignore_ending_filling_patterns_for_c_table,
574-
rectangle_region=rectangle_region,
575578
storage=storage,
576579
folder=folder,
577580
**kwargs
@@ -628,7 +631,6 @@ def get_barcode_recognize_with_http_info(self, name, **kwargs):
628631
"read_tiny_barcodes",
629632
"australian_post_encoding_table",
630633
"ignore_ending_filling_patterns_for_c_table",
631-
"rectangle_region",
632634
"storage",
633635
"folder",
634636
}
@@ -728,8 +730,6 @@ def get_barcode_recognize_with_http_info(self, name, **kwargs):
728730
query_params.append(
729731
("IgnoreEndingFillingPatternsForCTable", params["ignore_ending_filling_patterns_for_c_table"])
730732
)
731-
if "rectangle_region" in params:
732-
query_params.append(("RectangleRegion", params["rectangle_region"]))
733733
if "storage" in params:
734734
query_params.append(("storage", params["storage"]))
735735
if "folder" in params:
@@ -804,7 +804,6 @@ def post_barcode_recognize_from_url_or_content(
804804
read_tiny_barcodes=None,
805805
australian_post_encoding_table=None,
806806
ignore_ending_filling_patterns_for_c_table=None,
807-
rectangle_region=None,
808807
url=None,
809808
image=None,
810809
async_req=False,
@@ -821,8 +820,8 @@ def post_barcode_recognize_from_url_or_content(
821820
:param str checksum_validation: Enable checksum validation during recognition for 1D barcodes. Default is treated as Yes for symbologies which must contain checksum, as No where checksum only possible. Checksum never used: Codabar Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN Checksum always used: Rest symbologies # noqa: E501
822821
:param bool detect_encoding: A flag which force engine to detect codetext encoding for Unicode. # noqa: E501
823822
:param str preset: Preset allows to configure recognition quality and speed manually. You can quickly set up Preset by embedded presets: HighPerformance, NormalQuality, HighQuality, MaxBarCodes or you can manually configure separate options. Default value of Preset is NormalQuality. # noqa: E501
824-
:param int rect_x: Set X for area for recognition. # noqa: E501
825-
:param int rect_y: Set Y for area for recognition. # noqa: E501
823+
:param int rect_x: Set X of top left corner of area for recognition. # noqa: E501
824+
:param int rect_y: Set Y of top left corner of area for recognition. # noqa: E501
826825
:param int rect_width: Set Width of area for recognition. # noqa: E501
827826
:param int rect_height: Set Height of area for recognition. # noqa: E501
828827
:param bool strip_fnc: Value indicating whether FNC symbol strip must be done. # noqa: E501
@@ -851,7 +850,6 @@ def post_barcode_recognize_from_url_or_content(
851850
:param bool read_tiny_barcodes: Allows engine to recognize tiny barcodes on large images. Ignored if AllowIncorrectBarcodes is set to True. Default value: False. # noqa: E501
852851
:param str australian_post_encoding_table: Interpreting Type for the Customer Information of AustralianPost BarCode.Default is CustomerInformationInterpretingType.Other. # noqa: E501
853852
:param bool ignore_ending_filling_patterns_for_c_table: The flag which force AustraliaPost decoder to ignore last filling patterns in Customer Information Field during decoding as CTable method. CTable encoding method does not have any gaps in encoding table and sequence \"333\" of filling patterns is decoded as letter \"z\". # noqa: E501
854-
:param str rectangle_region: # noqa: E501
855853
:param str url: The image file url. # noqa: E501
856854
:param file image: Image data # noqa: E501
857855
:param async_req bool
@@ -896,7 +894,6 @@ def post_barcode_recognize_from_url_or_content(
896894
read_tiny_barcodes=read_tiny_barcodes,
897895
australian_post_encoding_table=australian_post_encoding_table,
898896
ignore_ending_filling_patterns_for_c_table=ignore_ending_filling_patterns_for_c_table,
899-
rectangle_region=rectangle_region,
900897
url=url,
901898
image=image,
902899
**kwargs
@@ -937,7 +934,6 @@ def post_barcode_recognize_from_url_or_content(
937934
read_tiny_barcodes=read_tiny_barcodes,
938935
australian_post_encoding_table=australian_post_encoding_table,
939936
ignore_ending_filling_patterns_for_c_table=ignore_ending_filling_patterns_for_c_table,
940-
rectangle_region=rectangle_region,
941937
url=url,
942938
image=image,
943939
**kwargs
@@ -992,7 +988,6 @@ def post_barcode_recognize_from_url_or_content_with_http_info(self, **kwargs):
992988
"read_tiny_barcodes",
993989
"australian_post_encoding_table",
994990
"ignore_ending_filling_patterns_for_c_table",
995-
"rectangle_region",
996991
"url",
997992
"image",
998993
}
@@ -1090,8 +1085,6 @@ def post_barcode_recognize_from_url_or_content_with_http_info(self, **kwargs):
10901085
query_params.append(
10911086
("IgnoreEndingFillingPatternsForCTable", params["ignore_ending_filling_patterns_for_c_table"])
10921087
)
1093-
if "rectangle_region" in params:
1094-
query_params.append(("RectangleRegion", params["rectangle_region"]))
10951088
if "url" in params:
10961089
query_params.append(("url", params["url"]))
10971090

@@ -1273,6 +1266,7 @@ def put_barcode_generate_file(
12731266
supplement_data=None,
12741267
supplement_space=None,
12751268
bar_width_reduction=None,
1269+
use_anti_alias=None,
12761270
storage=None,
12771271
folder=None,
12781272
format=None,
@@ -1321,6 +1315,7 @@ def put_barcode_generate_file(
13211315
:param str supplement_data: Supplement parameters. Used for Interleaved2of5, Standard2of5, EAN13, EAN8, UPCA, UPCE, ISBN, ISSN, ISMN. # noqa: E501
13221316
:param float supplement_space: Space between main the BarCode and supplement BarCode. # noqa: E501
13231317
:param float bar_width_reduction: Bars reduction value that is used to compensate ink spread while printing. # noqa: E501
1318+
:param bool use_anti_alias: Indicates whether is used anti-aliasing mode to render image. Anti-aliasing mode is applied to barcode and text drawing. # noqa: E501
13241319
:param str storage: Image's storage. # noqa: E501
13251320
:param str folder: Image's folder. # noqa: E501
13261321
:param str format: The image format. # noqa: E501
@@ -1367,6 +1362,7 @@ def put_barcode_generate_file(
13671362
supplement_data=supplement_data,
13681363
supplement_space=supplement_space,
13691364
bar_width_reduction=bar_width_reduction,
1365+
use_anti_alias=use_anti_alias,
13701366
storage=storage,
13711367
folder=folder,
13721368
format=format,
@@ -1409,6 +1405,7 @@ def put_barcode_generate_file(
14091405
supplement_data=supplement_data,
14101406
supplement_space=supplement_space,
14111407
bar_width_reduction=bar_width_reduction,
1408+
use_anti_alias=use_anti_alias,
14121409
storage=storage,
14131410
folder=folder,
14141411
format=format,
@@ -1468,6 +1465,7 @@ def put_barcode_generate_file_with_http_info(self, name, type, text, **kwargs):
14681465
"supplement_data",
14691466
"supplement_space",
14701467
"bar_width_reduction",
1468+
"use_anti_alias",
14711469
"storage",
14721470
"folder",
14731471
"format",
@@ -1571,6 +1569,8 @@ def put_barcode_generate_file_with_http_info(self, name, type, text, **kwargs):
15711569
query_params.append(("SupplementSpace", params["supplement_space"]))
15721570
if "bar_width_reduction" in params:
15731571
query_params.append(("BarWidthReduction", params["bar_width_reduction"]))
1572+
if "use_anti_alias" in params:
1573+
query_params.append(("UseAntiAlias", params["use_anti_alias"]))
15741574
if "storage" in params:
15751575
query_params.append(("storage", params["storage"]))
15761576
if "folder" 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.3.0",
93+
"x-aspose-client-version": "23.4.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.3.0/python"
99+
self.user_agent = "Aspose-Barcode-SDK/23.4.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.3.0".format(env=sys.platform, pyversion=sys.version)
289+
"SDK Package Version: 23.4.0".format(env=sys.platform, pyversion=sys.version)
290290
)
291291

292292
@staticmethod

aspose_barcode_cloud/models/generator_params.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ class GeneratorParams(object):
8383
"supplement_data": "str",
8484
"supplement_space": "float",
8585
"bar_width_reduction": "float",
86+
"use_anti_alias": "bool",
8687
"australian_post": "AustralianPostParams",
8788
"aztec": "AztecParams",
8889
"codabar": "CodabarParams",
@@ -139,6 +140,7 @@ class GeneratorParams(object):
139140
"supplement_data": "SupplementData",
140141
"supplement_space": "SupplementSpace",
141142
"bar_width_reduction": "BarWidthReduction",
143+
"use_anti_alias": "UseAntiAlias",
142144
"australian_post": "AustralianPost",
143145
"aztec": "Aztec",
144146
"codabar": "Codabar",
@@ -196,6 +198,7 @@ def __init__(
196198
supplement_data=None,
197199
supplement_space=None,
198200
bar_width_reduction=None,
201+
use_anti_alias=None,
199202
australian_post=None,
200203
aztec=None,
201204
codabar=None,
@@ -252,6 +255,7 @@ def __init__(
252255
self._supplement_data = None
253256
self._supplement_space = None
254257
self._bar_width_reduction = None
258+
self._use_anti_alias = None
255259
self._australian_post = None
256260
self._aztec = None
257261
self._codabar = None
@@ -343,6 +347,8 @@ def __init__(
343347
self.supplement_space = supplement_space
344348
if bar_width_reduction is not None:
345349
self.bar_width_reduction = bar_width_reduction
350+
if use_anti_alias is not None:
351+
self.use_anti_alias = use_anti_alias
346352
if australian_post is not None:
347353
self.australian_post = australian_post
348354
if aztec is not None:
@@ -1252,6 +1258,29 @@ def bar_width_reduction(self, bar_width_reduction):
12521258

12531259
self._bar_width_reduction = bar_width_reduction
12541260

1261+
@property
1262+
def use_anti_alias(self):
1263+
"""Gets the use_anti_alias of this GeneratorParams. # noqa: E501
1264+
1265+
Indicates whether is used anti-aliasing mode to render image. Anti-aliasing mode is applied to barcode and text drawing. # noqa: E501
1266+
1267+
:return: The use_anti_alias of this GeneratorParams. # noqa: E501
1268+
:rtype: bool
1269+
"""
1270+
return self._use_anti_alias
1271+
1272+
@use_anti_alias.setter
1273+
def use_anti_alias(self, use_anti_alias):
1274+
"""Sets the use_anti_alias of this GeneratorParams.
1275+
1276+
Indicates whether is used anti-aliasing mode to render image. Anti-aliasing mode is applied to barcode and text drawing. # noqa: E501
1277+
1278+
:param use_anti_alias: The use_anti_alias of this GeneratorParams. # noqa: E501
1279+
:type: bool
1280+
"""
1281+
1282+
self._use_anti_alias = use_anti_alias
1283+
12551284
@property
12561285
def australian_post(self):
12571286
"""Gets the australian_post of this GeneratorParams. # noqa: E501

aspose_barcode_cloud/models/reader_params.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ def preset(self, preset):
358358
def rect_x(self):
359359
"""Gets the rect_x of this ReaderParams. # noqa: E501
360360
361-
Set X for area for recognition. # noqa: E501
361+
Set X of top left corner of area for recognition. # noqa: E501
362362
363363
:return: The rect_x of this ReaderParams. # noqa: E501
364364
:rtype: int
@@ -369,7 +369,7 @@ def rect_x(self):
369369
def rect_x(self, rect_x):
370370
"""Sets the rect_x of this ReaderParams.
371371
372-
Set X for area for recognition. # noqa: E501
372+
Set X of top left corner of area for recognition. # noqa: E501
373373
374374
:param rect_x: The rect_x of this ReaderParams. # noqa: E501
375375
:type: int
@@ -381,7 +381,7 @@ def rect_x(self, rect_x):
381381
def rect_y(self):
382382
"""Gets the rect_y of this ReaderParams. # noqa: E501
383383
384-
Set Y for area for recognition. # noqa: E501
384+
Set Y of top left corner of area for recognition. # noqa: E501
385385
386386
:return: The rect_y of this ReaderParams. # noqa: E501
387387
:rtype: int
@@ -392,7 +392,7 @@ def rect_y(self):
392392
def rect_y(self, rect_y):
393393
"""Sets the rect_y of this ReaderParams.
394394
395-
Set Y for area for recognition. # noqa: E501
395+
Set Y of top left corner of area for recognition. # noqa: E501
396396
397397
:param rect_y: The rect_y of this ReaderParams. # noqa: E501
398398
:type: int

0 commit comments

Comments
 (0)