# SimplifiedBarcodeReaderSettings

This interface defines simplified settings for barcode reading tasks.

```typescript
interface SimplifiedBarcodeReaderSettings {
    barcodeFormatIds: EnumBarcodeFormat;
    expectedBarcodesCount: number;
    grayscaleTransformationModes: Array<Dynamsoft.Core.EnumGrayscaleTransformationMode>;
    grayscaleEnhancementModes: Array<Dynamsoft.Core.EnumGrayscaleEnhancementMode>; 
    localizationModes: Array<EnumLocalizationMode>;
    deblurModes: Array<EnumDeblurMode>;
    minResultConfidence: number;
    minBarcodeTextLength: number;
    barcodeTextRegExPattern: string;
    scaleDownThreshold: number;
}
```
<!-- 
| Properties                                                    | Type                                                     |
| ------------------------------------------------------------- | -------------------------------------------------------- |
| [barcodeFormatIds](#barcodeformatids)                         | *EnumBarcodeFormat*                        |
| [expectedBarcodesCount](#expectedbarcodescount)               | *number*                                                 |
| [grayscaleTransformationModes](#grayscaletransformationmodes) | *Array\<Dynamsoft.Core.EnumGrayscaleTransformationMode>* |
| [grayscaleEnhancementModes](#grayscaleenhancementmodes)       | *Array\<Dynamsoft.Core.EnumGrayscaleEnhancementMode>*    |
| [localizationModes](#localizationmodes)                       | *Array\<EnumLocalizationMode>*             |
| [deblurModes](#deblurmodes)                                   | *Array\<EnumDeblurMode>*                   |
| [minResultConfidence](#minresultconfidence)                   | *number*                                                 |
| [minBarcodeTextLength](#minbarcodetextlength)                 | *number*                                                 |
| [barcodeTextRegExPattern](#barcodetextregexpattern)           | *string*                                                 |
| [scaleDownThreshold](#scaledownthreshold)                     | *number*                                                 | -->

## barcodeFormatIds

A combined value of enumeration BarcodeFormat to specify the targeting barcode formats.

```typescript
barcodeFormatIds: EnumBarcodeFormat;
```

**See also**

* [Dynamsoft.DBR.EnumBarcodeFormat](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/enum-barcode-format.md)

## expectedBarcodesCount

Set the expected barcode count. The default value is 0.

```typescript
expectedBarcodesCount: number;
```

**Remarks**

* Set `expectedBarcodesCount` to 0 if the barcode count is unknown. The library will try to find at least 1 barcode.
* Set `expectedBarcodesCount` to 1 to reach the highest speed for processing single barcode.
* Set `expectedBarcodesCount` to "n" if there will be "n" barcodes to process from an image.
* Set `expectedBarcodesCount` to the highest expected value if there exists multiple barcodes but the exact count is not confirmed.

## grayscaleTransformationModes

Set the grayscale transformation modes with an array of enumeration `GrayscaleTransformationMode`. View the reference page of `GrayscaleTransformationModes` for more detail about grayscale transformation modes.

```typescript
grayscaleTransformationModes: Array<Dynamsoft.Core.EnumGrayscaleTransformationMode>;
```

**See also**

* [Dynamsoft.Core.EnumGrayscaleTransformationMode](https://www.dynamsoft.com/capture-vision/docs/web/programming/javascript/api-reference/core/enum-grayscale-transformation-mode.md)

## grayscaleEnhancementModes

Set the grayscale enhancement modes with an array of enumeration `GrayscaleEnhancementMode`. View the reference page of `GrayscaleEnhancementModes` for more detail about grayscale enhancement modes.

```typescript
grayscaleEnhancementModes: Array<Dynamsoft.Core.EnumGrayscaleEnhancementMode>; 
```

**See also**

* [EnumGrayscaleEnhancementMode](https://www.dynamsoft.com/capture-vision/docs/web/programming/javascript/api-reference/core/enum-grayscale-enhancement-mode.md)

## localizationModes

Set the localization modes with an array of enumeration `LocalizationMode`. View the reference page of `LocalizationModes` for more detail about localization modes.

```typescript
localizationModes: Array<EnumLocalizationMode>;
```

**See also**

* [Dynamsoft.DBR.EnumLocalizationMode](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/enum-localization-mode.md)

## deblurModes

Set the deblur modes with an array of enumeration `DeblurMode`. View the reference page of `DeblurModes` for more detail about deblur modes.

```typescript
deblurModes: Array<EnumDeblurMode>;
```

**See also**

* [Dynamsoft.DBR.EnumDeblurMode](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/enum-deblur-mode.md)

## minResultConfidence

Set the minimum result confidence to filter out the low confidence results. The default value is 30.

```typescript
minResultConfidence: number;
```

## minBarcodeTextLength

Set the minimum barcode text length to filter out the unqualified results.

```typescript
minBarcodeTextLength: number;
```

## barcodeTextRegExPattern

Set the RegEx pattern of the barcode text to filter out the unqualified results.

```typescript
barcodeTextRegExPattern: string;
```

## scaleDownThreshold

Set the threshold for scaling down the input image during barcode localization. If the shorter edge size of the image is larger than this threshold, the original may be scaled down to reduce processing time. The default value is 2300.

```typescript
scaleDownThreshold: number;
```
