Grooper Help - Version 25.0
25.0.0023 2,165
  • Overview
  • Help Status

Hole Punch Removal

Binary Dropout Grooper.IP

Removes circular hole punch artifacts from an image, typically found along the edges of scanned documents.

Remarks

The Hole Punch Removal command detects and removes solid, round artifacts (hole punches) from the edges of scanned images. Hole punches are common in documents that have been stored in binders or folders and can interfere with OCR, data extraction, and document presentation.

Hole punches appear as solid black circles along the image edge, as shown below:

How Hole Punch Removal Works

  1. The input image is binarized using the settings defined in the 'Binarization Settings' property.
  2. The image is preprocessed to isolate solid black features using smoothing and trimming.
  3. Candidate blobs are detected along the specified edges, filtered by size, shape, and distance from the edge.
  4. Blobs are analyzed for circularity and squareness to distinguish hole punches from other features.
  5. A mask is generated and applied to the original image, removing the detected hole punches.

Configuration and Usage

  • Use the 'Edges' property to specify which sides of the image to check for hole punches.
  • Adjust 'Size Range' and 'Maximum Inset' to match the expected size and position of hole punches for your documents.
  • Use 'Trim Factor' and 'Smoothing Factor' to tune preprocessing for your image quality.
  • Set 'Max Square Deviation' and 'Min Circle Similarity' to control how strictly blobs must match a circular shape.
  • Review the "Candidates" and "Zoning" diagnostic images to ensure correct detection and removal.

Supported Pixel Formats

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

Diagnostics

When run in diagnostic mode, Hole Punch Removal generates diagnostic images such as Candidates and Zoning. These help you verify which blobs are being considered for removal and how the zoning regions are defined.

Notes

  • Overly broad settings may remove non-hole punch content near the edges. Always review diagnostic output to avoid unintentional data loss.
  • Refer to the Wikipedia article on hole punches for information on standard hole punch sizes.

Properties

NameTypeDescription
General
Image Preprocessing
Command Info

See Also

Used By

Notification