diff --git a/src/views/playground/SessionsDetails.vue b/src/views/playground/SessionsDetails.vue index 7c9c409..b247e61 100644 --- a/src/views/playground/SessionsDetails.vue +++ b/src/views/playground/SessionsDetails.vue @@ -346,7 +346,7 @@ h3 {
+ v-if="session.selfiDetails && Object.keys(session.selfiDetails).length > 0 && session.ocriddocsDetails.tokenFaceImage">

Face Verification

@@ -391,6 +391,34 @@ h3 {
+ +
+
+

Liveliness Check

+
+
+
+
+ +
+
+
+
+ + +
+
+
+
+
@@ -533,6 +561,29 @@ import CountryFlag from 'vue-country-flag' import { getCosmosChainConfig } from '../../blockchains-metadata/cosmos/wallet/cosmos-wallet-utils' +const ServiceLivenessResultEnum = { + 0: "None", + 1: "Spoof", + 2: "Uncertain", + 3: "Live", + 4: "Bad quality image", + 5: "Face very close", + 6: "Face not found", + 7: "Face too small", + 8: "Face too large", + 9: "Invalid image format", + 10: "Internal server error", + 11: "Image processing error", + 12: "Too many faces", + 13: "Face too close to edge", + 14: "Face was cropped", + 15: "License error", + 16: "Face is obstructed", + 17: "No life detected", + 18: "Eyes closed", +} + + export default { name: "sessionDetails", components: { @@ -547,6 +598,14 @@ export default { isFacialAuthenticationSuccess() { return this.selfiDataFound && this.idDocDataFound && this.session.ocriddocsDetails.serviceFacialAuthenticationResult == 3 }, + passiveLivelinessData() { + const status = this.selfiDataFound && this.session.selfiDetails.serviceLivenessResult == 3 + return { + success: status, + result: ServiceLivenessResultEnum[this.session.selfiDetails.serviceLivenessResult], + borderColor: status ? '1px solid rgb(81, 137, 81)' : '1px solid red' + } + }, getStatusColor() { if (this.isFacialAuthenticationSuccess) { return '1px solid rgb(81, 137, 81)'