Interface IDocumentScannerViewController
-
- All Implemented Interfaces:
-
io.scanbot.sdk.ui.IAutoSnappingViewController,io.scanbot.sdk.ui.ICameraViewController,io.scanbot.sdk.ui.ILegacyCameraController,io.scanbot.sdk.ui.ILiveDetectionCameraController
public interface IDocumentScannerViewController implements IAutoSnappingViewController
Allows to control the state or the behavior of the IDocumentScannerView
-
-
Method Summary
Modifier and Type Method Description abstract UnitsetIgnoreBadAspectRatio(Boolean ignoreBadAspectRatio)Flag to determine whether to treat DetectionStatus. abstract UnitsetAcceptedAngleScore(Double acceptedAngleScore)The minimum score in percent (0 - 100) of the perspective distortion to accept a detected document. abstract UnitsetAcceptedSizeScore(Double acceptedSizeScore)The minimum size in percent (0 - 100) of the screen size to accept a detected document. abstract UnitsetAcceptedBrightnessThreshold(Double acceptedBrightnessThreshold)The brightness threshold to accept a detected document in the range of 0 (very dark) to 255 (very bright). abstract UnitsetRequiredAspectRatios(List<AspectRatio> requiredPageAspectRatios)Set required PageAspectRatios. -
-
Method Detail
-
setIgnoreBadAspectRatio
abstract Unit setIgnoreBadAspectRatio(Boolean ignoreBadAspectRatio)
Flag to determine whether to treat DetectionStatus.OK_BUT_BAD_ASPECT_RATIO status as DetectionStatus.OK. Default is
false
-
setAcceptedAngleScore
abstract Unit setAcceptedAngleScore(Double acceptedAngleScore)
The minimum score in percent (0 - 100) of the perspective distortion to accept a detected document. Default is 75.0. Set lower values to accept more perspective distortion.
Warning: Lower values result in more blurred document images.
-
setAcceptedSizeScore
abstract Unit setAcceptedSizeScore(Double acceptedSizeScore)
The minimum size in percent (0 - 100) of the screen size to accept a detected document. It is sufficient that height or width match the score. Default is 80.0.
Warning: Lower values result in low resolution document images.
-
setAcceptedBrightnessThreshold
abstract Unit setAcceptedBrightnessThreshold(Double acceptedBrightnessThreshold)
The brightness threshold to accept a detected document in the range of 0 (very dark) to 255 (very bright). If the average brightness value of the detectors input image is below this value, the status of the detection will be set to ERROR_TOO_DARK. Default is 50.
-
setRequiredAspectRatios
abstract Unit setRequiredAspectRatios(List<AspectRatio> requiredPageAspectRatios)
Set required PageAspectRatios.
-
-
-
-