@ekyc_qoobiss/qbs-ect-cmp 3.6.25 → 3.6.26
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/dist/cjs/agreement-check_19.cjs.entry.js +9 -51
- package/dist/collection/components/flow/user-liveness/user-liveness.js +6 -1
- package/dist/collection/libs/FaceML5Detector/FaceML5Detector.js +2 -49
- package/dist/esm/agreement-check_19.entry.js +9 -51
- package/dist/qbs-ect-cmp/{p-4ef6223b.entry.js → p-40480abb.entry.js} +1 -1
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/package.json +1 -1
|
@@ -2161,12 +2161,12 @@ class FaceML5Detector {
|
|
|
2161
2161
|
if (this.validFaceFound || this.validFacePose) {
|
|
2162
2162
|
if (this.start == null)
|
|
2163
2163
|
this.start = Date.now();
|
|
2164
|
-
if (Date.now() > this.start +
|
|
2164
|
+
if (Date.now() > this.start + 3000) {
|
|
2165
2165
|
this.continue = false;
|
|
2166
2166
|
this.stream.verificationReady();
|
|
2167
2167
|
}
|
|
2168
2168
|
}
|
|
2169
|
-
if (Date.now() - this.initTime >= this.MAX_DETECTION) {
|
|
2169
|
+
else if (Date.now() - this.initTime >= this.MAX_DETECTION) {
|
|
2170
2170
|
this.continue = false;
|
|
2171
2171
|
this.stream.timeElapsed();
|
|
2172
2172
|
}
|
|
@@ -2277,59 +2277,12 @@ class FaceML5Detector {
|
|
|
2277
2277
|
this.presentedFacePose = FacePose.LookLeft;
|
|
2278
2278
|
if (face.nose.x < ff.nose.x - ff.eyesDistance() * 0.5)
|
|
2279
2279
|
this.presentedFacePose = FacePose.LookRight;
|
|
2280
|
-
/*
|
|
2281
|
-
if (
|
|
2282
|
-
face.leftEyeNoseDistanceX() < ff.leftEyeNoseDistanceX() * 0.6 &&
|
|
2283
|
-
face.rightEyeNoseDistanceX() > ff.rightEyeNoseDistanceX() * 1.2 &&
|
|
2284
|
-
face.leftEyeNoseDistanceY() > ff.leftEyeNoseDistanceY() * 0.7 &&
|
|
2285
|
-
face.leftEyeNoseDistanceY() < ff.leftEyeNoseDistanceY() * 1.3 &&
|
|
2286
|
-
face.rightEyeNoseDistanceY() > ff.rightEyeNoseDistanceY() * 0.7 &&
|
|
2287
|
-
face.rightEyeNoseDistanceY() < ff.rightEyeNoseDistanceY() * 1.3
|
|
2288
|
-
) {
|
|
2289
|
-
this.presentedFacePose = FacePose.LookLeft;
|
|
2290
|
-
} else if (
|
|
2291
|
-
face.rightEyeNoseDistanceX() < ff.rightEyeNoseDistanceX() * 0.6 &&
|
|
2292
|
-
face.leftEyeNoseDistanceX() > ff.leftEyeNoseDistanceX() * 1.2 &&
|
|
2293
|
-
face.leftEyeNoseDistanceY() > ff.leftEyeNoseDistanceY() * 0.7 &&
|
|
2294
|
-
face.leftEyeNoseDistanceY() < ff.leftEyeNoseDistanceY() * 1.3 &&
|
|
2295
|
-
face.rightEyeNoseDistanceY() > ff.rightEyeNoseDistanceY() * 0.7 &&
|
|
2296
|
-
face.rightEyeNoseDistanceY() < ff.rightEyeNoseDistanceY() * 1.3
|
|
2297
|
-
) {
|
|
2298
|
-
this.presentedFacePose = FacePose.LookRight;
|
|
2299
|
-
} else if (face.eyesNoseDistance() < ff.eyesNoseDistance() * 0.45) {
|
|
2300
|
-
this.presentedFacePose = FacePose.LookUp;
|
|
2301
|
-
} else if (face.leftEyeEyeBrowDistance() < ff.leftEyeEyeBrowDistance() * 0.8 && face.rightEyeEyeBrowDistance() < ff.rightEyeEyeBrowDistance() * 0.8) {
|
|
2302
|
-
this.presentedFacePose = FacePose.LookDown;
|
|
2303
|
-
// } else if (face.eyesLevel() >= this.frontFace.eyesLevel() + this.height * 0.05) {
|
|
2304
|
-
// this.presentedFacePose = FacePose.TiltLeft;
|
|
2305
|
-
// } else if (face.eyesLevel() <= this.frontFace.eyesLevel() - this.height * 0.05) {
|
|
2306
|
-
// this.presentedFacePose = FacePose.TiltRight;
|
|
2307
|
-
}
|
|
2308
|
-
*/
|
|
2309
|
-
// if (this.presentedFacePose != null && this.presentedFacePose == this.requestedFacePose) {
|
|
2310
|
-
// this.validFacePose = true;
|
|
2311
|
-
// await this.drawFrame('green', true);
|
|
2312
|
-
// this.validFaceFoundAgain = true;
|
|
2313
|
-
// //this.stream.changeFacePose();
|
|
2314
|
-
// }
|
|
2315
2280
|
if (this.stream.facePose !== null) {
|
|
2316
2281
|
await delay(3000);
|
|
2317
2282
|
this.validFacePose = true;
|
|
2318
2283
|
await this.drawFrame('green', true);
|
|
2319
2284
|
}
|
|
2320
2285
|
}
|
|
2321
|
-
// //check if face is centered again
|
|
2322
|
-
// if (this.validFacePose && this.requestedFacePose != null) {
|
|
2323
|
-
// if (
|
|
2324
|
-
// face.leftEyeNoseDistanceX() < face.rightEyeNoseDistanceX() * 1.2 &&
|
|
2325
|
-
// face.leftEyeNoseDistanceX() > face.rightEyeNoseDistanceX() * 0.8 &&
|
|
2326
|
-
// Math.abs(face.eyesLevel()) < this.height * 0.1
|
|
2327
|
-
// ) {
|
|
2328
|
-
// this.validFaceFoundAgain = true;
|
|
2329
|
-
// this.stream.stopAnimation();
|
|
2330
|
-
// this.drawFrame('green', true);
|
|
2331
|
-
// }
|
|
2332
|
-
// }
|
|
2333
2286
|
}
|
|
2334
2287
|
}
|
|
2335
2288
|
|
|
@@ -5829,7 +5782,7 @@ function v4(options, buf, offset) {
|
|
|
5829
5782
|
}
|
|
5830
5783
|
|
|
5831
5784
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
5832
|
-
const version$1 = "3.6.
|
|
5785
|
+
const version$1 = "3.6.26";
|
|
5833
5786
|
const description = "Person Identification Component";
|
|
5834
5787
|
const main = "./dist/index.cjs.js";
|
|
5835
5788
|
const module$1 = "./dist/index.js";
|
|
@@ -9950,7 +9903,12 @@ const UserLiveness = class {
|
|
|
9950
9903
|
async endFlow() {
|
|
9951
9904
|
if (this.captureStep == SelfieFlowStatus.Selfie) {
|
|
9952
9905
|
if (this.flow.front.photoDone && this.flow.front.recordingDone) {
|
|
9953
|
-
|
|
9906
|
+
if (store.state.hasSelfieGesture) {
|
|
9907
|
+
this.captureStep = SelfieFlowStatus.Gesture;
|
|
9908
|
+
}
|
|
9909
|
+
else {
|
|
9910
|
+
this.captureStep = SelfieFlowStatus.End;
|
|
9911
|
+
}
|
|
9954
9912
|
}
|
|
9955
9913
|
else {
|
|
9956
9914
|
return;
|
|
@@ -147,7 +147,12 @@ export class UserLiveness {
|
|
|
147
147
|
async endFlow() {
|
|
148
148
|
if (this.captureStep == SelfieFlowStatus.Selfie) {
|
|
149
149
|
if (this.flow.front.photoDone && this.flow.front.recordingDone) {
|
|
150
|
-
|
|
150
|
+
if (store.hasSelfieGesture) {
|
|
151
|
+
this.captureStep = SelfieFlowStatus.Gesture;
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
this.captureStep = SelfieFlowStatus.End;
|
|
155
|
+
}
|
|
151
156
|
}
|
|
152
157
|
else {
|
|
153
158
|
return;
|
|
@@ -56,12 +56,12 @@ export class FaceML5Detector {
|
|
|
56
56
|
if (this.validFaceFound || this.validFacePose) {
|
|
57
57
|
if (this.start == null)
|
|
58
58
|
this.start = Date.now();
|
|
59
|
-
if (Date.now() > this.start +
|
|
59
|
+
if (Date.now() > this.start + 3000) {
|
|
60
60
|
this.continue = false;
|
|
61
61
|
this.stream.verificationReady();
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
if (Date.now() - this.initTime >= this.MAX_DETECTION) {
|
|
64
|
+
else if (Date.now() - this.initTime >= this.MAX_DETECTION) {
|
|
65
65
|
this.continue = false;
|
|
66
66
|
this.stream.timeElapsed();
|
|
67
67
|
}
|
|
@@ -172,58 +172,11 @@ export class FaceML5Detector {
|
|
|
172
172
|
this.presentedFacePose = FacePose.LookLeft;
|
|
173
173
|
if (face.nose.x < ff.nose.x - ff.eyesDistance() * 0.5)
|
|
174
174
|
this.presentedFacePose = FacePose.LookRight;
|
|
175
|
-
/*
|
|
176
|
-
if (
|
|
177
|
-
face.leftEyeNoseDistanceX() < ff.leftEyeNoseDistanceX() * 0.6 &&
|
|
178
|
-
face.rightEyeNoseDistanceX() > ff.rightEyeNoseDistanceX() * 1.2 &&
|
|
179
|
-
face.leftEyeNoseDistanceY() > ff.leftEyeNoseDistanceY() * 0.7 &&
|
|
180
|
-
face.leftEyeNoseDistanceY() < ff.leftEyeNoseDistanceY() * 1.3 &&
|
|
181
|
-
face.rightEyeNoseDistanceY() > ff.rightEyeNoseDistanceY() * 0.7 &&
|
|
182
|
-
face.rightEyeNoseDistanceY() < ff.rightEyeNoseDistanceY() * 1.3
|
|
183
|
-
) {
|
|
184
|
-
this.presentedFacePose = FacePose.LookLeft;
|
|
185
|
-
} else if (
|
|
186
|
-
face.rightEyeNoseDistanceX() < ff.rightEyeNoseDistanceX() * 0.6 &&
|
|
187
|
-
face.leftEyeNoseDistanceX() > ff.leftEyeNoseDistanceX() * 1.2 &&
|
|
188
|
-
face.leftEyeNoseDistanceY() > ff.leftEyeNoseDistanceY() * 0.7 &&
|
|
189
|
-
face.leftEyeNoseDistanceY() < ff.leftEyeNoseDistanceY() * 1.3 &&
|
|
190
|
-
face.rightEyeNoseDistanceY() > ff.rightEyeNoseDistanceY() * 0.7 &&
|
|
191
|
-
face.rightEyeNoseDistanceY() < ff.rightEyeNoseDistanceY() * 1.3
|
|
192
|
-
) {
|
|
193
|
-
this.presentedFacePose = FacePose.LookRight;
|
|
194
|
-
} else if (face.eyesNoseDistance() < ff.eyesNoseDistance() * 0.45) {
|
|
195
|
-
this.presentedFacePose = FacePose.LookUp;
|
|
196
|
-
} else if (face.leftEyeEyeBrowDistance() < ff.leftEyeEyeBrowDistance() * 0.8 && face.rightEyeEyeBrowDistance() < ff.rightEyeEyeBrowDistance() * 0.8) {
|
|
197
|
-
this.presentedFacePose = FacePose.LookDown;
|
|
198
|
-
// } else if (face.eyesLevel() >= this.frontFace.eyesLevel() + this.height * 0.05) {
|
|
199
|
-
// this.presentedFacePose = FacePose.TiltLeft;
|
|
200
|
-
// } else if (face.eyesLevel() <= this.frontFace.eyesLevel() - this.height * 0.05) {
|
|
201
|
-
// this.presentedFacePose = FacePose.TiltRight;
|
|
202
|
-
}
|
|
203
|
-
*/
|
|
204
|
-
// if (this.presentedFacePose != null && this.presentedFacePose == this.requestedFacePose) {
|
|
205
|
-
// this.validFacePose = true;
|
|
206
|
-
// await this.drawFrame('green', true);
|
|
207
|
-
// this.validFaceFoundAgain = true;
|
|
208
|
-
// //this.stream.changeFacePose();
|
|
209
|
-
// }
|
|
210
175
|
if (this.stream.facePose !== null) {
|
|
211
176
|
await delay(3000);
|
|
212
177
|
this.validFacePose = true;
|
|
213
178
|
await this.drawFrame('green', true);
|
|
214
179
|
}
|
|
215
180
|
}
|
|
216
|
-
// //check if face is centered again
|
|
217
|
-
// if (this.validFacePose && this.requestedFacePose != null) {
|
|
218
|
-
// if (
|
|
219
|
-
// face.leftEyeNoseDistanceX() < face.rightEyeNoseDistanceX() * 1.2 &&
|
|
220
|
-
// face.leftEyeNoseDistanceX() > face.rightEyeNoseDistanceX() * 0.8 &&
|
|
221
|
-
// Math.abs(face.eyesLevel()) < this.height * 0.1
|
|
222
|
-
// ) {
|
|
223
|
-
// this.validFaceFoundAgain = true;
|
|
224
|
-
// this.stream.stopAnimation();
|
|
225
|
-
// this.drawFrame('green', true);
|
|
226
|
-
// }
|
|
227
|
-
// }
|
|
228
181
|
}
|
|
229
182
|
}
|
|
@@ -2157,12 +2157,12 @@ class FaceML5Detector {
|
|
|
2157
2157
|
if (this.validFaceFound || this.validFacePose) {
|
|
2158
2158
|
if (this.start == null)
|
|
2159
2159
|
this.start = Date.now();
|
|
2160
|
-
if (Date.now() > this.start +
|
|
2160
|
+
if (Date.now() > this.start + 3000) {
|
|
2161
2161
|
this.continue = false;
|
|
2162
2162
|
this.stream.verificationReady();
|
|
2163
2163
|
}
|
|
2164
2164
|
}
|
|
2165
|
-
if (Date.now() - this.initTime >= this.MAX_DETECTION) {
|
|
2165
|
+
else if (Date.now() - this.initTime >= this.MAX_DETECTION) {
|
|
2166
2166
|
this.continue = false;
|
|
2167
2167
|
this.stream.timeElapsed();
|
|
2168
2168
|
}
|
|
@@ -2273,59 +2273,12 @@ class FaceML5Detector {
|
|
|
2273
2273
|
this.presentedFacePose = FacePose.LookLeft;
|
|
2274
2274
|
if (face.nose.x < ff.nose.x - ff.eyesDistance() * 0.5)
|
|
2275
2275
|
this.presentedFacePose = FacePose.LookRight;
|
|
2276
|
-
/*
|
|
2277
|
-
if (
|
|
2278
|
-
face.leftEyeNoseDistanceX() < ff.leftEyeNoseDistanceX() * 0.6 &&
|
|
2279
|
-
face.rightEyeNoseDistanceX() > ff.rightEyeNoseDistanceX() * 1.2 &&
|
|
2280
|
-
face.leftEyeNoseDistanceY() > ff.leftEyeNoseDistanceY() * 0.7 &&
|
|
2281
|
-
face.leftEyeNoseDistanceY() < ff.leftEyeNoseDistanceY() * 1.3 &&
|
|
2282
|
-
face.rightEyeNoseDistanceY() > ff.rightEyeNoseDistanceY() * 0.7 &&
|
|
2283
|
-
face.rightEyeNoseDistanceY() < ff.rightEyeNoseDistanceY() * 1.3
|
|
2284
|
-
) {
|
|
2285
|
-
this.presentedFacePose = FacePose.LookLeft;
|
|
2286
|
-
} else if (
|
|
2287
|
-
face.rightEyeNoseDistanceX() < ff.rightEyeNoseDistanceX() * 0.6 &&
|
|
2288
|
-
face.leftEyeNoseDistanceX() > ff.leftEyeNoseDistanceX() * 1.2 &&
|
|
2289
|
-
face.leftEyeNoseDistanceY() > ff.leftEyeNoseDistanceY() * 0.7 &&
|
|
2290
|
-
face.leftEyeNoseDistanceY() < ff.leftEyeNoseDistanceY() * 1.3 &&
|
|
2291
|
-
face.rightEyeNoseDistanceY() > ff.rightEyeNoseDistanceY() * 0.7 &&
|
|
2292
|
-
face.rightEyeNoseDistanceY() < ff.rightEyeNoseDistanceY() * 1.3
|
|
2293
|
-
) {
|
|
2294
|
-
this.presentedFacePose = FacePose.LookRight;
|
|
2295
|
-
} else if (face.eyesNoseDistance() < ff.eyesNoseDistance() * 0.45) {
|
|
2296
|
-
this.presentedFacePose = FacePose.LookUp;
|
|
2297
|
-
} else if (face.leftEyeEyeBrowDistance() < ff.leftEyeEyeBrowDistance() * 0.8 && face.rightEyeEyeBrowDistance() < ff.rightEyeEyeBrowDistance() * 0.8) {
|
|
2298
|
-
this.presentedFacePose = FacePose.LookDown;
|
|
2299
|
-
// } else if (face.eyesLevel() >= this.frontFace.eyesLevel() + this.height * 0.05) {
|
|
2300
|
-
// this.presentedFacePose = FacePose.TiltLeft;
|
|
2301
|
-
// } else if (face.eyesLevel() <= this.frontFace.eyesLevel() - this.height * 0.05) {
|
|
2302
|
-
// this.presentedFacePose = FacePose.TiltRight;
|
|
2303
|
-
}
|
|
2304
|
-
*/
|
|
2305
|
-
// if (this.presentedFacePose != null && this.presentedFacePose == this.requestedFacePose) {
|
|
2306
|
-
// this.validFacePose = true;
|
|
2307
|
-
// await this.drawFrame('green', true);
|
|
2308
|
-
// this.validFaceFoundAgain = true;
|
|
2309
|
-
// //this.stream.changeFacePose();
|
|
2310
|
-
// }
|
|
2311
2276
|
if (this.stream.facePose !== null) {
|
|
2312
2277
|
await delay(3000);
|
|
2313
2278
|
this.validFacePose = true;
|
|
2314
2279
|
await this.drawFrame('green', true);
|
|
2315
2280
|
}
|
|
2316
2281
|
}
|
|
2317
|
-
// //check if face is centered again
|
|
2318
|
-
// if (this.validFacePose && this.requestedFacePose != null) {
|
|
2319
|
-
// if (
|
|
2320
|
-
// face.leftEyeNoseDistanceX() < face.rightEyeNoseDistanceX() * 1.2 &&
|
|
2321
|
-
// face.leftEyeNoseDistanceX() > face.rightEyeNoseDistanceX() * 0.8 &&
|
|
2322
|
-
// Math.abs(face.eyesLevel()) < this.height * 0.1
|
|
2323
|
-
// ) {
|
|
2324
|
-
// this.validFaceFoundAgain = true;
|
|
2325
|
-
// this.stream.stopAnimation();
|
|
2326
|
-
// this.drawFrame('green', true);
|
|
2327
|
-
// }
|
|
2328
|
-
// }
|
|
2329
2282
|
}
|
|
2330
2283
|
}
|
|
2331
2284
|
|
|
@@ -5825,7 +5778,7 @@ function v4(options, buf, offset) {
|
|
|
5825
5778
|
}
|
|
5826
5779
|
|
|
5827
5780
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
5828
|
-
const version$1 = "3.6.
|
|
5781
|
+
const version$1 = "3.6.26";
|
|
5829
5782
|
const description = "Person Identification Component";
|
|
5830
5783
|
const main = "./dist/index.cjs.js";
|
|
5831
5784
|
const module = "./dist/index.js";
|
|
@@ -9946,7 +9899,12 @@ const UserLiveness = class {
|
|
|
9946
9899
|
async endFlow() {
|
|
9947
9900
|
if (this.captureStep == SelfieFlowStatus.Selfie) {
|
|
9948
9901
|
if (this.flow.front.photoDone && this.flow.front.recordingDone) {
|
|
9949
|
-
|
|
9902
|
+
if (state.hasSelfieGesture) {
|
|
9903
|
+
this.captureStep = SelfieFlowStatus.Gesture;
|
|
9904
|
+
}
|
|
9905
|
+
else {
|
|
9906
|
+
this.captureStep = SelfieFlowStatus.End;
|
|
9907
|
+
}
|
|
9950
9908
|
}
|
|
9951
9909
|
else {
|
|
9952
9910
|
return;
|