@ekyc_qoobiss/qbs-ect-cmp 1.10.18 → 1.10.19

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.
@@ -2075,13 +2075,13 @@ class FaceML5Detector {
2075
2075
  this.validFacePose = false;
2076
2076
  this.validFaceFoundAgain = false;
2077
2077
  this.MAX_NUMBER_FACES = 1;
2078
- this.MIN_FACE_SCORE = 0.75;
2078
+ this.MIN_FACE_SCORE = 0.65;
2079
2079
  // private readonly MIN_FACE_SIZE_FOR_MOBILE = 200;
2080
2080
  // private readonly MIN_FACE_SIZE_FOR_DESKTOP = 350;
2081
- this.MIN_OCCUPIED_SPACE_FOR_DESKTOP = 20;
2082
- this.MIN_OCCUPIED_SPACE_FOR_MOBILE = 30;
2083
- this.X_OFFSET_FROM_FRAME = 2;
2084
- this.Y_OFFSET_FROM_FRAME = 2;
2081
+ this.MIN_OCCUPIED_SPACE_FOR_DESKTOP = 15;
2082
+ this.MIN_OCCUPIED_SPACE_FOR_MOBILE = 20;
2083
+ this.X_OFFSET_FROM_FRAME = 1;
2084
+ this.Y_OFFSET_FROM_FRAME = 1;
2085
2085
  this.stream = stream;
2086
2086
  this.ml5 = ML5.getInstance();
2087
2087
  this.isMobile = isMobile;
@@ -5621,6 +5621,10 @@ const IdDoubleSide = class {
5621
5621
  }
5622
5622
  async capturedIdRecording(event) {
5623
5623
  let idRecording = event.detail;
5624
+ if (idRecording.length == 0 || idRecording.size == 0) {
5625
+ await this.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording });
5626
+ return;
5627
+ }
5624
5628
  let mimeType = idRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
5625
5629
  try {
5626
5630
  this.flow.recordingFile = new File([idRecording], this.flow.recordingFileName + mimeType.extension, { type: mimeType.type });
@@ -5753,6 +5757,10 @@ const IdSingleSide = class {
5753
5757
  }
5754
5758
  async capturedIdRecording(event) {
5755
5759
  let idRecording = event.detail;
5760
+ if (idRecording.length == 0 || idRecording.size == 0) {
5761
+ await this.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording });
5762
+ return;
5763
+ }
5756
5764
  let mimeType = idRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
5757
5765
  if (state.flowStatus == FlowStatus.ID) {
5758
5766
  try {
@@ -9271,6 +9279,10 @@ const UserLiveness = class {
9271
9279
  }
9272
9280
  async capturedSelfieRecording(event) {
9273
9281
  let selfieRecording = event.detail;
9282
+ if (selfieRecording.length == 0 || selfieRecording.size == 0) {
9283
+ await this.apiCall.AddLog({ message: 'Empty recording', blobData: selfieRecording });
9284
+ return;
9285
+ }
9274
9286
  let mimeType = selfieRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
9275
9287
  try {
9276
9288
  this.selfieFlow.recordingFile = new File([selfieRecording], 'selfieVideo.' + mimeType.extension, { type: mimeType.type });
@@ -74,6 +74,10 @@ export class IdDoubleSide {
74
74
  }
75
75
  async capturedIdRecording(event) {
76
76
  let idRecording = event.detail;
77
+ if (idRecording.length == 0 || idRecording.size == 0) {
78
+ await this.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording });
79
+ return;
80
+ }
77
81
  let mimeType = idRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
78
82
  try {
79
83
  this.flow.recordingFile = new File([idRecording], this.flow.recordingFileName + mimeType.extension, { type: mimeType.type });
@@ -45,6 +45,10 @@ export class IdSingleSide {
45
45
  }
46
46
  async capturedIdRecording(event) {
47
47
  let idRecording = event.detail;
48
+ if (idRecording.length == 0 || idRecording.size == 0) {
49
+ await this.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording });
50
+ return;
51
+ }
48
52
  let mimeType = idRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
49
53
  if (store.flowStatus == FlowStatus.ID) {
50
54
  try {
@@ -41,6 +41,10 @@ export class UserLiveness {
41
41
  }
42
42
  async capturedSelfieRecording(event) {
43
43
  let selfieRecording = event.detail;
44
+ if (selfieRecording.length == 0 || selfieRecording.size == 0) {
45
+ await this.apiCall.AddLog({ message: 'Empty recording', blobData: selfieRecording });
46
+ return;
47
+ }
44
48
  let mimeType = selfieRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
45
49
  try {
46
50
  this.selfieFlow.recordingFile = new File([selfieRecording], 'selfieVideo.' + mimeType.extension, { type: mimeType.type });
@@ -25,13 +25,13 @@ export class FaceML5Detector {
25
25
  this.validFacePose = false;
26
26
  this.validFaceFoundAgain = false;
27
27
  this.MAX_NUMBER_FACES = 1;
28
- this.MIN_FACE_SCORE = 0.75;
28
+ this.MIN_FACE_SCORE = 0.65;
29
29
  // private readonly MIN_FACE_SIZE_FOR_MOBILE = 200;
30
30
  // private readonly MIN_FACE_SIZE_FOR_DESKTOP = 350;
31
- this.MIN_OCCUPIED_SPACE_FOR_DESKTOP = 20;
32
- this.MIN_OCCUPIED_SPACE_FOR_MOBILE = 30;
33
- this.X_OFFSET_FROM_FRAME = 2;
34
- this.Y_OFFSET_FROM_FRAME = 2;
31
+ this.MIN_OCCUPIED_SPACE_FOR_DESKTOP = 15;
32
+ this.MIN_OCCUPIED_SPACE_FOR_MOBILE = 20;
33
+ this.X_OFFSET_FROM_FRAME = 1;
34
+ this.Y_OFFSET_FROM_FRAME = 1;
35
35
  this.stream = stream;
36
36
  this.ml5 = ML5.getInstance();
37
37
  this.isMobile = isMobile;
@@ -2071,13 +2071,13 @@ class FaceML5Detector {
2071
2071
  this.validFacePose = false;
2072
2072
  this.validFaceFoundAgain = false;
2073
2073
  this.MAX_NUMBER_FACES = 1;
2074
- this.MIN_FACE_SCORE = 0.75;
2074
+ this.MIN_FACE_SCORE = 0.65;
2075
2075
  // private readonly MIN_FACE_SIZE_FOR_MOBILE = 200;
2076
2076
  // private readonly MIN_FACE_SIZE_FOR_DESKTOP = 350;
2077
- this.MIN_OCCUPIED_SPACE_FOR_DESKTOP = 20;
2078
- this.MIN_OCCUPIED_SPACE_FOR_MOBILE = 30;
2079
- this.X_OFFSET_FROM_FRAME = 2;
2080
- this.Y_OFFSET_FROM_FRAME = 2;
2077
+ this.MIN_OCCUPIED_SPACE_FOR_DESKTOP = 15;
2078
+ this.MIN_OCCUPIED_SPACE_FOR_MOBILE = 20;
2079
+ this.X_OFFSET_FROM_FRAME = 1;
2080
+ this.Y_OFFSET_FROM_FRAME = 1;
2081
2081
  this.stream = stream;
2082
2082
  this.ml5 = ML5.getInstance();
2083
2083
  this.isMobile = isMobile;
@@ -5617,6 +5617,10 @@ const IdDoubleSide = class {
5617
5617
  }
5618
5618
  async capturedIdRecording(event) {
5619
5619
  let idRecording = event.detail;
5620
+ if (idRecording.length == 0 || idRecording.size == 0) {
5621
+ await this.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording });
5622
+ return;
5623
+ }
5620
5624
  let mimeType = idRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
5621
5625
  try {
5622
5626
  this.flow.recordingFile = new File([idRecording], this.flow.recordingFileName + mimeType.extension, { type: mimeType.type });
@@ -5749,6 +5753,10 @@ const IdSingleSide = class {
5749
5753
  }
5750
5754
  async capturedIdRecording(event) {
5751
5755
  let idRecording = event.detail;
5756
+ if (idRecording.length == 0 || idRecording.size == 0) {
5757
+ await this.apiCall.AddLog({ message: 'Empty recording', blobData: idRecording });
5758
+ return;
5759
+ }
5752
5760
  let mimeType = idRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
5753
5761
  if (state.flowStatus == FlowStatus.ID) {
5754
5762
  try {
@@ -9267,6 +9275,10 @@ const UserLiveness = class {
9267
9275
  }
9268
9276
  async capturedSelfieRecording(event) {
9269
9277
  let selfieRecording = event.detail;
9278
+ if (selfieRecording.length == 0 || selfieRecording.size == 0) {
9279
+ await this.apiCall.AddLog({ message: 'Empty recording', blobData: selfieRecording });
9280
+ return;
9281
+ }
9270
9282
  let mimeType = selfieRecording.type == Stream.mp4MimeType.type ? Stream.mp4MimeType : Stream.webmMimeType;
9271
9283
  try {
9272
9284
  this.selfieFlow.recordingFile = new File([selfieRecording], 'selfieVideo.' + mimeType.extension, { type: mimeType.type });