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

Color Stamp Detection

IP Command Grooper.IP

Detects color stamps in document images for use in separation, classification, or automated removal workflows.

Remarks

The Color Stamp Detection command identifies color stamps or highlighter marks on scanned images, typically used to indicate lead pages or document boundaries during batch preparation. This enables efficient separation and classification without the need for physical separator sheets.

The command locates color blobs matching configurable criteria (color distance, size, aspect ratio, and region of interest), records the detected stamp name, and can optionally remove the stamp from the image. It is designed for use with the Shape Detected Separation Event, but can be used in any workflow requiring color stamp detection.

How Color Stamp Detection Works

  1. The image is filtered to isolate non-gray (color) regions using the 'Color Distance' threshold.
  2. The result is binarized and optionally dilated to merge small specks with nearby blobs.
  3. Blobs are filtered by width, height, and aspect ratio to exclude noise and non-stamp features.
  4. If a region of interest (ROI) is specified, only that area is searched for stamps.
  5. Detected stamps are recorded with the configured name, and the page can be flagged if multiple stamps are found.
  6. Optionally, the detected stamp is removed from the image using a configurable edge factor.

Supported Pixel Formats

  • The command supports all color pixel formats: Pixel24bppBgr, Pixel32bppArgb, etc.
  • Images are automatically converted as needed for processing.

Diagnostics

When run in diagnostic mode, Color Stamp Detection generates outputs to assist with configuration and troubleshooting:

  • Color Only Image: Shows the result of color filtering based on 'Color Distance'.
  • Blob Candidates: Overlays detected blobs before filtering.
  • Final Blobs: Shows blobs that passed all filters and are considered stamps.
  • Dropout Mask / Output Image: Visualizes stamp removal and edge trimming.
  • Log Messages: Reports blob counts, exclusion reasons, and removal actions.

Use these diagnostics to fine-tune detection parameters and ensure only intended stamps are detected and removed.

Classification Features

  • Detected stamps are recorded with the configured name for use in separation or classification.
  • The page can be flagged if multiple stamps are detected, supporting quality control or exception handling.

Practical Guidance

  • Set 'Color Distance' to distinguish stamps from gray or near-gray features.
  • Use 'Dilation Factor' to merge small specks with stamps, improving robustness.
  • Configure 'Width Range', 'Height Range', and 'Maximum Aspect Ratio' to match the expected stamp size and shape.
  • Specify an ROI to limit detection to a known area (e.g., top corner).
  • Enable 'Remove Stamp' to clean up images after detection, and adjust 'Stamp Removal Edge Factor' for thoroughness.
  • Review diagnostic images and logs to validate detection and removal.

Properties

NameTypeDescription
General
Filtering
Command Info

See Also

Used By

Notification