@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.
- package/dist/cjs/agreement-check_16.cjs.entry.js +11 -21
- package/dist/collection/components/common/id-capture/id-capture.js +0 -1
- package/dist/collection/helpers/Stream.js +2 -2
- package/dist/collection/libs/IDML5Detector/IDML5Detector.js +9 -18
- package/dist/esm/agreement-check_16.entry.js +11 -21
- package/dist/qbs-ect-cmp/{p-1f32d4bc.entry.js → p-a4d705f6.entry.js} +1 -1
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
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
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
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 => {
|
|
@@ -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
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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
|
-
|
|
75
|
-
|
|
76
|
-
|
|
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
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
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
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
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 => {
|