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 ResultAccumulationConfigurationresultAccumulationConfigprivate List<String>fieldExcludeListprivate List<DocumentDataExtractorConfigurationElement>configurationsprivate BooleanreturnCrops
-
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 ResultAccumulationConfigurationgetResultAccumulationConfig()Configuration for how to accumulate results. final UnitsetResultAccumulationConfig(ResultAccumulationConfiguration resultAccumulationConfig)Configuration for how to accumulate results. final List<String>getFieldExcludeList()Normalized names of the fields to exclude from the result. final UnitsetFieldExcludeList(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 UnitsetConfigurations(List<DocumentDataExtractorConfigurationElement> configurations)List of configuration elements for the document data extractor. final BooleangetReturnCrops()If true, crops of the detected documents and fields will be returned in the result. final UnitsetReturnCrops(Boolean returnCrops)If true, crops of the detected documents and fields will be returned in the result. final JSONObjecttoJson(ToJsonConfiguration config)final DocumentDataExtractorConfigurationclone()-
-
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()
-
-
-
-