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

Hough Lines

IP Command Grooper.IP

Detects lines at arbitrary angles in an image using a Hough Transform.

Remarks

The Hough Lines command identifies straight lines in document images using the Hough Transform algorithm. This is useful for detecting table borders, form lines, or other linear features regardless of their orientation. The command is primarily used internally by other IP Commands and is not typically configured directly in an IP Profile.

The command preprocesses the image (binarization, noise removal), then applies the Hough Transform to find line candidates. Detected lines can be filtered, merged, and classified by angle (horizontal, vertical, or arbitrary).

How Hough Lines Works

  1. The image is binarized and cleaned to remove noise and non-line features.
  2. The Hough Transform is applied to detect lines based on votes in parameter space.
  3. Lines are filtered by length, gap, angle, and proximity.
  4. Optionally, duplicate or overlapping lines are merged.

Supported Pixel Formats

  • Supports grayscale and color images; color images are converted to grayscale automatically.

Diagnostics

When run in diagnostic mode, Hough Lines generates:

  • Bin Image / Preprocessed: Images showing preprocessing steps.
  • Detected Lines: The original image with detected lines annotated.
  • Log Messages: Details about detected lines, filtering, and merging.

Classification Features

  • Detected lines are recorded and can be used for downstream table detection, form analysis, or layout extraction.
  • Features such as "LineDetect.HorizontalLine" and "LineDetect.VerticalLine" are added for classification.

Practical Guidance

  • Adjust binarization and preprocessing to ensure lines are clear and noise is minimized.
  • Tune line detection parameters (length, gap, angle) to match the expected features in your documents.
  • Use result filtering and merging to avoid duplicate or fragmented lines.
  • Review diagnostic images and logs to validate detection and tune parameters.

Properties

NameTypeDescription
General
Preprocessing
Result Filtering
Command Info

See Also

Used By

Notification