@ekyc_qoobiss/qbs-ect-cmp 1.8.3 → 1.8.4

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.
@@ -1838,25 +1838,16 @@ class IDML5Detector {
1838
1838
  this.stream.timeElapsed();
1839
1839
  return;
1840
1840
  }
1841
- if (results[0].label == 'full' && results[0].confidence > 0.9) {
1842
- if (this.full == 0) {
1843
- this.full = 1;
1844
- this.stream.stopAnimation();
1845
- await this.drawFrame('green');
1846
- this.stream.changeIDPose(IDPose.Tilted);
1847
- }
1848
- if (this.full == 1 && this.tilted == 1) {
1849
- this.stream.stopAnimation();
1850
- this.drawFrame('green', true);
1851
- }
1841
+ if (results[0].label == 'full' && results[0].confidence > 0.9 && this.full == 0) {
1842
+ this.full = 1;
1843
+ this.stream.stopAnimation();
1844
+ await this.drawFrame('green');
1845
+ this.stream.changeIDPose(IDPose.Tilted);
1852
1846
  }
1853
- if (results[0].label == 'tilted' && results[0].confidence > 0.8) {
1854
- if (this.full == 1 && this.tilted == 0) {
1855
- this.tilted = 1;
1856
- this.stream.stopAnimation();
1857
- await this.drawFrame('green');
1858
- this.stream.changeIDPose(IDPose.Straight);
1859
- }
1847
+ if (results[0].label == 'tilted' && results[0].confidence > 0.8 && this.full == 1 && this.tilted == 0) {
1848
+ this.tilted = 1;
1849
+ this.stream.stopAnimation();
1850
+ await this.drawFrame('green');
1860
1851
  }
1861
1852
  this.classifyVideo();
1862
1853
  }
@@ -4860,8 +4851,8 @@ class Stream {
4860
4851
  resolve(frame);
4861
4852
  }
4862
4853
  }, ImageFormat.PNG, 1);
4863
- let outCanvContext = this.canvasElement.getContext('2d');
4864
- outCanvContext.drawImage(this.videoElement, 0, 0, this.canvasElement.width, this.canvasElement.height);
4854
+ //let outCanvContext = this.canvasElement.getContext('2d');
4855
+ //outCanvContext.drawImage(this.videoElement, 0, 0, this.canvasElement.width, this.canvasElement.height);
4865
4856
  });
4866
4857
  }
4867
4858
  async startIdDetection() {
@@ -5443,7 +5434,6 @@ const IdCapture = class {
5443
5434
  if (this.captureTaken)
5444
5435
  return;
5445
5436
  this.captureTaken = true;
5446
- this.titleMesage = IdCaptureValues.Loading;
5447
5437
  Stream.getInstance()
5448
5438
  .takePhoto()
5449
5439
  .then(res => {
@@ -83,7 +83,6 @@ export class IdCapture {
83
83
  if (this.captureTaken)
84
84
  return;
85
85
  this.captureTaken = true;
86
- this.titleMesage = IdCaptureValues.Loading;
87
86
  Stream.getInstance()
88
87
  .takePhoto()
89
88
  .then(res => {
@@ -194,8 +194,8 @@ export class Stream {
194
194
  resolve(frame);
195
195
  }
196
196
  }, ImageFormat.PNG, 1);
197
- let outCanvContext = this.canvasElement.getContext('2d');
198
- outCanvContext.drawImage(this.videoElement, 0, 0, this.canvasElement.width, this.canvasElement.height);
197
+ //let outCanvContext = this.canvasElement.getContext('2d');
198
+ //outCanvContext.drawImage(this.videoElement, 0, 0, this.canvasElement.width, this.canvasElement.height);
199
199
  });
200
200
  }
201
201
  async startIdDetection() {
@@ -58,25 +58,16 @@ export class IDML5Detector {
58
58
  this.stream.timeElapsed();
59
59
  return;
60
60
  }
61
- if (results[0].label == 'full' && results[0].confidence > 0.9) {
62
- if (this.full == 0) {
63
- this.full = 1;
64
- this.stream.stopAnimation();
65
- await this.drawFrame('green');
66
- this.stream.changeIDPose(IDPose.Tilted);
67
- }
68
- if (this.full == 1 && this.tilted == 1) {
69
- this.stream.stopAnimation();
70
- this.drawFrame('green', true);
71
- }
61
+ if (results[0].label == 'full' && results[0].confidence > 0.9 && this.full == 0) {
62
+ this.full = 1;
63
+ this.stream.stopAnimation();
64
+ await this.drawFrame('green');
65
+ this.stream.changeIDPose(IDPose.Tilted);
72
66
  }
73
- if (results[0].label == 'tilted' && results[0].confidence > 0.8) {
74
- if (this.full == 1 && this.tilted == 0) {
75
- this.tilted = 1;
76
- this.stream.stopAnimation();
77
- await this.drawFrame('green');
78
- this.stream.changeIDPose(IDPose.Straight);
79
- }
67
+ if (results[0].label == 'tilted' && results[0].confidence > 0.8 && this.full == 1 && this.tilted == 0) {
68
+ this.tilted = 1;
69
+ this.stream.stopAnimation();
70
+ await this.drawFrame('green');
80
71
  }
81
72
  this.classifyVideo();
82
73
  }
@@ -1834,25 +1834,16 @@ class IDML5Detector {
1834
1834
  this.stream.timeElapsed();
1835
1835
  return;
1836
1836
  }
1837
- if (results[0].label == 'full' && results[0].confidence > 0.9) {
1838
- if (this.full == 0) {
1839
- this.full = 1;
1840
- this.stream.stopAnimation();
1841
- await this.drawFrame('green');
1842
- this.stream.changeIDPose(IDPose.Tilted);
1843
- }
1844
- if (this.full == 1 && this.tilted == 1) {
1845
- this.stream.stopAnimation();
1846
- this.drawFrame('green', true);
1847
- }
1837
+ if (results[0].label == 'full' && results[0].confidence > 0.9 && this.full == 0) {
1838
+ this.full = 1;
1839
+ this.stream.stopAnimation();
1840
+ await this.drawFrame('green');
1841
+ this.stream.changeIDPose(IDPose.Tilted);
1848
1842
  }
1849
- if (results[0].label == 'tilted' && results[0].confidence > 0.8) {
1850
- if (this.full == 1 && this.tilted == 0) {
1851
- this.tilted = 1;
1852
- this.stream.stopAnimation();
1853
- await this.drawFrame('green');
1854
- this.stream.changeIDPose(IDPose.Straight);
1855
- }
1843
+ if (results[0].label == 'tilted' && results[0].confidence > 0.8 && this.full == 1 && this.tilted == 0) {
1844
+ this.tilted = 1;
1845
+ this.stream.stopAnimation();
1846
+ await this.drawFrame('green');
1856
1847
  }
1857
1848
  this.classifyVideo();
1858
1849
  }
@@ -4856,8 +4847,8 @@ class Stream {
4856
4847
  resolve(frame);
4857
4848
  }
4858
4849
  }, ImageFormat.PNG, 1);
4859
- let outCanvContext = this.canvasElement.getContext('2d');
4860
- outCanvContext.drawImage(this.videoElement, 0, 0, this.canvasElement.width, this.canvasElement.height);
4850
+ //let outCanvContext = this.canvasElement.getContext('2d');
4851
+ //outCanvContext.drawImage(this.videoElement, 0, 0, this.canvasElement.width, this.canvasElement.height);
4861
4852
  });
4862
4853
  }
4863
4854
  async startIdDetection() {
@@ -5439,7 +5430,6 @@ const IdCapture = class {
5439
5430
  if (this.captureTaken)
5440
5431
  return;
5441
5432
  this.captureTaken = true;
5442
- this.titleMesage = IdCaptureValues.Loading;
5443
5433
  Stream.getInstance()
5444
5434
  .takePhoto()
5445
5435
  .then(res => {