aspose.barcode 23.5.0 → 23.7.0
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.
- package/lib/AsposeBarcode.js +1 -1
- package/lib/ComplexBarcode.js +763 -755
- package/lib/Generation.js +1812 -360
- package/lib/Joint.js +56 -2
- package/lib/Recognition.js +294 -92
- package/lib/{aspose-barcode-nodejs-23.5.jar → aspose-barcode-nodejs-23.7.jar} +0 -0
- package/package.json +1 -1
package/lib/Recognition.js
CHANGED
|
@@ -107,6 +107,9 @@ class BarCodeReader extends joint.BaseJavaClass
|
|
|
107
107
|
return this.getJavaClass().containsAnySync(decodeTypes);
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
+
/**
|
|
111
|
+
* internal
|
|
112
|
+
*/
|
|
110
113
|
static convertToString(arg)
|
|
111
114
|
{
|
|
112
115
|
if (is_int(arg))
|
|
@@ -144,7 +147,7 @@ class BarCodeReader extends joint.BaseJavaClass
|
|
|
144
147
|
|
|
145
148
|
/**
|
|
146
149
|
* Gets the timeout of recognition process in milliseconds.<br>
|
|
147
|
-
|
|
150
|
+
* @example
|
|
148
151
|
* let reader = new BarCodeReader("test.png", null, null);
|
|
149
152
|
* reader.setTimeout(5000);
|
|
150
153
|
* reader.readBarCodes().forEach(function(result, i, results)
|
|
@@ -247,10 +250,10 @@ class BarCodeReader extends joint.BaseJavaClass
|
|
|
247
250
|
}
|
|
248
251
|
|
|
249
252
|
/**
|
|
250
|
-
* QualitySettings allows to configure recognition quality and speed manually
|
|
251
|
-
* You can quickly set up QualitySettings by embedded presets: HighPerformance, NormalQuality
|
|
252
|
-
* HighQuality, MaxBarCodes or you can manually configure separate options
|
|
253
|
-
* Default value of QualitySettings is NormalQuality
|
|
253
|
+
* QualitySettings allows to configure recognition quality and speed manually.<br>
|
|
254
|
+
* You can quickly set up QualitySettings by embedded presets: HighPerformance, NormalQuality,<br>
|
|
255
|
+
* HighQuality, MaxBarCodes or you can manually configure separate options.<br>
|
|
256
|
+
* Default value of QualitySettings is NormalQuality.<br>
|
|
254
257
|
* @return QualitySettings to configure recognition quality and speed.
|
|
255
258
|
*
|
|
256
259
|
* @example
|
|
@@ -263,12 +266,16 @@ class BarCodeReader extends joint.BaseJavaClass
|
|
|
263
266
|
* {
|
|
264
267
|
* console.log("BarCode CodeText: " + result.getCodeText());
|
|
265
268
|
* });
|
|
269
|
+
*
|
|
270
|
+
* @example
|
|
266
271
|
* let reader = new BarCodeReader("test.png", null, [ DecodeType.CODE_39_STANDARD, DecodeType.CODE_128 ]);
|
|
267
272
|
* //normal quality mode is set by default
|
|
268
273
|
* reader.readBarCodes().forEach(function(result, i, results)
|
|
269
274
|
* {
|
|
270
275
|
* console.log("BarCode CodeText: " + result.getCodeText());
|
|
271
276
|
* });
|
|
277
|
+
*
|
|
278
|
+
* @example
|
|
272
279
|
* let reader = new BarCodeReader("test.png", null, [ DecodeType.CODE_39_STANDARD, DecodeType.CODE_128 ]);
|
|
273
280
|
* //set high performance mode
|
|
274
281
|
* reader.setQualitySettings(QualitySettings.getHighPerformance());
|
|
@@ -279,7 +286,6 @@ class BarCodeReader extends joint.BaseJavaClass
|
|
|
279
286
|
* {
|
|
280
287
|
* console.log("BarCode CodeText: " + result.getCodeText());
|
|
281
288
|
* });
|
|
282
|
-
*
|
|
283
289
|
*/
|
|
284
290
|
getQualitySettings()
|
|
285
291
|
{
|
|
@@ -287,9 +293,9 @@ class BarCodeReader extends joint.BaseJavaClass
|
|
|
287
293
|
}
|
|
288
294
|
|
|
289
295
|
/**
|
|
290
|
-
* QualitySettings allows to configure recognition quality and speed manually
|
|
291
|
-
* You can quickly set up QualitySettings by embedded presets: HighPerformance, NormalQuality
|
|
292
|
-
* HighQuality, MaxBarCodes or you can manually configure separate options
|
|
296
|
+
* QualitySettings allows to configure recognition quality and speed manually.<br>
|
|
297
|
+
* You can quickly set up QualitySettings by embedded presets: HighPerformance, NormalQuality,<br>
|
|
298
|
+
* HighQuality, MaxBarCodes or you can manually configure separate options.<br>
|
|
293
299
|
* Default value of QualitySettings is NormalQuality.
|
|
294
300
|
*
|
|
295
301
|
* @example
|
|
@@ -301,12 +307,14 @@ class BarCodeReader extends joint.BaseJavaClass
|
|
|
301
307
|
* {
|
|
302
308
|
* console.log("BarCode CodeText: " + result.getCodeText());
|
|
303
309
|
* });
|
|
310
|
+
* @example
|
|
304
311
|
* let reader = new BarCodeReader("test.png", null, [ DecodeType.CODE_39_STANDARD, DecodeType.CODE_128 ]);
|
|
305
312
|
* //normal quality mode is set by default
|
|
306
313
|
* reader.readBarCodes().forEach(function(result, i, results)
|
|
307
314
|
* {
|
|
308
315
|
* console.log("BarCode CodeText: " + result.getCodeText());
|
|
309
316
|
* });
|
|
317
|
+
* @example
|
|
310
318
|
* let reader = new BarCodeReader("test.png", null, [ DecodeType.CODE_39_STANDARD, DecodeType.CODE_128 ]);
|
|
311
319
|
* //set high performance mode
|
|
312
320
|
* reader.setQualitySettings(QualitySettings.getHighPerformance());
|
|
@@ -334,7 +342,7 @@ class BarCodeReader extends joint.BaseJavaClass
|
|
|
334
342
|
}
|
|
335
343
|
|
|
336
344
|
/**
|
|
337
|
-
* Sets bitmap image and areas for recognition
|
|
345
|
+
* Sets bitmap image and areas for recognition.<br>
|
|
338
346
|
* Must be called before ReadBarCodes() method.
|
|
339
347
|
* @example
|
|
340
348
|
* //This sample shows how to detect Code39 and Code128 barcodes.
|
|
@@ -386,7 +394,7 @@ class BarCodeReader extends joint.BaseJavaClass
|
|
|
386
394
|
}
|
|
387
395
|
|
|
388
396
|
/**
|
|
389
|
-
* Sets SingleDecodeType type array for recognition
|
|
397
|
+
* Sets SingleDecodeType type array for recognition.<br>
|
|
390
398
|
* Must be called before readBarCodes() method.
|
|
391
399
|
* @example
|
|
392
400
|
* //This sample shows how to detect Code39 and Code128 barcodes.
|
|
@@ -409,15 +417,19 @@ class BarCodeReader extends joint.BaseJavaClass
|
|
|
409
417
|
this.getJavaClass().setBarCodeReadTypeSync(types);
|
|
410
418
|
}
|
|
411
419
|
|
|
420
|
+
/**
|
|
421
|
+
* Gets the decode type of the input barcode decoding
|
|
422
|
+
* @returns {*}
|
|
423
|
+
*/
|
|
412
424
|
getBarCodeDecodeType()
|
|
413
425
|
{
|
|
414
426
|
return this.getJavaClass().getBarCodeDecodeTypeSync();
|
|
415
427
|
}
|
|
416
428
|
|
|
417
429
|
/**
|
|
418
|
-
* Exports BarCode properties to the xml-file specified
|
|
419
|
-
* @param xmlFile The name of the file
|
|
420
|
-
* @return Whether or not export completed successfully
|
|
430
|
+
* Exports BarCode properties to the xml-file specified<br>
|
|
431
|
+
* @param xmlFile The name of the file<br>
|
|
432
|
+
* @return Whether or not export completed successfully.<br>
|
|
421
433
|
* Returns True in case of success; False Otherwise
|
|
422
434
|
*/
|
|
423
435
|
exportToXml(xmlFile)
|
|
@@ -439,8 +451,8 @@ class BarCodeReader extends joint.BaseJavaClass
|
|
|
439
451
|
}
|
|
440
452
|
|
|
441
453
|
/**
|
|
442
|
-
* Exports BarCode properties to the xml-file specified
|
|
443
|
-
* @param xmlFile The name of the file
|
|
454
|
+
* Exports BarCode properties to the xml-file specified<br>
|
|
455
|
+
* @param xmlFile The name of the file<br>
|
|
444
456
|
* @return Whether or not export completed successfully. Returns True in case of success; False Otherwise
|
|
445
457
|
*/
|
|
446
458
|
static importFromXml(xmlFile)
|
|
@@ -522,7 +534,7 @@ class Quadrangle extends joint.BaseJavaClass
|
|
|
522
534
|
}
|
|
523
535
|
|
|
524
536
|
/**
|
|
525
|
-
*
|
|
537
|
+
* Sets left-top corner Point of Quadrangle regionValue: A left-top corner Point of Quadrangle region
|
|
526
538
|
*/
|
|
527
539
|
setLeftTop(value)
|
|
528
540
|
{
|
|
@@ -539,7 +551,7 @@ class Quadrangle extends joint.BaseJavaClass
|
|
|
539
551
|
}
|
|
540
552
|
|
|
541
553
|
/**
|
|
542
|
-
*
|
|
554
|
+
* Sets right-top corner Point of Quadrangle regionValue: A right-top corner Point of Quadrangle region
|
|
543
555
|
*/
|
|
544
556
|
setRightTop(value)
|
|
545
557
|
{
|
|
@@ -556,7 +568,7 @@ class Quadrangle extends joint.BaseJavaClass
|
|
|
556
568
|
}
|
|
557
569
|
|
|
558
570
|
/**
|
|
559
|
-
*
|
|
571
|
+
* Sets right-bottom corner Point of Quadrangle regionValue: A right-bottom corner Point of Quadrangle region
|
|
560
572
|
*/
|
|
561
573
|
setRightBottom(value)
|
|
562
574
|
{
|
|
@@ -573,7 +585,7 @@ class Quadrangle extends joint.BaseJavaClass
|
|
|
573
585
|
}
|
|
574
586
|
|
|
575
587
|
/**
|
|
576
|
-
*
|
|
588
|
+
* Sets left-bottom corner Point of Quadrangle regionValue: A left-bottom corner Point of Quadrangle region
|
|
577
589
|
*/
|
|
578
590
|
setLeftBottom(value)
|
|
579
591
|
{
|
|
@@ -727,7 +739,10 @@ class QRExtendedParameters extends joint.BaseJavaClass
|
|
|
727
739
|
{
|
|
728
740
|
return this.getJavaClass().getQRStructuredAppendModeParityDataSync();
|
|
729
741
|
}
|
|
730
|
-
|
|
742
|
+
/**
|
|
743
|
+
* <p>Tests whether all parameters has only default values</p>Value
|
|
744
|
+
* @returns <b>true</b> if all parameters has only default values; otherwise, {@code <b>false</b>}.
|
|
745
|
+
*/
|
|
731
746
|
isEmpty()
|
|
732
747
|
{
|
|
733
748
|
return this.getJavaClass().isEmptySync();
|
|
@@ -1009,7 +1024,7 @@ class OneDExtendedParameters extends joint.BaseJavaClass
|
|
|
1009
1024
|
}
|
|
1010
1025
|
|
|
1011
1026
|
/**
|
|
1012
|
-
* Stores special data of Code128 recognized barcode
|
|
1027
|
+
* Stores special data of Code128 recognized barcode<br>
|
|
1013
1028
|
* Represents the recognized barcode's region and barcode angle
|
|
1014
1029
|
* @example
|
|
1015
1030
|
* //This sample shows how to get code128 raw values
|
|
@@ -1131,7 +1146,7 @@ class BarcodeSvmDetectorSettings extends joint.BaseJavaClass
|
|
|
1131
1146
|
}
|
|
1132
1147
|
|
|
1133
1148
|
/**
|
|
1134
|
-
* High performance detection preset
|
|
1149
|
+
* High performance detection preset.<br>
|
|
1135
1150
|
*
|
|
1136
1151
|
* Default for {@code QualitySettings.PresetType.HighPerformance}
|
|
1137
1152
|
*/
|
|
@@ -1623,6 +1638,7 @@ class BarCodeExtendedParameters extends joint.BaseJavaClass
|
|
|
1623
1638
|
_dataBarParameters;
|
|
1624
1639
|
_maxiCodeParameters;
|
|
1625
1640
|
_dotCodeExtendedParameters;
|
|
1641
|
+
_dataMatrixExtendedParameters;
|
|
1626
1642
|
|
|
1627
1643
|
constructor(javaclass)
|
|
1628
1644
|
{
|
|
@@ -1639,9 +1655,11 @@ class BarCodeExtendedParameters extends joint.BaseJavaClass
|
|
|
1639
1655
|
this._dataBarParameters = new DataBarExtendedParameters(this.getJavaClass().getDataBarSync());
|
|
1640
1656
|
this._maxiCodeParameters = new MaxiCodeExtendedParameters(this.getJavaClass().getMaxiCodeSync());
|
|
1641
1657
|
this._dotCodeExtendedParameters = new DotCodeExtendedParameters(this.getJavaClass().getDotCodeSync());
|
|
1658
|
+
this._dataMatrixExtendedParameters = new DataMatrixExtendedParameters(this.getJavaClass().getDataMatrixSync());
|
|
1642
1659
|
}
|
|
1643
1660
|
|
|
1644
|
-
/**
|
|
1661
|
+
/**
|
|
1662
|
+
* Gets a DataBar additional information DataBarExtendedParameters of recognized barcode<br>
|
|
1645
1663
|
* @return mixed A DataBar additional information DataBarExtendedParameters of recognized barcode
|
|
1646
1664
|
*/
|
|
1647
1665
|
getDataBar()
|
|
@@ -1675,6 +1693,14 @@ class BarCodeExtendedParameters extends joint.BaseJavaClass
|
|
|
1675
1693
|
return this._dotCodeExtendedParameters;
|
|
1676
1694
|
}
|
|
1677
1695
|
|
|
1696
|
+
/**
|
|
1697
|
+
* <p>Gets a DotCode additional information{@code DotCodeExtendedParameters} of recognized barcode</p>Value: A DotCode additional information{@code DotCodeExtendedParameters} of recognized barcode
|
|
1698
|
+
*/
|
|
1699
|
+
getDataMatrix()
|
|
1700
|
+
{
|
|
1701
|
+
return this._dataMatrixExtendedParameters;
|
|
1702
|
+
}
|
|
1703
|
+
|
|
1678
1704
|
/**
|
|
1679
1705
|
* Gets a special data Code128ExtendedParameters of Code128 recognized barcode Value: A special data Code128ExtendedParameters of Code128 recognized barcode
|
|
1680
1706
|
*/
|
|
@@ -1732,9 +1758,9 @@ class BarCodeExtendedParameters extends joint.BaseJavaClass
|
|
|
1732
1758
|
}
|
|
1733
1759
|
|
|
1734
1760
|
/**
|
|
1735
|
-
* QualitySettings allows to configure recognition quality and speed manually
|
|
1736
|
-
* You can quickly set up QualitySettings by embedded presets: HighPerformance, NormalQuality
|
|
1737
|
-
* HighQuality, MaxBarCodes or you can manually configure separate options
|
|
1761
|
+
* QualitySettings allows to configure recognition quality and speed manually.<br>
|
|
1762
|
+
* You can quickly set up QualitySettings by embedded presets: HighPerformance, NormalQuality,<br>
|
|
1763
|
+
* HighQuality, MaxBarCodes or you can manually configure separate options.<br>
|
|
1738
1764
|
* Default value of QualitySettings is NormalQuality.
|
|
1739
1765
|
* @example
|
|
1740
1766
|
* //This sample shows how to use QualitySettings with BarCodeReader
|
|
@@ -1745,12 +1771,14 @@ class BarCodeExtendedParameters extends joint.BaseJavaClass
|
|
|
1745
1771
|
* {
|
|
1746
1772
|
* console.log("BarCode CodeText: " + result.getCodeText());
|
|
1747
1773
|
* });
|
|
1774
|
+
* @example
|
|
1748
1775
|
* let reader = new BarCodeReader("test.png", null, [ DecodeType.CODE_39_STANDARD, DecodeType.CODE_128 ]);
|
|
1749
1776
|
* //normal quality mode is set by default
|
|
1750
1777
|
* reader.readBarCodes().forEach(function(result, i, results)
|
|
1751
1778
|
* {
|
|
1752
1779
|
* console.log("BarCode CodeText: " + result.getCodeText());
|
|
1753
1780
|
* });
|
|
1781
|
+
* @example
|
|
1754
1782
|
* let reader = new BarCodeReader("test.png", null, [ DecodeType.CODE_39_STANDARD, DecodeType.CODE_128 ]);
|
|
1755
1783
|
* //set high quality mode with low speed recognition
|
|
1756
1784
|
* reader.setQualitySettings(QualitySettings.getHighQuality());
|
|
@@ -1758,6 +1786,7 @@ class BarCodeExtendedParameters extends joint.BaseJavaClass
|
|
|
1758
1786
|
* {
|
|
1759
1787
|
* console.log("BarCode CodeText: " + result.getCodeText());
|
|
1760
1788
|
* });
|
|
1789
|
+
* @example
|
|
1761
1790
|
* let reader = new BarCodeReader("test.png", null, [ DecodeType.CODE_39_STANDARD, DecodeType.CODE_128 ]);
|
|
1762
1791
|
* //set max barcodes mode, which tries to find all possible barcodes, even incorrect. The slowest recognition mode
|
|
1763
1792
|
* reader.setQualitySettings(QualitySettings.getMaxBarCodes());
|
|
@@ -1765,6 +1794,7 @@ class BarCodeExtendedParameters extends joint.BaseJavaClass
|
|
|
1765
1794
|
* {
|
|
1766
1795
|
* console.log("BarCode CodeText: " + result.getCodeText());
|
|
1767
1796
|
* });
|
|
1797
|
+
* @example
|
|
1768
1798
|
* let reader = new BarCodeReader("test.png", null, [ DecodeType.CODE_39_STANDARD, DecodeType.CODE_128 ]);
|
|
1769
1799
|
* //set high performance mode
|
|
1770
1800
|
* reader.setQualitySettings(QualitySettings.getHighPerformance());
|
|
@@ -1775,6 +1805,7 @@ class BarCodeExtendedParameters extends joint.BaseJavaClass
|
|
|
1775
1805
|
* {
|
|
1776
1806
|
* console.log("BarCode CodeText: " + result.getCodeText());
|
|
1777
1807
|
* });
|
|
1808
|
+
* @example
|
|
1778
1809
|
* let reader = new BarCodeReader("test.png", null, [ DecodeType.CODE_39_STANDARD, DecodeType.CODE_128 ]);
|
|
1779
1810
|
* //default mode is NormalQuality
|
|
1780
1811
|
* //set separate options
|
|
@@ -1829,7 +1860,6 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
1829
1860
|
* @example
|
|
1830
1861
|
* let reader = new BarCodeReader("test.png");
|
|
1831
1862
|
* reader.setQualitySettings(QualitySettings.getHighPerformance());
|
|
1832
|
-
|
|
1833
1863
|
*/
|
|
1834
1864
|
static getHighPerformance()
|
|
1835
1865
|
{
|
|
@@ -1865,11 +1895,11 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
1865
1895
|
}
|
|
1866
1896
|
|
|
1867
1897
|
/**
|
|
1868
|
-
* MaxQualityDetection recognition quality preset. Same as NormalQuality but with highest quality DetectorSettings
|
|
1898
|
+
* MaxQualityDetection recognition quality preset. Same as NormalQuality but with highest quality DetectorSettings.<br>
|
|
1869
1899
|
* Allows to detect diagonal and damaged barcodes.
|
|
1870
1900
|
*
|
|
1871
1901
|
* @example
|
|
1872
|
-
*let reader = new BarCodeReader("test.png");
|
|
1902
|
+
* let reader = new BarCodeReader("test.png");
|
|
1873
1903
|
* reader.setQualitySettings(QualitySettings.getMaxQualityDetection());
|
|
1874
1904
|
*/
|
|
1875
1905
|
static getMaxQualityDetection()
|
|
@@ -1882,7 +1912,7 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
1882
1912
|
* HighQuality recognition quality preset. This preset is developed for low quality barcodes.
|
|
1883
1913
|
*
|
|
1884
1914
|
* @example
|
|
1885
|
-
*let reader = new BarCodeReader("test.png");
|
|
1915
|
+
* let reader = new BarCodeReader("test.png");
|
|
1886
1916
|
* reader.setQualitySettings(QualitySettings.getHighQuality());
|
|
1887
1917
|
*/
|
|
1888
1918
|
static getHighQuality()
|
|
@@ -1922,7 +1952,7 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
1922
1952
|
}
|
|
1923
1953
|
|
|
1924
1954
|
/**
|
|
1925
|
-
* Allows engine to recognize barcodes which has incorrect checksumm or incorrect values
|
|
1955
|
+
* Allows engine to recognize barcodes which has incorrect checksumm or incorrect values.<br>
|
|
1926
1956
|
* Mode can be used to recognize damaged barcodes with incorrect text.
|
|
1927
1957
|
*/
|
|
1928
1958
|
getAllowIncorrectBarcodes()
|
|
@@ -1931,7 +1961,7 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
1931
1961
|
}
|
|
1932
1962
|
|
|
1933
1963
|
/**
|
|
1934
|
-
* Allows engine to recognize barcodes which has incorrect checksumm or incorrect values
|
|
1964
|
+
* Allows engine to recognize barcodes which has incorrect checksumm or incorrect values.<br>
|
|
1935
1965
|
* Mode can be used to recognize damaged barcodes with incorrect text.
|
|
1936
1966
|
*/
|
|
1937
1967
|
setAllowIncorrectBarcodes(value)
|
|
@@ -2042,7 +2072,7 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2042
2072
|
}
|
|
2043
2073
|
|
|
2044
2074
|
/**
|
|
2045
|
-
* Allows engine to recognize decreased image as additional scan. Size for decreasing is selected by internal engine algorithms
|
|
2075
|
+
* Allows engine to recognize decreased image as additional scan. Size for decreasing is selected by internal engine algorithms.<br>
|
|
2046
2076
|
* Mode helps to recognize barcodes which are noised and blurred but captured with high resolution.
|
|
2047
2077
|
*/
|
|
2048
2078
|
getAllowDecreasedImage()
|
|
@@ -2051,7 +2081,7 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2051
2081
|
}
|
|
2052
2082
|
|
|
2053
2083
|
/**
|
|
2054
|
-
* Allows engine to recognize decreased image as additional scan. Size for decreasing is selected by internal engine algorithms
|
|
2084
|
+
* Allows engine to recognize decreased image as additional scan. Size for decreasing is selected by internal engine algorithms.<br>
|
|
2055
2085
|
* Mode helps to recognize barcodes which are noised and blurred but captured with high resolution.
|
|
2056
2086
|
*/
|
|
2057
2087
|
setAllowDecreasedImage(value)
|
|
@@ -2093,7 +2123,7 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2093
2123
|
}
|
|
2094
2124
|
|
|
2095
2125
|
/**
|
|
2096
|
-
* Allows engine for 1D barcodes to quickly recognize high quality barcodes which fill almost whole image
|
|
2126
|
+
* Allows engine for 1D barcodes to quickly recognize high quality barcodes which fill almost whole image.<br>
|
|
2097
2127
|
* Mode helps to quickly recognize generated barcodes from Internet.
|
|
2098
2128
|
*/
|
|
2099
2129
|
getAllowOneDFastBarcodesDetector()
|
|
@@ -2102,7 +2132,7 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2102
2132
|
}
|
|
2103
2133
|
|
|
2104
2134
|
/**
|
|
2105
|
-
* Allows engine for 1D barcodes to quickly recognize high quality barcodes which fill almost whole image
|
|
2135
|
+
* Allows engine for 1D barcodes to quickly recognize high quality barcodes which fill almost whole image.<br>
|
|
2106
2136
|
* Mode helps to quickly recognize generated barcodes from Internet.
|
|
2107
2137
|
*/
|
|
2108
2138
|
setAllowOneDFastBarcodesDetector(value)
|
|
@@ -2140,7 +2170,7 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2140
2170
|
|
|
2141
2171
|
/**
|
|
2142
2172
|
* Allows engine for Postal barcodes to recognize slightly noised images. Mode helps to recognize sligtly damaged Postal barcodes.
|
|
2143
|
-
|
|
2173
|
+
*/
|
|
2144
2174
|
getAllowMicroWhiteSpotsRemoving()
|
|
2145
2175
|
{
|
|
2146
2176
|
return this.getJavaClass().getAllowMicroWhiteSpotsRemovingSync();
|
|
@@ -2155,7 +2185,7 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2155
2185
|
}
|
|
2156
2186
|
|
|
2157
2187
|
/**
|
|
2158
|
-
* Allows engine for 1D barcodes to quickly recognize middle slice of an image and return result without using any time-consuming algorithms
|
|
2188
|
+
* Allows engine for 1D barcodes to quickly recognize middle slice of an image and return result without using any time-consuming algorithms.<br>
|
|
2159
2189
|
* @return Allows engine for 1D barcodes to quickly recognize high quality barcodes.
|
|
2160
2190
|
*/
|
|
2161
2191
|
getFastScanOnly()
|
|
@@ -2164,7 +2194,7 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2164
2194
|
}
|
|
2165
2195
|
|
|
2166
2196
|
/**
|
|
2167
|
-
* Allows engine for 1D barcodes to quickly recognize middle slice of an image and return result without using any time-consuming algorithms
|
|
2197
|
+
* Allows engine for 1D barcodes to quickly recognize middle slice of an image and return result without using any time-consuming algorithms.<br>
|
|
2168
2198
|
* @param value Allows engine for 1D barcodes to quickly recognize high quality barcodes.
|
|
2169
2199
|
*/
|
|
2170
2200
|
setFastScanOnly(value)
|
|
@@ -2198,14 +2228,14 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2198
2228
|
|
|
2199
2229
|
/**
|
|
2200
2230
|
* Allows engine to use gap between scans to increase recognition speed. Mode can make recognition problems with low height barcodes.
|
|
2201
|
-
|
|
2231
|
+
*/
|
|
2202
2232
|
setAllowDetectScanGap(value)
|
|
2203
2233
|
{
|
|
2204
2234
|
this.getJavaClass().setAllowDetectScanGapSync(value);
|
|
2205
2235
|
}
|
|
2206
2236
|
|
|
2207
2237
|
/**
|
|
2208
|
-
* Allows engine for Datamatrix to recognize dashed industrial Datamatrix barcodes
|
|
2238
|
+
* Allows engine for Datamatrix to recognize dashed industrial Datamatrix barcodes.<br>
|
|
2209
2239
|
* Slow mode which helps only for dashed barcodes which consist from spots.
|
|
2210
2240
|
*/
|
|
2211
2241
|
getAllowDatamatrixIndustrialBarcodes()
|
|
@@ -2214,7 +2244,7 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2214
2244
|
}
|
|
2215
2245
|
|
|
2216
2246
|
/**
|
|
2217
|
-
* Allows engine for Datamatrix to recognize dashed industrial Datamatrix barcodes
|
|
2247
|
+
* Allows engine for Datamatrix to recognize dashed industrial Datamatrix barcodes.<br>
|
|
2218
2248
|
* Slow mode which helps only for dashed barcodes which consist from spots.
|
|
2219
2249
|
*/
|
|
2220
2250
|
setAllowDatamatrixIndustrialBarcodes(value)
|
|
@@ -2224,7 +2254,7 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2224
2254
|
|
|
2225
2255
|
/**
|
|
2226
2256
|
* Allows engine for QR/MicroQR to recognize damaged MicroQR barcodes.
|
|
2227
|
-
|
|
2257
|
+
*/
|
|
2228
2258
|
getAllowQRMicroQrRestoration()
|
|
2229
2259
|
{
|
|
2230
2260
|
return this.getJavaClass().getAllowQRMicroQrRestorationSync();
|
|
@@ -2272,7 +2302,7 @@ class QualitySettings extends joint.BaseJavaClass
|
|
|
2272
2302
|
}
|
|
2273
2303
|
|
|
2274
2304
|
/**
|
|
2275
|
-
* apply all values from Src setting to this
|
|
2305
|
+
* apply all values from Src setting to this<br>
|
|
2276
2306
|
* @param Src source settings
|
|
2277
2307
|
*/
|
|
2278
2308
|
applyAll(Src)
|
|
@@ -2355,7 +2385,7 @@ class Code128DataPortion extends joint.BaseJavaClass
|
|
|
2355
2385
|
}
|
|
2356
2386
|
|
|
2357
2387
|
/**
|
|
2358
|
-
*
|
|
2388
|
+
* Sets the type of Code128 subset
|
|
2359
2389
|
*
|
|
2360
2390
|
* @return The type of Code128 subset
|
|
2361
2391
|
*/
|
|
@@ -2473,7 +2503,7 @@ class AustraliaPostSettings extends joint.BaseJavaClass
|
|
|
2473
2503
|
}
|
|
2474
2504
|
|
|
2475
2505
|
/**
|
|
2476
|
-
* Gets
|
|
2506
|
+
* Gets the Interpreting Type for the Customer Information of AustralianPost BarCode.DEFAULT is CustomerInformationInterpretingType.OTHER.
|
|
2477
2507
|
* @return The interpreting type (CTable, NTable or Other) of customer information for AustralianPost BarCode
|
|
2478
2508
|
*/
|
|
2479
2509
|
getCustomerInformationInterpretingType()
|
|
@@ -2482,7 +2512,7 @@ class AustraliaPostSettings extends joint.BaseJavaClass
|
|
|
2482
2512
|
}
|
|
2483
2513
|
|
|
2484
2514
|
/**
|
|
2485
|
-
*
|
|
2515
|
+
* Sets the Interpreting Type for the Customer Information of AustralianPost BarCode.DEFAULT is CustomerInformationInterpretingType.OTHER.<br>
|
|
2486
2516
|
* @param value The interpreting type (CTable, NTable or Other) of customer information for AustralianPost BarCode
|
|
2487
2517
|
*/
|
|
2488
2518
|
setCustomerInformationInterpretingType(value)
|
|
@@ -2491,7 +2521,7 @@ class AustraliaPostSettings extends joint.BaseJavaClass
|
|
|
2491
2521
|
}
|
|
2492
2522
|
|
|
2493
2523
|
/**
|
|
2494
|
-
* The flag which force AustraliaPost decoder to ignore last filling patterns in Customer Information Field during decoding as CTable method
|
|
2524
|
+
* The flag which force AustraliaPost decoder to ignore last filling patterns in Customer Information Field during decoding as CTable method.<br>
|
|
2495
2525
|
* CTable encoding method does not have any gaps in encoding table and sequnce "333" of filling paterns is decoded as letter "z".
|
|
2496
2526
|
*
|
|
2497
2527
|
* @example
|
|
@@ -2504,8 +2534,8 @@ class AustraliaPostSettings extends joint.BaseJavaClass
|
|
|
2504
2534
|
* reader.getBarcodeSettings().getAustraliaPost().setIgnoreEndingFillingPatternsForCTable(true);
|
|
2505
2535
|
* reader.readBarCodes().forEach(function(result, i, results)
|
|
2506
2536
|
* {
|
|
2507
|
-
* console.log("BarCode Type: "
|
|
2508
|
-
* console.log("BarCode CodeText: "
|
|
2537
|
+
* console.log("BarCode Type: " + result.getCodeType());
|
|
2538
|
+
* console.log("BarCode CodeText: " + result.getCodeText());
|
|
2509
2539
|
* });
|
|
2510
2540
|
*
|
|
2511
2541
|
* @return The flag which force AustraliaPost decoder to ignore last filling patterns during CTable method decoding
|
|
@@ -2515,12 +2545,35 @@ class AustraliaPostSettings extends joint.BaseJavaClass
|
|
|
2515
2545
|
return this.getJavaClass().getIgnoreEndingFillingPatternsForCTableSync();
|
|
2516
2546
|
}
|
|
2517
2547
|
|
|
2548
|
+
/**
|
|
2549
|
+
* The flag which force AustraliaPost decoder to ignore last filling patterns in Customer Information Field during decoding as CTable method.<br>
|
|
2550
|
+
* CTable encoding method does not have any gaps in encoding table and sequnce "333" of filling paterns is decoded as letter "z".
|
|
2551
|
+
*
|
|
2552
|
+
* @example
|
|
2553
|
+
*
|
|
2554
|
+
* let generator = new BarcodeGenerator(EncodeTypes.AUSTRALIA_POST, "5912345678AB");
|
|
2555
|
+
* generator.getParameters().getBarcode().getAustralianPost().setAustralianPostEncodingTable(CustomerInformationInterpretingType.C_TABLE);
|
|
2556
|
+
* let image = generator.generateBarCodeImage(BarcodeImageFormat.PNG);
|
|
2557
|
+
* let reader = new BarCodeReader(image, null, DecodeType.AUSTRALIA_POST);
|
|
2558
|
+
* reader.getBarcodeSettings().getAustraliaPost().setCustomerInformationInterpretingType(CustomerInformationInterpretingType.C_TABLE);
|
|
2559
|
+
* reader.getBarcodeSettings().getAustraliaPost().setIgnoreEndingFillingPatternsForCTable(true);
|
|
2560
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
2561
|
+
* {
|
|
2562
|
+
* console.log("BarCode Type: " + result.getCodeType());
|
|
2563
|
+
* console.log("BarCode CodeText: " + result.getCodeText());
|
|
2564
|
+
* });
|
|
2565
|
+
*
|
|
2566
|
+
* @return The flag which force AustraliaPost decoder to ignore last filling patterns during CTable method decoding
|
|
2567
|
+
*/
|
|
2518
2568
|
setIgnoreEndingFillingPatternsForCTable(value)
|
|
2519
2569
|
{
|
|
2520
2570
|
this.getJavaClass().setIgnoreEndingFillingPatternsForCTableSync(value);
|
|
2521
2571
|
}
|
|
2522
2572
|
}
|
|
2523
2573
|
|
|
2574
|
+
/**
|
|
2575
|
+
* The main BarCode decoding parameters. Contains parameters which make influence on recognized data.
|
|
2576
|
+
*/
|
|
2524
2577
|
class BarcodeSettings extends joint.BaseJavaClass
|
|
2525
2578
|
{
|
|
2526
2579
|
|
|
@@ -2566,11 +2619,11 @@ class BarcodeSettings extends joint.BaseJavaClass
|
|
|
2566
2619
|
}
|
|
2567
2620
|
|
|
2568
2621
|
/**
|
|
2569
|
-
* Enable checksum validation during recognition for 1D and Postal barcodes
|
|
2570
|
-
* Default is treated as Yes for symbologies which must contain checksum, as No where checksum only possible
|
|
2571
|
-
* Checksum never used: Codabar, PatchCode, Pharmacode, DataLogic2of5
|
|
2572
|
-
* Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, ItalianPost25, Matrix2of5, MSI, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN
|
|
2573
|
-
* Checksum always used: Rest symbologies
|
|
2622
|
+
* Enable checksum validation during recognition for 1D and Postal barcodes.<br>
|
|
2623
|
+
* Default is treated as Yes for symbologies which must contain checksum, as No where checksum only possible.<br>
|
|
2624
|
+
* Checksum never used: Codabar, PatchCode, Pharmacode, DataLogic2of5<br>
|
|
2625
|
+
* Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, ItalianPost25, Matrix2of5, MSI, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN<br>
|
|
2626
|
+
* Checksum always used: Rest symbologies<br>
|
|
2574
2627
|
*
|
|
2575
2628
|
* @example
|
|
2576
2629
|
*
|
|
@@ -2581,10 +2634,12 @@ class BarcodeSettings extends joint.BaseJavaClass
|
|
|
2581
2634
|
* reader.getBarcodeSettings().setChecksumValidation(ChecksumValidation.OFF);
|
|
2582
2635
|
* reader.readBarCodes().forEach(function(result, i, results)
|
|
2583
2636
|
* {
|
|
2584
|
-
* console.log ("BarCode CodeText: "
|
|
2637
|
+
* console.log ("BarCode CodeText: " + result.getCodeText());
|
|
2585
2638
|
* console.log ("BarCode Value: " + result.getExtended().getOneD().getValue());
|
|
2586
2639
|
* console.log ("BarCode Checksum: " + result.getExtended().getOneD().getCheckSum());
|
|
2587
2640
|
* });
|
|
2641
|
+
*
|
|
2642
|
+
* @example
|
|
2588
2643
|
* let reader = new BarCodeReader("c:/test.png", DecodeType.EAN_13);
|
|
2589
2644
|
* //checksum enabled
|
|
2590
2645
|
* reader.getBarcodeSettings().setChecksumValidation(ChecksumValidation.ON);
|
|
@@ -2602,11 +2657,11 @@ class BarcodeSettings extends joint.BaseJavaClass
|
|
|
2602
2657
|
}
|
|
2603
2658
|
|
|
2604
2659
|
/**
|
|
2605
|
-
* Enable checksum validation during recognition for 1D and Postal barcodes
|
|
2606
|
-
* Default is treated as Yes for symbologies which must contain checksum, as No where checksum only possible
|
|
2607
|
-
* Checksum never used: Codabar, PatchCode, Pharmacode, DataLogic2of5
|
|
2608
|
-
* Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, ItalianPost25, Matrix2of5, MSI, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN
|
|
2609
|
-
* Checksum always used: Rest symbologies
|
|
2660
|
+
* Enable checksum validation during recognition for 1D and Postal barcodes.<br>
|
|
2661
|
+
* Default is treated as Yes for symbologies which must contain checksum, as No where checksum only possible.<br>
|
|
2662
|
+
* Checksum never used: Codabar, PatchCode, Pharmacode, DataLogic2of5<br>
|
|
2663
|
+
* Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, ItalianPost25, Matrix2of5, MSI, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN<br>
|
|
2664
|
+
* Checksum always used: Rest symbologies<br>
|
|
2610
2665
|
*
|
|
2611
2666
|
* @example
|
|
2612
2667
|
*
|
|
@@ -2617,10 +2672,12 @@ class BarcodeSettings extends joint.BaseJavaClass
|
|
|
2617
2672
|
* reader.getBarcodeSettings().setChecksumValidation(ChecksumValidation.OFF);
|
|
2618
2673
|
* reader.readBarCodes().forEach(function(result, i, results)
|
|
2619
2674
|
* {
|
|
2620
|
-
* console.log ("BarCode CodeText: "
|
|
2675
|
+
* console.log ("BarCode CodeText: " + result.getCodeText());
|
|
2621
2676
|
* console.log ("BarCode Value: " + result.getExtended().getOneD().getValue());
|
|
2622
2677
|
* console.log ("BarCode Checksum: " + result.getExtended().getOneD().getCheckSum());
|
|
2623
2678
|
* });
|
|
2679
|
+
*
|
|
2680
|
+
* @example
|
|
2624
2681
|
* let reader = new BarCodeReader("c:/test.png", DecodeType.EAN_13);
|
|
2625
2682
|
* //checksum enabled
|
|
2626
2683
|
* reader.getBarcodeSettings().setChecksumValidation(ChecksumValidation.ON);
|
|
@@ -2650,16 +2707,17 @@ class BarcodeSettings extends joint.BaseJavaClass
|
|
|
2650
2707
|
* reader.getBarcodeSettings().setStripFNC(false);
|
|
2651
2708
|
* reader.readBarCodes().forEach(function(result, i, results)
|
|
2652
2709
|
* {
|
|
2653
|
-
* console.log ("BarCode CodeText: "
|
|
2710
|
+
* console.log ("BarCode CodeText: " + result.getCodeText());
|
|
2654
2711
|
* });
|
|
2655
2712
|
*
|
|
2713
|
+
* @example
|
|
2656
2714
|
* let reader = new BarCodeReader("c:/test.png", DecodeType.CODE_128);
|
|
2657
2715
|
*
|
|
2658
2716
|
* //StripFNC enabled
|
|
2659
2717
|
* reader.getBarcodeSettings().setStripFNC(true);
|
|
2660
2718
|
* reader.readBarCodes().forEach(function(result, i, results)
|
|
2661
2719
|
* {
|
|
2662
|
-
* console.log ("BarCode CodeText: "
|
|
2720
|
+
* console.log ("BarCode CodeText: " + result.getCodeText());
|
|
2663
2721
|
* });
|
|
2664
2722
|
*
|
|
2665
2723
|
* @return Strip FNC1, FNC2, FNC3 characters from codetext. Default value is false.
|
|
@@ -2682,16 +2740,17 @@ class BarcodeSettings extends joint.BaseJavaClass
|
|
|
2682
2740
|
* reader.getBarcodeSettings().setStripFNC(false);
|
|
2683
2741
|
* reader.readBarCodes().forEach(function(result, i, results)
|
|
2684
2742
|
* {
|
|
2685
|
-
* console.log ("BarCode CodeText: "
|
|
2743
|
+
* console.log ("BarCode CodeText: " + result.getCodeText());
|
|
2686
2744
|
* });
|
|
2687
2745
|
*
|
|
2746
|
+
* @example
|
|
2688
2747
|
* let reader = new BarCodeReader("c:/test.png", DecodeType.CODE_128);
|
|
2689
2748
|
*
|
|
2690
2749
|
* //StripFNC enabled
|
|
2691
2750
|
* reader.getBarcodeSettings().setStripFNC(true);
|
|
2692
2751
|
* reader.readBarCodes().forEach(function(result, i, results)
|
|
2693
2752
|
* {
|
|
2694
|
-
* console.log ("BarCode CodeText: "
|
|
2753
|
+
* console.log ("BarCode CodeText: " + result.getCodeText());
|
|
2695
2754
|
* });
|
|
2696
2755
|
*
|
|
2697
2756
|
* @param value Strip FNC1, FNC2, FNC3 characters from codetext. Default value is false.
|
|
@@ -2714,8 +2773,10 @@ class BarcodeSettings extends joint.BaseJavaClass
|
|
|
2714
2773
|
* reader.getBarcodeSettings().setDetectEncoding(true);
|
|
2715
2774
|
* reader.readBarCodes().forEach(function(result, i, results)
|
|
2716
2775
|
* {
|
|
2717
|
-
* console.log ("BarCode CodeText: "
|
|
2776
|
+
* console.log ("BarCode CodeText: " + result.getCodeText());
|
|
2718
2777
|
* });
|
|
2778
|
+
*
|
|
2779
|
+
* @example
|
|
2719
2780
|
* //detect encoding is disabled
|
|
2720
2781
|
* let reader = new BarCodeReader(im, DecodeType.QR);
|
|
2721
2782
|
* reader.getBarcodeSettings().setDetectEncoding(false);
|
|
@@ -2729,6 +2790,31 @@ class BarcodeSettings extends joint.BaseJavaClass
|
|
|
2729
2790
|
return this.getJavaClass().getDetectEncodingSync();
|
|
2730
2791
|
}
|
|
2731
2792
|
|
|
2793
|
+
/**
|
|
2794
|
+
* The flag which force engine to detect codetext encoding for Unicode codesets. Default value is true.
|
|
2795
|
+
*
|
|
2796
|
+
* @example
|
|
2797
|
+
*
|
|
2798
|
+
* let generator = new BarcodeGenerator(EncodeTypes.QR, "Слово"))
|
|
2799
|
+
* $im = generator.generateBarcodeImage(BarcodeImageFormat.PNG);
|
|
2800
|
+
*
|
|
2801
|
+
* //detects encoding for Unicode codesets is enabled
|
|
2802
|
+
* let reader = new BarCodeReader(im, DecodeType.QR);
|
|
2803
|
+
* reader.getBarcodeSettings().setDetectEncoding(true);
|
|
2804
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
2805
|
+
* {
|
|
2806
|
+
* console.log ("BarCode CodeText: " + result.getCodeText());
|
|
2807
|
+
* });
|
|
2808
|
+
*
|
|
2809
|
+
* @example
|
|
2810
|
+
* //detect encoding is disabled
|
|
2811
|
+
* let reader = new BarCodeReader(im, DecodeType.QR);
|
|
2812
|
+
* reader.getBarcodeSettings().setDetectEncoding(false);
|
|
2813
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
2814
|
+
* console.log ("BarCode CodeText: " + result.getCodeText());
|
|
2815
|
+
*
|
|
2816
|
+
* @return The flag which force engine to detect codetext encoding for Unicode codesets
|
|
2817
|
+
*/
|
|
2732
2818
|
setDetectEncoding(value)
|
|
2733
2819
|
{
|
|
2734
2820
|
this.getJavaClass().setDetectEncodingSync(value);
|
|
@@ -2744,6 +2830,9 @@ class BarcodeSettings extends joint.BaseJavaClass
|
|
|
2744
2830
|
}
|
|
2745
2831
|
}
|
|
2746
2832
|
|
|
2833
|
+
/**
|
|
2834
|
+
* Represents recognition abort exception which is thrown in timeout exceeding during recognition with BarCodeReader.
|
|
2835
|
+
*/
|
|
2747
2836
|
class RecognitionAbortedException extends Error
|
|
2748
2837
|
{
|
|
2749
2838
|
javaClass;
|
|
@@ -2883,7 +2972,7 @@ class MaxiCodeExtendedParameters extends joint.BaseJavaClass
|
|
|
2883
2972
|
*/
|
|
2884
2973
|
equals(obj)
|
|
2885
2974
|
{
|
|
2886
|
-
return this.getJavaClass().equalsSync(obj);
|
|
2975
|
+
return this.getJavaClass().equalsSync(obj.getJavaClass());
|
|
2887
2976
|
}
|
|
2888
2977
|
|
|
2889
2978
|
/**
|
|
@@ -2908,26 +2997,21 @@ class MaxiCodeExtendedParameters extends joint.BaseJavaClass
|
|
|
2908
2997
|
/**
|
|
2909
2998
|
* <p>
|
|
2910
2999
|
* Stores special data of DotCode recognized barcode
|
|
2911
|
-
* </p
|
|
2912
|
-
* This sample shows how to get DotCode raw values
|
|
2913
|
-
* <pre>
|
|
3000
|
+
* </p>
|
|
3001
|
+
* This sample shows how to get DotCode raw values<br>
|
|
2914
3002
|
*
|
|
3003
|
+
* @example
|
|
2915
3004
|
* let generator = new BarcodeGenerator(EncodeTypes.DOT_CODE, "12345");
|
|
2916
|
-
*
|
|
2917
|
-
*
|
|
2918
|
-
* }
|
|
3005
|
+
* generator.save("c:\\test.png", BarCodeImageFormat.PNG);
|
|
3006
|
+
*
|
|
2919
3007
|
* let reader = new BarCodeReader("c:\\test.png", null, DecodeType.DOT_CODE);
|
|
3008
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
2920
3009
|
* {
|
|
2921
|
-
*
|
|
2922
|
-
*
|
|
2923
|
-
*
|
|
2924
|
-
*
|
|
2925
|
-
*
|
|
2926
|
-
* print("DotCode barcodes count: " + result.getExtended().getDotCode().getDotCodeStructuredAppendModeBarcodesCount());
|
|
2927
|
-
* });
|
|
2928
|
-
* }
|
|
2929
|
-
* </pre>
|
|
2930
|
-
* </pre></blockquote></hr></p>
|
|
3010
|
+
* print("BarCode type: " + result.getCodeTypeName());
|
|
3011
|
+
* print("BarCode codetext: " + result.getCodeText());
|
|
3012
|
+
* print("DotCode barcode ID: " + result.getExtended().getDotCode().getDotCodeStructuredAppendModeBarcodeId());
|
|
3013
|
+
* print("DotCode barcodes count: " + result.getExtended().getDotCode().getDotCodeStructuredAppendModeBarcodesCount());
|
|
3014
|
+
* });
|
|
2931
3015
|
*/
|
|
2932
3016
|
class DotCodeExtendedParameters extends joint.BaseJavaClass
|
|
2933
3017
|
{
|
|
@@ -2997,8 +3081,112 @@ class DotCodeExtendedParameters extends joint.BaseJavaClass
|
|
|
2997
3081
|
}
|
|
2998
3082
|
}
|
|
2999
3083
|
|
|
3084
|
+
/**
|
|
3085
|
+
* <p>
|
|
3086
|
+
* Stores special data of DataMatrix recognized barcode
|
|
3087
|
+
* </p><p><hr><blockquote><pre>
|
|
3088
|
+
* This sample shows how to get DataMatrix raw values
|
|
3089
|
+
* <pre>
|
|
3090
|
+
* let generator = new BarcodeGenerator(EncodeTypes.DATA_MATRIX, "12345"))
|
|
3091
|
+
* generator.save("c:\\test.png", BarcodeImageFormat.PNG);
|
|
3092
|
+
*
|
|
3093
|
+
* let reader = new BarCodeReader("c:\\test.png", null, DecodeType.DATA_MATRIX))
|
|
3094
|
+
* reader.readBarCodes().forEach(function(result, i, results)
|
|
3095
|
+
* {
|
|
3096
|
+
* console.log("BarCode type: " + result.getCodeTypeName());
|
|
3097
|
+
* console.log("BarCode codetext: " + result.getCodeText());
|
|
3098
|
+
* console.log("DataMatrix barcode ID: " + result.getExtended().getDataMatrix().getStructuredAppendBarcodeId());
|
|
3099
|
+
* console.log("DataMatrix barcodes count: " + result.getExtended().getDataMatrix().getStructuredAppendBarcodesCount());
|
|
3100
|
+
* console.log("DataMatrix file ID: " + result.getExtended().getDataMatrix().getStructuredAppendFileId());
|
|
3101
|
+
* console.log("DataMatrix is reader programming: " + result.getExtended().getDataMatrix().isReaderProgramming());
|
|
3102
|
+
* });
|
|
3103
|
+
* </pre>
|
|
3104
|
+
* </pre></blockquote></hr></p>
|
|
3105
|
+
*/
|
|
3106
|
+
class DataMatrixExtendedParameters extends joint.BaseJavaClass
|
|
3107
|
+
{
|
|
3108
|
+
constructor(javaClass)
|
|
3109
|
+
{
|
|
3110
|
+
super(javaClass);
|
|
3111
|
+
}
|
|
3112
|
+
|
|
3113
|
+
init()
|
|
3114
|
+
{
|
|
3115
|
+
}
|
|
3116
|
+
|
|
3117
|
+
/**
|
|
3118
|
+
* <p>Gets the DataMatrix structured append mode barcodes count. Default value is -1. Count must be a value from 1 to 35.</p>Value: The count of the DataMatrix structured append mode barcode.
|
|
3119
|
+
*/
|
|
3120
|
+
getStructuredAppendBarcodesCount()
|
|
3121
|
+
{
|
|
3122
|
+
return this.getJavaClass().getStructuredAppendBarcodesCountSync();
|
|
3123
|
+
}
|
|
3124
|
+
|
|
3125
|
+
/**
|
|
3126
|
+
* <p>Gets the ID of the DataMatrix structured append mode barcode. ID starts from 1 and must be less or equal to barcodes count. Default value is -1.</p>Value: The ID of the DataMatrix structured append mode barcode.
|
|
3127
|
+
*/
|
|
3128
|
+
getStructuredAppendBarcodeId()
|
|
3129
|
+
{
|
|
3130
|
+
return this.getJavaClass().getStructuredAppendBarcodeIdSync();
|
|
3131
|
+
}
|
|
3132
|
+
|
|
3133
|
+
/**
|
|
3134
|
+
* <p>Gets the ID of the DataMatrix structured append mode barcode. ID starts from 1 and must be less or equal to barcodes count. Default value is -1.</p>Value: The ID of the DataMatrix structured append mode barcode.
|
|
3135
|
+
*/
|
|
3136
|
+
getStructuredAppendFileId()
|
|
3137
|
+
{
|
|
3138
|
+
return this.getJavaClass().getStructuredAppendFileIdSync();
|
|
3139
|
+
}
|
|
3140
|
+
|
|
3141
|
+
/**
|
|
3142
|
+
* <p>
|
|
3143
|
+
* Indicates whether code is used for instruct reader to interpret the following data as instructions for initialization or reprogramming of the bar code reader.
|
|
3144
|
+
* Default value is false.
|
|
3145
|
+
* </p>
|
|
3146
|
+
*/
|
|
3147
|
+
isReaderProgramming()
|
|
3148
|
+
{
|
|
3149
|
+
return this.getJavaClass().isReaderProgrammingSync();
|
|
3150
|
+
}
|
|
3151
|
+
|
|
3152
|
+
/**
|
|
3153
|
+
* <p>
|
|
3154
|
+
* Returns a value indicating whether this instance is equal to a specified {@code DataMatrixExtendedParameters} value.
|
|
3155
|
+
* </p>
|
|
3156
|
+
* @return {@code <b>true</b>} if obj has the same value as this instance; otherwise, {@code <b>false</b>}.
|
|
3157
|
+
* @param obj An System.Object value to compare to this instance.
|
|
3158
|
+
*/
|
|
3159
|
+
equals(obj)
|
|
3160
|
+
{
|
|
3161
|
+
return this.getJavaClass().equalsSync(obj.getJavaClass());
|
|
3162
|
+
}
|
|
3163
|
+
|
|
3164
|
+
/**
|
|
3165
|
+
* <p>
|
|
3166
|
+
* Returns the hash code for this instance.
|
|
3167
|
+
* </p>
|
|
3168
|
+
* @return A 32-bit signed integer hash code.
|
|
3169
|
+
*/
|
|
3170
|
+
hashCode()
|
|
3171
|
+
{
|
|
3172
|
+
return this.getJavaClass().hashCodeSync();
|
|
3173
|
+
}
|
|
3174
|
+
|
|
3175
|
+
/**
|
|
3176
|
+
* <p>
|
|
3177
|
+
* Returns a human-readable string representation of this {@code DataMatrixExtendedParameters}.
|
|
3178
|
+
* </p>
|
|
3179
|
+
* @return A string that represents this {@code DataMatrixExtendedParameters}.
|
|
3180
|
+
*/
|
|
3181
|
+
toString()
|
|
3182
|
+
{
|
|
3183
|
+
return this.getJavaClass().toStringSync();
|
|
3184
|
+
}
|
|
3185
|
+
}
|
|
3186
|
+
|
|
3000
3187
|
/**
|
|
3001
3188
|
* Specify the type of barcode to read.
|
|
3189
|
+
*
|
|
3002
3190
|
* @example
|
|
3003
3191
|
* //This sample shows how to detect Code39 and Code128 barcodes.
|
|
3004
3192
|
* let reader = new BarCodeReader("test.png", null, [ DecodeType.CODE_39_STANDARD, DecodeType.CODE_128 ]);
|
|
@@ -3011,7 +3199,7 @@ class DotCodeExtendedParameters extends joint.BaseJavaClass
|
|
|
3011
3199
|
* @enum
|
|
3012
3200
|
*/
|
|
3013
3201
|
DecodeType =
|
|
3014
|
-
{
|
|
3202
|
+
{
|
|
3015
3203
|
/**
|
|
3016
3204
|
* Unspecified decode type.
|
|
3017
3205
|
*/
|
|
@@ -3428,6 +3616,16 @@ DecodeType =
|
|
|
3428
3616
|
*/
|
|
3429
3617
|
HIBCQRPAS: 76,
|
|
3430
3618
|
|
|
3619
|
+
/**
|
|
3620
|
+
* Specifies that the data should be decoded with <b>Han Xin Code</b> blank specification
|
|
3621
|
+
*/
|
|
3622
|
+
HAN_XIN: 78,
|
|
3623
|
+
|
|
3624
|
+
/**
|
|
3625
|
+
* Specifies that the data should be decoded with <b>Han Xin Code</b> blank specification
|
|
3626
|
+
*/
|
|
3627
|
+
GS_1_HAN_XIN: 79,
|
|
3628
|
+
|
|
3431
3629
|
/**
|
|
3432
3630
|
* Specifies that data will be checked with all of 1D barcode symbologies
|
|
3433
3631
|
*/
|
|
@@ -3496,6 +3694,7 @@ DecodeType =
|
|
|
3496
3694
|
};
|
|
3497
3695
|
|
|
3498
3696
|
/**
|
|
3697
|
+
* Contains types of Code128 subset
|
|
3499
3698
|
* @enum
|
|
3500
3699
|
*/
|
|
3501
3700
|
Code128SubType =
|
|
@@ -3562,7 +3761,7 @@ CustomerInformationInterpretingType =
|
|
|
3562
3761
|
/**
|
|
3563
3762
|
* Use C_TABLE to interpret the customer information. Allows A..Z, a..z, 1..9, space and # sing.
|
|
3564
3763
|
*
|
|
3565
|
-
* @
|
|
3764
|
+
* @example
|
|
3566
3765
|
* let generator = new BarcodeGenerator(EncodeTypes.AUSTRALIA_POST, "5912345678ABCde");
|
|
3567
3766
|
* generator.getParameters().getBarcode().getAustralianPost().setAustralianPostEncodingTable(CustomerInformationInterpretingType.C_TABLE);
|
|
3568
3767
|
* let image = generator.generateBarcodeImage(BarcodeImageFormat.PNG);
|
|
@@ -3573,14 +3772,13 @@ CustomerInformationInterpretingType =
|
|
|
3573
3772
|
* console.log("BarCode Type: " + result.getCodeType());
|
|
3574
3773
|
* console.log("BarCode CodeText: " + result.getCodeText());
|
|
3575
3774
|
* });
|
|
3576
|
-
* @endcode
|
|
3577
3775
|
*/
|
|
3578
3776
|
C_TABLE: 0,
|
|
3579
3777
|
|
|
3580
3778
|
/**
|
|
3581
3779
|
* Use N_TABLE to interpret the customer information. Allows digits.
|
|
3582
3780
|
*
|
|
3583
|
-
* @
|
|
3781
|
+
* @example
|
|
3584
3782
|
* let generator = new BarcodeGenerator(EncodeTypes.AUSTRALIA_POST, "59123456781234567");
|
|
3585
3783
|
* generator.getParameters().getBarcode().getAustralianPost().setAustralianPostEncodingTable(CustomerInformationInterpretingType.N_TABLE);
|
|
3586
3784
|
* let image = generator.generateBarcodeImage(BarcodeImageFormat.PNG);
|
|
@@ -3613,7 +3811,8 @@ CustomerInformationInterpretingType =
|
|
|
3613
3811
|
|
|
3614
3812
|
/**
|
|
3615
3813
|
* Contains recognition confidence level
|
|
3616
|
-
|
|
3814
|
+
*
|
|
3815
|
+
* @example
|
|
3617
3816
|
* //This sample shows how BarCodeConfidence changed, depending on barcode type
|
|
3618
3817
|
* //Moderate confidence
|
|
3619
3818
|
* let generator = new BarcodeGenerator(EncodeTypes.CODE_128, "12345");
|
|
@@ -3626,6 +3825,8 @@ CustomerInformationInterpretingType =
|
|
|
3626
3825
|
* console.log("BarCode Confidence: " + result.getConfidence());
|
|
3627
3826
|
* console.log("BarCode ReadingQuality: " + result.getReadingQuality());
|
|
3628
3827
|
* });
|
|
3828
|
+
*
|
|
3829
|
+
* @example
|
|
3629
3830
|
* //Strong confidence
|
|
3630
3831
|
* let generator = new BarcodeGenerator(EncodeTypes.QR, "12345");
|
|
3631
3832
|
* generator.save("test.png");
|
|
@@ -3648,7 +3849,7 @@ BarCodeConfidence =
|
|
|
3648
3849
|
NONE: 0,
|
|
3649
3850
|
|
|
3650
3851
|
/**
|
|
3651
|
-
* Recognition confidence of barcode (mostly 1D barcodes) with weak checksumm or even without it. Could contains some misrecognitions in codetext
|
|
3852
|
+
* Recognition confidence of barcode (mostly 1D barcodes) with weak checksumm or even without it. Could contains some misrecognitions in codetext<br>
|
|
3652
3853
|
* or even fake recognitions if is low
|
|
3653
3854
|
*
|
|
3654
3855
|
* @see BarCodeResult.ReadingQuality
|
|
@@ -3682,5 +3883,6 @@ module.exports = {
|
|
|
3682
3883
|
BarcodeSettings,
|
|
3683
3884
|
CustomerInformationInterpretingType,
|
|
3684
3885
|
RecognitionAbortedException,
|
|
3685
|
-
DotCodeExtendedParameters
|
|
3886
|
+
DotCodeExtendedParameters,
|
|
3887
|
+
DataMatrixExtendedParameters
|
|
3686
3888
|
};
|