Skip to main content

Filters and image Processing

Scanbot SDK enables users to enhance their scanned pages or raw images by applying a variety of filters and rotation adjustments. Users can refine the visual quality of their documents with built-in filters or rotate images to achieve the correct orientation, ensuring professional and clear document presentation.

Supported parametric image filters

You can try out our filters directly on our Web Demo to experience how they work in real-time.

Here is the complete list of all the supported filters:

  • ColorDocumentFilter - Color document filter. This filter is a good starting point for most use cases.
  • ScanbotBinarizationFilter - Automatic binarization filter. This filter is a good starting point for most use cases. It has an OutputMode parameter that can be set to binary or antialiased.
  • CustomBinarizationFilter - Customizable binarization filter. It has a few presets for specific use cases:
    • BinarizationFilterPreset.preset1 - Usually performs well if there are no shadows.
    • BinarizationFilterPreset.preset2, BinarizationFilterPreset.preset3, BinarizationFilterPreset.preset4 - Usually perform well even if there are shadows.
  • BrightnessFilter - Filter for adjusting the image's brightness.
  • ContrastFilter - Filter for adjusting the image's contrast.
  • GrayscaleFilter - Converts color images to grayscale, optionally applying auto-contrast.
  • WhiteBlackPointFilter - Maps the image value channel so that all the pixels darker than the black point are set to 0, all the pixels brighter than the white point are set to 255, and the pixels in between are linearly scaled.
  • LegacyFilter - Applies a filter used for compatibility with older versions of the Scanbot SDK. It takes one of the old filter types as a parameter:
    • ImageFilterType.none - Does not apply an image filter and keeps the original colors.
    • ImageFilterType.color - Optimizes the colors, contrast and brightness.
    • ImageFilterType.gray - Grayscale filter.
    • ImageFilterType.binarized - Standard binarization filter with contrast optimization. Creates an 8-bit grayscale image with mostly black or white pixels.
    • ImageFilterType.colorDocument - MagicColor filter. Fixes the white balance and cleans up the background.
    • ImageFilterType.pureBinarized - A filter for binarizing the image. Creates an image with pixel values set to either pure black or pure white.
    • ImageFilterType.blackAndWhite - Black-and-white filter with background cleaning. Creates an 8-bit grayscale image with mostly black or white pixels.
    • ImageFilterType.backgroundClean - Cleans up the background and tries to preserve photos within the image.
    • ImageFilterType.otsuBinarization - A filter for black-and-white conversion using Otsu binarization.
    • ImageFilterType.deepBinarization - A filter for black-and-white conversion primary used for low-contrast documents.
    • ImageFilterType.edgeHighlight - A filter that enhances edges in low-contrast documents.
    • ImageFilterType.lowLightBinarization - Binarization filter primarily intended to use on low-contrast documents with hard shadows.
    • ImageFilterType.lowLightBinarization2 - Binarization filter primarily intended to use on low-contrast documents with hard shadows.
    • ImageFilterType.sensitiveBinarization - Binarization filter for poor-quality printed papers.

Applying filters and rotating a scanned page

Processing Scanned Page
loading...

Applying filters and rotating an image

Processing an image
loading...

Want to scan longer than one minute?

Generate a free trial license to test the Scanbot SDK thoroughly.

Get your free Trial License

What do you think of this documentation?