@trustchex/react-native-sdk 1.374.0 → 1.381.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.
- package/android/src/main/java/com/trustchex/reactnativesdk/camera/TrustchexCameraView.kt +0 -9
- package/android/src/main/java/com/trustchex/reactnativesdk/opencv/OpenCVModule.kt +636 -301
- package/ios/Camera/TrustchexCameraView.swift +8 -8
- package/ios/OpenCV/OpenCVHelper.h +0 -7
- package/ios/OpenCV/OpenCVHelper.mm +0 -60
- package/ios/OpenCV/OpenCVModule.h +0 -4
- package/ios/OpenCV/OpenCVModule.mm +440 -358
- package/lib/module/Shared/Components/DebugOverlay.js +541 -0
- package/lib/module/Shared/Components/IdentityDocumentCamera.constants.js +44 -0
- package/lib/module/Shared/Components/IdentityDocumentCamera.flows.js +270 -0
- package/lib/module/Shared/Components/IdentityDocumentCamera.js +679 -1701
- package/lib/module/Shared/Components/IdentityDocumentCamera.types.js +3 -0
- package/lib/module/Shared/Components/IdentityDocumentCamera.utils.js +273 -0
- package/lib/module/version.js +1 -1
- package/lib/typescript/src/Shared/Components/DebugOverlay.d.ts +30 -0
- package/lib/typescript/src/Shared/Components/DebugOverlay.d.ts.map +1 -0
- package/lib/typescript/src/Shared/Components/IdentityDocumentCamera.constants.d.ts +35 -0
- package/lib/typescript/src/Shared/Components/IdentityDocumentCamera.constants.d.ts.map +1 -0
- package/lib/typescript/src/Shared/Components/IdentityDocumentCamera.d.ts +3 -56
- package/lib/typescript/src/Shared/Components/IdentityDocumentCamera.d.ts.map +1 -1
- package/lib/typescript/src/Shared/Components/IdentityDocumentCamera.flows.d.ts +88 -0
- package/lib/typescript/src/Shared/Components/IdentityDocumentCamera.flows.d.ts.map +1 -0
- package/lib/typescript/src/Shared/Components/IdentityDocumentCamera.types.d.ts +116 -0
- package/lib/typescript/src/Shared/Components/IdentityDocumentCamera.types.d.ts.map +1 -0
- package/lib/typescript/src/Shared/Components/IdentityDocumentCamera.utils.d.ts +93 -0
- package/lib/typescript/src/Shared/Components/IdentityDocumentCamera.utils.d.ts.map +1 -0
- package/lib/typescript/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/Shared/Components/DebugOverlay.tsx +656 -0
- package/src/Shared/Components/IdentityDocumentCamera.constants.ts +44 -0
- package/src/Shared/Components/IdentityDocumentCamera.flows.ts +342 -0
- package/src/Shared/Components/IdentityDocumentCamera.tsx +1065 -2462
- package/src/Shared/Components/IdentityDocumentCamera.types.ts +136 -0
- package/src/Shared/Components/IdentityDocumentCamera.utils.ts +364 -0
- package/src/version.ts +1 -1
|
@@ -410,9 +410,6 @@ class TrustchexCameraView(context: ThemedReactContext) : FrameLayout(context) {
|
|
|
410
410
|
} else null
|
|
411
411
|
|
|
412
412
|
val textTask = if (textRecognitionEnabled) {
|
|
413
|
-
if (!frameProcessingEnabled) {
|
|
414
|
-
android.util.Log.w("TrustchexCamera", "Text recognition enabled but frame processing disabled!")
|
|
415
|
-
}
|
|
416
413
|
textRecognizer.process(textInputImage).also { tasks.add(it) }
|
|
417
414
|
} else null
|
|
418
415
|
|
|
@@ -475,9 +472,6 @@ class TrustchexCameraView(context: ThemedReactContext) : FrameLayout(context) {
|
|
|
475
472
|
if (textTask.isSuccessful) {
|
|
476
473
|
val result = textTask.result
|
|
477
474
|
frameData.putString("resultText", result.text)
|
|
478
|
-
if (result.text.isNotEmpty()) {
|
|
479
|
-
android.util.Log.d("TrustchexCamera", "✓ Text recognized: length=${result.text.length}")
|
|
480
|
-
}
|
|
481
475
|
|
|
482
476
|
val blocksArray = Arguments.createArray()
|
|
483
477
|
for (block in result.textBlocks) {
|
|
@@ -498,14 +492,11 @@ class TrustchexCameraView(context: ThemedReactContext) : FrameLayout(context) {
|
|
|
498
492
|
}
|
|
499
493
|
frameData.putArray("textBlocks", blocksArray)
|
|
500
494
|
} else {
|
|
501
|
-
android.util.Log.d("TrustchexCamera", "⚠ Text recognition failed")
|
|
502
495
|
frameData.putString("resultText", "")
|
|
503
496
|
frameData.putArray("textBlocks", Arguments.createArray())
|
|
504
497
|
}
|
|
505
498
|
}
|
|
506
499
|
|
|
507
|
-
// MRZ validation moved to JavaScript - native implementation removed
|
|
508
|
-
|
|
509
500
|
// Barcode scanning results
|
|
510
501
|
if (barcodeTask != null) {
|
|
511
502
|
val barcodesArray = Arguments.createArray()
|