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.
@@ -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
- val quality = when {
264
- smoothedRectangleOnScreen != null && previewWidth > 0 && previewHeight > 0 ->
265
- DocumentDetector.evaluateRectangleQualityInView(smoothedRectangleOnScreen, previewWidth, previewHeight)
266
- rectangle != null -> DocumentDetector.evaluateRectangleQuality(rectangle, imageWidth, imageHeight)
267
- else -> RectangleQuality.TOO_FAR
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-rectangle-doc-scanner",
3
- "version": "13.7.0",
3
+ "version": "13.8.0",
4
4
  "description": "Native-backed document scanner for React Native with customizable overlays.",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",