Package io.scanbot.sdk.documentdata
Class DocumentDataExtractorConfiguration
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class DocumentDataExtractorConfiguration implements Parcelable
Configuration for the document data extractor.
-
-
Field Summary
Fields Modifier and Type Field Description private ResultAccumulationConfiguration
resultAccumulationConfig
private List<String>
fieldExcludeList
private List<DocumentDataExtractorConfigurationElement>
configurations
private Boolean
returnCrops
-
Constructor Summary
Constructors Constructor Description DocumentDataExtractorConfiguration(Map<String, Object> source)
DocumentDataExtractorConfiguration(JSONObject json)
DocumentDataExtractorConfiguration(ResultAccumulationConfiguration resultAccumulationConfig, List<String> fieldExcludeList, List<DocumentDataExtractorConfigurationElement> configurations, Boolean returnCrops)
-
Method Summary
Modifier and Type Method Description final ResultAccumulationConfiguration
getResultAccumulationConfig()
Configuration for how to accumulate results. final Unit
setResultAccumulationConfig(ResultAccumulationConfiguration resultAccumulationConfig)
Configuration for how to accumulate results. final List<String>
getFieldExcludeList()
Normalized names of the fields to exclude from the result. final Unit
setFieldExcludeList(List<String> fieldExcludeList)
Normalized names of the fields to exclude from the result. final List<DocumentDataExtractorConfigurationElement>
getConfigurations()
List of configuration elements for the document data extractor. final Unit
setConfigurations(List<DocumentDataExtractorConfigurationElement> configurations)
List of configuration elements for the document data extractor. final Boolean
getReturnCrops()
If true, crops of the detected documents and fields will be returned in the result. final Unit
setReturnCrops(Boolean returnCrops)
If true, crops of the detected documents and fields will be returned in the result. final JSONObject
toJson(ToJsonConfiguration config)
final DocumentDataExtractorConfiguration
clone()
-
-
Constructor Detail
-
DocumentDataExtractorConfiguration
DocumentDataExtractorConfiguration(JSONObject json)
-
DocumentDataExtractorConfiguration
DocumentDataExtractorConfiguration(ResultAccumulationConfiguration resultAccumulationConfig, List<String> fieldExcludeList, List<DocumentDataExtractorConfigurationElement> configurations, Boolean returnCrops)
-
-
Method Detail
-
getResultAccumulationConfig
final ResultAccumulationConfiguration getResultAccumulationConfig()
Configuration for how to accumulate results.
-
setResultAccumulationConfig
final Unit setResultAccumulationConfig(ResultAccumulationConfiguration resultAccumulationConfig)
Configuration for how to accumulate results.
-
getFieldExcludeList
final List<String> getFieldExcludeList()
Normalized names of the fields to exclude from the result.
-
setFieldExcludeList
final Unit setFieldExcludeList(List<String> fieldExcludeList)
Normalized names of the fields to exclude from the result.
-
getConfigurations
final List<DocumentDataExtractorConfigurationElement> getConfigurations()
List of configuration elements for the document data extractor.
-
setConfigurations
final Unit setConfigurations(List<DocumentDataExtractorConfigurationElement> configurations)
List of configuration elements for the document data extractor.
-
getReturnCrops
final Boolean getReturnCrops()
If true, crops of the detected documents and fields will be returned in the result.
Default is false
-
setReturnCrops
final Unit setReturnCrops(Boolean returnCrops)
If true, crops of the detected documents and fields will be returned in the result.
Default is false
-
toJson
final JSONObject toJson(ToJsonConfiguration config)
-
clone
final DocumentDataExtractorConfiguration clone()
-
-
-
-