Config

data class Config(val analysisSize: Int = 320, val minAreaRatio: Double = 0.08, val maxAreaRatio: Double = 0.97, val minContrast: Int = 30, val minRectangularity: Double = 0.85)

Constructors

Link copied to clipboard
constructor(analysisSize: Int = 320, minAreaRatio: Double = 0.08, maxAreaRatio: Double = 0.97, minContrast: Int = 30, minRectangularity: Double = 0.85)

Properties

Link copied to clipboard

longest side (px) of the working copy; larger is slower, not necessarily better

Link copied to clipboard

largest accepted card area as a fraction of the image

Link copied to clipboard

smallest accepted card area as a fraction of the image

Link copied to clipboard

minimum Otsu-separated colour distance (0..441) between card and background

Link copied to clipboard

blob area / fitted-quad area required (1.0 = perfect rectangle)