react-native-rectangle-doc-scanner 3.190.0 → 3.191.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.
|
@@ -111,8 +111,8 @@ class CameraController(
|
|
|
111
111
|
// Preview use case
|
|
112
112
|
Log.d(TAG, "[BIND] Creating Preview use case...")
|
|
113
113
|
val preview = Preview.Builder()
|
|
114
|
-
// Use
|
|
115
|
-
.
|
|
114
|
+
// Use a modest fixed size to avoid stream configuration timeouts on some devices.
|
|
115
|
+
.setTargetResolution(Size(960, 720))
|
|
116
116
|
.setTargetRotation(targetRotation)
|
|
117
117
|
.build()
|
|
118
118
|
Log.d(TAG, "[BIND] Preview created: $preview")
|
|
@@ -122,7 +122,7 @@ class CameraController(
|
|
|
122
122
|
imageCapture = ImageCapture.Builder()
|
|
123
123
|
.setCaptureMode(ImageCapture.CAPTURE_MODE_MAXIMIZE_QUALITY)
|
|
124
124
|
// Cap resolution to avoid camera session timeouts on lower-end devices.
|
|
125
|
-
.setTargetResolution(Size(
|
|
125
|
+
.setTargetResolution(Size(960, 720))
|
|
126
126
|
.setTargetRotation(targetRotation)
|
|
127
127
|
.setFlashMode(ImageCapture.FLASH_MODE_AUTO)
|
|
128
128
|
.build()
|
package/package.json
CHANGED