Package io.scanbot.sdk.documentdata
Class MrzFallbackConfiguration
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class MrzFallbackConfiguration extends DocumentDataExtractorConfigurationElement implements Parcelable
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.
-
-
Field Summary
Fields Modifier and Type Field Description private final String
_type
private List<String>
acceptedCountries
private List<MrzDocumentType>
acceptedMRZTypes
-
Constructor Summary
Constructors Constructor Description MrzFallbackConfiguration(Map<String, Object> source)
MrzFallbackConfiguration(JSONObject json)
MrzFallbackConfiguration(List<String> acceptedCountries, List<MrzDocumentType> acceptedMRZTypes)
-
Method Summary
Modifier and Type Method Description String
get_type()
final List<String>
getAcceptedCountries()
List of ISO 3166-1 alpha-3 country codes for which the MRZ fallback is enabled. final Unit
setAcceptedCountries(List<String> acceptedCountries)
List of ISO 3166-1 alpha-3 country codes for which the MRZ fallback is enabled. final List<MrzDocumentType>
getAcceptedMRZTypes()
List of MRZ document types for which MRZ fallback is enabled. final Unit
setAcceptedMRZTypes(List<MrzDocumentType> acceptedMRZTypes)
List of MRZ document types for which MRZ fallback is enabled. JSONObject
toJson(ToJsonConfiguration config)
MrzFallbackConfiguration
clone()
final static MrzFallbackConfiguration
default()
-
-
Constructor Detail
-
MrzFallbackConfiguration
MrzFallbackConfiguration(JSONObject json)
-
MrzFallbackConfiguration
MrzFallbackConfiguration(List<String> acceptedCountries, List<MrzDocumentType> acceptedMRZTypes)
-
-
Method Detail
-
getAcceptedCountries
final List<String> getAcceptedCountries()
List of ISO 3166-1 alpha-3 country codes for which the MRZ fallback is enabled. (e.g. "DEU" for Germany).
-
setAcceptedCountries
final Unit setAcceptedCountries(List<String> acceptedCountries)
List of ISO 3166-1 alpha-3 country codes for which the MRZ fallback is enabled. (e.g. "DEU" for Germany).
-
getAcceptedMRZTypes
final List<MrzDocumentType> getAcceptedMRZTypes()
List of MRZ document types for which MRZ fallback is enabled.
-
setAcceptedMRZTypes
final Unit setAcceptedMRZTypes(List<MrzDocumentType> acceptedMRZTypes)
List of MRZ document types for which MRZ fallback is enabled.
-
toJson
JSONObject toJson(ToJsonConfiguration config)
-
clone
MrzFallbackConfiguration clone()
-
default
final static MrzFallbackConfiguration default()
-
-
-
-