DocumentClassicScannerConfiguration class
Properties
-
acceptedAngleScore
↔ double?
-
The minimum score in percent (0 - 100) of the perspective distortion to accept a detected document. Default is 75.0.
getter/setter pair
-
acceptedSizeScore
↔ double?
-
The minimum document width or height in percent (0 - 100) of the screen size to accept a detected document. Default is 80.0.
getter/setter pair
-
autoSnapEnabled
↔ bool
-
Whether the auto-snapping after successful document detection is enabled or not.
getter/setter pair
-
autoSnapSensitivity
↔ double?
-
Changes sensitivity of auto-snapping. That is: the more sensitive it is the faster it shoots.
This parameter only works when
barcodeImageGenerationType = BarcodeImageGenerationType.CAPTURED_IMAGE
Sensitivity must be within (0..1) range. A value of 1.0 triggers automatic capturing immediately,
a value of 0.0 delays the automatic capturing by 3 seconds.
getter/setter pair
-
detectDocumentAfterSnap
↔ bool?
-
Whether to detect the document after snapping.
If enabled, the document scanner will try to detect the document in the captured image and provide the cropped image of the detected document along with the document detection result in the onSnappedDocumentResult callback.
If disabled, only the original image is provided in the onSnappedDocumentResult callback and no document detection is performed on the captured image.
Enabling this option may result in a longer processing time after snapping a document, especially on older devices.
Default - true
getter/setter pair
-
detectorType
→ DetectorType
-
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
ignoreOrientationMismatch
↔ bool?
-
getter/setter pair
-
partiallyVisibleDocumentConfiguration
↔ PartiallyVisibleDocumentConfiguration?
-
Configuration for handling partially visible documents.
getter/setter pair
-
requiredAspectRatios
↔ List<PageAspectRatio>?
-
Expected aspect ratios of the document. If the document has a different aspect ratio it will be rejected.
getter/setter pair
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited