of

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

Return

Instance.


fun of(maxDetectionSizeToImageShorterSideRatioThreshold: Double): SizeTooLargeValidator

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

Return

Instance.

Parameters

maxDetectionSizeToImageShorterSideRatioThreshold

Value greater than or equal to 0.0.

Throws

If the value is less than 0.0.