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 NONEPassthrough filter. Does not alter the image.
COLOROptimizes colors, contrast and brightness. Usecase: photos.
GRAYSCALEStandard grayscale filter. Creates a grayscaled 8-bit image and optimizes contrast and dynamic range.
BINARIZEDStandard binarization filter with contrast optimization. Creates a grayscaled 8-bit image with mostly black or white pixels. Usecase: Preparation for optical character recognition.
COLOR_DOCUMENTFixes white-balance and cleans up the background. Usecase: images of paper documents.
PURE_BINARIZEDA 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_CLEANCleans up the background and tries to preserve photos within the image. Usecase: magazine pages, flyers.
BLACK_AND_WHITEBlack 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_BINARIZATIONA filter for black and white conversion using OTSU binarization.
DEEP_BINARIZATIONA filter for black and white conversion primary used for low-contrast documents.
EDGE_HIGHLIGHTA filter that enhances edges in low-contrast documents.
LOW_LIGHT_BINARIZATIONBinarization filter primary inteded to use on low-contrast documents with heavy shadows.
LOW_LIGHT_BINARIZATION_2Binarization filter primary intended to use on low-contrast documents with heavy shadows.
SENSITIVE_BINARIZATIONBinarization filter for poor quality printed papers.
PURE_GRAYStandard grayscale filter. Creates a grayscaled 8-bit image.
-
Method Summary
Modifier and Type Method Description final JsonImageFilterTypevalueOf(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.
-
-
-
-