Enum JsonImageFilterType
-
- All Implemented Interfaces:
-
java.io.Serializable
,kotlin.Comparable
public enum JsonImageFilterType extends Enum<JsonImageFilterType>
The image filter types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NONE
Passthrough filter. Does not alter the image.
COLOR
Optimizes colors, contrast and brightness. Usecase: photos.
GRAYSCALE
Standard grayscale filter. Creates a grayscaled 8-bit image and optimizes contrast and dynamic range.
BINARIZED
Standard binarization filter with contrast optimization. Creates a grayscaled 8-bit image with mostly black or white pixels. Usecase: Preparation for optical character recognition.
COLOR_DOCUMENT
Fixes white-balance and cleans up the background. Usecase: images of paper documents.
PURE_BINARIZED
A filter for binarizing an image. Creates an 8-bit image with pixel values set to eiter 0 or 255. Usecase: Preparation for optical character recognition.
BACKGROUND_CLEAN
Cleans up the background and tries to preserve photos within the image. Usecase: magazine pages, flyers.
BLACK_AND_WHITE
Black and white filter with background cleaning. Creates a grayscaled 8-bit image with mostly black or white pixels. Usecase: Textual documents or documents with black and white illustrations.
OTSU_BINARIZATION
A filter for black and white conversion using OTSU binarization.
DEEP_BINARIZATION
A filter for black and white conversion primary used for low-contrast documents.
EDGE_HIGHLIGHT
A filter that enhances edges in low-contrast documents.
LOW_LIGHT_BINARIZATION
Binarization filter primary inteded to use on low-contrast documents with heavy shadows.
LOW_LIGHT_BINARIZATION_2
Binarization filter primary intended to use on low-contrast documents with heavy shadows.
SENSITIVE_BINARIZATION
Binarization filter for poor quality printed papers.
PURE_GRAY
Standard grayscale filter. Creates a grayscaled 8-bit image.
-
Method Summary
Modifier and Type Method Description final JsonImageFilterType
valueOf(String value)
Returns the enum constant of this type with the specified name. final Array<JsonImageFilterType>
values()
Returns an array containing the constants of this enum type, in the order they're declared. -
-
Method Detail
-
valueOf
final JsonImageFilterType valueOf(String value)
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.)
-
values
final Array<JsonImageFilterType> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
-
-
-