Class QualitySettings
Controls the trade-off between recognition speed and accuracy.
Modeled on Aspose.BarCode's QualitySettings.
Inherited Members
Namespace: DRIT.Barcode.Recognition
Assembly: DRIT.Barcode.dll
Syntax
public class QualitySettings
Constructors
QualitySettings()
Initializes a new instance of the QualitySettings class with default (normal quality) settings.
Declaration
public QualitySettings()
Properties
AllowDetectScanGap
Gets or sets a value indicating whether to use the gap between scans to increase speed.
Declaration
public bool AllowDetectScanGap { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
AllowIncorrectBarcodes
Gets or sets a value indicating whether to recognize barcodes with incorrect checksums.
Declaration
public bool AllowIncorrectBarcodes { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
AllowInvertImage
Gets or sets a value indicating whether to recognize inverse color images (white on black).
Declaration
public bool AllowInvertImage { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
AllowMedianSmoothing
Gets or sets a value indicating whether to enable median smoothing as an additional scan.
Declaration
public bool AllowMedianSmoothing { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
AllowMicroWhiteSpotsRemoving
Gets or sets a value indicating whether to remove micro white spots for slightly noised postal barcodes.
Declaration
public bool AllowMicroWhiteSpotsRemoving { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
AllowOneDAdditionalScan
Gets or sets a value indicating whether to perform an additional 1D scan with different parameters.
Declaration
public bool AllowOneDAdditionalScan { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
AllowOneDFastBarcodesDetector
Gets or sets a value indicating whether to use the fast 1D detector for high-quality barcodes.
Declaration
public bool AllowOneDFastBarcodesDetector { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
AllowRegularImage
Gets or sets a value indicating whether to recognize regular images without restorations.
Declaration
public bool AllowRegularImage { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
AllowSaltAndPaperFiltering
Gets or sets a value indicating whether to recognize barcodes with salt-and-pepper noise.
Declaration
public bool AllowSaltAndPaperFiltering { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
AllowWhiteSpotsRemoving
Gets or sets a value indicating whether to remove small white spots.
Declaration
public bool AllowWhiteSpotsRemoving { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
DetectEncoding
Gets or sets a value indicating whether to auto-detect Unicode encoding.
Declaration
public bool DetectEncoding { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
HighPerformance
Gets a preset optimized for maximum speed at the cost of accuracy.
Declaration
public static QualitySettings HighPerformance { get; }
Property Value
| Type | Description |
|---|---|
| QualitySettings |
HighQuality
Gets a preset with higher accuracy at the cost of speed.
Declaration
public static QualitySettings HighQuality { get; }
Property Value
| Type | Description |
|---|---|
| QualitySettings |
MaxBarCodes
Gets a preset that finds as many barcodes as possible, including those with invalid checksums.
Declaration
public static QualitySettings MaxBarCodes { get; }
Property Value
| Type | Description |
|---|---|
| QualitySettings |
MaxQuality
Gets a preset with maximum accuracy.
Declaration
public static QualitySettings MaxQuality { get; }
Property Value
| Type | Description |
|---|---|
| QualitySettings |
MedianSmoothingWindowSize
Gets or sets the window size for median smoothing (default 3).
Declaration
public int MedianSmoothingWindowSize { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
NormalQuality
Gets a preset with balanced speed and accuracy (default).
Declaration
public static QualitySettings NormalQuality { get; }
Property Value
| Type | Description |
|---|---|
| QualitySettings |
StripFNC
Gets or sets a value indicating whether to strip FNC1/FNC2/FNC3 characters from the codetext.
Declaration
public bool StripFNC { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |