public enum DetectionResult extends java.lang.Enum<DetectionResult>
ContourDetector.detect(byte[], int, int)| Enum Constant and Description |
|---|
ERROR_NOTHING_DETECTED
No polygon detected.
|
ERROR_TOO_DARK
No polygon detected, image too dark.
|
ERROR_TOO_NOISY
No polygon detected, image too noisy (background).
|
OK
A good polygon was detected.
|
OK_BARCODE
A barcode was detected.
|
OK_BUT_BAD_ANGLES
A polygon was detected but it is distorted too much.
|
OK_BUT_BAD_ASPECT_RATIO
A polygon was detected but its aspect ratio is wrong.
|
OK_BUT_TOO_SMALL
A polygon was detected but was too small.
|
| Modifier and Type | Method and Description |
|---|---|
static DetectionResult |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DetectionResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DetectionResult OK
public static final DetectionResult OK_BUT_TOO_SMALL
public static final DetectionResult OK_BUT_BAD_ANGLES
public static final DetectionResult OK_BUT_BAD_ASPECT_RATIO
public static final DetectionResult OK_BARCODE
public static final DetectionResult ERROR_NOTHING_DETECTED
public static final DetectionResult ERROR_TOO_DARK
public static final DetectionResult ERROR_TOO_NOISY
public static DetectionResult[] values()
for (DetectionResult c : DetectionResult.values()) System.out.println(c);
public static DetectionResult valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null