Class MrzScannerConfiguration
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class MrzScannerConfiguration implements Parcelable
Configuration for MRZ scanner.
-
-
Field Summary
Fields Modifier and Type Field Description private AccumulatedResultsVerifierConfigurationframeAccumulationConfigurationprivate BooleanenableDetectionprivate MrzIncompleteResultHandlingincompleteResultHandlingprivate BooleanreturnCrops
-
Constructor Summary
Constructors Constructor Description MrzScannerConfiguration(Map<String, Object> source)MrzScannerConfiguration(JSONObject json)MrzScannerConfiguration(AccumulatedResultsVerifierConfiguration frameAccumulationConfiguration, Boolean enableDetection, MrzIncompleteResultHandling incompleteResultHandling, Boolean returnCrops)
-
Method Summary
Modifier and Type Method Description final AccumulatedResultsVerifierConfigurationgetFrameAccumulationConfiguration()Configure the frame accumulation process. final UnitsetFrameAccumulationConfiguration(AccumulatedResultsVerifierConfiguration frameAccumulationConfiguration)Configure the frame accumulation process. final BooleangetEnableDetection()Enable MRZ detection. final UnitsetEnableDetection(Boolean enableDetection)Enable MRZ detection. final MrzIncompleteResultHandlinggetIncompleteResultHandling()Defines how to handle incomplete MRZ results (e.g. final UnitsetIncompleteResultHandling(MrzIncompleteResultHandling incompleteResultHandling)Defines how to handle incomplete MRZ results (e.g. final BooleangetReturnCrops()If true, crops of the detected MRZ and its fields will be returned in the result. final UnitsetReturnCrops(Boolean returnCrops)If true, crops of the detected MRZ and its fields will be returned in the result. final JSONObjecttoJson(ToJsonConfiguration config)final MrzScannerConfigurationclone()final static MrzScannerConfigurationdefault()-
-
Constructor Detail
-
MrzScannerConfiguration
MrzScannerConfiguration(JSONObject json)
-
MrzScannerConfiguration
MrzScannerConfiguration(AccumulatedResultsVerifierConfiguration frameAccumulationConfiguration, Boolean enableDetection, MrzIncompleteResultHandling incompleteResultHandling, Boolean returnCrops)
-
-
Method Detail
-
getFrameAccumulationConfiguration
final AccumulatedResultsVerifierConfiguration getFrameAccumulationConfiguration()
Configure the frame accumulation process.
-
setFrameAccumulationConfiguration
final Unit setFrameAccumulationConfiguration(AccumulatedResultsVerifierConfiguration frameAccumulationConfiguration)
Configure the frame accumulation process.
-
getEnableDetection
final Boolean getEnableDetection()
Enable MRZ detection. If disabled, the scanner skips the detection step and assumes that the input image is a crop of the MRZ area.
Default is true
-
setEnableDetection
final Unit setEnableDetection(Boolean enableDetection)
Enable MRZ detection. If disabled, the scanner skips the detection step and assumes that the input image is a crop of the MRZ area.
Default is true
-
getIncompleteResultHandling
final MrzIncompleteResultHandling getIncompleteResultHandling()
Defines how to handle incomplete MRZ results (e.g. caused by failed validation).
Default is REJECT
-
setIncompleteResultHandling
final Unit setIncompleteResultHandling(MrzIncompleteResultHandling incompleteResultHandling)
Defines how to handle incomplete MRZ results (e.g. caused by failed validation).
Default is REJECT
-
getReturnCrops
final Boolean getReturnCrops()
If true, crops of the detected MRZ and its fields will be returned in the result.
Default is false
-
setReturnCrops
final Unit setReturnCrops(Boolean returnCrops)
If true, crops of the detected MRZ and its fields will be returned in the result.
Default is false
-
toJson
final JSONObject toJson(ToJsonConfiguration config)
-
clone
final MrzScannerConfiguration clone()
-
default
final static MrzScannerConfiguration default()
-
-
-
-