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

Margin Detector

Grooper Object Grooper.Microform

Configures how the outside margins of an open book are detected in the Burst Book activity.

Remarks

The Margin Detector defines the logic and thresholds used to identify the left and right margins of a book in a photograph, enabling precise splitting of two-page images and improving the accuracy of downstream dewarping and cropping.

Margin detection is essential when processing photographs of open books, as it determines where each page begins and ends, even in the presence of gutters, curved pages, or inconsistent backgrounds. The settings in this class allow you to tune margin detection for a wide variety of book layouts, lighting conditions, and photographic artifacts.

How Margin Detection Works

  1. The input image is divided into horizontal cells spanning the height of the book.
  2. Each cell is analyzed to find regions that meet the configured margin criteria (width, noise, alignment, etc.).
  3. Detected margin hits are grouped and scored for confidence and straightness.
  4. The most likely left and right margin lines are selected for use in page splitting and dewarping.

Configuration Guidance

  • Adjust margin width, noise tolerance, and alignment error to match your book and photographic setup.
  • Use stricter settings for clean, high-contrast images; relax thresholds for books with curved pages, shadows, or imperfect backgrounds.
  • Review diagnostic images to verify margin detection and fine-tune settings as needed.

Diagnostic Artifacts

When diagnostics are enabled, Margin Detector produces the following artifacts to assist with configuration and troubleshooting:

  • Margins:
    Annotated images showing detected margin lines and hits.
  • Log Messages:
    Warnings or errors if margin detection fails or confidence is low.

These artifacts are available in the diagnostics viewer and are essential for tuning margin detection in challenging scenarios.

Usage Notes

  • Margin Detector is typically used as a property of Burst Book and similar activities that process book photographs.
  • Proper configuration is critical for accurate page extraction, especially when books are not perfectly flat or lighting is uneven.
  • If margin detection fails, review the diagnostic images and adjust property values for your specific use case.

Properties

NameTypeDescription

Used By

Notification