of

fun of(placeholderNormalizedRectangle: RectangleDouble): DocumentDoesNotFitPlaceholderValidator

Create instance with penalty threshold value 0.035.

Return

Instance.

Parameters

placeholderNormalizedRectangle

Relative to the detection (normalized) rectangle.


fun of(placeholderNormalizedRectangle: RectangleDouble, maxPenaltyThreshold: Double): DocumentDoesNotFitPlaceholderValidator

Create instance with specified penalty threshold.

Return

Instance.

Parameters

placeholderNormalizedRectangle

Relative to the detection (normalized) rectangle.

maxPenaltyThreshold

Value in interval [0.0, 1.0].

Throws

If value is out of the interval.