Package io.scanbot.sdk.documentscanner
Class DocumentScannerConfiguration
java.lang.Object
io.scanbot.sdk.documentscanner.DocumentScannerConfiguration
Configuration for the document scanner.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs DocumentScannerConfiguration with default parameters.DocumentScannerConfiguration(DocumentScannerEngineMode engineMode, ProcessingMode processingMode, DocumentScannerParameters parameters, PartiallyVisibleDocumentConfiguration partiallyVisibleDocumentConfiguration) Constructs DocumentScannerConfiguration with the given params. -
Method Summary
Modifier and TypeMethodDescriptionGetter for engineMode field.Getter for parameters field.Getter for partiallyVisibleDocumentConfiguration field.Getter for processingMode field.voidsetEngineMode(DocumentScannerEngineMode engineMode) Setter for engineMode field.voidsetParameters(DocumentScannerParameters parameters) Setter for parameters field.voidsetPartiallyVisibleDocumentConfiguration(PartiallyVisibleDocumentConfiguration partiallyVisibleDocumentConfiguration) Setter for partiallyVisibleDocumentConfiguration field.voidsetProcessingMode(ProcessingMode processingMode) Setter for processingMode field.
-
Constructor Details
-
DocumentScannerConfiguration
public DocumentScannerConfiguration(DocumentScannerEngineMode engineMode, ProcessingMode processingMode, DocumentScannerParameters parameters, PartiallyVisibleDocumentConfiguration partiallyVisibleDocumentConfiguration) Constructs DocumentScannerConfiguration with the given params.- Parameters:
engineMode- The engine to use for document scanning. Default is `ML`.processingMode- In live mode, the document scanner will return only the best document contour. In single-shot mode it will return additional document contours, suitable for use in the cropping screen. Default is `AUTO`.parameters- Initial parameters for the document scanner.partiallyVisibleDocumentConfiguration- Configuration for handling partially visible documents. Has an effect only: - with ML engine mode - when configured with allowPartiallyVisibleDocuments set to true.
-
DocumentScannerConfiguration
public DocumentScannerConfiguration()Constructs DocumentScannerConfiguration with default parameters.
-
-
Method Details
-
getEngineMode
Getter for engineMode field. See constructor documentation for more information about the field.- Returns:
- engineMode
-
setEngineMode
Setter for engineMode field. See constructor documentation for more information about the field.- Parameters:
engineMode- Value to set.
-
getProcessingMode
Getter for processingMode field. See constructor documentation for more information about the field.- Returns:
- processingMode
-
setProcessingMode
Setter for processingMode field. See constructor documentation for more information about the field.- Parameters:
processingMode- Value to set.
-
getParameters
Getter for parameters field. See constructor documentation for more information about the field.- Returns:
- parameters
-
setParameters
Setter for parameters field. See constructor documentation for more information about the field.- Parameters:
parameters- Value to set.
-
getPartiallyVisibleDocumentConfiguration
Getter for partiallyVisibleDocumentConfiguration field. See constructor documentation for more information about the field.- Returns:
- partiallyVisibleDocumentConfiguration
-
setPartiallyVisibleDocumentConfiguration
public void setPartiallyVisibleDocumentConfiguration(PartiallyVisibleDocumentConfiguration partiallyVisibleDocumentConfiguration) Setter for partiallyVisibleDocumentConfiguration field. See constructor documentation for more information about the field.- Parameters:
partiallyVisibleDocumentConfiguration- Value to set.
-