diff --git a/README.md b/README.md
index 85732fd..4a1c5c9 100644
--- a/README.md
+++ b/README.md
@@ -5,7 +5,7 @@
[![Maven metadata URL](https://img.shields.io/maven-metadata/v?metadataUrl=https%3A%2F%2Freleases.aspose.cloud%2Fjava%2Frepo%2Fcom%2Faspose%2Faspose-barcode-cloud%2Fmaven-metadata.xml)](https://releases.aspose.cloud/java/repo/com/aspose/aspose-barcode-cloud/)
- API version: 3.0
-- SDK version: 23.7.0
+- SDK version: 23.8.0
## Demo applications
@@ -68,7 +68,7 @@ Add this dependency to your project's POM:
com.aspose
aspose-barcode-cloud
- 23.7.0
+ 23.8.0
compile
```
@@ -83,7 +83,7 @@ mvn clean package
Then manually install the following JARs:
-- `target/aspose-barcode-cloud-23.7.0.jar`
+- `target/aspose-barcode-cloud-23.8.0.jar`
- `target/lib/*.jar`
## Getting Started
@@ -213,6 +213,7 @@ Class | Method | HTTP request | Description
- [DataMatrixEccType](docs/DataMatrixEccType.md)
- [DataMatrixEncodeMode](docs/DataMatrixEncodeMode.md)
- [DataMatrixParams](docs/DataMatrixParams.md)
+- [DataMatrixVersion](docs/DataMatrixVersion.md)
- [DecodeBarcodeType](docs/DecodeBarcodeType.md)
- [DiscUsage](docs/DiscUsage.md)
- [DotCodeEncodeMode](docs/DotCodeEncodeMode.md)
diff --git a/docs/BarcodeApi.md b/docs/BarcodeApi.md
index 9fb59fd..ad2b069 100644
--- a/docs/BarcodeApi.md
+++ b/docs/BarcodeApi.md
@@ -98,7 +98,7 @@ Name | Type | Description | Notes
## getBarcodeRecognize
-> BarcodeResponseList getBarcodeRecognize(name, type, checksumValidation, detectEncoding, preset, rectX, rectY, rectWidth, rectHeight, stripFNC, timeout, medianSmoothingWindowSize, allowMedianSmoothing, allowComplexBackground, allowDatamatrixIndustrialBarcodes, allowDecreasedImage, allowDetectScanGap, allowIncorrectBarcodes, allowInvertImage, allowMicroWhiteSpotsRemoving, allowOneDFastBarcodesDetector, allowOneDWipedBarsRestoration, allowQRMicroQrRestoration, allowRegularImage, allowSaltAndPepperFiltering, allowWhiteSpotsRemoving, checkMore1DVariants, fastScanOnly, regionLikelihoodThresholdPercent, scanWindowSizes, similarity, skipDiagonalSearch, readTinyBarcodes, australianPostEncodingTable, ignoreEndingFillingPatternsForCTable, storage, folder)
+> BarcodeResponseList getBarcodeRecognize(name, type, checksumValidation, detectEncoding, preset, rectX, rectY, rectWidth, rectHeight, stripFNC, timeout, medianSmoothingWindowSize, allowMedianSmoothing, allowComplexBackground, allowDatamatrixIndustrialBarcodes, allowDecreasedImage, allowDetectScanGap, allowIncorrectBarcodes, allowInvertImage, allowMicroWhiteSpotsRemoving, allowOneDFastBarcodesDetector, allowOneDWipedBarsRestoration, allowQRMicroQrRestoration, allowRegularImage, allowSaltAndPepperFiltering, allowWhiteSpotsRemoving, checkMore1DVariants, fastScanOnly, allowAdditionalRestorations, regionLikelihoodThresholdPercent, scanWindowSizes, similarity, skipDiagonalSearch, readTinyBarcodes, australianPostEncodingTable, ignoreEndingFillingPatternsForCTable, storage, folder)
Recognize barcode from a file on server.
@@ -166,6 +166,7 @@ Name | Type | Description | Notes
**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]
**checkMore1DVariants** | **Boolean**| Allows engine to recognize 1D barcodes with checksum by checking more recognition variants. Default value: False. | [optional]
**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]
+ **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]
**regionLikelihoodThresholdPercent** | **Double**| 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]
**scanWindowSizes** | **List<Integer>**| 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]
**similarity** | **Double**| 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]
@@ -182,7 +183,7 @@ Name | Type | Description | Notes
## postBarcodeRecognizeFromUrlOrContent
-> BarcodeResponseList postBarcodeRecognizeFromUrlOrContent(type, checksumValidation, detectEncoding, preset, rectX, rectY, rectWidth, rectHeight, stripFNC, timeout, medianSmoothingWindowSize, allowMedianSmoothing, allowComplexBackground, allowDatamatrixIndustrialBarcodes, allowDecreasedImage, allowDetectScanGap, allowIncorrectBarcodes, allowInvertImage, allowMicroWhiteSpotsRemoving, allowOneDFastBarcodesDetector, allowOneDWipedBarsRestoration, allowQRMicroQrRestoration, allowRegularImage, allowSaltAndPepperFiltering, allowWhiteSpotsRemoving, checkMore1DVariants, fastScanOnly, regionLikelihoodThresholdPercent, scanWindowSizes, similarity, skipDiagonalSearch, readTinyBarcodes, australianPostEncodingTable, ignoreEndingFillingPatternsForCTable, url, image)
+> BarcodeResponseList postBarcodeRecognizeFromUrlOrContent(type, checksumValidation, detectEncoding, preset, rectX, rectY, rectWidth, rectHeight, stripFNC, timeout, medianSmoothingWindowSize, allowMedianSmoothing, allowComplexBackground, allowDatamatrixIndustrialBarcodes, allowDecreasedImage, allowDetectScanGap, allowIncorrectBarcodes, allowInvertImage, allowMicroWhiteSpotsRemoving, allowOneDFastBarcodesDetector, allowOneDWipedBarsRestoration, allowQRMicroQrRestoration, allowRegularImage, allowSaltAndPepperFiltering, allowWhiteSpotsRemoving, checkMore1DVariants, fastScanOnly, allowAdditionalRestorations, regionLikelihoodThresholdPercent, scanWindowSizes, similarity, skipDiagonalSearch, readTinyBarcodes, australianPostEncodingTable, ignoreEndingFillingPatternsForCTable, url, image)
Recognize barcode from an url or from request body. Request body can contain raw data bytes of the image with content-type \"application/octet-stream\". An image can also be passed as a form field.
@@ -248,6 +249,7 @@ Name | Type | Description | Notes
**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]
**checkMore1DVariants** | **Boolean**| Allows engine to recognize 1D barcodes with checksum by checking more recognition variants. Default value: False. | [optional]
**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]
+ **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]
**regionLikelihoodThresholdPercent** | **Double**| 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]
**scanWindowSizes** | **List<Integer>**| 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]
**similarity** | **Double**| 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]
diff --git a/docs/DataMatrixParams.md b/docs/DataMatrixParams.md
index bcd3976..95a526c 100644
--- a/docs/DataMatrixParams.md
+++ b/docs/DataMatrixParams.md
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
**dataMatrixEncodeMode** | [**DataMatrixEncodeMode**](DataMatrixEncodeMode.md) | Encode mode of Datamatrix barcode. Default value: DataMatrixEncodeMode.Auto. | [optional]
**rows** | **Integer** | DEPRECATED: Will be replaced with 'DataMatrix.Version' in the next release Rows count. | [optional]
**macroCharacters** | [**MacroCharacter**](MacroCharacter.md) | 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. | [optional]
+**version** | [**DataMatrixVersion**](DataMatrixVersion.md) | Sets a Datamatrix symbol size. Default value: DataMatrixVersion.Auto. | [optional]
diff --git a/docs/DataMatrixVersion.md b/docs/DataMatrixVersion.md
new file mode 100644
index 0000000..5027a19
--- /dev/null
+++ b/docs/DataMatrixVersion.md
@@ -0,0 +1,150 @@
+
+# DataMatrixVersion
+
+## Enum
+
+
+* `AUTO` (value: `"Auto"`)
+
+* `ROWSCOLUMNS` (value: `"RowsColumns"`)
+
+* `ECC000_9X9` (value: `"ECC000_9x9"`)
+
+* `ECC000_050_11X11` (value: `"ECC000_050_11x11"`)
+
+* `ECC000_100_13X13` (value: `"ECC000_100_13x13"`)
+
+* `ECC000_100_15X15` (value: `"ECC000_100_15x15"`)
+
+* `ECC000_140_17X17` (value: `"ECC000_140_17x17"`)
+
+* `ECC000_140_19X19` (value: `"ECC000_140_19x19"`)
+
+* `ECC000_140_21X21` (value: `"ECC000_140_21x21"`)
+
+* `ECC000_140_23X23` (value: `"ECC000_140_23x23"`)
+
+* `ECC000_140_25X25` (value: `"ECC000_140_25x25"`)
+
+* `ECC000_140_27X27` (value: `"ECC000_140_27x27"`)
+
+* `ECC000_140_29X29` (value: `"ECC000_140_29x29"`)
+
+* `ECC000_140_31X31` (value: `"ECC000_140_31x31"`)
+
+* `ECC000_140_33X33` (value: `"ECC000_140_33x33"`)
+
+* `ECC000_140_35X35` (value: `"ECC000_140_35x35"`)
+
+* `ECC000_140_37X37` (value: `"ECC000_140_37x37"`)
+
+* `ECC000_140_39X39` (value: `"ECC000_140_39x39"`)
+
+* `ECC000_140_41X41` (value: `"ECC000_140_41x41"`)
+
+* `ECC000_140_43X43` (value: `"ECC000_140_43x43"`)
+
+* `ECC000_140_45X45` (value: `"ECC000_140_45x45"`)
+
+* `ECC000_140_47X47` (value: `"ECC000_140_47x47"`)
+
+* `ECC000_140_49X49` (value: `"ECC000_140_49x49"`)
+
+* `ECC200_10X10` (value: `"ECC200_10x10"`)
+
+* `ECC200_12X12` (value: `"ECC200_12x12"`)
+
+* `ECC200_14X14` (value: `"ECC200_14x14"`)
+
+* `ECC200_16X16` (value: `"ECC200_16x16"`)
+
+* `ECC200_18X18` (value: `"ECC200_18x18"`)
+
+* `ECC200_20X20` (value: `"ECC200_20x20"`)
+
+* `ECC200_22X22` (value: `"ECC200_22x22"`)
+
+* `ECC200_24X24` (value: `"ECC200_24x24"`)
+
+* `ECC200_26X26` (value: `"ECC200_26x26"`)
+
+* `ECC200_32X32` (value: `"ECC200_32x32"`)
+
+* `ECC200_36X36` (value: `"ECC200_36x36"`)
+
+* `ECC200_40X40` (value: `"ECC200_40x40"`)
+
+* `ECC200_44X44` (value: `"ECC200_44x44"`)
+
+* `ECC200_48X48` (value: `"ECC200_48x48"`)
+
+* `ECC200_52X52` (value: `"ECC200_52x52"`)
+
+* `ECC200_64X64` (value: `"ECC200_64x64"`)
+
+* `ECC200_72X72` (value: `"ECC200_72x72"`)
+
+* `ECC200_80X80` (value: `"ECC200_80x80"`)
+
+* `ECC200_88X88` (value: `"ECC200_88x88"`)
+
+* `ECC200_96X96` (value: `"ECC200_96x96"`)
+
+* `ECC200_104X104` (value: `"ECC200_104x104"`)
+
+* `ECC200_120X120` (value: `"ECC200_120x120"`)
+
+* `ECC200_132X132` (value: `"ECC200_132x132"`)
+
+* `ECC200_144X144` (value: `"ECC200_144x144"`)
+
+* `ECC200_8X18` (value: `"ECC200_8x18"`)
+
+* `ECC200_8X32` (value: `"ECC200_8x32"`)
+
+* `ECC200_12X26` (value: `"ECC200_12x26"`)
+
+* `ECC200_12X36` (value: `"ECC200_12x36"`)
+
+* `ECC200_16X36` (value: `"ECC200_16x36"`)
+
+* `ECC200_16X48` (value: `"ECC200_16x48"`)
+
+* `DMRE_8X48` (value: `"DMRE_8x48"`)
+
+* `DMRE_8X64` (value: `"DMRE_8x64"`)
+
+* `DMRE_8X80` (value: `"DMRE_8x80"`)
+
+* `DMRE_8X96` (value: `"DMRE_8x96"`)
+
+* `DMRE_8X120` (value: `"DMRE_8x120"`)
+
+* `DMRE_8X144` (value: `"DMRE_8x144"`)
+
+* `DMRE_12X64` (value: `"DMRE_12x64"`)
+
+* `DMRE_12X88` (value: `"DMRE_12x88"`)
+
+* `DMRE_16X64` (value: `"DMRE_16x64"`)
+
+* `DMRE_20X36` (value: `"DMRE_20x36"`)
+
+* `DMRE_20X44` (value: `"DMRE_20x44"`)
+
+* `DMRE_20X64` (value: `"DMRE_20x64"`)
+
+* `DMRE_22X48` (value: `"DMRE_22x48"`)
+
+* `DMRE_24X48` (value: `"DMRE_24x48"`)
+
+* `DMRE_24X64` (value: `"DMRE_24x64"`)
+
+* `DMRE_26X40` (value: `"DMRE_26x40"`)
+
+* `DMRE_26X48` (value: `"DMRE_26x48"`)
+
+* `DMRE_26X64` (value: `"DMRE_26x64"`)
+
+
+
diff --git a/docs/ReaderParams.md b/docs/ReaderParams.md
index cebd6fa..03a7d1c 100644
--- a/docs/ReaderParams.md
+++ b/docs/ReaderParams.md
@@ -31,6 +31,7 @@ Name | Type | Description | Notes
**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]
**checkMore1DVariants** | **Boolean** | Allows engine to recognize 1D barcodes with checksum by checking more recognition variants. Default value: False. | [optional]
**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]
+**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]
**regionLikelihoodThresholdPercent** | **Double** | 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]
**scanWindowSizes** | **List<Integer>** | 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]
**similarity** | **Double** | 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]
diff --git a/pom.xml b/pom.xml
index 935a2b8..4de2b87 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
aspose-barcode-cloud
jar
aspose-barcode-cloud
- 23.7.0
+ 23.8.0
https://www.aspose.cloud
Aspose.BarCode Cloud SDK for Java
diff --git a/src/main/java/com/aspose/barcode/cloud/ApiClient.java b/src/main/java/com/aspose/barcode/cloud/ApiClient.java
index 02d9fee..3cf21e2 100644
--- a/src/main/java/com/aspose/barcode/cloud/ApiClient.java
+++ b/src/main/java/com/aspose/barcode/cloud/ApiClient.java
@@ -53,7 +53,7 @@
public class ApiClient {
public final String apiVersion = "v3.0";
- public final String clientVersion = "23.7.0";
+ public final String clientVersion = "23.8.0";
private String baseUrl = "https://api.aspose.cloud";
private String clientId;
private String clientSecret;
@@ -99,7 +99,7 @@ protected ApiClient() {
json = new JSON();
// Set default User-Agent.
- setUserAgent("Swagger-Codegen/23.7.0/java");
+ setUserAgent("Swagger-Codegen/23.8.0/java");
addDefaultHeader("x-aspose-client", "java sdk");
addDefaultHeader("x-aspose-client-version", clientVersion);
diff --git a/src/main/java/com/aspose/barcode/cloud/api/BarcodeApi.java b/src/main/java/com/aspose/barcode/cloud/api/BarcodeApi.java
index 7b5fd74..dbb12b2 100644
--- a/src/main/java/com/aspose/barcode/cloud/api/BarcodeApi.java
+++ b/src/main/java/com/aspose/barcode/cloud/api/BarcodeApi.java
@@ -415,6 +415,10 @@ protected com.squareup.okhttp.Call getBarcodeRecognizeCall(
apiClient.parameterToPair("CheckMore1DVariants", request.checkMore1DVariants));
if (request.fastScanOnly != null)
queryParams.addAll(apiClient.parameterToPair("FastScanOnly", request.fastScanOnly));
+ if (request.allowAdditionalRestorations != null)
+ queryParams.addAll(
+ apiClient.parameterToPair(
+ "AllowAdditionalRestorations", request.allowAdditionalRestorations));
if (request.regionLikelihoodThresholdPercent != null)
queryParams.addAll(
apiClient.parameterToPair(
@@ -688,6 +692,10 @@ protected com.squareup.okhttp.Call postBarcodeRecognizeFromUrlOrContentCall(
apiClient.parameterToPair("CheckMore1DVariants", request.checkMore1DVariants));
if (request.fastScanOnly != null)
queryParams.addAll(apiClient.parameterToPair("FastScanOnly", request.fastScanOnly));
+ if (request.allowAdditionalRestorations != null)
+ queryParams.addAll(
+ apiClient.parameterToPair(
+ "AllowAdditionalRestorations", request.allowAdditionalRestorations));
if (request.regionLikelihoodThresholdPercent != null)
queryParams.addAll(
apiClient.parameterToPair(
diff --git a/src/main/java/com/aspose/barcode/cloud/model/DataMatrixParams.java b/src/main/java/com/aspose/barcode/cloud/model/DataMatrixParams.java
index 9a783fc..52e8112 100644
--- a/src/main/java/com/aspose/barcode/cloud/model/DataMatrixParams.java
+++ b/src/main/java/com/aspose/barcode/cloud/model/DataMatrixParams.java
@@ -56,6 +56,9 @@ public class DataMatrixParams {
@SerializedName(value = "macroCharacters")
private MacroCharacter macroCharacters = null;
+ @SerializedName(value = "version")
+ private DataMatrixVersion version = null;
+
/**
* Height/Width ratio of 2D BarCode module
*
@@ -167,6 +170,21 @@ public void setMacroCharacters(MacroCharacter macroCharacters) {
this.macroCharacters = macroCharacters;
}
+ /**
+ * Sets a Datamatrix symbol size. Default value: DataMatrixVersion.Auto.
+ *
+ * @return version
+ */
+ @ApiModelProperty(
+ value = "Sets a Datamatrix symbol size. Default value: DataMatrixVersion.Auto.")
+ public DataMatrixVersion getVersion() {
+ return version;
+ }
+
+ public void setVersion(DataMatrixVersion version) {
+ this.version = version;
+ }
+
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -182,7 +200,8 @@ public boolean equals(java.lang.Object o) {
&& Objects.equals(this.dataMatrixEcc, dataMatrixParams.dataMatrixEcc)
&& Objects.equals(this.dataMatrixEncodeMode, dataMatrixParams.dataMatrixEncodeMode)
&& Objects.equals(this.rows, dataMatrixParams.rows)
- && Objects.equals(this.macroCharacters, dataMatrixParams.macroCharacters);
+ && Objects.equals(this.macroCharacters, dataMatrixParams.macroCharacters)
+ && Objects.equals(this.version, dataMatrixParams.version);
}
@Override
@@ -194,7 +213,8 @@ public int hashCode() {
dataMatrixEcc,
dataMatrixEncodeMode,
rows,
- macroCharacters);
+ macroCharacters,
+ version);
}
@Override
@@ -211,6 +231,7 @@ public String toString() {
.append("\n");
sb.append(" rows: ").append(toIndentedString(rows)).append("\n");
sb.append(" macroCharacters: ").append(toIndentedString(macroCharacters)).append("\n");
+ sb.append(" version: ").append(toIndentedString(version)).append("\n");
sb.append("}");
return sb.toString();
}
diff --git a/src/main/java/com/aspose/barcode/cloud/model/DataMatrixVersion.java b/src/main/java/com/aspose/barcode/cloud/model/DataMatrixVersion.java
new file mode 100644
index 0000000..437e00b
--- /dev/null
+++ b/src/main/java/com/aspose/barcode/cloud/model/DataMatrixVersion.java
@@ -0,0 +1,217 @@
+// --------------------------------------------------------------------------------------------------------------------
+//
+// Copyright (c) 2023 Aspose.BarCode for Cloud
+//
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in all
+// copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+// SOFTWARE.
+//
+// --------------------------------------------------------------------------------------------------------------------
+
+package com.aspose.barcode.cloud.model;
+
+import com.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+
+import java.io.IOException;
+
+/** */
+@JsonAdapter(DataMatrixVersion.Adapter.class)
+public enum DataMatrixVersion {
+ AUTO("Auto"),
+
+ ROWSCOLUMNS("RowsColumns"),
+
+ ECC000_9X9("ECC000_9x9"),
+
+ ECC000_050_11X11("ECC000_050_11x11"),
+
+ ECC000_100_13X13("ECC000_100_13x13"),
+
+ ECC000_100_15X15("ECC000_100_15x15"),
+
+ ECC000_140_17X17("ECC000_140_17x17"),
+
+ ECC000_140_19X19("ECC000_140_19x19"),
+
+ ECC000_140_21X21("ECC000_140_21x21"),
+
+ ECC000_140_23X23("ECC000_140_23x23"),
+
+ ECC000_140_25X25("ECC000_140_25x25"),
+
+ ECC000_140_27X27("ECC000_140_27x27"),
+
+ ECC000_140_29X29("ECC000_140_29x29"),
+
+ ECC000_140_31X31("ECC000_140_31x31"),
+
+ ECC000_140_33X33("ECC000_140_33x33"),
+
+ ECC000_140_35X35("ECC000_140_35x35"),
+
+ ECC000_140_37X37("ECC000_140_37x37"),
+
+ ECC000_140_39X39("ECC000_140_39x39"),
+
+ ECC000_140_41X41("ECC000_140_41x41"),
+
+ ECC000_140_43X43("ECC000_140_43x43"),
+
+ ECC000_140_45X45("ECC000_140_45x45"),
+
+ ECC000_140_47X47("ECC000_140_47x47"),
+
+ ECC000_140_49X49("ECC000_140_49x49"),
+
+ ECC200_10X10("ECC200_10x10"),
+
+ ECC200_12X12("ECC200_12x12"),
+
+ ECC200_14X14("ECC200_14x14"),
+
+ ECC200_16X16("ECC200_16x16"),
+
+ ECC200_18X18("ECC200_18x18"),
+
+ ECC200_20X20("ECC200_20x20"),
+
+ ECC200_22X22("ECC200_22x22"),
+
+ ECC200_24X24("ECC200_24x24"),
+
+ ECC200_26X26("ECC200_26x26"),
+
+ ECC200_32X32("ECC200_32x32"),
+
+ ECC200_36X36("ECC200_36x36"),
+
+ ECC200_40X40("ECC200_40x40"),
+
+ ECC200_44X44("ECC200_44x44"),
+
+ ECC200_48X48("ECC200_48x48"),
+
+ ECC200_52X52("ECC200_52x52"),
+
+ ECC200_64X64("ECC200_64x64"),
+
+ ECC200_72X72("ECC200_72x72"),
+
+ ECC200_80X80("ECC200_80x80"),
+
+ ECC200_88X88("ECC200_88x88"),
+
+ ECC200_96X96("ECC200_96x96"),
+
+ ECC200_104X104("ECC200_104x104"),
+
+ ECC200_120X120("ECC200_120x120"),
+
+ ECC200_132X132("ECC200_132x132"),
+
+ ECC200_144X144("ECC200_144x144"),
+
+ ECC200_8X18("ECC200_8x18"),
+
+ ECC200_8X32("ECC200_8x32"),
+
+ ECC200_12X26("ECC200_12x26"),
+
+ ECC200_12X36("ECC200_12x36"),
+
+ ECC200_16X36("ECC200_16x36"),
+
+ ECC200_16X48("ECC200_16x48"),
+
+ DMRE_8X48("DMRE_8x48"),
+
+ DMRE_8X64("DMRE_8x64"),
+
+ DMRE_8X80("DMRE_8x80"),
+
+ DMRE_8X96("DMRE_8x96"),
+
+ DMRE_8X120("DMRE_8x120"),
+
+ DMRE_8X144("DMRE_8x144"),
+
+ DMRE_12X64("DMRE_12x64"),
+
+ DMRE_12X88("DMRE_12x88"),
+
+ DMRE_16X64("DMRE_16x64"),
+
+ DMRE_20X36("DMRE_20x36"),
+
+ DMRE_20X44("DMRE_20x44"),
+
+ DMRE_20X64("DMRE_20x64"),
+
+ DMRE_22X48("DMRE_22x48"),
+
+ DMRE_24X48("DMRE_24x48"),
+
+ DMRE_24X64("DMRE_24x64"),
+
+ DMRE_26X40("DMRE_26x40"),
+
+ DMRE_26X48("DMRE_26x48"),
+
+ DMRE_26X64("DMRE_26x64");
+
+ private final String value;
+
+ DataMatrixVersion(String value) {
+ this.value = value;
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ @Override
+ public String toString() {
+ return String.valueOf(value);
+ }
+
+ public static DataMatrixVersion fromValue(String text) {
+ for (DataMatrixVersion b : DataMatrixVersion.values()) {
+ if (String.valueOf(b.value).equals(text)) {
+ return b;
+ }
+ }
+ return null;
+ }
+
+ public static class Adapter extends TypeAdapter {
+ @Override
+ public void write(final JsonWriter jsonWriter, final DataMatrixVersion enumeration)
+ throws IOException {
+ jsonWriter.value(enumeration.getValue());
+ }
+
+ @Override
+ public DataMatrixVersion read(final JsonReader jsonReader) throws IOException {
+ String value = jsonReader.nextString();
+ return DataMatrixVersion.fromValue(String.valueOf(value));
+ }
+ }
+}
diff --git a/src/main/java/com/aspose/barcode/cloud/model/ReaderParams.java b/src/main/java/com/aspose/barcode/cloud/model/ReaderParams.java
index d44dbf0..5b464fb 100644
--- a/src/main/java/com/aspose/barcode/cloud/model/ReaderParams.java
+++ b/src/main/java/com/aspose/barcode/cloud/model/ReaderParams.java
@@ -118,6 +118,9 @@ public class ReaderParams {
@SerializedName(value = "fastScanOnly")
private Boolean fastScanOnly = null;
+ @SerializedName(value = "allowAdditionalRestorations")
+ private Boolean allowAdditionalRestorations = null;
+
@SerializedName(value = "regionLikelihoodThresholdPercent")
private Double regionLikelihoodThresholdPercent = null;
@@ -579,6 +582,23 @@ public void setFastScanOnly(Boolean fastScanOnly) {
this.fastScanOnly = fastScanOnly;
}
+ /**
+ * Allows engine using additional image restorations to recognize corrupted barcodes. At this
+ * time, it is used only in MicroPdf417 barcode type. Default value: False.
+ *
+ * @return allowAdditionalRestorations
+ */
+ @ApiModelProperty(
+ value =
+ "Allows engine using additional image restorations to recognize corrupted barcodes. At this time, it is used only in MicroPdf417 barcode type. Default value: False.")
+ public Boolean isAllowAdditionalRestorations() {
+ return allowAdditionalRestorations;
+ }
+
+ public void setAllowAdditionalRestorations(Boolean allowAdditionalRestorations) {
+ this.allowAdditionalRestorations = allowAdditionalRestorations;
+ }
+
/**
* 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
@@ -764,6 +784,8 @@ public boolean equals(java.lang.Object o) {
this.allowWhiteSpotsRemoving, readerParams.allowWhiteSpotsRemoving)
&& Objects.equals(this.checkMore1DVariants, readerParams.checkMore1DVariants)
&& Objects.equals(this.fastScanOnly, readerParams.fastScanOnly)
+ && Objects.equals(
+ this.allowAdditionalRestorations, readerParams.allowAdditionalRestorations)
&& Objects.equals(
this.regionLikelihoodThresholdPercent,
readerParams.regionLikelihoodThresholdPercent)
@@ -808,6 +830,7 @@ public int hashCode() {
allowWhiteSpotsRemoving,
checkMore1DVariants,
fastScanOnly,
+ allowAdditionalRestorations,
regionLikelihoodThresholdPercent,
scanWindowSizes,
similarity,
@@ -881,6 +904,9 @@ public String toString() {
.append(toIndentedString(checkMore1DVariants))
.append("\n");
sb.append(" fastScanOnly: ").append(toIndentedString(fastScanOnly)).append("\n");
+ sb.append(" allowAdditionalRestorations: ")
+ .append(toIndentedString(allowAdditionalRestorations))
+ .append("\n");
sb.append(" regionLikelihoodThresholdPercent: ")
.append(toIndentedString(regionLikelihoodThresholdPercent))
.append("\n");
diff --git a/src/main/java/com/aspose/barcode/cloud/requests/GetBarcodeRecognizeRequest.java b/src/main/java/com/aspose/barcode/cloud/requests/GetBarcodeRecognizeRequest.java
index 5852cab..dfcda5f 100644
--- a/src/main/java/com/aspose/barcode/cloud/requests/GetBarcodeRecognizeRequest.java
+++ b/src/main/java/com/aspose/barcode/cloud/requests/GetBarcodeRecognizeRequest.java
@@ -179,6 +179,12 @@ public class GetBarcodeRecognizeRequest {
*/
public Boolean fastScanOnly;
+ /**
+ * Allows engine using additional image restorations to recognize corrupted barcodes. At this
+ * time, it is used only in MicroPdf417 barcode type. Default value: False.
+ */
+ public Boolean allowAdditionalRestorations;
+
/**
* 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
diff --git a/src/main/java/com/aspose/barcode/cloud/requests/PostBarcodeRecognizeFromUrlOrContentRequest.java b/src/main/java/com/aspose/barcode/cloud/requests/PostBarcodeRecognizeFromUrlOrContentRequest.java
index 4dd60f6..b6a7ed8 100644
--- a/src/main/java/com/aspose/barcode/cloud/requests/PostBarcodeRecognizeFromUrlOrContentRequest.java
+++ b/src/main/java/com/aspose/barcode/cloud/requests/PostBarcodeRecognizeFromUrlOrContentRequest.java
@@ -181,6 +181,12 @@ public class PostBarcodeRecognizeFromUrlOrContentRequest {
*/
public Boolean fastScanOnly;
+ /**
+ * Allows engine using additional image restorations to recognize corrupted barcodes. At this
+ * time, it is used only in MicroPdf417 barcode type. Default value: False.
+ */
+ public Boolean allowAdditionalRestorations;
+
/**
* 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