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

Shape Detection

IP Command Grooper.IP

Detects regions within an image which are similar to a sample image.

Remarks

The Shape Detection command is used to locate and identify visual elements in document images that match one or more provided sample images. Typical use cases include detecting stamps, seals, logos, or other graphical marks that serve as triggers for separation, classification, or extraction workflows in Grooper.

How Shape Detection Works

  1. The command preprocesses the input image, optionally binarizing, resizing, and dilating it according to configuration.
  2. Each sample image is compared to the document image at multiple scales and angles, using the selected proximity measure.
  3. Regions that match the sample(s) above the configured confidence threshold are reported as detected shapes.
  4. Detected shapes are output as Layout Data, including their location, scale, angle, and confidence score.

Supported Pixel Formats

All common pixel formats are supported, including Pixel8bppGrayscale, Pixel24bppBgr, and Pixel1bppIndexed. Images are automatically converted as needed for shape detection.

Diagnostics

When run in diagnostic mode, Shape Detection generates additional output to assist with configuration and troubleshooting:

  • Diagnostic images showing the region of interest, similarity maps, and detected shape locations.
  • Log messages listing detected shapes, their confidence scores, scales, angles, and sample names.
  • Visual overlays of detected shapes and search regions on the original image.

These diagnostics help you tune detection parameters and verify that only the intended shapes are being detected.

Classification Features

For each shape detected, Shape Detection generates a classification feature using the detected shape's name. These features are added to the result's feature dictionary and can be used by downstream classification, separation, or extraction logic to make decisions based on the presence or absence of specific shapes.

Example: If a shape named NotarySeal is detected, a feature with the name NotarySeal will be added to the result.

Configuration and Usage

To use Shape Detection, add it to an IP Profile or configure it as a property of a Grooper object. Provide one or more sample images representing the shapes to detect, and adjust the confidence, scale, and angle properties to match the expected appearance of the shapes in your documents. Use diagnostic output to fine-tune settings for your specific document types and image quality.

Properties

NameTypeDescription
General
Orientation and Scale
Preprocessing
Command Info

See Also

Used By

Notification