Class DocumentScannerOutputSettings
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class DocumentScannerOutputSettings implements Parcelable
Configuration of the output settings.
-
-
Field Summary
Fields Modifier and Type Field Description private Integer
pagesScanLimit
private Integer
documentImageSizeLimit
private DocumentAnalysisMode
documentAnalysisMode
private ParametricFilter
defaultFilter
-
Constructor Summary
Constructors Constructor Description DocumentScannerOutputSettings(Map<String, Object> source)
DocumentScannerOutputSettings(JSONObject json)
DocumentScannerOutputSettings(Integer pagesScanLimit, Integer documentImageSizeLimit, DocumentAnalysisMode documentAnalysisMode, ParametricFilter defaultFilter)
-
Method Summary
Modifier and Type Method Description final Integer
getPagesScanLimit()
The limit of the number of pages that can be scanned. final Unit
setPagesScanLimit(Integer pagesScanLimit)
The limit of the number of pages that can be scanned. final Integer
getDocumentImageSizeLimit()
The limit of the size of the cropped document images. final Unit
setDocumentImageSizeLimit(Integer documentImageSizeLimit)
The limit of the size of the cropped document images. final DocumentAnalysisMode
getDocumentAnalysisMode()
Determines if the quality analysis for the acknowledgement mode will run on the filtered or the unfiltered image. final Unit
setDocumentAnalysisMode(DocumentAnalysisMode documentAnalysisMode)
Determines if the quality analysis for the acknowledgement mode will run on the filtered or the unfiltered image. final ParametricFilter
getDefaultFilter()
Determines the image filter to apply by default. final Unit
setDefaultFilter(ParametricFilter defaultFilter)
Determines the image filter to apply by default. final JSONObject
toJson()
final static DocumentScannerOutputSettings
default()
-
-
Constructor Detail
-
DocumentScannerOutputSettings
DocumentScannerOutputSettings(JSONObject json)
-
DocumentScannerOutputSettings
DocumentScannerOutputSettings(Integer pagesScanLimit, Integer documentImageSizeLimit, DocumentAnalysisMode documentAnalysisMode, ParametricFilter defaultFilter)
-
-
Method Detail
-
getPagesScanLimit
final Integer getPagesScanLimit()
The limit of the number of pages that can be scanned. Default is 0 (no limit). Default is 0
-
setPagesScanLimit
final Unit setPagesScanLimit(Integer pagesScanLimit)
The limit of the number of pages that can be scanned. Default is 0 (no limit). Default is 0
-
getDocumentImageSizeLimit
final Integer getDocumentImageSizeLimit()
The limit of the size of the cropped document images. If one of the dimensions of the cropped image is larger than the limit, the image is downscaled so that its longer dimension matches the limit. The default is 0 (no limit). Default is 0
-
setDocumentImageSizeLimit
final Unit setDocumentImageSizeLimit(Integer documentImageSizeLimit)
The limit of the size of the cropped document images. If one of the dimensions of the cropped image is larger than the limit, the image is downscaled so that its longer dimension matches the limit. The default is 0 (no limit). Default is 0
-
getDocumentAnalysisMode
final DocumentAnalysisMode getDocumentAnalysisMode()
Determines if the quality analysis for the acknowledgement mode will run on the filtered or the unfiltered image. Default is UNFILTERED_DOCUMENT
-
setDocumentAnalysisMode
final Unit setDocumentAnalysisMode(DocumentAnalysisMode documentAnalysisMode)
Determines if the quality analysis for the acknowledgement mode will run on the filtered or the unfiltered image. Default is UNFILTERED_DOCUMENT
-
getDefaultFilter
final ParametricFilter getDefaultFilter()
Determines the image filter to apply by default.
-
setDefaultFilter
final Unit setDefaultFilter(ParametricFilter defaultFilter)
Determines the image filter to apply by default.
-
toJson
final JSONObject toJson()
-
default
final static DocumentScannerOutputSettings default()
-
-
-
-