Package io.scanbot.sdk.frameaccumulation
Enum ConfirmationMethod
- java.lang.Object
-
- java.lang.Enum<ConfirmationMethod>
-
- io.scanbot.sdk.frameaccumulation.ConfirmationMethod
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ConfirmationMethod>
public enum ConfirmationMethod extends java.lang.Enum<ConfirmationMethod>
Method used to confirm a result.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXACTRequire seeing the same result multiple times to confirm it.INTERPOLATEInterpolate between seen values to generate the most likely true value.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConfirmationMethodvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ConfirmationMethod[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EXACT
public static final ConfirmationMethod EXACT
Require seeing the same result multiple times to confirm it. E.g. if the seen values are "John B. Doe", "John B.", "B. Doe", "John B. Doe" then the confirmation count for the value "John B. Doe" is 2 and for the rest it's 1. A field's value is considered CONFIRMED if its confirmation count is greater or equal to minConfirmations.
-
INTERPOLATE
public static final ConfirmationMethod INTERPOLATE
Interpolate between seen values to generate the most likely true value. E.g. if the seen values are "John X. Doe", "John B.", "B. Doe" then the most likely true value can be interpolated to be "John B. Doe". The interpolated value is considered CONFIRMED if each character in it has been seen at least minConfirmations times.
-
-
Method Detail
-
values
public static ConfirmationMethod[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ConfirmationMethod c : ConfirmationMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConfirmationMethod valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-