ScannerOptions constructor
const
ScannerOptions({
- ScanStrategy scanStrategy = ScanStrategy.continuous,
- ScanWindow? scanWindow = ScanWindow.centerReticle,
- int frameThrottleMs = 50,
- int targetFrameRate = 20,
- bool enableAdaptiveFrameSkipping = true,
- bool enablePauseOnStaticFrame = true,
- Duration duplicateTimeout = const Duration(milliseconds: 1000),
- bool enableDuplicateFilter = true,
- bool enableIsolateProcessing = true,
- bool enableImageEnhancement = true,
- bool enableBlurDetection = true,
- bool enableAutoBrightnessCheck = true,
- bool autoTorchInLowLight = false,
- double lowLightThreshold = 0.25,
- bool enableAutoZoom = true,
- bool autoResetZoomAfterScan = true,
- double autoZoomThreshold = 0.15,
- bool continuousAutofocus = true,
- bool enableMultiCodeDetection = true,
- int maxMultiCodeCount = 10,
- bool enableScanHistory = true,
- int maxHistorySize = 50,
- int? maxBatchCount,
- double minConfidence = 0.70,
- Rect? rectScanArea,
- List<
String> ? allowedFormats, - bool enableSound = true,
- bool enableVibration = true,
- double torchLevel = 1.0,
- bool isFocusLocked = false,
Constructs a ScannerOptions instance.
Implementation
const ScannerOptions({
this.scanStrategy = ScanStrategy.continuous,
this.scanWindow = ScanWindow.centerReticle,
this.frameThrottleMs = 50,
this.targetFrameRate = 20,
this.enableAdaptiveFrameSkipping = true,
this.enablePauseOnStaticFrame = true,
this.duplicateTimeout = const Duration(milliseconds: 1000),
this.enableDuplicateFilter = true,
this.enableIsolateProcessing = true,
this.enableImageEnhancement = true,
this.enableBlurDetection = true,
this.enableAutoBrightnessCheck = true,
this.autoTorchInLowLight = false,
this.lowLightThreshold = 0.25,
this.enableAutoZoom = true,
this.autoResetZoomAfterScan = true,
this.autoZoomThreshold = 0.15,
this.continuousAutofocus = true,
this.enableMultiCodeDetection = true,
this.maxMultiCodeCount = 10,
this.enableScanHistory = true,
this.maxHistorySize = 50,
this.maxBatchCount,
this.minConfidence = 0.70,
this.rectScanArea,
this.allowedFormats,
this.enableSound = true,
this.enableVibration = true,
this.torchLevel = 1.0,
this.isFocusLocked = false,
});