aspose-barcode-for-python-via-java 24.8.1__tar.gz → 24.8.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {aspose-barcode-for-python-via-java-24.8.1 → aspose-barcode-for-python-via-java-24.8.2}/PKG-INFO +1 -1
- {aspose-barcode-for-python-via-java-24.8.1 → aspose-barcode-for-python-via-java-24.8.2}/aspose_barcode_for_python_via_java.egg-info/PKG-INFO +1 -1
- {aspose-barcode-for-python-via-java-24.8.1 → aspose-barcode-for-python-via-java-24.8.2}/asposebarcode/ComplexBarcode.py +0 -2
- {aspose-barcode-for-python-via-java-24.8.1 → aspose-barcode-for-python-via-java-24.8.2}/asposebarcode/Generation.py +103 -108
- {aspose-barcode-for-python-via-java-24.8.1 → aspose-barcode-for-python-via-java-24.8.2}/asposebarcode/Recognition.py +49 -49
- {aspose-barcode-for-python-via-java-24.8.1 → aspose-barcode-for-python-via-java-24.8.2}/asposebarcode/jlib/aspose-barcode-python-24.8.jar +0 -0
- {aspose-barcode-for-python-via-java-24.8.1 → aspose-barcode-for-python-via-java-24.8.2}/setup.py +1 -1
- {aspose-barcode-for-python-via-java-24.8.1 → aspose-barcode-for-python-via-java-24.8.2}/MANIFEST.in +0 -0
- {aspose-barcode-for-python-via-java-24.8.1 → aspose-barcode-for-python-via-java-24.8.2}/README.md +0 -0
- {aspose-barcode-for-python-via-java-24.8.1 → aspose-barcode-for-python-via-java-24.8.2}/aspose_barcode_for_python_via_java.egg-info/SOURCES.txt +0 -0
- {aspose-barcode-for-python-via-java-24.8.1 → aspose-barcode-for-python-via-java-24.8.2}/aspose_barcode_for_python_via_java.egg-info/dependency_links.txt +0 -0
- {aspose-barcode-for-python-via-java-24.8.1 → aspose-barcode-for-python-via-java-24.8.2}/aspose_barcode_for_python_via_java.egg-info/requires.txt +0 -0
- {aspose-barcode-for-python-via-java-24.8.1 → aspose-barcode-for-python-via-java-24.8.2}/aspose_barcode_for_python_via_java.egg-info/top_level.txt +0 -0
- {aspose-barcode-for-python-via-java-24.8.1 → aspose-barcode-for-python-via-java-24.8.2}/asposebarcode/Assist.py +0 -0
- {aspose-barcode-for-python-via-java-24.8.1 → aspose-barcode-for-python-via-java-24.8.2}/asposebarcode/__init__.py +0 -0
- {aspose-barcode-for-python-via-java-24.8.1 → aspose-barcode-for-python-via-java-24.8.2}/license/End+User+License+Agreement.html +0 -0
- {aspose-barcode-for-python-via-java-24.8.1 → aspose-barcode-for-python-via-java-24.8.2}/license/ThirdPartyLicenses.Aspose.BarCode.Java.pdf +0 -0
- {aspose-barcode-for-python-via-java-24.8.1 → aspose-barcode-for-python-via-java-24.8.2}/setup.cfg +0 -0
{aspose-barcode-for-python-via-java-24.8.1 → aspose-barcode-for-python-via-java-24.8.2}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: aspose-barcode-for-python-via-java
|
|
3
|
-
Version: 24.8.
|
|
3
|
+
Version: 24.8.2
|
|
4
4
|
Summary: Barcode generation and recognition component. It allows developers to quickly and easily add barcode creation and scanning functionality to their Python applications.
|
|
5
5
|
Home-page: UNKNOWN
|
|
6
6
|
Author: Aspose
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: aspose-barcode-for-python-via-java
|
|
3
|
-
Version: 24.8.
|
|
3
|
+
Version: 24.8.2
|
|
4
4
|
Summary: Barcode generation and recognition component. It allows developers to quickly and easily add barcode creation and scanning functionality to their Python applications.
|
|
5
5
|
Home-page: UNKNOWN
|
|
6
6
|
Author: Aspose
|
|
@@ -4149,30 +4149,30 @@ class MacroCharacter(Enum):
|
|
|
4149
4149
|
|
|
4150
4150
|
## None of Macro Characters are added to barcode data
|
|
4151
4151
|
NONE = 0
|
|
4152
|
-
|
|
4153
|
-
05 Macro craracter is added to barcode data in first position.
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
# to generate autoidentified GS1 message like this "(10)123ABC(10)123ABC" in ISO 15434 format you need:
|
|
4162
|
-
reader = Recognition.BarCodeReader(generator.generateBarCodeImage(), None,Recognition.DecodeType.GS_1_DATA_MATRIX)
|
|
4163
|
-
# to generate autoidentified GS1 message like this "(10)123ABC(10)123ABC" in ISO 15434 format you need:
|
|
4164
|
-
results = reader.readBarCodes()
|
|
4165
|
-
for result in results:
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
\endcode
|
|
4152
|
+
##
|
|
4153
|
+
# 05 Macro craracter is added to barcode data in first position.
|
|
4154
|
+
# GS1 Data Identifier ISO 15434
|
|
4155
|
+
# Character is translated to "[)>\u001E05\u001D" as decoded data header and "\u001E\u0004" as decoded data trailer.
|
|
4156
|
+
# to generate autoidentified GS1 message like this "(10)123ABC(10)123ABC" in ISO 15434 format you need:
|
|
4157
|
+
# \code
|
|
4158
|
+
# generator = Generation.BarcodeGenerator(Generation.EncodeTypes.DATA_MATRIX, "10123ABC\u001D10123ABC")
|
|
4159
|
+
# #to generate autoidentified GS1 message like this "(10)123ABC(10)123ABC" in ISO 15434 format you need:
|
|
4160
|
+
# generator.getParameters().getBarcode().getDataMatrix().setMacroCharacters(Generation.MacroCharacter.MACRO_05)
|
|
4161
|
+
# #to generate autoidentified GS1 message like this "(10)123ABC(10)123ABC" in ISO 15434 format you need:
|
|
4162
|
+
# reader = Recognition.BarCodeReader(generator.generateBarCodeImage(), None,Recognition.DecodeType.GS_1_DATA_MATRIX)
|
|
4163
|
+
# #to generate autoidentified GS1 message like this "(10)123ABC(10)123ABC" in ISO 15434 format you need:
|
|
4164
|
+
# results = reader.readBarCodes()
|
|
4165
|
+
# for result in results:
|
|
4166
|
+
# print(f"\nBarCode Type: {result.getCodeTypeName()}")
|
|
4167
|
+
# print(f"BarCode CodeText: {result.getCodeText()}")
|
|
4168
|
+
# \endcode
|
|
4169
4169
|
MACRO_05 = 5
|
|
4170
4170
|
|
|
4171
4171
|
## 06 Macro craracter is added to barcode data in first position.
|
|
4172
4172
|
# ASC MH10 Data Identifier ISO 15434
|
|
4173
4173
|
# Character is translated to "[)>\u001E06\u001D" as decoded data header and "\u001E\u0004" as decoded data trailer.
|
|
4174
4174
|
MACRO_06 = 6
|
|
4175
|
-
|
|
4175
|
+
|
|
4176
4176
|
class BarcodeClassifications(Enum):
|
|
4177
4177
|
"""!
|
|
4178
4178
|
BarcodeClassifications EncodeTypes classification
|
|
@@ -4832,8 +4832,6 @@ class AutoSizeMode(Enum):
|
|
|
4832
4832
|
|
|
4833
4833
|
## Barcode resizes to nearest lowest possible size
|
|
4834
4834
|
# which are specified by BarCodeWidth and BarCodeHeight properties.
|
|
4835
|
-
NEAREST = 1
|
|
4836
|
-
"""!
|
|
4837
4835
|
## Resizes barcode to specified size with little scaling
|
|
4838
4836
|
# but it can be little damaged in some cases
|
|
4839
4837
|
# because using interpolation for scaling.
|
|
@@ -4841,14 +4839,15 @@ class AutoSizeMode(Enum):
|
|
|
4841
4839
|
# and BarcodeGenerator.BarCodeHeight properties.
|
|
4842
4840
|
#
|
|
4843
4841
|
# This sample shows how to create and save a BarCode image in Scale mode.
|
|
4844
|
-
\code
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
\endcode
|
|
4851
|
-
|
|
4842
|
+
# \code
|
|
4843
|
+
# generator = Generation.BarcodeGenerator(Generation.EncodeTypes.DATA_MATRIX,"12345")
|
|
4844
|
+
# generator.getParameters().setAutoSizeMode(Generation.AutoSizeMode.NEAREST)
|
|
4845
|
+
# generator.getParameters().getImageWidth().setMillimeters(10)
|
|
4846
|
+
# generator.getParameters().getImageHeight().setInches(1.3)
|
|
4847
|
+
# generator.save(self.image_path_to_save4, Generation.BarCodeImageFormat.PNG)
|
|
4848
|
+
# \endcode
|
|
4849
|
+
NEAREST = 1
|
|
4850
|
+
|
|
4852
4851
|
INTERPOLATION = 2
|
|
4853
4852
|
|
|
4854
4853
|
class GraphicsUnit(Enum):
|
|
@@ -4889,7 +4888,6 @@ class EncodeTypes(Enum):
|
|
|
4889
4888
|
"""!
|
|
4890
4889
|
Specifies the type of barcode to encode.
|
|
4891
4890
|
"""
|
|
4892
|
-
|
|
4893
4891
|
## Unspecified encode type.
|
|
4894
4892
|
NONE = -1
|
|
4895
4893
|
|
|
@@ -5087,15 +5085,27 @@ class EncodeTypes(Enum):
|
|
|
5087
5085
|
|
|
5088
5086
|
## Specifies that the data should be encoded with UPC coupon with GS1-128 Extended Code barcode specification.
|
|
5089
5087
|
# An example of the input string:
|
|
5090
|
-
#
|
|
5088
|
+
# <br><b>generator.setCodeText("514141100906(8102)03", None)</b><br>
|
|
5091
5089
|
# where UPCA part is "514141100906", GS1Code128 part is (8102)03.
|
|
5090
|
+
# \code
|
|
5091
|
+
# generator = Generation.BarcodeGenerator(Generation.EncodeTypes.CODE_128, None)
|
|
5092
|
+
# generator.setCodeText("514141100906(8102)03", None),
|
|
5093
|
+
# generator.save(self.image_path_to_save4, Generation.BarCodeImageFormat.PNG)
|
|
5094
|
+
# \endcode
|
|
5092
5095
|
UPCA_GS_1_CODE_128_COUPON = 62
|
|
5093
5096
|
|
|
5094
5097
|
## Specifies that the data should be encoded with UPC coupon with GS1 DataBar addition barcode specification.
|
|
5095
|
-
# An example of the input string
|
|
5096
|
-
#
|
|
5098
|
+
# An example of the input string:<br>
|
|
5099
|
+
# <b>generator.setCodeText("514141100906(8110)106141416543213500110000310123196000", None),</b><br>
|
|
5097
5100
|
# where UPCA part is "514141100906", DATABAR part is "(8110)106141416543213500110000310123196000".
|
|
5098
|
-
# To change the caption, use
|
|
5101
|
+
# To change the caption, use<br>
|
|
5102
|
+
# <b>generator.getParameters().getCaptionAbove().setText("company prefix + offer code")</b><br>
|
|
5103
|
+
# \code
|
|
5104
|
+
# generator = Generation.BarcodeGenerator(Generation.EncodeTypes.CODE_128, None)
|
|
5105
|
+
# generator.setCodeText("514141100906(8110)106141416543213500110000310123196000", None)
|
|
5106
|
+
# generator.getParameters().getCaptionAbove().setText("company prefix + offer code")
|
|
5107
|
+
# generator.save(self.image_path_to_save4, Generation.BarCodeImageFormat.PNG)
|
|
5108
|
+
# \endcode
|
|
5099
5109
|
UPCA_GS_1_DATABAR_COUPON = 63
|
|
5100
5110
|
|
|
5101
5111
|
## Specifies that the data should be encoded with Codablock-F barcode specification.
|
|
@@ -5887,37 +5897,35 @@ class DotCodeEncodeMode(Enum):
|
|
|
5887
5897
|
generator.save(self.image_path_to_save, Generation.BarCodeImageFormat.BMP)
|
|
5888
5898
|
\endcode
|
|
5889
5899
|
\code
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
|
|
5898
|
-
|
|
5899
|
-
|
|
5900
|
-
generator.save("test.bmp", BarcodeImageFormat:PNG)
|
|
5900
|
+
# Bytes mode
|
|
5901
|
+
encodedArr = [0xFF, 0xFE, 0xFD, 0xFC, 0xFB, 0xFA, 0xF9]
|
|
5902
|
+
# encode array to string
|
|
5903
|
+
codetext = ""
|
|
5904
|
+
for bval in encodedArr:
|
|
5905
|
+
codetext += str(bval)
|
|
5906
|
+
generator = Generation.BarcodeGenerator(Generation.EncodeTypes.DOT_CODE, None)
|
|
5907
|
+
generator.setCodeText(encodedArr, None)
|
|
5908
|
+
generator.getParameters().getBarcode().getDotCode().setDotCodeEncodeMode(Generation.DotCodeEncodeMode.BINARY)
|
|
5909
|
+
generator.save(self.image_path_to_save4, Generation.BarCodeImageFormat.PNG)
|
|
5901
5910
|
\endcode
|
|
5902
5911
|
\code
|
|
5903
|
-
|
|
5904
|
-
|
|
5905
|
-
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
|
|
5914
|
-
|
|
5915
|
-
|
|
5916
|
-
|
|
5917
|
-
|
|
5918
|
-
|
|
5919
|
-
|
|
5920
|
-
generator.save("test.bmp", BarCodeImageFormat.BMP)
|
|
5912
|
+
# Extended codetext mode
|
|
5913
|
+
# create codetext
|
|
5914
|
+
textBuilder = Generation.DotCodeExtCodetextBuilder()
|
|
5915
|
+
textBuilder.addFNC1FormatIdentifier()
|
|
5916
|
+
textBuilder.addECICodetext(Generation.ECIEncodings.Win1251, "Will")
|
|
5917
|
+
textBuilder.addFNC1FormatIdentifier()
|
|
5918
|
+
textBuilder.addECICodetext(Generation.ECIEncodings.UTF8, "犬Right狗")
|
|
5919
|
+
textBuilder.addFNC3SymbolSeparator()
|
|
5920
|
+
textBuilder.addFNC1FormatIdentifier()
|
|
5921
|
+
textBuilder.addECICodetext(Generation.ECIEncodings.UTF16BE, "犬Power狗")
|
|
5922
|
+
textBuilder.addPlainCodetext("Plain text")
|
|
5923
|
+
# generate codetext
|
|
5924
|
+
codetext = textBuilder.getExtendedCodetext()
|
|
5925
|
+
# generate
|
|
5926
|
+
generator = Generation.BarcodeGenerator(Generation.EncodeTypes.DOT_CODE, codetext)
|
|
5927
|
+
generator.getParameters().getBarcode().getDotCode().setDotCodeEncodeMode(Generation.DotCodeEncodeMode.EXTENDED_CODETEXT)
|
|
5928
|
+
generator.save(self.image_path_to_save5, Generation.BarCodeImageFormat.BMP)
|
|
5921
5929
|
\endcode
|
|
5922
5930
|
"""
|
|
5923
5931
|
|
|
@@ -6270,46 +6278,36 @@ class HanXinErrorLevel(Enum):
|
|
|
6270
6278
|
class HanXinEncodeMode(Enum):
|
|
6271
6279
|
"""!
|
|
6272
6280
|
Han Xin Code encoding mode. It is recommended to use Auto with ASCII / Chinese characters or Unicode for Unicode characters.
|
|
6273
|
-
|
|
6274
6281
|
# Auto mode
|
|
6275
6282
|
\code
|
|
6276
|
-
|
|
6277
|
-
|
|
6278
|
-
|
|
6283
|
+
codetext = "1234567890ABCDEFGabcdefg,Han Xin Code"
|
|
6284
|
+
generator = Generation.BarcodeGenerator(Generation.EncodeTypes.HAN_XIN, codetext)
|
|
6285
|
+
generator.save(self.image_path_to_save5, Generation.BarCodeImageFormat.BMP)
|
|
6279
6286
|
\endcode
|
|
6280
|
-
|
|
6281
6287
|
\code
|
|
6282
|
-
|
|
6283
|
-
|
|
6284
|
-
|
|
6285
|
-
|
|
6286
|
-
|
|
6287
|
-
|
|
6288
|
-
codetext += str(bval, 'utf-8')
|
|
6289
|
-
|
|
6290
|
-
generator = BarcodeGenerator(EncodeTypes.HAN_XIN, codetext)
|
|
6291
|
-
generator.getParameters().getBarcode().getHanXin().setHanXinEncodeMode(HanXinEncodeMode.BYTES)
|
|
6292
|
-
generator.save("test.bmp", BarcodeImageFormat.BMP)
|
|
6293
|
-
|
|
6288
|
+
# Binary mode
|
|
6289
|
+
encodedArr = [0xFF, 0xFE, 0xFD, 0xFC, 0xFB, 0xFA, 0xF9]
|
|
6290
|
+
generator = Generation.BarcodeGenerator(Generation.EncodeTypes.HAN_XIN, None)
|
|
6291
|
+
generator.setCodeText(encodedArr, None)
|
|
6292
|
+
generator.getParameters().getBarcode().getHanXin().setHanXinEncodeMode(Generation.HanXinEncodeMode.BINARY)
|
|
6293
|
+
generator.save(self.image_path_to_save5, Generation.BarCodeImageFormat.BMP)
|
|
6294
6294
|
\endcode
|
|
6295
6295
|
\code
|
|
6296
|
-
|
|
6297
|
-
|
|
6298
|
-
|
|
6299
|
-
|
|
6300
|
-
|
|
6301
|
-
|
|
6302
|
-
|
|
6296
|
+
# ECI mode
|
|
6297
|
+
codetext = "ΑΒΓΔΕ"
|
|
6298
|
+
generator = Generation.BarcodeGenerator(Generation.EncodeTypes.HAN_XIN, codetext)
|
|
6299
|
+
generator.getParameters().getBarcode().getHanXin().setHanXinEncodeMode(Generation.HanXinEncodeMode.ECI)
|
|
6300
|
+
generator.getParameters().getBarcode().getHanXin().setHanXinECIEncoding(Generation.ECIEncodings.ISO_8859_7)
|
|
6301
|
+
generator.save(self.image_path_to_save5, Generation.BarCodeImageFormat.BMP)
|
|
6303
6302
|
\endcode
|
|
6304
6303
|
\code
|
|
6305
|
-
|
|
6306
|
-
|
|
6307
|
-
|
|
6308
|
-
|
|
6309
|
-
|
|
6304
|
+
# URI mode
|
|
6305
|
+
codetext = "https://www.test.com/%BC%DE%%%ab/search=test"
|
|
6306
|
+
generator = Generation.BarcodeGenerator(Generation.EncodeTypes.HAN_XIN, codetext)
|
|
6307
|
+
generator.getParameters().getBarcode().getHanXin().setHanXinEncodeMode(Generation.HanXinEncodeMode.URI)
|
|
6308
|
+
generator.save(self.image_path_to_save5, Generation.BarCodeImageFormat.BMP)
|
|
6310
6309
|
\endcode
|
|
6311
6310
|
"""
|
|
6312
|
-
|
|
6313
6311
|
## Sequence of Numeric, Text, ECI, Binary Bytes and 4 GB18030 modes changing automatically.
|
|
6314
6312
|
AUTO = 0
|
|
6315
6313
|
|
|
@@ -6332,22 +6330,19 @@ class HanXinEncodeMode(Enum):
|
|
|
6332
6330
|
|
|
6333
6331
|
class Code128EncodeMode(Enum):
|
|
6334
6332
|
"""!
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
|
|
6342
|
-
|
|
6343
|
-
|
|
6344
|
-
|
|
6345
|
-
|
|
6346
|
-
|
|
6347
|
-
|
|
6348
|
-
generator.getParameters().getBarcode().getCode128().setCode128EncodeMode(Code128EncodeMode.CODE_A)
|
|
6349
|
-
generator.save("d:\\code128CodeA.png", BarCodeImageFormat.PNG)
|
|
6350
|
-
\endcode
|
|
6333
|
+
Encoding mode for Code128 barcodes.
|
|
6334
|
+
{@code Code 128} specification.
|
|
6335
|
+
This code demonstrates how to generate code 128 with different encodings
|
|
6336
|
+
\code
|
|
6337
|
+
# Generate code 128 with ISO 15417 encoding
|
|
6338
|
+
generator = Generation.BarcodeGenerator(Generation.EncodeTypes.CODE_128, "ABCD1234567890")
|
|
6339
|
+
generator.getParameters().getBarcode().getCode128().setCode128EncodeMode(Generation.Code128EncodeMode.AUTO)
|
|
6340
|
+
generator.save(self.image_path_to_save4, Generation.BarCodeImageFormat.PNG)
|
|
6341
|
+
# Generate code 128 only with Codeset A encoding
|
|
6342
|
+
generator = Generation.BarcodeGenerator(Generation.EncodeTypes.CODE_128, "ABCD1234567890")
|
|
6343
|
+
generator.getParameters().getBarcode().getCode128().setCode128EncodeMode(Generation.Code128EncodeMode.CODE_A)
|
|
6344
|
+
generator.save(self.image_path_to_save41, Generation.BarCodeImageFormat.PNG)
|
|
6345
|
+
\endcode
|
|
6351
6346
|
"""
|
|
6352
6347
|
|
|
6353
6348
|
## Encode codetext in classic ISO 15417 mode. The mode should be used in all ordinary cases.
|
|
@@ -2569,48 +2569,52 @@ class Code128SubType(Enum):
|
|
|
2569
2569
|
class CustomerInformationInterpretingType(Enum):
|
|
2570
2570
|
"""!
|
|
2571
2571
|
Defines the interpreting type(C_TABLE or N_TABLE) of customer information for AustralianPost BarCode.
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
\
|
|
2572
|
+
"""
|
|
2573
|
+
##
|
|
2574
|
+
# Use C_TABLE to interpret the customer information. Allows A..Z, a..z, 1..9, space and sing.
|
|
2575
|
+
# \code
|
|
2576
|
+
# generator = Generation.BarcodeGenerator(Generation.EncodeTypes.AUSTRALIA_POST, "5912345678ABCde")
|
|
2577
|
+
# generator.getParameters().getBarcode().getAustralianPost().setAustralianPostEncodingTable(Generation.CustomerInformationInterpretingType.C_TABLE)
|
|
2578
|
+
# image = generator.generateBarCodeImage()
|
|
2579
|
+
# reader = Recognition.BarCodeReader(image, None,Recognition.DecodeType.AUSTRALIA_POST)
|
|
2580
|
+
# reader.getBarcodeSettings().getAustraliaPost().setCustomerInformationInterpretingType(Recognition.CustomerInformationInterpretingType.C_TABLE)
|
|
2581
|
+
# results = reader.readBarCodes()
|
|
2582
|
+
# for result in results:
|
|
2583
|
+
# print(f"\nBarCode Type: {result.getCodeTypeName()}")
|
|
2584
|
+
# print(f"BarCode CodeText: {result.getCodeText()}")
|
|
2585
|
+
# \endcode
|
|
2584
2586
|
C_TABLE = 0
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2587
|
+
##
|
|
2588
|
+
# Use N_TABLE to interpret the customer information. Allows digits.
|
|
2589
|
+
# \code
|
|
2590
|
+
# generator = Generation.BarcodeGenerator(Generation.EncodeTypes.AUSTRALIA_POST, "59123456781234567")
|
|
2591
|
+
# generator.getParameters().getBarcode().getAustralianPost().setAustralianPostEncodingTable(
|
|
2592
|
+
# Generation.CustomerInformationInterpretingType.N_TABLE)
|
|
2593
|
+
# image = generator.generateBarCodeImage()
|
|
2594
|
+
# reader = Recognition.BarCodeReader(image, None,Recognition.DecodeType.AUSTRALIA_POST)
|
|
2595
|
+
# reader.getBarcodeSettings().getAustraliaPost().setCustomerInformationInterpretingType(Recognition.CustomerInformationInterpretingType.N_TABLE)
|
|
2596
|
+
# for result in reader.readBarCodes():
|
|
2597
|
+
# print("BarCode Type: " + result.getCodeType())
|
|
2598
|
+
# print("BarCode CodeText: " + result.getCodeText())
|
|
2599
|
+
# \endcode
|
|
2597
2600
|
N_TABLE = 1
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2601
|
+
##
|
|
2602
|
+
# Do not interpret the customer information. Allows 0, 1, 2 or 3 symbol only.
|
|
2603
|
+
# \code
|
|
2604
|
+
# generator = Generation.BarcodeGenerator(Generation.EncodeTypes.AUSTRALIA_POST, "59123456781234567")
|
|
2605
|
+
# generator.getParameters().getBarcode().getAustralianPost().setAustralianPostEncodingTable(
|
|
2606
|
+
# Generation.CustomerInformationInterpretingType.N_TABLE)
|
|
2607
|
+
# image = generator.generateBarCodeImage()
|
|
2608
|
+
# reader = Recognition.BarCodeReader(image, None, Recognition.DecodeType.AUSTRALIA_POST)
|
|
2609
|
+
# reader.getBarcodeSettings().getAustraliaPost().setCustomerInformationInterpretingType(
|
|
2610
|
+
# Recognition.CustomerInformationInterpretingType.OTHER)
|
|
2611
|
+
# results = reader.readBarCodes()
|
|
2612
|
+
# for result in results:
|
|
2613
|
+
# print(f"\nBarCode Type: {result.getCodeTypeName()}")
|
|
2614
|
+
# print(f"BarCode CodeText: {result.getCodeText()}")
|
|
2615
|
+
# \endcode
|
|
2612
2616
|
OTHER = 2
|
|
2613
|
-
|
|
2617
|
+
|
|
2614
2618
|
class BarCodeConfidence(Enum):
|
|
2615
2619
|
"""!
|
|
2616
2620
|
Contains recognition confidence level
|
|
@@ -2626,26 +2630,23 @@ class BarCodeConfidence(Enum):
|
|
|
2626
2630
|
print("BarCode CodeText: " + result.getCodeText())
|
|
2627
2631
|
print("BarCode Confidence: " + str(result.getConfidence()))
|
|
2628
2632
|
print("BarCode ReadingQuality: " + str(result.getReadingQuality()))
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
reader = Recognition.BarCodeReader(self.image_path_to_save, None, [Recognition.DecodeType.CODE_39, Recognition.DecodeType.QR])
|
|
2635
|
-
for result in reader.readBarCodes():
|
|
2633
|
+
#Strong confidence
|
|
2634
|
+
generator = Generation.BarcodeGenerator(Generation.EncodeTypes.QR, "12345")
|
|
2635
|
+
generator.save(self.image_path_to_save, Generation.BarCodeImageFormat.PNG)
|
|
2636
|
+
reader = Recognition.BarCodeReader(self.image_path_to_save, None, [Recognition.DecodeType.CODE_39, Recognition.DecodeType.QR])
|
|
2637
|
+
for result in reader.readBarCodes():
|
|
2636
2638
|
print("\nBarCode Type: " + result.getCodeTypeName())
|
|
2637
2639
|
print("BarCode CodeText: " + result.getCodeText())
|
|
2638
2640
|
print("BarCode Confidence: " + str(result.getConfidence()))
|
|
2639
2641
|
print("BarCode ReadingQuality: " + str(result.getReadingQuality()))
|
|
2640
2642
|
\endcode
|
|
2641
2643
|
"""
|
|
2642
|
-
|
|
2643
2644
|
## Recognition confidence of barcode where codetext was not recognized correctly or barcode was detected as posible fake
|
|
2644
2645
|
NONE = "0"
|
|
2645
2646
|
|
|
2646
2647
|
## Recognition confidence of barcode (mostly 1D barcodes) with weak checksumm or even without it. Could contains some misrecognitions in codetext
|
|
2647
2648
|
# or even fake recognitions if is low
|
|
2648
|
-
# @see BarCodeResult.
|
|
2649
|
+
# @see BarCodeResult.getReadingQuality()
|
|
2649
2650
|
MODERATE = "80"
|
|
2650
2651
|
|
|
2651
2652
|
## Recognition confidence which was confirmed with BCH codes like Reed–Solomon. There must not be errors in read codetext or fake recognitions
|
|
@@ -2671,7 +2672,6 @@ class ChecksumValidation(Enum):
|
|
|
2671
2672
|
print(f"\nBarCode Type: {result.getCodeTypeName()}")
|
|
2672
2673
|
print(f"BarCode CodeText: {result.getCodeText()}")
|
|
2673
2674
|
print(f"BarCode Checksum: {result.getExtended().getOneD().getCheckSum()}")
|
|
2674
|
-
|
|
2675
2675
|
\endcode
|
|
2676
2676
|
\code
|
|
2677
2677
|
generator = Generation.BarcodeGenerator(Generation.EncodeTypes.EAN_13, "1234567890128")
|
|
Binary file
|
{aspose-barcode-for-python-via-java-24.8.1 → aspose-barcode-for-python-via-java-24.8.2}/MANIFEST.in
RENAMED
|
File without changes
|
{aspose-barcode-for-python-via-java-24.8.1 → aspose-barcode-for-python-via-java-24.8.2}/README.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aspose-barcode-for-python-via-java-24.8.1 → aspose-barcode-for-python-via-java-24.8.2}/setup.cfg
RENAMED
|
File without changes
|