of
Create instance with penalty threshold value 0.035
.
Return
Instance.
Parameters
placeholder Normalized Rectangle
Relative to the detection (normalized) rectangle.
fun of(placeholderNormalizedRectangle: RectangleDouble, maxPenaltyThreshold: Double): DocumentDoesNotFitPlaceholderValidator
Create instance with specified penalty threshold.
Return
Instance.
Parameters
placeholder Normalized Rectangle
Relative to the detection (normalized) rectangle.
max Penalty Threshold
Value in interval [0.0, 1.0]
.
Throws
If value is out of the interval.