Grooper Help - Version 25.0
25.0.0017 2,127
  • Overview
  • Help Status

Fill

Dropout Method Grooper.IP

Fills masked regions of an image with a solid color.

Remarks

The Fill dropout method is used to replace regions of an image defined by a mask with a solid color. This is commonly used in document processing scenarios where you need to remove or obscure unwanted content, such as form lines, backgrounds, or sensitive information, by filling those areas with a uniform color.

The Fill method works by applying a mask to the image, identifying the regions to be filled. The color used for filling can be explicitly specified using the 'Fill Color' property, or, if left unspecified, the background color of the image will be detected automatically and used by default. This background color detection analyzes the document to determine the most likely background shade, ensuring that filled regions blend naturally with the rest of the page.

How It Works

  1. A mask image is provided, where masked regions indicate the areas to be filled.
  2. The Fill method determines the fill color, either from the 'Fill Color' property or by detecting the image's background color.
  3. The masked regions in the image are replaced with the fill color, while unmasked regions remain unchanged.

Configuration and Usage

  • Assign the Fill dropout method to an image processing step where you want to remove or obscure content.
  • Configure the 'Fill Color' property to specify the color to use for filling. If not set, the background color of the document will be detected and used automatically.
  • Use in conjunction with other dropout methods or preprocessing steps to achieve the desired document cleanup or redaction.

Best Practices

  • If you want filled regions to blend seamlessly with the document, leave 'Fill Color' empty to enable automatic background color detection.
  • For redaction, set 'Fill Color' to Color.Black or Color.White as needed.
  • Test the dropout method on sample images to ensure the filled regions blend appropriately and do not interfere with downstream processing.
  • Document the intent and configuration of each Fill method instance for maintainability.

Properties

NameTypeDescription

Used By

Notification