of

Create instance with max detection to image shorter side ratio threshold value 0.8.

Return

Instance.


fun of(maxDetectionSizeToImageShorterSideRatioThreshold: Double): SizeTooLargeValidator

Create instance with specified max detection to image shorter side ratio threshold.

Return

Instance.

Parameters

maxDetectionSizeToImageShorterSideRatioThreshold

Value in interval [0.0, 1.0].

Throws

If value is out of the interval.