Package io.scanbot.sdk.documentscanner
Class DocumentScannerConfiguration
- java.lang.Object
-
- io.scanbot.sdk.documentscanner.DocumentScannerConfiguration
-
public class DocumentScannerConfiguration extends java.lang.ObjectConfiguration for the document scanner.
-
-
Constructor Summary
Constructors Constructor Description DocumentScannerConfiguration()Constructs DocumentScannerConfiguration with default parameters.DocumentScannerConfiguration(DocumentScannerEngineMode engineMode, ProcessingMode processingMode, DocumentScannerParameters parameters, PartiallyVisibleDocumentConfiguration partiallyVisibleDocumentConfiguration)Constructs DocumentScannerConfiguration with the given params.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentScannerEngineModegetEngineMode()Getter for engineMode field.DocumentScannerParametersgetParameters()Getter for parameters field.PartiallyVisibleDocumentConfigurationgetPartiallyVisibleDocumentConfiguration()Getter for partiallyVisibleDocumentConfiguration field.ProcessingModegetProcessingMode()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 Detail
-
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 MLprocessingMode- 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 AUTOparameters- Initial parameters for the document scanner.partiallyVisibleDocumentConfiguration- Configuration for handling partially visible documents.
-
DocumentScannerConfiguration
public DocumentScannerConfiguration()
Constructs DocumentScannerConfiguration with default parameters.
-
-
Method Detail
-
getEngineMode
public DocumentScannerEngineMode getEngineMode()
Getter for engineMode field. See constructor documentation for more information about the field.- Returns:
- engineMode
-
setEngineMode
public void setEngineMode(DocumentScannerEngineMode engineMode)
Setter for engineMode field. See constructor documentation for more information about the field.- Parameters:
engineMode- Value to set.
-
getProcessingMode
public ProcessingMode getProcessingMode()
Getter for processingMode field. See constructor documentation for more information about the field.- Returns:
- processingMode
-
setProcessingMode
public void setProcessingMode(ProcessingMode processingMode)
Setter for processingMode field. See constructor documentation for more information about the field.- Parameters:
processingMode- Value to set.
-
getParameters
public DocumentScannerParameters getParameters()
Getter for parameters field. See constructor documentation for more information about the field.- Returns:
- parameters
-
setParameters
public void setParameters(DocumentScannerParameters parameters)
Setter for parameters field. See constructor documentation for more information about the field.- Parameters:
parameters- Value to set.
-
getPartiallyVisibleDocumentConfiguration
public PartiallyVisibleDocumentConfiguration 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.
-
-