Enum Class DetectionStatus
- All Implemented Interfaces:
Serializable
,Comparable<DetectionStatus>
,Constable
Indicates a detection status for detection result
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDocument has been detected but the camera’s angle is too steep.Document has been detected but the camera is too close to the document.Document has been detected but the camera is too far from the document.Only part of the document is visible.Document has been detected but the document is too close to the camera edge.Detection has failed.Fallback detection was successful (PhotoPay specific).Document has been detected. -
Method Summary
Modifier and TypeMethodDescriptionstatic DetectionStatus
Returns the enum constant of this class with the specified name.static DetectionStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FAILED
Detection has failed. -
SUCCESS
Document has been detected. -
CAMERA_TOO_FAR
Document has been detected but the camera is too far from the document. -
CAMERA_TOO_CLOSE
Document has been detected but the camera is too close to the document. -
CAMERA_ANGLE_TOO_STEEP
Document has been detected but the camera’s angle is too steep. -
DOCUMENT_TOO_CLOSE_TO_CAMERA_EDGE
Document has been detected but the document is too close to the camera edge. -
DOCUMENT_PARTIALLY_VISIBLE
Only part of the document is visible. -
FALLBACK_SUCCESS
Fallback detection was successful (PhotoPay specific).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-