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 IntegerpagesScanLimitprivate IntegerdocumentImageSizeLimitprivate DocumentAnalysisModedocumentAnalysisModeprivate ParametricFilterdefaultFilter
-
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 IntegergetPagesScanLimit()The limit of the number of pages that can be scanned. final UnitsetPagesScanLimit(Integer pagesScanLimit)The limit of the number of pages that can be scanned. final IntegergetDocumentImageSizeLimit()The limit of the size of the cropped document images. final UnitsetDocumentImageSizeLimit(Integer documentImageSizeLimit)The limit of the size of the cropped document images. final DocumentAnalysisModegetDocumentAnalysisMode()Determines if the quality analysis for the acknowledgement mode will run on the filtered or the unfiltered image. final UnitsetDocumentAnalysisMode(DocumentAnalysisMode documentAnalysisMode)Determines if the quality analysis for the acknowledgement mode will run on the filtered or the unfiltered image. final ParametricFiltergetDefaultFilter()Determines the image filter to apply by default. final UnitsetDefaultFilter(ParametricFilter defaultFilter)Determines the image filter to apply by default. final JSONObjecttoJson(ToJsonConfiguration config)final DocumentScannerOutputSettingsclone()final static DocumentScannerOutputSettingsdefault()-
-
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(ToJsonConfiguration config)
-
clone
final DocumentScannerOutputSettings clone()
-
default
final static DocumentScannerOutputSettings default()
-
-
-
-