react-native-rectangle-doc-scanner 3.250.0 → 3.251.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.
|
@@ -77,7 +77,6 @@ class CameraController(
|
|
|
77
77
|
|
|
78
78
|
companion object {
|
|
79
79
|
private const val TAG = "CameraController"
|
|
80
|
-
private const val ANALYSIS_MAX_AREA = 2560 * 1920
|
|
81
80
|
private const val ANALYSIS_ASPECT_TOLERANCE = 0.15
|
|
82
81
|
}
|
|
83
82
|
|
|
@@ -219,7 +218,7 @@ class CameraController(
|
|
|
219
218
|
previewSize = chooseBestSize(previewSizes, viewAspect, null, preferClosestAspect = true)
|
|
220
219
|
|
|
221
220
|
val analysisSizes = streamConfigMap.getOutputSizes(ImageFormat.YUV_420_888)
|
|
222
|
-
analysisSize = chooseBestSize(analysisSizes, viewAspect,
|
|
221
|
+
analysisSize = chooseBestSize(analysisSizes, viewAspect, null, preferClosestAspect = true)
|
|
223
222
|
|
|
224
223
|
val captureSizes = streamConfigMap.getOutputSizes(ImageFormat.JPEG)
|
|
225
224
|
captureSize = captureSizes?.maxByOrNull { it.width * it.height }
|
package/package.json
CHANGED