aspose-barcode-for-python-via-java 24.1.0__tar.gz → 24.2.1__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.1.0 → aspose-barcode-for-python-via-java-24.2.1}/PKG-INFO +1 -1
- {aspose-barcode-for-python-via-java-24.1.0 → aspose-barcode-for-python-via-java-24.2.1}/aspose_barcode_for_python_via_java.egg-info/PKG-INFO +1 -1
- {aspose-barcode-for-python-via-java-24.1.0 → aspose-barcode-for-python-via-java-24.2.1}/aspose_barcode_for_python_via_java.egg-info/SOURCES.txt +1 -1
- {aspose-barcode-for-python-via-java-24.1.0 → aspose-barcode-for-python-via-java-24.2.1}/asposebarcode/ComplexBarcode.py +6 -3
- {aspose-barcode-for-python-via-java-24.1.0 → aspose-barcode-for-python-via-java-24.2.1}/asposebarcode/Generation.py +139 -4
- {aspose-barcode-for-python-via-java-24.1.0 → aspose-barcode-for-python-via-java-24.2.1}/asposebarcode/Recognition.py +177 -502
- {aspose-barcode-for-python-via-java-24.1.0 → aspose-barcode-for-python-via-java-24.2.1}/asposebarcode/__init__.py +1 -1
- aspose-barcode-for-python-via-java-24.1.0/asposebarcode/jlib/aspose-barcode-python-24.1.jar → aspose-barcode-for-python-via-java-24.2.1/asposebarcode/jlib/aspose-barcode-python-24.2.jar +0 -0
- {aspose-barcode-for-python-via-java-24.1.0 → aspose-barcode-for-python-via-java-24.2.1}/setup.py +1 -1
- {aspose-barcode-for-python-via-java-24.1.0 → aspose-barcode-for-python-via-java-24.2.1}/MANIFEST.in +0 -0
- {aspose-barcode-for-python-via-java-24.1.0 → aspose-barcode-for-python-via-java-24.2.1}/README.md +0 -0
- {aspose-barcode-for-python-via-java-24.1.0 → aspose-barcode-for-python-via-java-24.2.1}/aspose_barcode_for_python_via_java.egg-info/dependency_links.txt +0 -0
- {aspose-barcode-for-python-via-java-24.1.0 → aspose-barcode-for-python-via-java-24.2.1}/aspose_barcode_for_python_via_java.egg-info/requires.txt +0 -0
- {aspose-barcode-for-python-via-java-24.1.0 → aspose-barcode-for-python-via-java-24.2.1}/aspose_barcode_for_python_via_java.egg-info/top_level.txt +0 -0
- {aspose-barcode-for-python-via-java-24.1.0 → aspose-barcode-for-python-via-java-24.2.1}/asposebarcode/Assist.py +0 -0
- {aspose-barcode-for-python-via-java-24.1.0 → aspose-barcode-for-python-via-java-24.2.1}/license/End+User+License+Agreement.html +0 -0
- {aspose-barcode-for-python-via-java-24.1.0 → aspose-barcode-for-python-via-java-24.2.1}/license/ThirdPartyLicenses.Aspose.BarCode.Java.pdf +0 -0
- {aspose-barcode-for-python-via-java-24.1.0 → aspose-barcode-for-python-via-java-24.2.1}/setup.cfg +0 -0
{aspose-barcode-for-python-via-java-24.1.0 → aspose-barcode-for-python-via-java-24.2.1}/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.1
|
|
3
|
+
Version: 24.2.1
|
|
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.1
|
|
3
|
+
Version: 24.2.1
|
|
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
|
|
@@ -11,6 +11,6 @@ asposebarcode/ComplexBarcode.py
|
|
|
11
11
|
asposebarcode/Generation.py
|
|
12
12
|
asposebarcode/Recognition.py
|
|
13
13
|
asposebarcode/__init__.py
|
|
14
|
-
asposebarcode/jlib/aspose-barcode-python-24.
|
|
14
|
+
asposebarcode/jlib/aspose-barcode-python-24.2.jar
|
|
15
15
|
license/End+User+License+Agreement.html
|
|
16
16
|
license/ThirdPartyLicenses.Aspose.BarCode.Java.pdf
|
|
@@ -79,9 +79,12 @@ class ComplexBarcodeGenerator(Assist.BaseJavaClass):
|
|
|
79
79
|
Creates an instance of ComplexBarcodeGenerator.
|
|
80
80
|
@param complexCodetext Complex codetext
|
|
81
81
|
"""
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
82
|
+
try:
|
|
83
|
+
self.parameters = None
|
|
84
|
+
javaComplexBarcodeGenerator = jpype.JClass(ComplexBarcodeGenerator.javaClassName)
|
|
85
|
+
super().__init__(javaComplexBarcodeGenerator(complexCodetext.getJavaClass()))
|
|
86
|
+
except Exception as e:
|
|
87
|
+
raise Assist.BarCodeException(e.getMessage())
|
|
85
88
|
self.init()
|
|
86
89
|
|
|
87
90
|
def generateBarCodeImage(self):
|
|
@@ -1669,7 +1669,7 @@ class DataMatrixParameters(Assist.BaseJavaClass):
|
|
|
1669
1669
|
Sets the encoding of codetext.
|
|
1670
1670
|
Default value: UTF-16
|
|
1671
1671
|
"""
|
|
1672
|
-
self.getJavaClass().setCodeTextEncoding(value
|
|
1672
|
+
self.getJavaClass().setCodeTextEncoding(value)
|
|
1673
1673
|
|
|
1674
1674
|
def getECIEncoding(self):
|
|
1675
1675
|
"""!
|
|
@@ -2147,6 +2147,34 @@ class QrParameters(Assist.BaseJavaClass):
|
|
|
2147
2147
|
"""
|
|
2148
2148
|
self.getJavaClass().setQrVersion(value.value)
|
|
2149
2149
|
|
|
2150
|
+
def getMicroQRVersion(self):
|
|
2151
|
+
"""!
|
|
2152
|
+
Version of MicroQR Code. From version M1 to version M4.
|
|
2153
|
+
Default value is MicroQRVersion.Auto.
|
|
2154
|
+
"""
|
|
2155
|
+
return MicroQRVersion(self.getJavaClass().getMicroQRVersion())
|
|
2156
|
+
|
|
2157
|
+
def setMicroQRVersion(self, value):
|
|
2158
|
+
"""!
|
|
2159
|
+
Version of MicroQR Code. From version M1 to version M4.
|
|
2160
|
+
Default value is MicroQRVersion.Auto.
|
|
2161
|
+
"""
|
|
2162
|
+
self.getJavaClass().setMicroQRVersion(value.value)
|
|
2163
|
+
|
|
2164
|
+
def getRectMicroQrVersion(self):
|
|
2165
|
+
"""!
|
|
2166
|
+
Version of RectMicroQR Code. From version R7x59 to version R17x139.
|
|
2167
|
+
Default value is RectMicroQRVersion.Auto
|
|
2168
|
+
"""
|
|
2169
|
+
return RectMicroQRVersion(self.getJavaClass().getRectMicroQrVersion())
|
|
2170
|
+
|
|
2171
|
+
def setRectMicroQrVersion(self, value):
|
|
2172
|
+
"""!
|
|
2173
|
+
Version of RectMicroQR Code. From version R7x59 to version R17x139.
|
|
2174
|
+
Default value is RectMicroQRVersion.Auto.
|
|
2175
|
+
"""
|
|
2176
|
+
self.getJavaClass().setRectMicroQrVersion(value.value)
|
|
2177
|
+
|
|
2150
2178
|
def getAspectRatio(self):
|
|
2151
2179
|
"""!
|
|
2152
2180
|
Height/Width ratio of 2D BarCode module.
|
|
@@ -2443,13 +2471,13 @@ class Pdf417Parameters(Assist.BaseJavaClass):
|
|
|
2443
2471
|
"""!
|
|
2444
2472
|
Extended Channel Interpretation Identifiers. Applies for Macro PDF417 text fields.
|
|
2445
2473
|
"""
|
|
2446
|
-
return
|
|
2474
|
+
return self.getJavaClass().getPdf417MacroECIEncoding()
|
|
2447
2475
|
|
|
2448
2476
|
def setPdf417MacroECIEncoding(self, value):
|
|
2449
2477
|
"""!
|
|
2450
2478
|
Extended Channel Interpretation Identifiers. Applies for Macro PDF417 text fields.
|
|
2451
2479
|
"""
|
|
2452
|
-
self.getJavaClass().setPdf417MacroECIEncoding(value
|
|
2480
|
+
self.getJavaClass().setPdf417MacroECIEncoding(value)
|
|
2453
2481
|
|
|
2454
2482
|
def getPdf417MacroTerminator(self):
|
|
2455
2483
|
"""!
|
|
@@ -4865,6 +4893,12 @@ class EncodeTypes(Enum):
|
|
|
4865
4893
|
|
|
4866
4894
|
## 2D barcode symbology QR with GS1 string format
|
|
4867
4895
|
GS_1_HAN_XIN = 80
|
|
4896
|
+
|
|
4897
|
+
## Specifies that the data should be encoded with <b>MicroQR Code</b> barcode specification
|
|
4898
|
+
MICRO_QR = 83
|
|
4899
|
+
|
|
4900
|
+
## Specifies that the data should be encoded with <b>RectMicroQR (rMQR) Code</b> barcode specification
|
|
4901
|
+
RECT_MICRO_QR = 84
|
|
4868
4902
|
|
|
4869
4903
|
@staticmethod
|
|
4870
4904
|
def parse(encodeTypeName):
|
|
@@ -5114,6 +5148,12 @@ class EncodeTypes(Enum):
|
|
|
5114
5148
|
elif encodeTypeName == "GS_1_HAN_XIN":
|
|
5115
5149
|
return 80
|
|
5116
5150
|
|
|
5151
|
+
elif encodeTypeName == "MICRO_QR":
|
|
5152
|
+
return 83
|
|
5153
|
+
|
|
5154
|
+
elif encodeTypeName == "RECT_MICRO_QR":
|
|
5155
|
+
return 84
|
|
5156
|
+
|
|
5117
5157
|
else:
|
|
5118
5158
|
return -1
|
|
5119
5159
|
|
|
@@ -6276,4 +6316,99 @@ class AztecEncodeMode(Enum):
|
|
|
6276
6316
|
# Use Display2DText property to set visible text to removing managing characters.
|
|
6277
6317
|
# ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier
|
|
6278
6318
|
# All unicode characters after ECI identifier are automatically encoded into correct character codeset.
|
|
6279
|
-
EXTENDED_CODETEXT = 2
|
|
6319
|
+
EXTENDED_CODETEXT = 2
|
|
6320
|
+
|
|
6321
|
+
class MicroQRVersion(Enum):
|
|
6322
|
+
"""!
|
|
6323
|
+
Version of MicroQR Code.
|
|
6324
|
+
From M1 to M4.
|
|
6325
|
+
"""
|
|
6326
|
+
|
|
6327
|
+
## Specifies to automatically pick up the best version for MicroQR.
|
|
6328
|
+
# This is default value.
|
|
6329
|
+
AUTO = 0
|
|
6330
|
+
|
|
6331
|
+
## Specifies version M1 for Micro QR with 11 x 11 modules.
|
|
6332
|
+
M1 = 1
|
|
6333
|
+
|
|
6334
|
+
## Specifies version M2 for Micro QR with 13 x 13 modules.
|
|
6335
|
+
M2 = 2
|
|
6336
|
+
|
|
6337
|
+
## Specifies version M3 for Micro QR with 15 x 15 modules.
|
|
6338
|
+
M3 = 3
|
|
6339
|
+
|
|
6340
|
+
## Specifies version M4 for Micro QR with 17 x 17 modules.
|
|
6341
|
+
M4 = 4
|
|
6342
|
+
|
|
6343
|
+
class RectMicroQRVersion(Enum):
|
|
6344
|
+
"""
|
|
6345
|
+
Version of RectMicroQR Code.
|
|
6346
|
+
From version R7x43 to version R17x139.
|
|
6347
|
+
"""
|
|
6348
|
+
|
|
6349
|
+
# Specifies to automatically pick up the best version for RectMicroQR.
|
|
6350
|
+
AUTO = 0
|
|
6351
|
+
# Specifies version with 7 x 43 modules.
|
|
6352
|
+
R7x43 = 1
|
|
6353
|
+
# Specifies version with 7 x 59 modules.
|
|
6354
|
+
R7x59 = 2
|
|
6355
|
+
# Specifies version with 7 x 77 modules.
|
|
6356
|
+
R7x77 = 3
|
|
6357
|
+
# Specifies version with 7 x 99 modules.
|
|
6358
|
+
R7x99 = 4
|
|
6359
|
+
# Specifies version with 7 x 139 modules.
|
|
6360
|
+
R7x139 = 5
|
|
6361
|
+
# Specifies version with 9 x 43 modules.
|
|
6362
|
+
R9x43 = 6
|
|
6363
|
+
# Specifies version with 9 x 59 modules.
|
|
6364
|
+
R9x59 = 7
|
|
6365
|
+
# Specifies version with 9 x 77 modules.
|
|
6366
|
+
R9x77 = 8
|
|
6367
|
+
# Specifies version with 9 x 99 modules.
|
|
6368
|
+
R9x99 = 9
|
|
6369
|
+
# Specifies version with 9 x 139 modules.
|
|
6370
|
+
R9x139 = 10
|
|
6371
|
+
# Specifies version with 11 x 27 modules.
|
|
6372
|
+
R11x27 = 11
|
|
6373
|
+
# Specifies version with 11 x 43 modules.
|
|
6374
|
+
R11x43 = 12
|
|
6375
|
+
# Specifies version with 11 x 59 modules.
|
|
6376
|
+
R11x59 = 13
|
|
6377
|
+
# Specifies version with 11 x 77 modules.
|
|
6378
|
+
R11x77 = 14
|
|
6379
|
+
# Specifies version with 11 x 99 modules.
|
|
6380
|
+
R11x99 = 15
|
|
6381
|
+
# Specifies version with 11 x 139 modules.
|
|
6382
|
+
R11x139 = 16
|
|
6383
|
+
# Specifies version with 13 x 27 modules.
|
|
6384
|
+
R13x27 = 17
|
|
6385
|
+
# Specifies version with 13 x 43 modules.
|
|
6386
|
+
R13x43 = 18
|
|
6387
|
+
# Specifies version with 13 x 59 modules.
|
|
6388
|
+
R13x59 = 19
|
|
6389
|
+
# Specifies version with 13 x 77 modules.
|
|
6390
|
+
R13x77 = 20
|
|
6391
|
+
# Specifies version with 13 x 99 modules.
|
|
6392
|
+
R13x99 = 21
|
|
6393
|
+
# Specifies version with 13 x 139 modules.
|
|
6394
|
+
R13x139 = 22
|
|
6395
|
+
# Specifies version with 15 x 43 modules.
|
|
6396
|
+
R15x43 = 23
|
|
6397
|
+
# Specifies version with 15 x 59 modules.
|
|
6398
|
+
R15x59 = 24
|
|
6399
|
+
# Specifies version with 15 x 77 modules.
|
|
6400
|
+
R15x77 = 25
|
|
6401
|
+
# Specifies version with 15 x 99 modules.
|
|
6402
|
+
R15x99 = 26
|
|
6403
|
+
# Specifies version with 15 x 139 modules.
|
|
6404
|
+
R15x139 = 27
|
|
6405
|
+
# Specifies version with 17 x 43 modules.
|
|
6406
|
+
R17x43 = 28
|
|
6407
|
+
# Specifies version with 17 x 59 modules.
|
|
6408
|
+
R17x59 = 29
|
|
6409
|
+
# Specifies version with 17 x 77 modules.
|
|
6410
|
+
R17x77 = 30
|
|
6411
|
+
# Specifies version with 17 x 99 modules.
|
|
6412
|
+
R17x99 = 31
|
|
6413
|
+
# Specifies version with 17 x 139 modules.
|
|
6414
|
+
R17x139 = 32
|
|
@@ -882,193 +882,6 @@ class Code128ExtendedParameters(Assist.BaseJavaClass):
|
|
|
882
882
|
"""
|
|
883
883
|
return self.getJavaClass().toString()
|
|
884
884
|
|
|
885
|
-
|
|
886
|
-
class BarcodeSvmDetectorSettings(Assist.BaseJavaClass):
|
|
887
|
-
"""!
|
|
888
|
-
Barcode detector settings.
|
|
889
|
-
"""
|
|
890
|
-
javaClassName = "com.aspose.mw.barcode.recognition.MwBarcodeSvmDetectorSettings"
|
|
891
|
-
|
|
892
|
-
## High performance detection preset.
|
|
893
|
-
# Default for {@code QualitySettings.PresetType.HighPerformance}
|
|
894
|
-
HighPerformance = 0
|
|
895
|
-
|
|
896
|
-
## Normal quality detection preset.
|
|
897
|
-
# Default for {@code QualitySettings.PresetType.NormalQuality}
|
|
898
|
-
NormalQuality = 1
|
|
899
|
-
|
|
900
|
-
## High quality detection preset.
|
|
901
|
-
# Default for {@code QualitySettings.PresetType.HighQualityDetection} and {@code QualitySettings.PresetType.HighQuality}
|
|
902
|
-
HighQuality = 2
|
|
903
|
-
|
|
904
|
-
## Max quality detection preset.
|
|
905
|
-
# Default for {@code QualitySettings.PresetType.MaxQualityDetection} and {@code QualitySettings.PresetType.MaxBarCodes}
|
|
906
|
-
MaxQuality = 3
|
|
907
|
-
|
|
908
|
-
def __init__(self, aType):
|
|
909
|
-
java_link = jpype.JClass(BarcodeSvmDetectorSettings.javaClassName)
|
|
910
|
-
|
|
911
|
-
javaClass = java_link(BarcodeSvmDetectorSettings.NormalQuality)
|
|
912
|
-
if aType == BarcodeSvmDetectorSettings.HighPerformance:
|
|
913
|
-
javaClass = java_link(BarcodeSvmDetectorSettings.HighPerformance)
|
|
914
|
-
elif aType == BarcodeSvmDetectorSettings.HighQuality:
|
|
915
|
-
javaClass = java_link(BarcodeSvmDetectorSettings.HighQuality)
|
|
916
|
-
elif aType == BarcodeSvmDetectorSettings.MaxQuality:
|
|
917
|
-
javaClass = java_link(BarcodeSvmDetectorSettings.MaxQuality)
|
|
918
|
-
super().__init__(javaClass)
|
|
919
|
-
self.init()
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
@staticmethod
|
|
923
|
-
def construct(javaClass):
|
|
924
|
-
barcodeSvmDetectorSettings = BarcodeSvmDetectorSettings(BarcodeSvmDetectorSettings.NormalQuality)
|
|
925
|
-
barcodeSvmDetectorSettings.setJavaClass(javaClass)
|
|
926
|
-
return barcodeSvmDetectorSettings
|
|
927
|
-
|
|
928
|
-
def init(self):
|
|
929
|
-
self.scanWindowSizes = BarcodeSvmDetectorSettings.convertScanWindowSizes(
|
|
930
|
-
self.getJavaClass().getScanWindowSizes())
|
|
931
|
-
# TODO: Implement init() method.
|
|
932
|
-
|
|
933
|
-
def convertScanWindowSizes(javaScanWindowSizes):
|
|
934
|
-
scanWindowSizes = []
|
|
935
|
-
i = 0
|
|
936
|
-
while (i < javaScanWindowSizes.size()):
|
|
937
|
-
scanWindowSizes.append(str(javaScanWindowSizes.get(i)))
|
|
938
|
-
i += 1
|
|
939
|
-
return scanWindowSizes
|
|
940
|
-
|
|
941
|
-
def getScanWindowSizes(self):
|
|
942
|
-
"""!
|
|
943
|
-
Scan window sizes in pixels.
|
|
944
|
-
Allowed sizes are 10, 15, 20, 25, 30.
|
|
945
|
-
Scanning with small window size takes more time and provides more accuracy but may fail in detecting very big barcodes.
|
|
946
|
-
Combining of several window sizes can improve detection quality.
|
|
947
|
-
"""
|
|
948
|
-
return self.scanWindowSizes
|
|
949
|
-
|
|
950
|
-
def setScanWindowSizes(self, value):
|
|
951
|
-
"""!
|
|
952
|
-
Scan window sizes in pixels.
|
|
953
|
-
Allowed sizes are 10, 15, 20, 25, 30.
|
|
954
|
-
Scanning with small window size takes more time and provides more accuracy but may fail in detecting very big barcodes.
|
|
955
|
-
Combining of several window sizes can improve detection quality.
|
|
956
|
-
"""
|
|
957
|
-
self.scanWindowSizes = value
|
|
958
|
-
|
|
959
|
-
ArrayList = jpype.JClass('java.util.ArrayList')
|
|
960
|
-
valueList = ArrayList()
|
|
961
|
-
for item in value:
|
|
962
|
-
valueList.add(item)
|
|
963
|
-
self.getJavaClass().setScanWindowSizes(valueList)
|
|
964
|
-
|
|
965
|
-
def getSimilarityCoef(self):
|
|
966
|
-
"""!
|
|
967
|
-
Similarity coefficient depends on how homogeneous barcodes are.
|
|
968
|
-
Use high value for for clear barcodes.
|
|
969
|
-
Use low values to detect barcodes that ara partly damaged or not lighten evenly.
|
|
970
|
-
Similarity coefficient must be between [0.5, 0.9]
|
|
971
|
-
"""
|
|
972
|
-
return self.getJavaClass().getSimilarityCoef()
|
|
973
|
-
|
|
974
|
-
def setSimilarityCoef(self, value):
|
|
975
|
-
"""!
|
|
976
|
-
Similarity coefficient depends on how homogeneous barcodes are.
|
|
977
|
-
Use high value for for clear barcodes.
|
|
978
|
-
Use low values to detect barcodes that ara partly damaged or not lighten evenly.
|
|
979
|
-
Similarity coefficient must be between [0.5, 0.9]
|
|
980
|
-
"""
|
|
981
|
-
self.getJavaClass().setSimilarityCoef(value)
|
|
982
|
-
|
|
983
|
-
def getRegionLikelihoodThresholdPercent(self):
|
|
984
|
-
"""!
|
|
985
|
-
Sets threshold for detected regions that may contain barcodes.
|
|
986
|
-
Value 0.7 means that bottom 70% of possible regions are filtered out and not processed further.
|
|
987
|
-
Region likelihood threshold must be between [0.05, 0.9]
|
|
988
|
-
Use high values for clear images with few barcodes.
|
|
989
|
-
Use low values for images with many barcodes or for noisy images.
|
|
990
|
-
Low value may lead to a bigger recognition time.
|
|
991
|
-
"""
|
|
992
|
-
return self.getJavaClass().getRegionLikelihoodThresholdPercent()
|
|
993
|
-
|
|
994
|
-
def setRegionLikelihoodThresholdPercent(self, value):
|
|
995
|
-
"""!
|
|
996
|
-
Sets threshold for detected regions that may contain barcodes.
|
|
997
|
-
Value 0.7 means that bottom 70% of possible regions are filtered out and not processed further.
|
|
998
|
-
Region likelihood threshold must be between [0.05, 0.9]
|
|
999
|
-
Use high values for clear images with few barcodes.
|
|
1000
|
-
Use low values for images with many barcodes or for noisy images.
|
|
1001
|
-
Low value may lead to a bigger recognition time.
|
|
1002
|
-
"""
|
|
1003
|
-
self.getJavaClass().setRegionLikelihoodThresholdPercent(value)
|
|
1004
|
-
|
|
1005
|
-
def getSkipDiagonalSearch(self):
|
|
1006
|
-
"""!
|
|
1007
|
-
Allows detector to skip search for diagonal barcodes.
|
|
1008
|
-
Setting it to false will increase detection time but allow to find diagonal barcodes that can be missed otherwise.
|
|
1009
|
-
Enabling of diagonal search leads to a bigger detection time.
|
|
1010
|
-
"""
|
|
1011
|
-
return self.getJavaClass().getSkipDiagonalSearch()
|
|
1012
|
-
|
|
1013
|
-
def setSkipDiagonalSearch(self, value):
|
|
1014
|
-
"""!
|
|
1015
|
-
Allows detector to skip search for diagonal barcodes.
|
|
1016
|
-
Setting it to false will increase detection time but allow to find diagonal barcodes that can be missed otherwise.
|
|
1017
|
-
Enabling of diagonal search leads to a bigger detection time.
|
|
1018
|
-
"""
|
|
1019
|
-
self.getJavaClass().setSkipDiagonalSearch(value)
|
|
1020
|
-
|
|
1021
|
-
def getMedianFilterWindowSize(self):
|
|
1022
|
-
"""!
|
|
1023
|
-
Window size for median smoothing.
|
|
1024
|
-
Typical values are 3 or 4. 0 means no median smoothing.
|
|
1025
|
-
Default value is 0.
|
|
1026
|
-
Median filter window size must be between [0, 10]
|
|
1027
|
-
"""
|
|
1028
|
-
return self.getJavaClass().getMedianFilterWindowSize()
|
|
1029
|
-
|
|
1030
|
-
def setMedianFilterWindowSize(self, value):
|
|
1031
|
-
"""!
|
|
1032
|
-
Window size for median smoothing.
|
|
1033
|
-
Typical values are 3 or 4. 0 means no median smoothing.
|
|
1034
|
-
Default value is 0.
|
|
1035
|
-
Median filter window size must be between [0, 10]
|
|
1036
|
-
"""
|
|
1037
|
-
self.getJavaClass().setMedianFilterWindowSize(value)
|
|
1038
|
-
|
|
1039
|
-
@staticmethod
|
|
1040
|
-
def getHighPerformance():
|
|
1041
|
-
"""!
|
|
1042
|
-
High performance detection preset.
|
|
1043
|
-
Default for QualitySettings.PresetType.HighPerformance
|
|
1044
|
-
"""
|
|
1045
|
-
return BarcodeSvmDetectorSettings(BarcodeSvmDetectorSettings.HighPerformance)
|
|
1046
|
-
|
|
1047
|
-
@staticmethod
|
|
1048
|
-
def getNormalQuality():
|
|
1049
|
-
"""!
|
|
1050
|
-
Normal quality detection preset.
|
|
1051
|
-
Default for QualitySettings.PresetType.NormalQuality
|
|
1052
|
-
"""
|
|
1053
|
-
return BarcodeSvmDetectorSettings(BarcodeSvmDetectorSettings.NormalQuality)
|
|
1054
|
-
|
|
1055
|
-
@staticmethod
|
|
1056
|
-
def getHighQuality():
|
|
1057
|
-
"""!
|
|
1058
|
-
High quality detection preset.
|
|
1059
|
-
Default for QualitySettings.PresetType.HighQualityDetection and QualitySettings.PresetType.HighQuality
|
|
1060
|
-
"""
|
|
1061
|
-
return BarcodeSvmDetectorSettings(BarcodeSvmDetectorSettings.HighQuality)
|
|
1062
|
-
|
|
1063
|
-
@staticmethod
|
|
1064
|
-
def getMaxQuality():
|
|
1065
|
-
"""!
|
|
1066
|
-
Max quality detection preset.
|
|
1067
|
-
Default for QualitySettings.PresetType.MaxQualityDetection and QualitySettings.PresetType.MaxBarCodes
|
|
1068
|
-
"""
|
|
1069
|
-
return BarcodeSvmDetectorSettings(BarcodeSvmDetectorSettings.MaxQuality)
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
885
|
class BarCodeResult(Assist.BaseJavaClass):
|
|
1073
886
|
"""!
|
|
1074
887
|
Stores recognized barcode data like SingleDecodeType type, {@code string} codetext,
|
|
@@ -1455,7 +1268,7 @@ class QualitySettings(Assist.BaseJavaClass):
|
|
|
1455
1268
|
return qualitySettings
|
|
1456
1269
|
|
|
1457
1270
|
def init(self):
|
|
1458
|
-
|
|
1271
|
+
pass
|
|
1459
1272
|
|
|
1460
1273
|
@staticmethod
|
|
1461
1274
|
def getHighPerformance():
|
|
@@ -1528,367 +1341,120 @@ class QualitySettings(Assist.BaseJavaClass):
|
|
|
1528
1341
|
JavaQualitySettings = java_link()
|
|
1529
1342
|
return QualitySettings(JavaQualitySettings.getHighQuality())
|
|
1530
1343
|
|
|
1531
|
-
@staticmethod
|
|
1532
|
-
def getMaxBarCodes():
|
|
1533
|
-
"""!
|
|
1534
|
-
MaxBarCodes recognition quality preset.
|
|
1535
|
-
This preset is developed to recognize all possible barcodes, even incorrect barcodes.
|
|
1536
|
-
\code
|
|
1537
|
-
reader = Recognition.BarCodeReader("test.png")
|
|
1538
|
-
reader.setQualitySettings(QualitySettings.getMaxBarCodes())
|
|
1539
|
-
\endcode
|
|
1540
|
-
@return MaxBarCodes recognition quality preset.
|
|
1541
|
-
"""
|
|
1542
|
-
java_link = jpype.JClass(QualitySettings.javaClassName)
|
|
1543
|
-
JavaQualitySettings = java_link()
|
|
1544
|
-
return QualitySettings(JavaQualitySettings.getMaxBarCodes())
|
|
1545
|
-
|
|
1546
|
-
def getAllowInvertImage(self):
|
|
1547
|
-
"""!
|
|
1548
|
-
Allows engine to recognize inverse color image as additional scan. Mode can be used when barcode is white on black background.
|
|
1549
|
-
@return Allows engine to recognize inverse color image.
|
|
1550
|
-
"""
|
|
1551
|
-
return self.getJavaClass().getAllowInvertImage()
|
|
1552
|
-
|
|
1553
|
-
def setAllowInvertImage(self, value):
|
|
1554
|
-
"""!
|
|
1555
|
-
Allows engine to recognize inverse color image as additional scan. Mode can be used when barcode is white on black background.
|
|
1556
|
-
@@param Allows engine to recognize inverse color image.
|
|
1557
|
-
"""
|
|
1558
|
-
self.getJavaClass().setAllowInvertImage(value)
|
|
1559
|
-
|
|
1560
|
-
def getAllowIncorrectBarcodes(self):
|
|
1561
|
-
"""!
|
|
1562
|
-
Allows engine to recognize barcodes which has incorrect checksumm or incorrect values.
|
|
1563
|
-
Mode can be used to recognize damaged barcodes with incorrect text.
|
|
1564
|
-
@return Allows engine to recognize incorrect barcodes.
|
|
1565
|
-
"""
|
|
1566
|
-
return self.getJavaClass().getAllowIncorrectBarcodes()
|
|
1567
|
-
|
|
1568
|
-
def setAllowIncorrectBarcodes(self, value):
|
|
1569
|
-
"""!
|
|
1570
|
-
Allows engine to recognize barcodes which has incorrect checksumm or incorrect values.
|
|
1571
|
-
Mode can be used to recognize damaged barcodes with incorrect text.
|
|
1572
|
-
@@paramAllows engine to recognize incorrect barcodes.
|
|
1573
|
-
"""
|
|
1574
|
-
self.getJavaClass().setAllowIncorrectBarcodes(value)
|
|
1575
|
-
|
|
1576
|
-
def getReadTinyBarcodes(self):
|
|
1577
|
-
"""!
|
|
1578
|
-
Allows engine to recognize tiny barcodes on large images. Ignored if AllowIncorrectBarcodes is set to True.
|
|
1579
|
-
|
|
1580
|
-
Default value: False.
|
|
1581
|
-
|
|
1582
|
-
@return: If True, allows engine to recognize tiny barcodes on large images.
|
|
1583
|
-
"""
|
|
1584
|
-
return self.getJavaClass().getReadTinyBarcodes()
|
|
1585
|
-
|
|
1586
|
-
def setReadTinyBarcodes(self, value):
|
|
1587
|
-
"""!
|
|
1588
|
-
Allows engine to recognize tiny barcodes on large images. Ignored if AllowIncorrectBarcodes is set to True.
|
|
1589
|
-
|
|
1590
|
-
Default value: False.
|
|
1591
|
-
|
|
1592
|
-
@param: value If True, allows engine to recognize tiny barcodes on large images.
|
|
1593
|
-
"""
|
|
1594
|
-
self.getJavaClass().setReadTinyBarcodes(value)
|
|
1595
|
-
|
|
1596
|
-
def getCheckMore1DVariants(self):
|
|
1597
|
-
"""!
|
|
1598
|
-
Allows engine to recognize 1D barcodes with checksum by checking more recognition variants. Default value: False.
|
|
1599
|
-
@return: If True, allows engine to recognize 1D barcodes with checksum.
|
|
1600
|
-
"""
|
|
1601
|
-
return self.getJavaClass().getCheckMore1DVariants()
|
|
1602
|
-
|
|
1603
|
-
def setCheckMore1DVariants(self, value):
|
|
1604
|
-
"""!
|
|
1605
|
-
Allows engine to recognize 1D barcodes with checksum by checking more recognition variants. Default value: False.
|
|
1606
|
-
@param: value If True, allows engine to recognize 1D barcodes with checksum.
|
|
1607
|
-
"""
|
|
1608
|
-
self.getJavaClass().setCheckMore1DVariants(value)
|
|
1609
|
-
|
|
1610
|
-
def getAllowComplexBackground(self):
|
|
1611
|
-
"""!
|
|
1612
|
-
Allows engine to recognize color barcodes on color background as additional scan. Extremely slow mode.
|
|
1613
|
-
@return Allows engine to recognize color barcodes on color background.
|
|
1614
|
-
"""
|
|
1615
|
-
return self.getJavaClass().getAllowComplexBackground()
|
|
1616
|
-
|
|
1617
|
-
def setAllowComplexBackground(self, value):
|
|
1618
|
-
"""!
|
|
1619
|
-
Allows engine to recognize color barcodes on color background as additional scan. Extremely slow mode.
|
|
1620
|
-
@@param Allows engine to recognize color barcodes on color background.
|
|
1621
|
-
"""
|
|
1622
|
-
self.getJavaClass().setAllowComplexBackground(value)
|
|
1623
|
-
|
|
1624
|
-
def getAllowMedianSmoothing(self):
|
|
1625
|
-
"""!
|
|
1626
|
-
Allows engine to enable median smoothing as additional scan. Mode helps to recognize noised barcodes.
|
|
1627
|
-
@return Allows engine to enable median smoothing.
|
|
1628
|
-
"""
|
|
1629
|
-
return self.getJavaClass().getAllowMedianSmoothing()
|
|
1630
|
-
|
|
1631
|
-
def setAllowMedianSmoothing(self, value):
|
|
1632
|
-
"""!
|
|
1633
|
-
Allows engine to enable median smoothing as additional scan. Mode helps to recognize noised barcodes.
|
|
1634
|
-
@@paramAllows engine to enable median smoothing.
|
|
1635
|
-
"""
|
|
1636
|
-
self.getJavaClass().setAllowMedianSmoothing(value)
|
|
1637
1344
|
|
|
1638
|
-
def
|
|
1345
|
+
def getXDimension(self):
|
|
1639
1346
|
"""!
|
|
1640
|
-
|
|
1641
|
-
|
|
1347
|
+
Recognition mode which sets size (from 1 to infinity) of barcode minimal element: matrix cell or bar.
|
|
1348
|
+
:@return: size (from 1 to infinity) of barcode minimal element: matrix cell or bar.
|
|
1642
1349
|
"""
|
|
1643
|
-
return self.getJavaClass().
|
|
1644
|
-
|
|
1645
|
-
def setMedianSmoothingWindowSize(self, value):
|
|
1350
|
+
return XDimensionMode(self.getJavaClass().getXDimension())
|
|
1351
|
+
def setXDimension(self, value):
|
|
1646
1352
|
"""!
|
|
1647
|
-
|
|
1648
|
-
@@paramWindow size for median smoothing.
|
|
1353
|
+
Recognition mode which sets size (from 1 to infinity) of barcode minimal element: matrix cell or bar.
|
|
1649
1354
|
"""
|
|
1650
|
-
self.getJavaClass().
|
|
1355
|
+
self.getJavaClass().setXDimension(value.value)
|
|
1651
1356
|
|
|
1652
|
-
def
|
|
1357
|
+
def getMinimalXDimension(self):
|
|
1653
1358
|
"""!
|
|
1654
|
-
|
|
1655
|
-
|
|
1359
|
+
Minimal size of XDimension in pixels which is used with UseMinimalXDimension.
|
|
1360
|
+
:@return: Minimal size of XDimension in pixels which is used with UseMinimalXDimension.
|
|
1656
1361
|
"""
|
|
1657
|
-
return self.getJavaClass().
|
|
1362
|
+
return self.getJavaClass().getMinimalXDimension()
|
|
1658
1363
|
|
|
1659
|
-
def
|
|
1364
|
+
def setMinimalXDimension(self, value):
|
|
1660
1365
|
"""!
|
|
1661
|
-
|
|
1662
|
-
|
|
1366
|
+
Minimal size of XDimension in pixels which is used with UseMinimalXDimension.
|
|
1367
|
+
:@param value: Minimal size of XDimension in pixels which is used with UseMinimalXDimension.
|
|
1663
1368
|
"""
|
|
1664
|
-
self.getJavaClass().
|
|
1369
|
+
self.getJavaClass().setMinimalXDimension(value)
|
|
1665
1370
|
|
|
1666
|
-
def
|
|
1371
|
+
def getBarcodeQuality(self):
|
|
1667
1372
|
"""!
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
@return Allows engine to recognize decreased image
|
|
1373
|
+
Mode which enables methods to recognize barcode elements with the selected quality. Barcode element with lower quality requires more hard methods which slows the recognition.
|
|
1374
|
+
:@param self: Mode which enables methods to recognize barcode elements with the selected quality.
|
|
1671
1375
|
"""
|
|
1672
|
-
return self.getJavaClass().
|
|
1376
|
+
return BarcodeQualityMode(self.getJavaClass().getBarcodeQuality())
|
|
1673
1377
|
|
|
1674
|
-
def
|
|
1378
|
+
def setBarcodeQuality(self, value):
|
|
1675
1379
|
"""!
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
@param Allows engine to recognize decreased image
|
|
1380
|
+
Mode which enables methods to recognize barcode elements with the selected quality. Barcode element with lower quality requires more hard methods which slows the recognition.
|
|
1381
|
+
:@param value: Mode which enables methods to recognize barcode elements with the selected quality.
|
|
1679
1382
|
"""
|
|
1680
|
-
self.getJavaClass().
|
|
1383
|
+
self.getJavaClass().setBarcodeQuality(value.value)
|
|
1681
1384
|
|
|
1682
|
-
def
|
|
1385
|
+
def getDeconvolution(self):
|
|
1683
1386
|
"""!
|
|
1684
|
-
|
|
1685
|
-
|
|
1387
|
+
Deconvolution (image restorations) mode which defines level of image degradation. Originally deconvolution is a function which can restore image degraded
|
|
1388
|
+
(convoluted) by any natural function like blur, during obtaining image by camera. Because we cannot detect image function which corrupt the image,
|
|
1389
|
+
we have to check most well know functions like sharp or mathematical morphology.
|
|
1390
|
+
:@return: Deconvolution mode which defines level of image degradation.
|
|
1686
1391
|
"""
|
|
1687
|
-
return self.getJavaClass().
|
|
1392
|
+
return DeconvolutionMode(self.getJavaClass().getDeconvolution())
|
|
1688
1393
|
|
|
1689
|
-
def
|
|
1394
|
+
def setDeconvolution(self, value):
|
|
1690
1395
|
"""!
|
|
1691
|
-
|
|
1692
|
-
|
|
1396
|
+
Deconvolution (image restorations) mode which defines level of image degradation. Originally deconvolution is a function which can restore image degraded
|
|
1397
|
+
(convoluted) by any natural function like blur, during obtaining image by camera. Because we cannot detect image function which corrupt the image,
|
|
1398
|
+
we have to check most well know functions like sharp or mathematical morphology.
|
|
1399
|
+
:@param value: Deconvolution mode which defines level of image degradation.
|
|
1693
1400
|
"""
|
|
1694
|
-
self.getJavaClass().
|
|
1401
|
+
self.getJavaClass().setDeconvolution(value.value)
|
|
1695
1402
|
|
|
1696
|
-
def
|
|
1403
|
+
def getInverseImage(self):
|
|
1697
1404
|
"""!
|
|
1698
|
-
|
|
1699
|
-
|
|
1405
|
+
Mode which enables or disables additional recognition of barcodes on images with inverted colors (luminance).
|
|
1406
|
+
:@return: Additional recognition of barcodes on images with inverse colors
|
|
1700
1407
|
"""
|
|
1701
|
-
return self.getJavaClass().
|
|
1408
|
+
return InverseImageMode(self.getJavaClass().getInverseImage())
|
|
1702
1409
|
|
|
1703
|
-
def
|
|
1410
|
+
def setInverseImage(self, value):
|
|
1704
1411
|
"""!
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
"""
|
|
1708
|
-
self.getJavaClass().setAllowOneDAdditionalScan(value)
|
|
1709
|
-
|
|
1710
|
-
def getAllowOneDFastBarcodesDetector(self):
|
|
1711
|
-
"""!
|
|
1712
|
-
Allows engine for 1D barcodes to quickly recognize high quality barcodes which fill almost whole image.
|
|
1713
|
-
Mode helps to quickly recognize generated barcodes from Internet.
|
|
1714
|
-
@return Allows engine for 1D barcodes to quickly recognize high quality barcodes.
|
|
1715
|
-
"""
|
|
1716
|
-
return self.getJavaClass().getAllowOneDFastBarcodesDetector()
|
|
1717
|
-
|
|
1718
|
-
def setAllowOneDFastBarcodesDetector(self, value):
|
|
1719
|
-
"""!
|
|
1720
|
-
Allows engine for 1D barcodes to quickly recognize high quality barcodes which fill almost whole image.
|
|
1721
|
-
Mode helps to quickly recognize generated barcodes from Internet.
|
|
1722
|
-
@param Allows engine for 1D barcodes to quickly recognize high quality barcodes.
|
|
1723
|
-
"""
|
|
1724
|
-
self.getJavaClass().setAllowOneDFastBarcodesDetector(value)
|
|
1725
|
-
|
|
1726
|
-
def getUseOldBarcodeDetector(self):
|
|
1727
|
-
"""!
|
|
1728
|
-
Switches to the old barcode detector.
|
|
1729
|
-
@return: Switches to the old barcode detector.
|
|
1730
|
-
"""
|
|
1731
|
-
try:
|
|
1732
|
-
self.getJavaClass().getUseOldBarcodeDetector()
|
|
1733
|
-
except Exception as ex:
|
|
1734
|
-
raise Assist.BarcodeException(ex.getMessage())
|
|
1735
|
-
|
|
1736
|
-
def setUseOldBarcodeDetector(self, value):
|
|
1737
|
-
"""!
|
|
1738
|
-
Switches to the old barcode detector.
|
|
1739
|
-
@param: value: Switches to the old barcode detector.
|
|
1740
|
-
"""
|
|
1741
|
-
try:
|
|
1742
|
-
self.getJavaClass().setUseOldBarcodeDetector(value)
|
|
1743
|
-
except Exception as ex:
|
|
1744
|
-
raise Assist.BarcodeException(ex.getMessage())
|
|
1745
|
-
|
|
1746
|
-
def getAllowAdditionalRestorations(self):
|
|
1747
|
-
"""!
|
|
1748
|
-
Allows engine using additional image restorations to recognize corrupted barcodes. At this time, it is used only in MicroPdf417 barcode type.
|
|
1749
|
-
@return Allows engine using additional image restorations to recognize corrupted barcodes.
|
|
1750
|
-
"""
|
|
1751
|
-
return self.getJavaClass().getAllowAdditionalRestorations()
|
|
1752
|
-
|
|
1753
|
-
def setAllowAdditionalRestorations(self, value):
|
|
1754
|
-
"""
|
|
1755
|
-
Allows engine using additional image restorations to recognize corrupted barcodes. At this time, it is used only in MicroPdf417 barcode type.
|
|
1756
|
-
@param value: Allows engine using additional image restorations to recognize corrupted barcodes.
|
|
1412
|
+
Mode which enables or disables additional recognition of barcodes on images with inverted colors (luminance).
|
|
1413
|
+
:@param value: Additional recognition of barcodes on images with inverse colors
|
|
1757
1414
|
"""
|
|
1758
|
-
self.getJavaClass().
|
|
1415
|
+
self.getJavaClass().setInverseImage(value.value)
|
|
1759
1416
|
|
|
1760
|
-
def
|
|
1417
|
+
def getComplexBackground(self):
|
|
1761
1418
|
"""!
|
|
1762
|
-
|
|
1763
|
-
|
|
1419
|
+
Mode which enables or disables additional recognition of color barcodes on color images.
|
|
1420
|
+
:#return: Additional recognition of color barcodes on color images.
|
|
1764
1421
|
"""
|
|
1765
|
-
return self.getJavaClass().
|
|
1422
|
+
return ComplexBackgroundMode(self.getJavaClass().getComplexBackground())
|
|
1766
1423
|
|
|
1767
|
-
def
|
|
1424
|
+
def setComplexBackground(self, value):
|
|
1768
1425
|
"""!
|
|
1769
|
-
|
|
1770
|
-
|
|
1426
|
+
Mode which enables or disables additional recognition of color barcodes on color images.
|
|
1427
|
+
:#param value: Additional recognition of color barcodes on color images.
|
|
1771
1428
|
"""
|
|
1772
|
-
self.getJavaClass().
|
|
1429
|
+
self.getJavaClass().setComplexBackground(value.value)
|
|
1773
1430
|
|
|
1774
|
-
def
|
|
1775
|
-
"""!
|
|
1776
|
-
Allows engine for 1D barcodes to quickly recognize middle slice of an image and return result without using any time-consuming algorithms.
|
|
1777
|
-
@return: Allows engine for 1D barcodes to quickly recognize high quality barcodes.
|
|
1778
|
-
"""
|
|
1779
|
-
return self.getJavaClass().getFastScanOnly()
|
|
1780
|
-
|
|
1781
|
-
def setFastScanOnly(self, value):
|
|
1782
|
-
"""!
|
|
1783
|
-
Allows engine for 1D barcodes to quickly recognize middle slice of an image and return result without using any time-consuming algorithms.
|
|
1784
|
-
@param: value: Allows engine for 1D barcodes to quickly recognize high quality barcodes.
|
|
1785
|
-
"""
|
|
1786
|
-
self.getJavaClass().setFastScanOnly(value)
|
|
1787
|
-
|
|
1788
|
-
def getAllowSaltAndPaperFiltering(self):
|
|
1789
|
-
"""!
|
|
1790
|
-
Allows engine to recognize barcodes with salt and paper noise type. Mode can remove small noise with white and black dots.
|
|
1791
|
-
@return Allows engine to recognize barcodes with salt and paper noise type.
|
|
1792
|
-
"""
|
|
1793
|
-
return self.getJavaClass().getAllowSaltAndPaperFiltering()
|
|
1794
|
-
|
|
1795
|
-
def setAllowSaltAndPaperFiltering(self, value):
|
|
1796
|
-
"""!
|
|
1797
|
-
Allows engine to recognize barcodes with salt and paper noise type. Mode can remove small noise with white and black dots.
|
|
1798
|
-
@param Allows engine to recognize barcodes with salt and paper noise type.
|
|
1799
|
-
"""
|
|
1800
|
-
self.getJavaClass().setAllowSaltAndPaperFiltering(value)
|
|
1801
|
-
|
|
1802
|
-
def getAllowDetectScanGap(self):
|
|
1803
|
-
"""!
|
|
1804
|
-
Allows engine to use gap between scans to increase recognition speed. Mode can make recognition problems with low height barcodes.
|
|
1805
|
-
@return Allows engine to use gap between scans to increase recognition speed.
|
|
1806
|
-
"""
|
|
1807
|
-
return self.getJavaClass().getAllowDetectScanGap()
|
|
1808
|
-
|
|
1809
|
-
def setAllowDetectScanGap(self, value):
|
|
1810
|
-
"""!
|
|
1811
|
-
Allows engine to use gap between scans to increase recognition speed. Mode can make recognition problems with low height barcodes.
|
|
1812
|
-
@param Allows engine to use gap between scans to increase recognition speed.
|
|
1813
|
-
"""
|
|
1814
|
-
self.getJavaClass().setAllowDetectScanGap(value)
|
|
1815
|
-
|
|
1816
|
-
def getAllowDatamatrixIndustrialBarcodes(self):
|
|
1817
|
-
"""!
|
|
1818
|
-
Allows engine for Datamatrix to recognize dashed industrial Datamatrix barcodes.
|
|
1819
|
-
Slow mode which helps only for dashed barcodes which consist from spots.
|
|
1820
|
-
@return Allows engine for Datamatrix to recognize dashed industrial barcodes.
|
|
1821
|
-
"""
|
|
1822
|
-
return self.getJavaClass().getAllowDatamatrixIndustrialBarcodes()
|
|
1823
|
-
|
|
1824
|
-
def setAllowDatamatrixIndustrialBarcodes(self, value):
|
|
1825
|
-
"""!
|
|
1826
|
-
Allows engine for Datamatrix to recognize dashed industrial Datamatrix barcodes.
|
|
1827
|
-
Slow mode which helps only for dashed barcodes which consist from spots.
|
|
1828
|
-
@param Allows engine for Datamatrix to recognize dashed industrial barcodes.
|
|
1829
|
-
"""
|
|
1830
|
-
self.getJavaClass().setAllowDatamatrixIndustrialBarcodes(value)
|
|
1831
|
-
|
|
1832
|
-
def getAllowQRMicroQrRestoration(self):
|
|
1833
|
-
"""!
|
|
1834
|
-
Allows engine for QR/MicroQR to recognize damaged MicroQR barcodes.
|
|
1835
|
-
@return Allows engine for QR/MicroQR to recognize damaged MicroQR barcodes.
|
|
1836
|
-
"""
|
|
1837
|
-
return self.getJavaClass().getAllowQRMicroQrRestoration()
|
|
1838
|
-
|
|
1839
|
-
def setAllowQRMicroQrRestoration(self, value):
|
|
1840
|
-
"""!
|
|
1841
|
-
Allows engine for QR/MicroQR to recognize damaged MicroQR barcodes.
|
|
1842
|
-
@param Allows engine for QR/MicroQR to recognize damaged MicroQR barcodes.
|
|
1843
|
-
"""
|
|
1844
|
-
self.getJavaClass().setAllowQRMicroQrRestoration(value)
|
|
1845
|
-
|
|
1846
|
-
def getAllowOneDWipedBarsRestoration(self):
|
|
1847
|
-
"""!
|
|
1848
|
-
Allows engine for 1D barcodes to recognize barcodes with single wiped/glued bars in pattern.
|
|
1849
|
-
@return Allows engine for 1D barcodes to recognize barcodes with single wiped/glued bars in pattern.
|
|
1850
|
-
"""
|
|
1851
|
-
return self.getJavaClass().getAllowOneDWipedBarsRestoration()
|
|
1852
|
-
|
|
1853
|
-
def setAllowOneDWipedBarsRestoration(self, value):
|
|
1431
|
+
def getAllowIncorrectBarcodes(self):
|
|
1854
1432
|
"""!
|
|
1855
|
-
|
|
1856
|
-
|
|
1433
|
+
Allows engine to recognize barcodes which has incorrect checksumm or incorrect values. Mode can be used to recognize damaged barcodes with incorrect text.
|
|
1434
|
+
:#return: Allows engine to recognize incorrect barcodes.
|
|
1857
1435
|
"""
|
|
1858
|
-
self.getJavaClass().
|
|
1436
|
+
return self.getJavaClass().getAllowIncorrectBarcodes()
|
|
1859
1437
|
|
|
1860
|
-
def
|
|
1438
|
+
def setAllowIncorrectBarcodes(self, value):
|
|
1861
1439
|
"""!
|
|
1862
|
-
|
|
1440
|
+
Allows engine to recognize barcodes which has incorrect checksumm or incorrect values. Mode can be used to recognize damaged barcodes with incorrect text.
|
|
1441
|
+
:@param value: Allows engine to recognize incorrect barcodes.
|
|
1863
1442
|
"""
|
|
1864
|
-
|
|
1443
|
+
self.getJavaClass().setAllowIncorrectBarcodes(value)
|
|
1865
1444
|
|
|
1866
|
-
def setDetectorSettings(self, value):
|
|
1867
|
-
"""!
|
|
1868
|
-
Barcode detector settings.
|
|
1869
|
-
"""
|
|
1870
|
-
self.getJavaClass().setDetectorSettings(value.getJavaClass())
|
|
1871
|
-
self.detectorSettings = value
|
|
1872
1445
|
|
|
1873
1446
|
def applyAll(self, Src):
|
|
1874
1447
|
"""!
|
|
1875
|
-
|
|
1876
|
-
|
|
1448
|
+
Function apply all values from Src setting to Dst
|
|
1449
|
+
:@param Src: Src source settings
|
|
1877
1450
|
"""
|
|
1878
|
-
self.
|
|
1451
|
+
self.setXDimension(Src.getXDimension())
|
|
1452
|
+
self.setMinimalXDimension(Src.getMinimalXDimension())
|
|
1453
|
+
self.setBarcodeQuality(Src.getBarcodeQuality())
|
|
1454
|
+
self.setDeconvolution(Src.getDeconvolution())
|
|
1455
|
+
self.setInverseImage(Src.getInverseImage())
|
|
1456
|
+
self.setComplexBackground(Src.getComplexBackground())
|
|
1879
1457
|
self.setAllowIncorrectBarcodes(Src.getAllowIncorrectBarcodes())
|
|
1880
|
-
self.setAllowComplexBackground(Src.getAllowComplexBackground())
|
|
1881
|
-
self.setAllowMedianSmoothing(Src.getAllowMedianSmoothing())
|
|
1882
|
-
self.setMedianSmoothingWindowSize(Src.getMedianSmoothingWindowSize())
|
|
1883
|
-
self.setAllowRegularImage(Src.getAllowRegularImage())
|
|
1884
|
-
self.setAllowDecreasedImage(Src.getAllowDecreasedImage())
|
|
1885
|
-
self.setAllowWhiteSpotsRemoving(Src.getAllowWhiteSpotsRemoving())
|
|
1886
|
-
self.setAllowOneDAdditionalScan(Src.getAllowOneDAdditionalScan())
|
|
1887
|
-
self.setAllowOneDFastBarcodesDetector(Src.getAllowOneDFastBarcodesDetector())
|
|
1888
|
-
self.setAllowMicroWhiteSpotsRemoving(Src.getAllowMicroWhiteSpotsRemoving())
|
|
1889
|
-
self.setAllowSaltAndPaperFiltering(Src.getAllowSaltAndPaperFiltering())
|
|
1890
|
-
self.setAllowDetectScanGap(Src.getAllowDetectScanGap())
|
|
1891
|
-
|
|
1892
1458
|
|
|
1893
1459
|
class Code128DataPortion(Assist.BaseJavaClass):
|
|
1894
1460
|
"""!
|
|
@@ -2888,6 +2454,9 @@ class DecodeType(Enum):
|
|
|
2888
2454
|
## Specifies that the data should be decoded with {@code <b>MicroQR Code</b>} barcode specification
|
|
2889
2455
|
MICRO_QR = 56
|
|
2890
2456
|
|
|
2457
|
+
## Specifies that the data should be decoded with <b>RectMicroQR (rMQR) Code</b> barcode specification
|
|
2458
|
+
RECT_MICRO_QR = 83
|
|
2459
|
+
|
|
2891
2460
|
## Specifies that the data should be decoded with {@code <b>CompactPdf417</b>} (Pdf417Truncated) barcode specification
|
|
2892
2461
|
COMPACT_PDF_417 = 57
|
|
2893
2462
|
|
|
@@ -3153,3 +2722,109 @@ class ChecksumValidation(Enum):
|
|
|
3153
2722
|
|
|
3154
2723
|
## Do not validate checksum.
|
|
3155
2724
|
OFF = 2
|
|
2725
|
+
|
|
2726
|
+
class DeconvolutionMode(Enum):
|
|
2727
|
+
"""!
|
|
2728
|
+
Deconvolution (image restorations) mode which defines level of image degradation. Originally deconvolution is a function which can restore image degraded
|
|
2729
|
+
(convoluted) by any natural function like blur, during obtaining image by camera. Because we cannot detect image function which corrupt the image,
|
|
2730
|
+
we have to check most well know functions like sharp or mathematical morphology.
|
|
2731
|
+
|
|
2732
|
+
This sample shows how to use Deconvolution mode
|
|
2733
|
+
|
|
2734
|
+
\code
|
|
2735
|
+
reader = Recognition.BarCodeReader("test.png", None, [Recognition.DecodeType.CODE_39_EXTENDED, Recognition.DecodeType.CODE_128])
|
|
2736
|
+
reader.getQualitySettings().setDeconvolution(Recognition.DeconvolutionMode.SLOW)
|
|
2737
|
+
for result in reader.readBarCodes():
|
|
2738
|
+
console.log("BarCode CodeText: " + result.getCodeText())
|
|
2739
|
+
\endcode
|
|
2740
|
+
"""
|
|
2741
|
+
|
|
2742
|
+
##Enables fast deconvolution methods for high quality images.
|
|
2743
|
+
FAST = 0
|
|
2744
|
+
##Enables normal deconvolution methods for common images.
|
|
2745
|
+
NORMAL = 1
|
|
2746
|
+
##Enables slow deconvolution methods for low quality images.
|
|
2747
|
+
SLOW = 2
|
|
2748
|
+
|
|
2749
|
+
class InverseImageMode(Enum):
|
|
2750
|
+
"""!
|
|
2751
|
+
Mode which enables or disables additional recognition of barcodes on images with inverted colors (luminance).
|
|
2752
|
+
\code
|
|
2753
|
+
reader = Recognition.BarCodeReader("test.png", None, [Recognition.DecodeType.CODE_39_EXTENDED, Recognition.DecodeType.CODE_128])
|
|
2754
|
+
reader.getQualitySettings().setInverseImage(Recognition.InverseImageMode.ENABLED)
|
|
2755
|
+
for result in reader.readBarCodes():
|
|
2756
|
+
console.log("BarCode CodeText: " + result.getCodeText())
|
|
2757
|
+
\endcode
|
|
2758
|
+
"""
|
|
2759
|
+
|
|
2760
|
+
## At this time the same as Disabled. Disables additional recognition of barcodes on inverse images.</p>
|
|
2761
|
+
AUTO = 0
|
|
2762
|
+
|
|
2763
|
+
## Disables additional recognition of barcodes on inverse images.</p>
|
|
2764
|
+
DISABLED = 1
|
|
2765
|
+
|
|
2766
|
+
## Enables additional recognition of barcodes on inverse images</p>
|
|
2767
|
+
ENABLED = 2
|
|
2768
|
+
|
|
2769
|
+
class XDimensionMode(Enum):
|
|
2770
|
+
"""!
|
|
2771
|
+
Recognition mode which sets size (from 1 to infinity) of barcode minimal element: matrix cell or bar.
|
|
2772
|
+
|
|
2773
|
+
This sample shows how to use XDimension mode
|
|
2774
|
+
\code
|
|
2775
|
+
reader = Recognition.BarCodeReader("test.png", None, [Recognition.DecodeType.CODE_39_EXTENDED, Recognition.DecodeType.CODE_128])
|
|
2776
|
+
reader.getQualitySettings().setXDimension(XDimensionMode.SMALL)
|
|
2777
|
+
for result in reader.readBarCodes():
|
|
2778
|
+
console.log("BarCode CodeText: " + result.getCodeText())
|
|
2779
|
+
\endcode
|
|
2780
|
+
"""
|
|
2781
|
+
## Value of XDimension is detected by AI (SVM). At this time the same as Normal</p>
|
|
2782
|
+
AUTO = 0
|
|
2783
|
+
|
|
2784
|
+
## Detects barcodes with small XDimension in 1 pixel or more with quality from BarcodeQuality</p>
|
|
2785
|
+
SMALL = 1
|
|
2786
|
+
|
|
2787
|
+
## Detects barcodes with classic XDimension in 2 pixels or more with quality from BarcodeQuality or high quality barcodes.</p>
|
|
2788
|
+
NORMAL = 2
|
|
2789
|
+
|
|
2790
|
+
## Detects barcodes with large XDimension with quality from BarcodeQuality captured with high-resolution cameras.</p>
|
|
2791
|
+
LARGE = 3
|
|
2792
|
+
|
|
2793
|
+
## Detects barcodes from size set in MinimalXDimension with quality from BarcodeQuality</p>
|
|
2794
|
+
USE_MINIMAL_X_DIMENSION = 4
|
|
2795
|
+
|
|
2796
|
+
class ComplexBackgroundMode(Enum):
|
|
2797
|
+
"""!
|
|
2798
|
+
Mode which enables or disables additional recognition of color barcodes on color images.
|
|
2799
|
+
\code
|
|
2800
|
+
reader = Recognition.BarCodeReader("test.png", None, [Recognition.DecodeType.CODE_39_EXTENDED, Recognition.DecodeType.CODE_128])
|
|
2801
|
+
reader.getQualitySettings().setComplexBackground(ComplexBackgroundMode.ENABLED)
|
|
2802
|
+
for result in reader.readBarCodes():
|
|
2803
|
+
console.log("BarCode CodeText: " + result.getCodeText())
|
|
2804
|
+
\endcode
|
|
2805
|
+
"""
|
|
2806
|
+
## At this time the same as Disabled. Disables additional recognition of color barcodes on color images.</p>
|
|
2807
|
+
AUTO = 0
|
|
2808
|
+
## Disables additional recognition of color barcodes on color images.</p>
|
|
2809
|
+
DISABLED = 1
|
|
2810
|
+
## Enables additional recognition of color barcodes on color images.</p>
|
|
2811
|
+
ENABLED = 2
|
|
2812
|
+
|
|
2813
|
+
|
|
2814
|
+
class BarcodeQualityMode(Enum):
|
|
2815
|
+
"""!
|
|
2816
|
+
Mode which enables methods to recognize barcode elements with the selected quality. Barcode element with lower quality requires more hard methods which slows the recognition.
|
|
2817
|
+
\code
|
|
2818
|
+
reader = Recognition.BarCodeReader("test.png", None, [Recognition.DecodeType.CODE_39_EXTENDED, Recognition.DecodeType.CODE_128])
|
|
2819
|
+
reader.getQualitySettings().setBarcodeQuality(BarcodeQualityMode.LOW)
|
|
2820
|
+
for result in reader.readBarCodes():
|
|
2821
|
+
console.log("BarCode CodeText: " + result.getCodeText())
|
|
2822
|
+
\endcode
|
|
2823
|
+
"""
|
|
2824
|
+
## Enables recognition methods for High quality barcodes.</p>
|
|
2825
|
+
HIGH = 0
|
|
2826
|
+
|
|
2827
|
+
## Enables recognition methods for Common(Normal) quality barcodes.</p>
|
|
2828
|
+
NORMAL = 1
|
|
2829
|
+
## Enables recognition methods for Low quality barcodes.</p>
|
|
2830
|
+
LOW = 2
|
|
@@ -3,6 +3,6 @@ import os
|
|
|
3
3
|
from asposebarcode import Generation, Recognition, Assist
|
|
4
4
|
|
|
5
5
|
__asposebarcode_dir__ = os.path.dirname(__file__)
|
|
6
|
-
__barcode_jar_path__ = __asposebarcode_dir__ + "/jlib/aspose-barcode-python-24.
|
|
6
|
+
__barcode_jar_path__ = __asposebarcode_dir__ + "/jlib/aspose-barcode-python-24.2.jar"
|
|
7
7
|
jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.class.path=%s" % __barcode_jar_path__)
|
|
8
8
|
__all__ = ['Assist','Recognition','Generation','ComplexBarcode']
|
{aspose-barcode-for-python-via-java-24.1.0 → aspose-barcode-for-python-via-java-24.2.1}/MANIFEST.in
RENAMED
|
File without changes
|
{aspose-barcode-for-python-via-java-24.1.0 → aspose-barcode-for-python-via-java-24.2.1}/README.md
RENAMED
|
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.1.0 → aspose-barcode-for-python-via-java-24.2.1}/setup.cfg
RENAMED
|
File without changes
|