DocumentScannerCameraConfiguration constructor
DocumentScannerCameraConfiguration({
- CameraModule cameraModule = CameraModule.BACK,
- double defaultZoomFactor = 1.0,
- bool flashEnabled = false,
- bool minFocusDistanceLock = false,
- bool touchToFocusEnabled = false,
- bool pinchToZoomEnabled = true,
- CameraPreviewMode cameraPreviewMode = CameraPreviewMode.FILL_IN,
- CapturePhotoQualityPrioritization captureQualityPrioritization = CapturePhotoQualityPrioritization.BALANCED,
- double acceptedAngleScore = 0.75,
- double acceptedSizeScore = 0.75,
- double autoSnappingSensitivity = 0.66,
- int autoSnappingDelay = 200,
- int acceptedBrightnessThreshold = 50,
- bool autoSnappingEnabled = true,
- List<
AspectRatio> ? requiredAspectRatios, - bool ignoreBadAspectRatio = true,
- bool captureWithHardwareButtonsEnabled = true,
Implementation
DocumentScannerCameraConfiguration({
this.cameraModule = CameraModule.BACK,
this.defaultZoomFactor = 1.0,
this.flashEnabled = false,
this.minFocusDistanceLock = false,
this.touchToFocusEnabled = false,
this.pinchToZoomEnabled = true,
this.cameraPreviewMode = CameraPreviewMode.FILL_IN,
this.captureQualityPrioritization =
CapturePhotoQualityPrioritization.BALANCED,
this.acceptedAngleScore = 0.75,
this.acceptedSizeScore = 0.75,
this.autoSnappingSensitivity = 0.66,
this.autoSnappingDelay = 200,
this.acceptedBrightnessThreshold = 50,
this.autoSnappingEnabled = true,
List<AspectRatio>? requiredAspectRatios,
this.ignoreBadAspectRatio = true,
this.captureWithHardwareButtonsEnabled = true,
}) : requiredAspectRatios = requiredAspectRatios ?? [];