Class BarcodeRecognitionOptions
- Namespace
- CapCognition.Maui.BarcodeScanning
- Assembly
- CapCognition.Maui.BarcodeScanning.dll
public class BarcodeRecognitionOptions : RecognitionOptions, IDisposable
- Inheritance
-
BarcodeRecognitionOptions
- Implements
- Inherited Members
Properties
BarcodeFormatsToRecognize
Sets the barcode formats to recognize. If null, all formats are recognized.
public List<BarcodeRecognitionOptions.BarcodeFormat>? BarcodeFormatsToRecognize { get; set; }
Property Value
BinarizerToUse
Sets the binarizer to use
public BarcodeRecognitionOptions.BinarizerType BinarizerToUse { get; set; }
Property Value
DrawingOptions
Gets the overlay drawing options for the barcode recognition.
public BarcodeRecognitionOverlayDrawingOptions DrawingOptions { get; }
Property Value
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
TryInverted
If set to true, the recognition will also try to recognize inverted barcodes
public bool TryInverted { get; set; }
Property Value
TryQuadrantFallback
Search image quadrants after unsuccessful full-image attempts.
public bool TryQuadrantFallback { get; set; }
Property Value
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
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; }