Package io.scanbot.sdk.documentdata
Class MrzFallbackConfiguration
java.lang.Object
io.scanbot.sdk.documentdata.DocumentDataExtractorConfigurationElement
io.scanbot.sdk.documentdata.MrzFallbackConfiguration
MRZ fallback configuration element.
This configuration element does not enable the scanning of any document types by itself.
Add to extractor configuration to enable recognizing the MRZ only, specifically for documents that are otherwise not supported.
Note that this may enable scanning of documents that were not enabled through the accepted document types.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs MrzFallbackConfiguration with default parameters.MrzFallbackConfiguration(List<String> acceptedCountries, List<MrzDocumentType> acceptedMRZTypes) Constructs MrzFallbackConfiguration with the given params. -
Method Summary
Modifier and TypeMethodDescriptionGetter for acceptedCountries field.Getter for acceptedMRZTypes field.voidsetAcceptedCountries(List<String> acceptedCountries) Setter for acceptedCountries field.voidsetAcceptedMRZTypes(List<MrzDocumentType> acceptedMRZTypes) Setter for acceptedMRZTypes field.
-
Constructor Details
-
MrzFallbackConfiguration
public MrzFallbackConfiguration(List<String> acceptedCountries, List<MrzDocumentType> acceptedMRZTypes) Constructs MrzFallbackConfiguration with the given params.- Parameters:
acceptedCountries- List of ISO 3166-1 alpha-3 country codes for which the MRZ fallback is enabled. (e.g. "DEU" for Germany).acceptedMRZTypes- List of MRZ document types for which MRZ fallback is enabled.
-
MrzFallbackConfiguration
public MrzFallbackConfiguration()Constructs MrzFallbackConfiguration with default parameters.
-
-
Method Details
-
getAcceptedCountries
Getter for acceptedCountries field. See constructor documentation for more information about the field.- Returns:
- acceptedCountries
-
setAcceptedCountries
Setter for acceptedCountries field. See constructor documentation for more information about the field.- Parameters:
acceptedCountries- Value to set.
-
getAcceptedMRZTypes
Getter for acceptedMRZTypes field. See constructor documentation for more information about the field.- Returns:
- acceptedMRZTypes
-
setAcceptedMRZTypes
Setter for acceptedMRZTypes field. See constructor documentation for more information about the field.- Parameters:
acceptedMRZTypes- Value to set.
-