ScannerOptions constructor

const ScannerOptions({
  1. ScanStrategy scanStrategy = ScanStrategy.continuous,
  2. ScanWindow? scanWindow = ScanWindow.centerReticle,
  3. int frameThrottleMs = 50,
  4. int targetFrameRate = 20,
  5. bool enableAdaptiveFrameSkipping = true,
  6. bool enablePauseOnStaticFrame = true,
  7. Duration duplicateTimeout = const Duration(milliseconds: 1000),
  8. bool enableDuplicateFilter = true,
  9. bool enableIsolateProcessing = true,
  10. bool enableImageEnhancement = true,
  11. bool enableBlurDetection = true,
  12. bool enableAutoBrightnessCheck = true,
  13. bool autoTorchInLowLight = false,
  14. double lowLightThreshold = 0.25,
  15. bool enableAutoZoom = true,
  16. bool autoResetZoomAfterScan = true,
  17. double autoZoomThreshold = 0.15,
  18. bool continuousAutofocus = true,
  19. bool enableMultiCodeDetection = true,
  20. int maxMultiCodeCount = 10,
  21. bool enableScanHistory = true,
  22. int maxHistorySize = 50,
  23. int? maxBatchCount,
  24. double minConfidence = 0.70,
  25. Rect? rectScanArea,
  26. List<String>? allowedFormats,
  27. bool enableSound = true,
  28. bool enableVibration = true,
  29. double torchLevel = 1.0,
  30. 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,
});