Package io.scanbot.sdk.mrz
Class MrzScannerConfiguration
- java.lang.Object
-
- io.scanbot.sdk.mrz.MrzScannerConfiguration
-
public class MrzScannerConfiguration extends java.lang.ObjectConfiguration for MRZ scanner.
-
-
Constructor Summary
Constructors Constructor Description MrzScannerConfiguration()Constructs MrzScannerConfiguration with default parameters.MrzScannerConfiguration(AccumulatedResultsVerifierConfiguration frameAccumulationConfiguration, boolean enableDetection, MrzIncompleteResultHandling incompleteResultHandling, boolean returnCrops, ProcessingMode processingMode)Constructs MrzScannerConfiguration with the given params.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetEnableDetection()Getter for enableDetection field.AccumulatedResultsVerifierConfigurationgetFrameAccumulationConfiguration()Getter for frameAccumulationConfiguration field.MrzIncompleteResultHandlinggetIncompleteResultHandling()Getter for incompleteResultHandling field.ProcessingModegetProcessingMode()Getter for processingMode field.booleangetReturnCrops()Getter for returnCrops field.voidsetEnableDetection(boolean enableDetection)Setter for enableDetection field.voidsetFrameAccumulationConfiguration(AccumulatedResultsVerifierConfiguration frameAccumulationConfiguration)Setter for frameAccumulationConfiguration field.voidsetIncompleteResultHandling(MrzIncompleteResultHandling incompleteResultHandling)Setter for incompleteResultHandling field.voidsetProcessingMode(ProcessingMode processingMode)Setter for processingMode field.voidsetReturnCrops(boolean returnCrops)Setter for returnCrops field.
-
-
-
Constructor Detail
-
MrzScannerConfiguration
public MrzScannerConfiguration(AccumulatedResultsVerifierConfiguration frameAccumulationConfiguration, boolean enableDetection, MrzIncompleteResultHandling incompleteResultHandling, boolean returnCrops, ProcessingMode processingMode)
Constructs MrzScannerConfiguration with the given params.- Parameters:
frameAccumulationConfiguration- Configure the frame accumulation process.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 trueincompleteResultHandling- Defines how to handle incomplete MRZ results (e.g. caused by failed validation). Default is REJECTreturnCrops- If true, crops of the detected MRZ and its fields will be returned in the result. Default is falseprocessingMode- Scanners typically can produce better results from a single image if they are allowed to spend a longer time analyzing it. On the other hand, scanners can produce even better results if they can analyze multiple images of the same subject and cross-check and combine the results. The processing mode tells the scanner whether to optimize for single or multiple images of a subject. Default is AUTO
-
MrzScannerConfiguration
public MrzScannerConfiguration()
Constructs MrzScannerConfiguration with default parameters.
-
-
Method Detail
-
getFrameAccumulationConfiguration
public AccumulatedResultsVerifierConfiguration getFrameAccumulationConfiguration()
Getter for frameAccumulationConfiguration field. See constructor documentation for more information about the field.- Returns:
- frameAccumulationConfiguration
-
setFrameAccumulationConfiguration
public void setFrameAccumulationConfiguration(AccumulatedResultsVerifierConfiguration frameAccumulationConfiguration)
Setter for frameAccumulationConfiguration field. See constructor documentation for more information about the field.- Parameters:
frameAccumulationConfiguration- Value to set.
-
getEnableDetection
public boolean getEnableDetection()
Getter for enableDetection field. See constructor documentation for more information about the field.- Returns:
- enableDetection
-
setEnableDetection
public void setEnableDetection(boolean enableDetection)
Setter for enableDetection field. See constructor documentation for more information about the field.- Parameters:
enableDetection- Value to set.
-
getIncompleteResultHandling
public MrzIncompleteResultHandling getIncompleteResultHandling()
Getter for incompleteResultHandling field. See constructor documentation for more information about the field.- Returns:
- incompleteResultHandling
-
setIncompleteResultHandling
public void setIncompleteResultHandling(MrzIncompleteResultHandling incompleteResultHandling)
Setter for incompleteResultHandling field. See constructor documentation for more information about the field.- Parameters:
incompleteResultHandling- Value to set.
-
getReturnCrops
public boolean getReturnCrops()
Getter for returnCrops field. See constructor documentation for more information about the field.- Returns:
- returnCrops
-
setReturnCrops
public void setReturnCrops(boolean returnCrops)
Setter for returnCrops field. See constructor documentation for more information about the field.- Parameters:
returnCrops- Value to set.
-
getProcessingMode
public ProcessingMode getProcessingMode()
Getter for processingMode field. See constructor documentation for more information about the field.- Returns:
- processingMode
-
setProcessingMode
public void setProcessingMode(ProcessingMode processingMode)
Setter for processingMode field. See constructor documentation for more information about the field.- Parameters:
processingMode- Value to set.
-
-