InferenceLayoutSettings

public final class InferenceLayoutSettings

Settings for InferenceLayout. Values fall back through three levels: document → SDK → built-in default. Writes target the document only when set on a document's settings, otherwise the SDK globally when set on SdkSettings.

Functions

Link copied to clipboard
public final float getConfidenceThreshold()
Detection confidence threshold (0.0 to 1.0).
Link copied to clipboard
public final float getGroupExpansionHeightRatio()
Recovery grouping: proximity-cluster expansion as a multiple of a box's height (bridges lines within a block).
Link copied to clipboard
public final boolean getHandwritingLayoutRecovery()
Master switch for handwriting layout recovery: on pages the detector under-segments, harvest its sub-threshold boxes and consolidate them into block zones.
Link copied to clipboard
public final float getHarvestConfidenceFloor()
Recovery harvest: on a triggered page, keep detections down to this confidence.
Link copied to clipboard
public final boolean getMergeRecoveredFragments()
When set (the default), a small recovered fragment that continues an adjacent same-row text zone is MERGED into that zone (extending it) instead of standing alone, and the VLM crop of any zone masks the picture regions it overlaps so the merged rectangle is read as its true (non-rectangular) content.
Link copied to clipboard
public final float getRecoveryWordCoverageCeiling()
Recovery discriminator: skip recovery when the fraction of the page's recognised words already covered by the kept (>= ConfidenceThreshold) zones meets or exceeds this value.
Link copied to clipboard
public final float getUnderSegmentationInkThreshold()
Recovery gate: trigger when the fraction of text-like ink OUTSIDE the kept (>= ConfidenceThreshold) zones exceeds this value.
Link copied to clipboard
public final void setConfidenceThreshold(float value)
Detection confidence threshold (0.0 to 1.0).
Link copied to clipboard
public final void setGroupExpansionHeightRatio(float value)
Recovery grouping: proximity-cluster expansion as a multiple of a box's height (bridges lines within a block).
Link copied to clipboard
public final void setHandwritingLayoutRecovery(boolean value)
Master switch for handwriting layout recovery: on pages the detector under-segments, harvest its sub-threshold boxes and consolidate them into block zones.
Link copied to clipboard
public final void setHarvestConfidenceFloor(float value)
Recovery harvest: on a triggered page, keep detections down to this confidence.
Link copied to clipboard
public final void setMergeRecoveredFragments(boolean value)
When set (the default), a small recovered fragment that continues an adjacent same-row text zone is MERGED into that zone (extending it) instead of standing alone, and the VLM crop of any zone masks the picture regions it overlaps so the merged rectangle is read as its true (non-rectangular) content.
Link copied to clipboard
public final void setRecoveryWordCoverageCeiling(float value)
Recovery discriminator: skip recovery when the fraction of the page's recognised words already covered by the kept (>= ConfidenceThreshold) zones meets or exceeds this value.
Link copied to clipboard
public final void setUnderSegmentationInkThreshold(float value)
Recovery gate: trigger when the fraction of text-like ink OUTSIDE the kept (>= ConfidenceThreshold) zones exceeds this value.