react-native-rectangle-doc-scanner 3.220.0 → 3.221.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.
|
@@ -172,22 +172,24 @@ class CameraController(
|
|
|
172
172
|
CameraSelector.DEFAULT_BACK_CAMERA
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
//
|
|
175
|
+
// TEMPORARY: Bind Preview ONLY to test if Preview works without ImageAnalysis
|
|
176
176
|
try {
|
|
177
177
|
camera = provider.bindToLifecycle(
|
|
178
178
|
lifecycleOwner,
|
|
179
179
|
cameraSelector,
|
|
180
180
|
preview
|
|
181
181
|
)
|
|
182
|
-
Log.d(TAG, "[CAMERAX-
|
|
182
|
+
Log.d(TAG, "[CAMERAX-DEBUG] Preview ONLY bound successfully - NO ImageAnalysis")
|
|
183
|
+
analysisBound = false
|
|
183
184
|
|
|
184
|
-
//
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
185
|
+
// TODO: If Preview works, we need to find alternative for document detection
|
|
186
|
+
// Options:
|
|
187
|
+
// 1. Use ImageCapture instead of ImageAnalysis
|
|
188
|
+
// 2. Use lower resolution for ImageAnalysis (already tried)
|
|
189
|
+
// 3. Use Camera2 API directly instead of CameraX
|
|
188
190
|
|
|
189
191
|
} catch (e: Exception) {
|
|
190
|
-
Log.e(TAG, "[CAMERAX-
|
|
192
|
+
Log.e(TAG, "[CAMERAX-DEBUG] Failed to bind preview", e)
|
|
191
193
|
analysisBound = false
|
|
192
194
|
}
|
|
193
195
|
}
|
package/package.json
CHANGED