public enum ImageFilterType
Image filter types.
public static ImageFilterType NONE
Passthrough filter. Does not alter the image.
public static ImageFilterType COLOR_ENHANCED
Optimizes colors, contrast and brightness. Usecase: photos.
public static ImageFilterType GRAYSCALE
Standard grayscale filter. Creates a grayscaled 8-bit image.
public static ImageFilterType 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.
public static ImageFilterType COLOR_DOCUMENT
Fixes white-balance and cleans up the background. Usecase: images of paper documents.
public static ImageFilterType 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.
public static ImageFilterType BACKGROUND_CLEAN
Cleans up the background and tries to preserve photos within the image. Usecase: magazine pages, flyers.
public static ImageFilterType 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.
public static ImageFilterType OTSU_BINARIZATION
A filter for black and white conversion using OTSU binarization.
public static ImageFilterType DEEP_BINARIZATION
A filter for black and white conversion primary used for low-contrast documents.
public static ImageFilterType EDGE_HIGHLIGHT
A filter that enhances edges in low-contrast documents.
public static ImageFilterType LOW_LIGHT_BINARIZATION
Binarization filter primary intended to use on low-contrast documents with heavy shadows.
public static ImageFilterType LOW_LIGHT_BINARIZATION_2
Binarization filter primary intended to use on low-contrast documents with heavy shadows.
public static ImageFilterType SENSITIVE_BINARIZATION
Binarization filter for poor quality printed papers.
public int getCode()
@NotNull public java.lang.String getFilterName()
enum ImageFilterType which doesn't depends on the instance name (e.g. used as filename postfix, etc).@JvmStatic @NotNull public static ImageFilterType getByCode(int code)
code - enum ImageFilterType corresponding to the given codeIllegalStateException - if no enum ImageFilterType was found for a given code@JvmStatic @NotNull public static java.util.List<io.scanbot.sdk.process.ImageFilterType> getBinarizationFilters()