accurascan_kyc 1.1.2 → 1.1.3
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/accurascan-kyc.podspec
CHANGED
|
@@ -20,7 +20,7 @@ Pod::Spec.new do |s|
|
|
|
20
20
|
|
|
21
21
|
s.dependency "React-Core"
|
|
22
22
|
s.static_framework = true
|
|
23
|
-
s.dependency "AccuraKYC_Sim","3.2.
|
|
23
|
+
s.dependency "AccuraKYC_Sim","3.2.6"
|
|
24
24
|
# Don't install the dependencies when we run `pod install` in the old architecture.
|
|
25
25
|
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
|
|
26
26
|
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
|
package/android/build.gradle
CHANGED
|
@@ -78,8 +78,8 @@ android {
|
|
|
78
78
|
abi {
|
|
79
79
|
reset()
|
|
80
80
|
universalApk false // If true, also generate a universal APK
|
|
81
|
-
|
|
82
|
-
include "armeabi-v7a", "x86"
|
|
81
|
+
include "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
|
|
82
|
+
// include "armeabi-v7a", "x86"
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
|
|
@@ -100,7 +100,7 @@ dependencies {
|
|
|
100
100
|
implementation 'androidx.appcompat:appcompat:1.6.0'
|
|
101
101
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
|
102
102
|
// For Accura OCR SDK
|
|
103
|
-
implementation 'com.github.accurascan:AccuraOCR:5.1.
|
|
103
|
+
implementation 'com.github.accurascan:AccuraOCR:5.1.5'
|
|
104
104
|
// For Accura Face match
|
|
105
105
|
implementation 'com.github.accurascan:AccuraFaceMatch:3.2.0'
|
|
106
106
|
// for liveness
|
|
@@ -100,15 +100,15 @@ public class OcrActivity extends SensorsActivity implements OcrCallback {
|
|
|
100
100
|
@Override
|
|
101
101
|
public void handleMessage(Message msg) {
|
|
102
102
|
OcrActivity activity = mActivity.get();
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
103
|
+
try{
|
|
104
|
+
if(accuraErrorConfg.getInt("enableLogs") == 1){
|
|
105
|
+
AccuraLog.enableLogs(true); // make sure to disable logs in release mode
|
|
106
|
+
AccuraLivenessLog.setDEBUG(true);
|
|
107
|
+
AccuraLog.refreshLogfile(activity);
|
|
108
|
+
}
|
|
109
|
+
} catch (JSONException e) {
|
|
110
|
+
e.printStackTrace();
|
|
111
|
+
}
|
|
112
112
|
|
|
113
113
|
|
|
114
114
|
if (activity != null) {
|
|
@@ -140,14 +140,14 @@ public class OcrActivity extends SensorsActivity implements OcrCallback {
|
|
|
140
140
|
public void onCreate(Bundle savedInstanceState) {
|
|
141
141
|
if (cameraView != null) cameraView.startOcrScan(false);
|
|
142
142
|
|
|
143
|
-
try{
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
} catch (JSONException e) {
|
|
149
|
-
|
|
150
|
-
}
|
|
143
|
+
// try{
|
|
144
|
+
// if(accuraErrorConfg.getInt("enableLogs") == 1){
|
|
145
|
+
// AccuraLog.enableLogs(true); // make sure to disable logs in release mode
|
|
146
|
+
// AccuraLog.refreshLogfile(appActivity);
|
|
147
|
+
// }
|
|
148
|
+
// } catch (JSONException e) {
|
|
149
|
+
// e.printStackTrace();
|
|
150
|
+
// }
|
|
151
151
|
|
|
152
152
|
int orientation = getResources().getConfiguration().orientation;
|
|
153
153
|
if (orientation == 1) {
|
package/ios/FMController.swift
CHANGED
|
@@ -2,7 +2,8 @@ import UIKit
|
|
|
2
2
|
import AccuraOCR
|
|
3
3
|
import Photos
|
|
4
4
|
import PhotosUI
|
|
5
|
-
import SVProgressHUD
|
|
5
|
+
//import SVProgressHUD
|
|
6
|
+
import ProgressHUD
|
|
6
7
|
|
|
7
8
|
//View controller for face match.
|
|
8
9
|
class FMController: UIViewController, UIImagePickerControllerDelegate, UINavigationControllerDelegate,PHPickerViewControllerDelegate, UIAdaptivePresentationControllerDelegate {
|
|
@@ -377,7 +378,8 @@ class FMController: UIViewController, UIImagePickerControllerDelegate, UINavigat
|
|
|
377
378
|
|
|
378
379
|
|
|
379
380
|
dismiss(animated: true, completion: nil)
|
|
380
|
-
|
|
381
|
+
ProgressHUD.show("Loading...")
|
|
382
|
+
// SVProgressHUD.show(withStatus: "Loading...")
|
|
381
383
|
DispatchQueue.global(qos: .background).async {
|
|
382
384
|
guard var originalImage = info[convertFromUIImagePickerControllerInfoKey(UIImagePickerController.InfoKey.originalImage)] as? UIImage else { return }
|
|
383
385
|
|
|
@@ -389,7 +391,8 @@ class FMController: UIViewController, UIImagePickerControllerDelegate, UINavigat
|
|
|
389
391
|
// let compressData = UIImage(data: originalImage.jpegData(compressionQuality: 1.0)!)
|
|
390
392
|
DispatchQueue.main.asyncAfter(deadline: .now(), execute: {
|
|
391
393
|
// self.setFaceRegion(compressData!)//Set FaceMatch score
|
|
392
|
-
SVProgressHUD.dismiss()
|
|
394
|
+
// SVProgressHUD.dismiss()
|
|
395
|
+
ProgressHUD.dismiss()
|
|
393
396
|
})
|
|
394
397
|
}
|
|
395
398
|
|
|
@@ -417,7 +420,9 @@ class FMController: UIViewController, UIImagePickerControllerDelegate, UINavigat
|
|
|
417
420
|
lvfm.face1Detect = EngineWrapper.detectSourceFaces(compressData)
|
|
418
421
|
|
|
419
422
|
// self.setFaceRegion(compressData!)//Set FaceMatch score
|
|
420
|
-
SVProgressHUD.dismiss()
|
|
423
|
+
// SVProgressHUD.dismiss()
|
|
424
|
+
ProgressHUD.dismiss()
|
|
425
|
+
|
|
421
426
|
var result:[String:Any] = [:]
|
|
422
427
|
result["Image"] = compressData
|
|
423
428
|
if result.index(forKey: "Image") != nil {
|
|
@@ -470,7 +475,8 @@ class FMController: UIViewController, UIImagePickerControllerDelegate, UINavigat
|
|
|
470
475
|
|
|
471
476
|
|
|
472
477
|
func facematchData(_ FaceImage: UIImage!) {
|
|
473
|
-
SVProgressHUD.show(withStatus: "Loading...")
|
|
478
|
+
// SVProgressHUD.show(withStatus: "Loading...")
|
|
479
|
+
ProgressHUD.show("Loading...")
|
|
474
480
|
DispatchQueue.global(qos: .background).async { [self] in
|
|
475
481
|
var originalImage = FaceImage
|
|
476
482
|
|
|
@@ -482,7 +488,9 @@ class FMController: UIViewController, UIImagePickerControllerDelegate, UINavigat
|
|
|
482
488
|
// DispatchQueue.main.asyncAfter(deadline: .now(), execute: { [self] in
|
|
483
489
|
// self.setFaceRegion(compressData!)//Set FaceMatch score
|
|
484
490
|
// gl.face1Detect = EngineWrapper.detectSourceFaces(compressData)
|
|
485
|
-
SVProgressHUD.dismiss()
|
|
491
|
+
// SVProgressHUD.dismiss()
|
|
492
|
+
ProgressHUD.dismiss()
|
|
493
|
+
|
|
486
494
|
// })
|
|
487
495
|
let img1 = AccurascanKyc.getImageUri(img: compressData!, name: nil)
|
|
488
496
|
result["Image"] = img1
|