Package io.scanbot.sdk.check
Enum CheckDocumentDetectionMode
- java.lang.Object
-
- java.lang.Enum<CheckDocumentDetectionMode>
-
- io.scanbot.sdk.check.CheckDocumentDetectionMode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CheckDocumentDetectionMode>
public enum CheckDocumentDetectionMode extends java.lang.Enum<CheckDocumentDetectionMode>
Check document detection and extraction mode.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DETECT_AND_CROP_DOCUMENTDocument scanner will be used to locate the complete check in the input image.DETECT_DOCUMENTDocument scanner will be used to locate the complete check in the input image.DISABLEDDocument detection is not performed.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CheckDocumentDetectionModevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CheckDocumentDetectionMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DISABLED
public static final CheckDocumentDetectionMode DISABLED
Document detection is not performed. Successful check scans will only contain the machine-readable check data without a full crop of the check.
-
DETECT_DOCUMENT
public static final CheckDocumentDetectionMode DETECT_DOCUMENT
Document scanner will be used to locate the complete check in the input image. The documentDetectionResult result field will contain the result of document detection.
-
DETECT_AND_CROP_DOCUMENT
public static final CheckDocumentDetectionMode DETECT_AND_CROP_DOCUMENT
Document scanner will be used to locate the complete check in the input image. The documentDetectionResult result field will contain the result of document detection. The croppedImage result field will contain a crop of the entire check.
-
-
Method Detail
-
values
public static CheckDocumentDetectionMode[] 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 (CheckDocumentDetectionMode c : CheckDocumentDetectionMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CheckDocumentDetectionMode 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
-
-