react-native-rectangle-doc-scanner 13.7.0 → 13.8.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.
package/android/src/camera2/kotlin/com/reactnativerectangledocscanner/DocumentScannerView.kt
CHANGED
|
@@ -260,11 +260,12 @@ class DocumentScannerView(context: ThemedReactContext) : FrameLayout(context), L
|
|
|
260
260
|
}
|
|
261
261
|
val smoothedRectangleOnScreen = smoothRectangle(rectangleOnScreen, previewWidth, previewHeight)
|
|
262
262
|
lastRectangleOnScreen = smoothedRectangleOnScreen
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
263
|
+
// Quality evaluation disabled - relying on detection filters (area, rectangularity)
|
|
264
|
+
// The evaluateRectangleQualityInView function was too strict and rejecting valid documents
|
|
265
|
+
val quality = if (smoothedRectangleOnScreen != null) {
|
|
266
|
+
RectangleQuality.GOOD
|
|
267
|
+
} else {
|
|
268
|
+
RectangleQuality.TOO_FAR
|
|
268
269
|
}
|
|
269
270
|
|
|
270
271
|
post {
|