Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ This package contains tools for 1D/2D barcode recognition.
| [RecognitionAbortedException](../com.aspose.barcode.barcoderecognition/recognitionabortedexception) | Represents recognition abort exception which is thrown in timeout exceeding during recognition with BarCodeReader. |
| [RecognitionOptions](../com.aspose.barcode.barcoderecognition/recognitionoptions) | |
| [SingleDecodeType](../com.aspose.barcode.barcoderecognition/singledecodetype) | Single decode type. |
| [TextEncodingDetection](../com.aspose.barcode.barcoderecognition/textencodingdetection) | |

## Interfaces

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: AustraliaPostCustomerInformationDecoder
second_title: Aspose.BarCode for Android via Java API Reference
description: Public interface for Customer Information Field decoding which is used in AustraliaPost symbology.
type: docs
weight: 50
weight: 49
url: /androidjava/com.aspose.barcode.barcoderecognition/australiapostcustomerinformationdecoder/
---```
public interface AustraliaPostCustomerInformationDecoder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ public class AustraliaPostSettings
```

AustraliaPost decoding parameters. Contains parameters which make influence on recognized data of AustraliaPost symbology.
## Constructors

| Constructor | Description |
| --- | --- |
| [AustraliaPostSettings()](#AustraliaPostSettings--) | AustraliaPostSettings constructor |
| [AustraliaPostSettings(AustraliaPostSettings settings)](#AustraliaPostSettings-com.aspose.barcode.barcoderecognition.AustraliaPostSettings-) | AustraliaPostSettings copy constructor |
## Methods

| Method | Description |
Expand All @@ -32,6 +38,27 @@ AustraliaPost decoding parameters. Contains parameters which make influence on r
| [wait()](#wait--) | |
| [wait(long arg0)](#wait-long-) | |
| [wait(long arg0, int arg1)](#wait-long-int-) | |
### AustraliaPostSettings() {#AustraliaPostSettings--}
```
public AustraliaPostSettings()
```


AustraliaPostSettings constructor

### AustraliaPostSettings(AustraliaPostSettings settings) {#AustraliaPostSettings-com.aspose.barcode.barcoderecognition.AustraliaPostSettings-}
```
public AustraliaPostSettings(AustraliaPostSettings settings)
```


AustraliaPostSettings copy constructor

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| settings | [AustraliaPostSettings](../../com.aspose.barcode.barcoderecognition/australiapostsettings) | The source of the data |

### equals(Object arg0) {#equals-java.lang.Object-}
```
public boolean equals(Object arg0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: BarcodeQualityMode
second_title: Aspose.BarCode for Android via Java API Reference
description:
type: docs
weight: 51
weight: 50
url: /androidjava/com.aspose.barcode.barcoderecognition/barcodequalitymode/
---
**Inheritance:**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ The main BarCode decoding parameters. Contains parameters which make influence o
| [getDetectEncoding()](#getDetectEncoding--) | The flag which force engine to detect codetext encoding for Unicode codesets. |
| [getStripFNC()](#getStripFNC--) | Strip FNC1, FNC2, FNC3 characters from codetext. |
| [hashCode()](#hashCode--) | |
| [isOnlyRequestedTypes()](#isOnlyRequestedTypes--) | Returns only barcode types explicitly specified for recognition. |
| [notify()](#notify--) | |
| [notifyAll()](#notifyAll--) | |
| [setChecksumValidation(ChecksumValidation value)](#setChecksumValidation-com.aspose.barcode.barcoderecognition.ChecksumValidation-) | Enable checksum validation during recognition for 1D and Postal barcodes. |
| [setDetectEncoding(boolean value)](#setDetectEncoding-boolean-) | The flag which force engine to detect codetext encoding for Unicode codesets. |
| [setOnlyRequestedTypes(boolean value)](#setOnlyRequestedTypes-boolean-) | Returns only barcode types explicitly specified for recognition. |
| [setStripFNC(boolean value)](#setStripFNC-boolean-) | Strip FNC1, FNC2, FNC3 characters from codetext. |
| [toString()](#toString--) | |
| [wait()](#wait--) | |
Expand Down Expand Up @@ -132,6 +134,39 @@ public native int hashCode()

**Returns:**
int
### isOnlyRequestedTypes() {#isOnlyRequestedTypes--}
```
public boolean isOnlyRequestedTypes()
```


Returns only barcode types explicitly specified for recognition. When enabled, recognized barcodes of other compatible or equivalent types are filtered out. Default value is false.

Example:

```
// generate EAN13 barcode
BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.EAN_13, "2383823482894");
generator.save("test.png");

// recognize only UPCA barcodes (no results, because source is EAN13)
BarCodeReader reader = new BarCodeReader("test.png", DecodeType.UPCA);
reader.getBarcodeSettings().setOnlyRequestedTypes(true);
for (BarCodeResult result : reader.readBarCodes()) {
System.out.println("BarCode CodeText: " + result.getCodeText());
}

// recognize compatible types: EAN13, UPCA, ISSN, ISMN, ISBN
// (EAN13 will be returned as UPCA-equivalent)
BarCodeReader reader2 = new BarCodeReader("test.png", DecodeType.UPCA);
reader2.getBarcodeSettings().setOnlyRequestedTypes(false);
for (BarCodeResult result : reader2.readBarCodes()) {
System.out.println("BarCode CodeText: " + result.getCodeText());
}
```

**Returns:**
boolean - true if only explicitly requested barcode types are returned; otherwise false
### notify() {#notify--}
```
public final native void notify()
Expand Down Expand Up @@ -198,6 +233,43 @@ Value: The flag which force engine to detect codetext encoding for Unicode codes
| --- | --- | --- |
| value | boolean | |

### setOnlyRequestedTypes(boolean value) {#setOnlyRequestedTypes-boolean-}
```
public void setOnlyRequestedTypes(boolean value)
```


Returns only barcode types explicitly specified for recognition. When enabled, recognized barcodes of other compatible or equivalent types are filtered out. Default value is false.

Example:

```
// generate EAN13 barcode
BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.EAN_13, "2383823482894");
generator.save("test.png");

// recognize only UPCA barcodes (no results, because source is EAN13)
BarCodeReader reader = new BarCodeReader("test.png", DecodeType.UPCA);
reader.getBarcodeSettings().setOnlyRequestedTypes(true);
for (BarCodeResult result : reader.readBarCodes())
{
System.out.println("BarCode CodeText: " + result.getCodeText());
}

// recognize compatible types: EAN13, UPCA, ISSN, ISMN, ISBN
// (EAN13 will be returned as UPCA-equivalent)
BarCodeReader reader2 = new BarCodeReader("test.png", DecodeType.UPCA);
reader2.getBarcodeSettings().setOnlyRequestedTypes(false);
for (BarCodeResult result : reader2.readBarCodes()) {
System.out.println("BarCode CodeText: " + result.getCodeText());
}
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean | |

### setStripFNC(boolean value) {#setStripFNC-boolean-}
```
public void setStripFNC(boolean value)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: ChecksumValidation
second_title: Aspose.BarCode for Android via Java API Reference
description:
type: docs
weight: 52
weight: 51
url: /androidjava/com.aspose.barcode.barcoderecognition/checksumvalidation/
---
**Inheritance:**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: ComplexBackgroundMode
second_title: Aspose.BarCode for Android via Java API Reference
description:
type: docs
weight: 53
weight: 52
url: /androidjava/com.aspose.barcode.barcoderecognition/complexbackgroundmode/
---
**Inheritance:**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: CustomerInformationInterpretingType
second_title: Aspose.BarCode for Android via Java API Reference
description: Defines the interpreting typeC_TABLE or N_TABLE of customer information for AustralianPost BarCode.
type: docs
weight: 54
weight: 53
url: /androidjava/com.aspose.barcode.barcoderecognition/customerinformationinterpretingtype/
---
**Inheritance:**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: DeconvolutionMode
second_title: Aspose.BarCode for Android via Java API Reference
description:
type: docs
weight: 55
weight: 54
url: /androidjava/com.aspose.barcode.barcoderecognition/deconvolutionmode/
---
**Inheritance:**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: ImageScalingMode
second_title: Aspose.BarCode for Android via Java API Reference
description: Specify the size of scaled image
type: docs
weight: 56
weight: 55
url: /androidjava/com.aspose.barcode.barcoderecognition/imagescalingmode/
---
**Inheritance:**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: InverseImageMode
second_title: Aspose.BarCode for Android via Java API Reference
description:
type: docs
weight: 57
weight: 56
url: /androidjava/com.aspose.barcode.barcoderecognition/inverseimagemode/
---
**Inheritance:**
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: XDimensionMode
second_title: Aspose.BarCode for Android via Java API Reference
description:
type: docs
weight: 58
weight: 57
url: /androidjava/com.aspose.barcode.barcoderecognition/xdimensionmode/
---
**Inheritance:**
Expand Down
Loading
Loading