accurascan_kyc 1.3.3 → 1.3.4
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
|
@@ -23,7 +23,7 @@ Pod::Spec.new do |s|
|
|
|
23
23
|
s.static_framework = true
|
|
24
24
|
# s.dependency "AccuraKYC","4.0.2"
|
|
25
25
|
# s.dependency "AccuraKYC","4.0.4"
|
|
26
|
-
s.dependency '
|
|
26
|
+
s.dependency 'AccuraKYC', '4.1.4'
|
|
27
27
|
# Don't install the dependencies when we run `pod install` in the old architecture.
|
|
28
28
|
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
|
|
29
29
|
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
|
package/android/build.gradle
CHANGED
|
@@ -100,11 +100,11 @@ dependencies {
|
|
|
100
100
|
implementation 'androidx.appcompat:appcompat:1.6.0'
|
|
101
101
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
|
102
102
|
// Update OCR
|
|
103
|
-
implementation 'com.github.accurascan:AccuraOCR:6.1.
|
|
103
|
+
implementation 'com.github.accurascan:AccuraOCR:6.1.8'
|
|
104
104
|
// FaceMatch has no issue
|
|
105
105
|
implementation 'com.github.accurascan:AccuraFaceMatch:3.2.5'
|
|
106
106
|
// Update Liveness
|
|
107
|
-
implementation 'com.github.accurascan:Liveness-Android:3.4.
|
|
107
|
+
implementation 'com.github.accurascan:Liveness-Android:3.4.4'
|
|
108
108
|
implementation 'com.squareup.picasso:picasso:2.71828'
|
|
109
109
|
}
|
|
110
110
|
|
|
@@ -772,7 +772,7 @@ public class OcrActivity extends SensorsActivity implements OcrCallback {
|
|
|
772
772
|
if (frontData != null) {
|
|
773
773
|
if(isDocLiveness){
|
|
774
774
|
try {
|
|
775
|
-
frontResult.put("
|
|
775
|
+
frontResult.put("ID Liveness", frontData.IDLivenessScore);
|
|
776
776
|
} catch (JSONException e) {
|
|
777
777
|
e.printStackTrace(); // Handle the exception here (e.g., log the error or notify the user)
|
|
778
778
|
}
|
|
@@ -803,7 +803,7 @@ public class OcrActivity extends SensorsActivity implements OcrCallback {
|
|
|
803
803
|
if (backData != null) {
|
|
804
804
|
if(isDocLiveness){
|
|
805
805
|
try {
|
|
806
|
-
backResult.put("
|
|
806
|
+
backResult.put("ID Liveness", backData.IDLivenessScore);
|
|
807
807
|
} catch (JSONException e) {
|
|
808
808
|
e.printStackTrace(); // Handle the exception here (e.g., log the error or notify the user)
|
|
809
809
|
}
|
|
@@ -1365,10 +1365,10 @@ public class OcrActivity extends SensorsActivity implements OcrCallback {
|
|
|
1365
1365
|
frontResult.put("MRZ", recogResult.lines);
|
|
1366
1366
|
|
|
1367
1367
|
if(isDocLiveness && recogType == RecogType.MRZ){
|
|
1368
|
-
frontResult.put("
|
|
1368
|
+
frontResult.put("ID Liveness Front", recogResult.FrontIDLivenessScore);
|
|
1369
1369
|
|
|
1370
|
-
if(recogResult.
|
|
1371
|
-
frontResult.put("
|
|
1370
|
+
if(recogResult.BackIDLivenessScore != null && isBacksideAvail){
|
|
1371
|
+
frontResult.put("ID Liveness Back", recogResult.BackIDLivenessScore);
|
|
1372
1372
|
}
|
|
1373
1373
|
}
|
|
1374
1374
|
|
|
@@ -102,7 +102,7 @@ public class OcrResultActivity extends Activity implements FaceCallback {
|
|
|
102
102
|
finish();
|
|
103
103
|
}
|
|
104
104
|
if (result.getLivenessResult().getLivenessStatus()) {
|
|
105
|
-
String lvscore = result.getLivenessResult().getLivenessScore()
|
|
105
|
+
String lvscore = result.getLivenessResult().getLivenessScore() + "";
|
|
106
106
|
try {
|
|
107
107
|
results.put("score",lvscore);
|
|
108
108
|
} catch (JSONException e) {
|
|
@@ -125,7 +125,7 @@ public class OcrResultActivity extends Activity implements FaceCallback {
|
|
|
125
125
|
finish();
|
|
126
126
|
}else{
|
|
127
127
|
if (result.getLivenessResult().getLivenessStatus()) {
|
|
128
|
-
String lvscore = result.getLivenessResult().getLivenessScore()
|
|
128
|
+
String lvscore = result.getLivenessResult().getLivenessScore() + "";
|
|
129
129
|
try {
|
|
130
130
|
results.put("score",lvscore);
|
|
131
131
|
results.put("detect", AccurascanKycModule.getImageUri(result.getFaceBiometrics(), "detect", fileDir));
|
|
@@ -407,15 +407,15 @@ public class OcrResultActivity extends Activity implements FaceCallback {
|
|
|
407
407
|
}else {
|
|
408
408
|
livenessCustomization.setLowLightTolerence(-1/*lowLightTolerence*/);
|
|
409
409
|
}
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
410
|
+
if (livenessConfig.has("setApiKey")){
|
|
411
|
+
try {
|
|
412
|
+
livenessCustomization.setApiKey(livenessConfig.getString("setApiKey"));
|
|
413
|
+
} catch (JSONException e) {
|
|
414
|
+
e.printStackTrace();
|
|
415
|
+
}
|
|
416
|
+
}else {
|
|
417
|
+
livenessCustomization.setApiKey("");
|
|
418
|
+
}
|
|
419
419
|
if (livenessConfig.has("setfeedbackDialogMessage")){
|
|
420
420
|
try {
|
|
421
421
|
livenessCustomization.feedbackDialogMessage = livenessConfig.getString("setfeedbackDialogMessage");
|