@realeyes/verifeye-sdk 1.0.1 → 1.1.2
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/README.md +2 -2
- package/dist/{faceDetectionService-D37MewxK.js → faceDetectionService-CohHJWWF.js} +6 -6
- package/dist/{index-Bfh2zolf.js → index-Wwkx7Prz.js} +760 -725
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/{livenessCheckDialog-D7nIgy_n.js → livenessCheckDialog-BaqSpUpX.js} +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> React component library for embedding the [VerifEye](https://realeyes.ai/platform/) identity-verification flow into your web application.
|
|
4
4
|
|
|
5
|
-
[](
|
|
5
|
+
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
6
6
|
|
|
7
7
|
## Overview
|
|
8
8
|
|
|
@@ -41,4 +41,4 @@ This SDK captures camera images and processes facial/biometric data to perform v
|
|
|
41
41
|
|
|
42
42
|
## License
|
|
43
43
|
|
|
44
|
-
Copyright © 2026 Realeyes OÜ. Licensed under the [Apache License 2.0](
|
|
44
|
+
Copyright © 2026 Realeyes OÜ. Licensed under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0); see the `LICENSE` and `NOTICE` files included in the package. Use of the hosted VerifEye service is additionally governed by the [Realeyes Terms](https://realeyes.ai/terms-for-customers/).
|
|
@@ -8,7 +8,7 @@ class f {
|
|
|
8
8
|
if (!(this.isInitialized && this.faceDetector))
|
|
9
9
|
try {
|
|
10
10
|
const e = await d.forVisionTasks(
|
|
11
|
-
"https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision
|
|
11
|
+
"https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision/wasm"
|
|
12
12
|
);
|
|
13
13
|
this.faceDetector = await m.createFromOptions(e, {
|
|
14
14
|
baseOptions: {
|
|
@@ -59,18 +59,18 @@ class f {
|
|
|
59
59
|
return;
|
|
60
60
|
}
|
|
61
61
|
this.canvas.width = e.videoWidth, this.canvas.height = e.videoHeight, this.ctx.drawImage(e, 0, 0);
|
|
62
|
-
const
|
|
63
|
-
if (
|
|
64
|
-
const n =
|
|
62
|
+
const h = this.faceDetector.detect(e);
|
|
63
|
+
if (h.detections.length > 0) {
|
|
64
|
+
const n = h.detections[0].categories[0].score, l = this.compressCanvasToJpeg(this.canvas);
|
|
65
65
|
if (n >= r) {
|
|
66
66
|
cancelAnimationFrame(i), a({
|
|
67
67
|
hasFace: !0,
|
|
68
|
-
base64Image:
|
|
68
|
+
base64Image: l,
|
|
69
69
|
confidence: n
|
|
70
70
|
});
|
|
71
71
|
return;
|
|
72
72
|
}
|
|
73
|
-
(!t || n > t.confidence) && (t = { image:
|
|
73
|
+
(!t || n > t.confidence) && (t = { image: l, confidence: n });
|
|
74
74
|
}
|
|
75
75
|
i = requestAnimationFrame(o);
|
|
76
76
|
};
|