react-native-rectangle-doc-scanner 3.233.0 → 3.235.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,6 +7,7 @@ import org.opencv.core.*
|
|
|
7
7
|
import org.opencv.imgproc.Imgproc
|
|
8
8
|
import kotlin.math.abs
|
|
9
9
|
import kotlin.math.max
|
|
10
|
+
import kotlin.math.min
|
|
10
11
|
import kotlin.math.sqrt
|
|
11
12
|
|
|
12
13
|
data class Rectangle(
|
|
@@ -240,7 +241,7 @@ class DocumentDetector {
|
|
|
240
241
|
return RectangleQuality.TOO_FAR
|
|
241
242
|
}
|
|
242
243
|
|
|
243
|
-
val minDim = min(viewWidth.toDouble(), viewHeight.toDouble())
|
|
244
|
+
val minDim = kotlin.math.min(viewWidth.toDouble(), viewHeight.toDouble())
|
|
244
245
|
val angleThreshold = max(60.0, minDim * 0.05)
|
|
245
246
|
|
|
246
247
|
val topYDiff = abs(rectangle.topRight.y - rectangle.topLeft.y)
|
package/package.json
CHANGED