react-native-rectangle-doc-scanner 3.137.0 → 3.138.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.
|
@@ -125,7 +125,8 @@ object ImageProcessor {
|
|
|
125
125
|
val dstMat = Mat()
|
|
126
126
|
srcMat.convertTo(dstMat, -1, contrast.toDouble(), brightness * 255.0)
|
|
127
127
|
|
|
128
|
-
val
|
|
128
|
+
val safeConfig = bitmap.config ?: Bitmap.Config.ARGB_8888
|
|
129
|
+
val resultBitmap = Bitmap.createBitmap(bitmap.width, bitmap.height, safeConfig)
|
|
129
130
|
Utils.matToBitmap(dstMat, resultBitmap)
|
|
130
131
|
|
|
131
132
|
srcMat.release()
|
package/package.json
CHANGED