Table of Contents

Class BarcodeRecognitionOptions

Namespace
CapCognition.Net.BarcodeScanning.Common
Assembly
CapCognition.Net.BarcodeScanning.dll
public class BarcodeRecognitionOptions : RecognitionOptions, IDisposable
Inheritance
BarcodeRecognitionOptions
Implements
Inherited Members

Properties

BarcodeFormatsToRecognize

Barcode formats to recognize. If null, all formats are recognized.

public List<BarcodeRecognitionOptions.BarcodeFormat>? BarcodeFormatsToRecognize { get; set; }

Property Value

List<BarcodeRecognitionOptions.BarcodeFormat>

BinarizerToUse

Sets the binarizer to use

public BarcodeRecognitionOptions.BinarizerType BinarizerToUse { get; set; }

Property Value

BarcodeRecognitionOptions.BinarizerType

EnableMultiCodeReader

If set, multiple barcodes are recognized in one image If false, only the first barcode is recognized Note: The recognition is slower if multiple barcodes should be recognized. So only set this to true if you really need it.

public bool EnableMultiCodeReader { get; set; }

Property Value

bool

TryInverted

If set to true, the recognition will also try to recognize inverted barcodes

public bool TryInverted { get; set; }

Property Value

bool

TryQuadrantFallback

Search image quadrants after unsuccessful full-image attempts.

public bool TryQuadrantFallback { get; set; }

Property Value

bool

UseFastRecognition

If set to true, the recognition assumes the qr codes and barcodes are always already correct aligned (+/- 45 degrees) so no rotation needs to be done. This speeds up the recognition process but will not recognize all the rotated barcodes.

public bool UseFastRecognition { get; set; }

Property Value

bool

UseImprovedQRDecoding

If set to true, uses the improved grid sampler for QR code detection. This provides better handling of perspective distortion in high-resolution images but is slightly slower. Recommended for industrial scenarios and high-quality scans. Default: false (uses automatic grid sampler selection mechanism)

public bool? UseImprovedQRDecoding { get; set; }

Property Value

bool?

UseImprovedQRFinder

Gets or sets a value indicating whether the improved QR code finder algorithm is enabled.

public bool UseImprovedQRFinder { get; set; }

Property Value

bool

Remarks

Set this property to true to use the enhanced QR code detection method by applying additional image filters which may improve accuracy in challenging scanning conditions like blur or shadows but also increase processing time. When set to false, the standard detection algorithm is used.

UsedEncoding

If provided, the recognition will only recognize barcodes with the given CharacterSet If null, all barcodes are recognized but the recognition is slower

public Encoding? UsedEncoding { get; set; }

Property Value

Encoding