@ekyc_qoobiss/qbs-ect-cmp 3.6.19 → 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.
@@ -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.requestedFacePose !== null) {
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(pose);
5022
- return pose;
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.19";
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";
@@ -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(pose);
211
- return pose;
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.requestedFacePose !== null) {
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.requestedFacePose !== null) {
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(pose);
5018
- return pose;
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.19";
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";