Package io.scanbot.sdk.documentdata
Class DocumentDataExtractorConfiguration
java.lang.Object
io.scanbot.sdk.documentdata.DocumentDataExtractorConfiguration
Configuration for the document data extractor.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs DocumentDataExtractorConfiguration with default parameters.DocumentDataExtractorConfiguration(ResultAccumulationConfiguration resultAccumulationConfig, List<String> fieldExcludeList, List<DocumentDataExtractorConfigurationElement> configurations, boolean returnCrops, DocumentTrustMode documentTrustMode, ProcessingMode processingMode) Constructs DocumentDataExtractorConfiguration with the given params. -
Method Summary
Modifier and TypeMethodDescriptionGetter for configurations field.Getter for documentTrustMode field.Getter for fieldExcludeList field.Getter for processingMode field.Getter for resultAccumulationConfig field.booleanGetter for returnCrops field.voidsetConfigurations(List<DocumentDataExtractorConfigurationElement> configurations) Setter for configurations field.voidsetDocumentTrustMode(DocumentTrustMode documentTrustMode) Setter for documentTrustMode field.voidsetFieldExcludeList(List<String> fieldExcludeList) Setter for fieldExcludeList field.voidsetProcessingMode(ProcessingMode processingMode) Setter for processingMode field.voidsetResultAccumulationConfig(ResultAccumulationConfiguration resultAccumulationConfig) Setter for resultAccumulationConfig field.voidsetReturnCrops(boolean returnCrops) Setter for returnCrops field.
-
Constructor Details
-
DocumentDataExtractorConfiguration
public DocumentDataExtractorConfiguration(ResultAccumulationConfiguration resultAccumulationConfig, List<String> fieldExcludeList, List<DocumentDataExtractorConfigurationElement> configurations, boolean returnCrops, DocumentTrustMode documentTrustMode, ProcessingMode processingMode) Constructs DocumentDataExtractorConfiguration with the given params.- Parameters:
resultAccumulationConfig- Configuration for how to accumulate results.fieldExcludeList- Normalized names of the fields to exclude from the result.configurations- List of configuration elements for the document data extractor.returnCrops- If true, crops of the detected documents and fields will be returned in the result. Default is `false`.documentTrustMode- Level of trust in the authenticity of the extracted document. Default is `TRUSTED`.processingMode- Scanners typically can produce better results from a single image if they are allowed to spend a longer time analyzing it. On the other hand, scanners can produce even better results if they can analyze multiple images of the same subject and cross-check and combine the results. The processing mode tells the scanner whether to optimize for single or multiple images of a subject. Default is `AUTO`.
-
DocumentDataExtractorConfiguration
public DocumentDataExtractorConfiguration()Constructs DocumentDataExtractorConfiguration with default parameters.
-
-
Method Details
-
getResultAccumulationConfig
Getter for resultAccumulationConfig field. See constructor documentation for more information about the field.- Returns:
- resultAccumulationConfig
-
setResultAccumulationConfig
Setter for resultAccumulationConfig field. See constructor documentation for more information about the field.- Parameters:
resultAccumulationConfig- Value to set.
-
getFieldExcludeList
Getter for fieldExcludeList field. See constructor documentation for more information about the field.- Returns:
- fieldExcludeList
-
setFieldExcludeList
Setter for fieldExcludeList field. See constructor documentation for more information about the field.- Parameters:
fieldExcludeList- Value to set.
-
getConfigurations
Getter for configurations field. See constructor documentation for more information about the field.- Returns:
- configurations
-
setConfigurations
Setter for configurations field. See constructor documentation for more information about the field.- Parameters:
configurations- Value to set.
-
getReturnCrops
public boolean getReturnCrops()Getter for returnCrops field. See constructor documentation for more information about the field.- Returns:
- returnCrops
-
setReturnCrops
public void setReturnCrops(boolean returnCrops) Setter for returnCrops field. See constructor documentation for more information about the field.- Parameters:
returnCrops- Value to set.
-
getDocumentTrustMode
Getter for documentTrustMode field. See constructor documentation for more information about the field.- Returns:
- documentTrustMode
-
setDocumentTrustMode
Setter for documentTrustMode field. See constructor documentation for more information about the field.- Parameters:
documentTrustMode- 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.
-