@ekyc_qoobiss/qbs-ect-cmp 3.6.18 → 3.6.20
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 -8
- package/dist/collection/components/common/selfie-tilt/selfie-tilt.js +1 -1
- package/dist/collection/helpers/Stream.js +6 -3
- package/dist/collection/libs/FaceML5Detector/FaceML5Detector.js +1 -3
- package/dist/esm/agreement-check_19.entry.js +9 -8
- package/dist/qbs-ect-cmp/{p-0b7c8953.entry.js → p-367e6ffd.entry.js} +1 -1
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/helpers/Stream.d.ts +2 -0
- package/dist/types/libs/FaceML5Detector/FaceML5Detector.d.ts +0 -1
- package/package.json +1 -1
|
@@ -2135,7 +2135,6 @@ class FaceML5Detector {
|
|
|
2135
2135
|
this.validFaceFound = false;
|
|
2136
2136
|
this.start = null;
|
|
2137
2137
|
this.frontFace = null;
|
|
2138
|
-
this.requestedFacePose = null;
|
|
2139
2138
|
this.presentedFacePose = null;
|
|
2140
2139
|
this.validFacePose = false;
|
|
2141
2140
|
this.checkPose = false;
|
|
@@ -2150,7 +2149,6 @@ class FaceML5Detector {
|
|
|
2150
2149
|
this.stream = stream;
|
|
2151
2150
|
this.ml5 = ML5.getInstance();
|
|
2152
2151
|
this.isMobile = isMobile;
|
|
2153
|
-
this.requestedFacePose = this.stream.requestFacePose();
|
|
2154
2152
|
}
|
|
2155
2153
|
updateHtmlElements(videoElement, canvasElement, _component) {
|
|
2156
2154
|
this.videoElement = videoElement;
|
|
@@ -2323,7 +2321,7 @@ class FaceML5Detector {
|
|
|
2323
2321
|
// this.validFaceFoundAgain = true;
|
|
2324
2322
|
// //this.stream.changeFacePose();
|
|
2325
2323
|
// }
|
|
2326
|
-
if (this.
|
|
2324
|
+
if (this.stream.facePose !== null) {
|
|
2327
2325
|
await delay(3000);
|
|
2328
2326
|
this.validFacePose = true;
|
|
2329
2327
|
await this.drawFrame('green', true);
|
|
@@ -4868,6 +4866,7 @@ class Stream {
|
|
|
4868
4866
|
// this.dropMask();
|
|
4869
4867
|
// if (this.faceDetection) Detector.getInstance().stopDetector();
|
|
4870
4868
|
};
|
|
4869
|
+
this.initFacePose();
|
|
4871
4870
|
this.idML5Detector = IDML5Detector.getInstance(this, store.state.device.isMobile);
|
|
4872
4871
|
this.faceML5Detector = FaceML5Detector.getInstance(this, store.state.device.isMobile);
|
|
4873
4872
|
this.verificationMode = mode;
|
|
@@ -5015,11 +5014,13 @@ class Stream {
|
|
|
5015
5014
|
return;
|
|
5016
5015
|
this.faceML5Detector.initDetector(this.verificationMode);
|
|
5017
5016
|
}
|
|
5017
|
+
initFacePose() {
|
|
5018
|
+
this.facePose = FacePosePick.randomEnum(FacePose);
|
|
5019
|
+
}
|
|
5018
5020
|
requestFacePose() {
|
|
5019
|
-
var pose = FacePosePick.randomEnum(FacePose);
|
|
5020
5021
|
// var pose = FacePose.TiltLeft;
|
|
5021
|
-
this.callbackChangeTitle(
|
|
5022
|
-
return
|
|
5022
|
+
this.callbackChangeTitle(this.facePose);
|
|
5023
|
+
return this.facePose;
|
|
5023
5024
|
}
|
|
5024
5025
|
changeFacePose() {
|
|
5025
5026
|
this.callbackChangeTitle(null);
|
|
@@ -5834,7 +5835,7 @@ function v4(options, buf, offset) {
|
|
|
5834
5835
|
}
|
|
5835
5836
|
|
|
5836
5837
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
5837
|
-
const version$1 = "3.6.
|
|
5838
|
+
const version$1 = "3.6.20";
|
|
5838
5839
|
const description = "Person Identification Component";
|
|
5839
5840
|
const main = "./dist/index.cjs.js";
|
|
5840
5841
|
const module$1 = "./dist/index.js";
|
|
@@ -9695,7 +9696,6 @@ const SelfieTilt = class {
|
|
|
9695
9696
|
this.captureWidth = Math.round((this.captureHeight * 9) / 16);
|
|
9696
9697
|
}
|
|
9697
9698
|
componentWillLoad() {
|
|
9698
|
-
this.mainStream = Stream.getInstance(VerificationMode.Tilt);
|
|
9699
9699
|
this.titleMesage = store.SelfieCaptureValues.Title;
|
|
9700
9700
|
//this.videoDemoStyle = this.device.isMobile ? { 'width': window.screen.width + 'px', 'height': window.screen.height + 'px', 'object-fit': 'fill' } : {};
|
|
9701
9701
|
if (!navigator.mediaDevices) {
|
|
@@ -9703,6 +9703,7 @@ const SelfieTilt = class {
|
|
|
9703
9703
|
}
|
|
9704
9704
|
}
|
|
9705
9705
|
async componentDidLoad() {
|
|
9706
|
+
this.mainStream = Stream.getInstance(VerificationMode.Tilt);
|
|
9706
9707
|
await this.baseComponent.logStep(FlowSteps.SelfieTilt, FlowMoments.Initialized);
|
|
9707
9708
|
this.openCamera();
|
|
9708
9709
|
}
|
|
@@ -53,7 +53,6 @@ export class SelfieTilt {
|
|
|
53
53
|
this.captureWidth = Math.round((this.captureHeight * 9) / 16);
|
|
54
54
|
}
|
|
55
55
|
componentWillLoad() {
|
|
56
|
-
this.mainStream = Stream.getInstance(VerificationMode.Tilt);
|
|
57
56
|
this.titleMesage = SelfieCaptureValues.Title;
|
|
58
57
|
//this.videoDemoStyle = this.device.isMobile ? { 'width': window.screen.width + 'px', 'height': window.screen.height + 'px', 'object-fit': 'fill' } : {};
|
|
59
58
|
if (!navigator.mediaDevices) {
|
|
@@ -61,6 +60,7 @@ export class SelfieTilt {
|
|
|
61
60
|
}
|
|
62
61
|
}
|
|
63
62
|
async componentDidLoad() {
|
|
63
|
+
this.mainStream = Stream.getInstance(VerificationMode.Tilt);
|
|
64
64
|
await this.baseComponent.logStep(FlowSteps.SelfieTilt, FlowMoments.Initialized);
|
|
65
65
|
this.openCamera();
|
|
66
66
|
}
|
|
@@ -57,6 +57,7 @@ export class Stream {
|
|
|
57
57
|
// this.dropMask();
|
|
58
58
|
// if (this.faceDetection) Detector.getInstance().stopDetector();
|
|
59
59
|
};
|
|
60
|
+
this.initFacePose();
|
|
60
61
|
this.idML5Detector = IDML5Detector.getInstance(this, store.device.isMobile);
|
|
61
62
|
this.faceML5Detector = FaceML5Detector.getInstance(this, store.device.isMobile);
|
|
62
63
|
this.verificationMode = mode;
|
|
@@ -204,11 +205,13 @@ export class Stream {
|
|
|
204
205
|
return;
|
|
205
206
|
this.faceML5Detector.initDetector(this.verificationMode);
|
|
206
207
|
}
|
|
208
|
+
initFacePose() {
|
|
209
|
+
this.facePose = FacePosePick.randomEnum(FacePose);
|
|
210
|
+
}
|
|
207
211
|
requestFacePose() {
|
|
208
|
-
var pose = FacePosePick.randomEnum(FacePose);
|
|
209
212
|
// var pose = FacePose.TiltLeft;
|
|
210
|
-
this.callbackChangeTitle(
|
|
211
|
-
return
|
|
213
|
+
this.callbackChangeTitle(this.facePose);
|
|
214
|
+
return this.facePose;
|
|
212
215
|
}
|
|
213
216
|
changeFacePose() {
|
|
214
217
|
this.callbackChangeTitle(null);
|
|
@@ -23,7 +23,6 @@ export class FaceML5Detector {
|
|
|
23
23
|
this.validFaceFound = false;
|
|
24
24
|
this.start = null;
|
|
25
25
|
this.frontFace = null;
|
|
26
|
-
this.requestedFacePose = null;
|
|
27
26
|
this.presentedFacePose = null;
|
|
28
27
|
this.validFacePose = false;
|
|
29
28
|
this.checkPose = false;
|
|
@@ -38,7 +37,6 @@ export class FaceML5Detector {
|
|
|
38
37
|
this.stream = stream;
|
|
39
38
|
this.ml5 = ML5.getInstance();
|
|
40
39
|
this.isMobile = isMobile;
|
|
41
|
-
this.requestedFacePose = this.stream.requestFacePose();
|
|
42
40
|
}
|
|
43
41
|
updateHtmlElements(videoElement, canvasElement, _component) {
|
|
44
42
|
this.videoElement = videoElement;
|
|
@@ -211,7 +209,7 @@ export class FaceML5Detector {
|
|
|
211
209
|
// this.validFaceFoundAgain = true;
|
|
212
210
|
// //this.stream.changeFacePose();
|
|
213
211
|
// }
|
|
214
|
-
if (this.
|
|
212
|
+
if (this.stream.facePose !== null) {
|
|
215
213
|
await delay(3000);
|
|
216
214
|
this.validFacePose = true;
|
|
217
215
|
await this.drawFrame('green', true);
|
|
@@ -2131,7 +2131,6 @@ class FaceML5Detector {
|
|
|
2131
2131
|
this.validFaceFound = false;
|
|
2132
2132
|
this.start = null;
|
|
2133
2133
|
this.frontFace = null;
|
|
2134
|
-
this.requestedFacePose = null;
|
|
2135
2134
|
this.presentedFacePose = null;
|
|
2136
2135
|
this.validFacePose = false;
|
|
2137
2136
|
this.checkPose = false;
|
|
@@ -2146,7 +2145,6 @@ class FaceML5Detector {
|
|
|
2146
2145
|
this.stream = stream;
|
|
2147
2146
|
this.ml5 = ML5.getInstance();
|
|
2148
2147
|
this.isMobile = isMobile;
|
|
2149
|
-
this.requestedFacePose = this.stream.requestFacePose();
|
|
2150
2148
|
}
|
|
2151
2149
|
updateHtmlElements(videoElement, canvasElement, _component) {
|
|
2152
2150
|
this.videoElement = videoElement;
|
|
@@ -2319,7 +2317,7 @@ class FaceML5Detector {
|
|
|
2319
2317
|
// this.validFaceFoundAgain = true;
|
|
2320
2318
|
// //this.stream.changeFacePose();
|
|
2321
2319
|
// }
|
|
2322
|
-
if (this.
|
|
2320
|
+
if (this.stream.facePose !== null) {
|
|
2323
2321
|
await delay(3000);
|
|
2324
2322
|
this.validFacePose = true;
|
|
2325
2323
|
await this.drawFrame('green', true);
|
|
@@ -4864,6 +4862,7 @@ class Stream {
|
|
|
4864
4862
|
// this.dropMask();
|
|
4865
4863
|
// if (this.faceDetection) Detector.getInstance().stopDetector();
|
|
4866
4864
|
};
|
|
4865
|
+
this.initFacePose();
|
|
4867
4866
|
this.idML5Detector = IDML5Detector.getInstance(this, state.device.isMobile);
|
|
4868
4867
|
this.faceML5Detector = FaceML5Detector.getInstance(this, state.device.isMobile);
|
|
4869
4868
|
this.verificationMode = mode;
|
|
@@ -5011,11 +5010,13 @@ class Stream {
|
|
|
5011
5010
|
return;
|
|
5012
5011
|
this.faceML5Detector.initDetector(this.verificationMode);
|
|
5013
5012
|
}
|
|
5013
|
+
initFacePose() {
|
|
5014
|
+
this.facePose = FacePosePick.randomEnum(FacePose);
|
|
5015
|
+
}
|
|
5014
5016
|
requestFacePose() {
|
|
5015
|
-
var pose = FacePosePick.randomEnum(FacePose);
|
|
5016
5017
|
// var pose = FacePose.TiltLeft;
|
|
5017
|
-
this.callbackChangeTitle(
|
|
5018
|
-
return
|
|
5018
|
+
this.callbackChangeTitle(this.facePose);
|
|
5019
|
+
return this.facePose;
|
|
5019
5020
|
}
|
|
5020
5021
|
changeFacePose() {
|
|
5021
5022
|
this.callbackChangeTitle(null);
|
|
@@ -5830,7 +5831,7 @@ function v4(options, buf, offset) {
|
|
|
5830
5831
|
}
|
|
5831
5832
|
|
|
5832
5833
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
5833
|
-
const version$1 = "3.6.
|
|
5834
|
+
const version$1 = "3.6.20";
|
|
5834
5835
|
const description = "Person Identification Component";
|
|
5835
5836
|
const main = "./dist/index.cjs.js";
|
|
5836
5837
|
const module = "./dist/index.js";
|
|
@@ -9691,7 +9692,6 @@ const SelfieTilt = class {
|
|
|
9691
9692
|
this.captureWidth = Math.round((this.captureHeight * 9) / 16);
|
|
9692
9693
|
}
|
|
9693
9694
|
componentWillLoad() {
|
|
9694
|
-
this.mainStream = Stream.getInstance(VerificationMode.Tilt);
|
|
9695
9695
|
this.titleMesage = SelfieCaptureValues.Title;
|
|
9696
9696
|
//this.videoDemoStyle = this.device.isMobile ? { 'width': window.screen.width + 'px', 'height': window.screen.height + 'px', 'object-fit': 'fill' } : {};
|
|
9697
9697
|
if (!navigator.mediaDevices) {
|
|
@@ -9699,6 +9699,7 @@ const SelfieTilt = class {
|
|
|
9699
9699
|
}
|
|
9700
9700
|
}
|
|
9701
9701
|
async componentDidLoad() {
|
|
9702
|
+
this.mainStream = Stream.getInstance(VerificationMode.Tilt);
|
|
9702
9703
|
await this.baseComponent.logStep(FlowSteps.SelfieTilt, FlowMoments.Initialized);
|
|
9703
9704
|
this.openCamera();
|
|
9704
9705
|
}
|