Skip to content

Commit aa561da

Browse files
authored
Added AllowAdditionalRestorations flag to reader params (#74)
Added DataMatrixVersion enum and DataMatrixVersion param into DataMatrixParams
1 parent bb5f562 commit aa561da

8 files changed

Lines changed: 1286 additions & 631 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ github-ci: init lint test
66

77
.PHONY: init
88
init:
9-
-npm clean-install
9+
npm clean-install
1010

1111
.PHONY: format
1212
format:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![npm](https://img.shields.io/npm/v/aspose-barcode-cloud-node)](https://www.npmjs.com/package/aspose-barcode-cloud-node)
66

77
+ API version: 3.0
8-
+ Package version: 23.7.0
8+
+ Package version: 23.8.0
99

1010
## Demo applications
1111

docs/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ Name | Type | Description | Notes
9797
**allowWhiteSpotsRemoving** | **boolean**| Allows engine to recognize image without small white spots as additional scan. Mode helps to recognize noised image as well as median smoothing filtering. | [optional]
9898
**checkMore1DVariants** | **boolean**| Allows engine to recognize 1D barcodes with checksum by checking more recognition variants. Default value: False. | [optional]
9999
**fastScanOnly** | **boolean**| Allows engine for 1D barcodes to quickly recognize middle slice of an image and return result without using any time-consuming algorithms. Default value: False. | [optional]
100+
**allowAdditionalRestorations** | **boolean**| Allows engine using additional image restorations to recognize corrupted barcodes. At this time, it is used only in MicroPdf417 barcode type. Default value: False. | [optional]
100101
**regionLikelihoodThresholdPercent** | **number**| Sets threshold for detected regions that may contain barcodes. Value 0.7 means that bottom 70% of possible regions are filtered out and not processed further. Region likelihood threshold must be between [0.05, 0.9] Use high values for clear images with few barcodes. Use low values for images with many barcodes or for noisy images. Low value may lead to a bigger recognition time. | [optional]
101102
**scanWindowSizes** | **Array<number>**| Scan window sizes in pixels. Allowed sizes are 10, 15, 20, 25, 30. Scanning with small window size takes more time and provides more accuracy but may fail in detecting very big barcodes. Combining of several window sizes can improve detection quality. | [optional]
102103
**similarity** | **number**| Similarity coefficient depends on how homogeneous barcodes are. Use high value for for clear barcodes. Use low values to detect barcodes that ara partly damaged or not lighten evenly. Similarity coefficient must be between [0.5, 0.9] | [optional]
@@ -152,6 +153,7 @@ Name | Type | Description | Notes
152153
**allowWhiteSpotsRemoving** | **boolean**| Allows engine to recognize image without small white spots as additional scan. Mode helps to recognize noised image as well as median smoothing filtering. | [optional]
153154
**checkMore1DVariants** | **boolean**| Allows engine to recognize 1D barcodes with checksum by checking more recognition variants. Default value: False. | [optional]
154155
**fastScanOnly** | **boolean**| Allows engine for 1D barcodes to quickly recognize middle slice of an image and return result without using any time-consuming algorithms. Default value: False. | [optional]
156+
**allowAdditionalRestorations** | **boolean**| Allows engine using additional image restorations to recognize corrupted barcodes. At this time, it is used only in MicroPdf417 barcode type. Default value: False. | [optional]
155157
**regionLikelihoodThresholdPercent** | **number**| Sets threshold for detected regions that may contain barcodes. Value 0.7 means that bottom 70% of possible regions are filtered out and not processed further. Region likelihood threshold must be between [0.05, 0.9] Use high values for clear images with few barcodes. Use low values for images with many barcodes or for noisy images. Low value may lead to a bigger recognition time. | [optional]
156158
**scanWindowSizes** | **Array<number>**| Scan window sizes in pixels. Allowed sizes are 10, 15, 20, 25, 30. Scanning with small window size takes more time and provides more accuracy but may fail in detecting very big barcodes. Combining of several window sizes can improve detection quality. | [optional]
157159
**similarity** | **number**| Similarity coefficient depends on how homogeneous barcodes are. Use high value for for clear barcodes. Use low values to detect barcodes that ara partly damaged or not lighten evenly. Similarity coefficient must be between [0.5, 0.9] | [optional]

docs/models.md

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,91 @@ interface DataMatrixParams {
504504
* Macro Characters 05 and 06 values are used to obtain more compact encoding in special modes. Can be used only with DataMatrixEccType.Ecc200 or DataMatrixEccType.EccAuto. Cannot be used with EncodeTypes.GS1DataMatrix Default value: MacroCharacters.None.
505505
*/
506506
macroCharacters?: MacroCharacter;
507+
508+
/**
509+
* Sets a Datamatrix symbol size. Default value: DataMatrixVersion.Auto.
510+
*/
511+
version?: DataMatrixVersion;
512+
}
513+
```
514+
515+
## DataMatrixVersion
516+
517+
518+
519+
```ts
520+
enum DataMatrixVersion {
521+
Auto = 'Auto',
522+
RowsColumns = 'RowsColumns',
523+
ECC0009x9 = 'ECC000_9x9',
524+
ECC00005011x11 = 'ECC000_050_11x11',
525+
ECC00010013x13 = 'ECC000_100_13x13',
526+
ECC00010015x15 = 'ECC000_100_15x15',
527+
ECC00014017x17 = 'ECC000_140_17x17',
528+
ECC00014019x19 = 'ECC000_140_19x19',
529+
ECC00014021x21 = 'ECC000_140_21x21',
530+
ECC00014023x23 = 'ECC000_140_23x23',
531+
ECC00014025x25 = 'ECC000_140_25x25',
532+
ECC00014027x27 = 'ECC000_140_27x27',
533+
ECC00014029x29 = 'ECC000_140_29x29',
534+
ECC00014031x31 = 'ECC000_140_31x31',
535+
ECC00014033x33 = 'ECC000_140_33x33',
536+
ECC00014035x35 = 'ECC000_140_35x35',
537+
ECC00014037x37 = 'ECC000_140_37x37',
538+
ECC00014039x39 = 'ECC000_140_39x39',
539+
ECC00014041x41 = 'ECC000_140_41x41',
540+
ECC00014043x43 = 'ECC000_140_43x43',
541+
ECC00014045x45 = 'ECC000_140_45x45',
542+
ECC00014047x47 = 'ECC000_140_47x47',
543+
ECC00014049x49 = 'ECC000_140_49x49',
544+
ECC20010x10 = 'ECC200_10x10',
545+
ECC20012x12 = 'ECC200_12x12',
546+
ECC20014x14 = 'ECC200_14x14',
547+
ECC20016x16 = 'ECC200_16x16',
548+
ECC20018x18 = 'ECC200_18x18',
549+
ECC20020x20 = 'ECC200_20x20',
550+
ECC20022x22 = 'ECC200_22x22',
551+
ECC20024x24 = 'ECC200_24x24',
552+
ECC20026x26 = 'ECC200_26x26',
553+
ECC20032x32 = 'ECC200_32x32',
554+
ECC20036x36 = 'ECC200_36x36',
555+
ECC20040x40 = 'ECC200_40x40',
556+
ECC20044x44 = 'ECC200_44x44',
557+
ECC20048x48 = 'ECC200_48x48',
558+
ECC20052x52 = 'ECC200_52x52',
559+
ECC20064x64 = 'ECC200_64x64',
560+
ECC20072x72 = 'ECC200_72x72',
561+
ECC20080x80 = 'ECC200_80x80',
562+
ECC20088x88 = 'ECC200_88x88',
563+
ECC20096x96 = 'ECC200_96x96',
564+
ECC200104x104 = 'ECC200_104x104',
565+
ECC200120x120 = 'ECC200_120x120',
566+
ECC200132x132 = 'ECC200_132x132',
567+
ECC200144x144 = 'ECC200_144x144',
568+
ECC2008x18 = 'ECC200_8x18',
569+
ECC2008x32 = 'ECC200_8x32',
570+
ECC20012x26 = 'ECC200_12x26',
571+
ECC20012x36 = 'ECC200_12x36',
572+
ECC20016x36 = 'ECC200_16x36',
573+
ECC20016x48 = 'ECC200_16x48',
574+
DMRE8x48 = 'DMRE_8x48',
575+
DMRE8x64 = 'DMRE_8x64',
576+
DMRE8x80 = 'DMRE_8x80',
577+
DMRE8x96 = 'DMRE_8x96',
578+
DMRE8x120 = 'DMRE_8x120',
579+
DMRE8x144 = 'DMRE_8x144',
580+
DMRE12x64 = 'DMRE_12x64',
581+
DMRE12x88 = 'DMRE_12x88',
582+
DMRE16x64 = 'DMRE_16x64',
583+
DMRE20x36 = 'DMRE_20x36',
584+
DMRE20x44 = 'DMRE_20x44',
585+
DMRE20x64 = 'DMRE_20x64',
586+
DMRE22x48 = 'DMRE_22x48',
587+
DMRE24x48 = 'DMRE_24x48',
588+
DMRE24x64 = 'DMRE_24x64',
589+
DMRE26x40 = 'DMRE_26x40',
590+
DMRE26x48 = 'DMRE_26x48',
591+
DMRE26x64 = 'DMRE_26x64'
507592
}
508593
```
509594

@@ -2054,6 +2139,11 @@ interface ReaderParams {
20542139
*/
20552140
fastScanOnly?: boolean;
20562141

2142+
/**
2143+
* Allows engine using additional image restorations to recognize corrupted barcodes. At this time, it is used only in MicroPdf417 barcode type. Default value: False.
2144+
*/
2145+
allowAdditionalRestorations?: boolean;
2146+
20572147
/**
20582148
* Sets threshold for detected regions that may contain barcodes. Value 0.7 means that bottom 70% of possible regions are filtered out and not processed further. Region likelihood threshold must be between [0.05, 0.9] Use high values for clear images with few barcodes. Use low values for images with many barcodes or for noisy images. Low value may lead to a bigger recognition time.
20592149
*/

0 commit comments

Comments
 (0)