public enum DetectionResult
Result from ContourDetector.detect
ContourDetector.detectpublic static DetectionResult OK
A good polygon was detected.
public static DetectionResult OK_BUT_TOO_SMALL
A polygon was detected but was too small.
public static DetectionResult OK_BUT_BAD_ANGLES
A polygon was detected but it is distorted too much.
public static DetectionResult OK_BUT_BAD_ASPECT_RATIO
A polygon was detected but its aspect ratio is wrong.
public static DetectionResult OK_OFF_CENTER
A polygon was detected, but its center is too far away from the image center.
public static DetectionResult OK_BARCODE
A barcode was detected.
public static DetectionResult ERROR_NOTHING_DETECTED
No polygon detected.
public static DetectionResult ERROR_TOO_DARK
No polygon detected, image too dark. (Not yet used)
public static DetectionResult ERROR_TOO_NOISY
No polygon detected, image too noisy (background).