react-native-rectangle-doc-scanner 10.29.0 → 10.31.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.
|
@@ -3,6 +3,7 @@ package com.reactnativerectangledocscanner
|
|
|
3
3
|
import android.graphics.Bitmap
|
|
4
4
|
import android.graphics.Rect
|
|
5
5
|
import android.util.Log
|
|
6
|
+
import com.reactnativerectangledocscanner.BuildConfig
|
|
6
7
|
import org.opencv.android.Utils
|
|
7
8
|
import org.opencv.core.*
|
|
8
9
|
import org.opencv.imgproc.Imgproc
|
|
@@ -354,7 +355,7 @@ class DocumentDetector {
|
|
|
354
355
|
TAG,
|
|
355
356
|
"[DEBUG] cannyLow=$cannyLow cannyHigh=$cannyHigh " +
|
|
356
357
|
"contours=${debugStats.contours} candidates=${debugStats.candidates} " +
|
|
357
|
-
"bestScore=${String.format(
|
|
358
|
+
"bestScore=${String.format("%.1f", debugStats.bestScore)} " +
|
|
358
359
|
"hasRect=${rectangle != null}"
|
|
359
360
|
)
|
|
360
361
|
}
|
package/package.json
CHANGED