bry-biometric-collector 3.2.1 → 3.3.0-RC02
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 +13 -0
- package/dist/{DocumentCollector_3a227a66_3.2.1.js → DocumentCollector_d1c80ecf_3.3.0-RC02.js} +34 -34
- package/dist/FaceCollector_0019b3db_3.3.0-RC02.js +2365 -0
- package/dist/{ValidationAlert_71ec43a1_3.2.1.js → ValidationAlert_f608a307_3.3.0-RC02.js} +27 -27
- package/dist/{___vite-browser-external_commonjs-proxy_eec4c905_3.2.1.js → ___vite-browser-external_commonjs-proxy_18980ff7_3.3.0-RC02.js} +1 -1
- package/dist/bry-biometric-collector-main.js +2 -2
- package/dist/faceApi_940794d6_3.3.0-RC02.js +17 -0
- package/dist/{fingersApi_c9ee3c26_3.2.1.js → fingersApi_e73e0484_3.3.0-RC02.js} +2 -2
- package/dist/index.d.ts +3 -1
- package/dist/index.js +2 -2
- package/dist/{index_3331e50f_3.2.1.js → index_0e3c2de1_3.3.0-RC02.js} +3 -3
- package/dist/{index_3e3b803e_3.2.1.js → index_c6027bfe_3.3.0-RC02.js} +3 -3
- package/dist/{main_f7bde95f_3.2.1.js → main_92f80aa7_3.3.0-RC02.js} +5700 -5662
- package/package.json +1 -1
- package/dist/FaceCollector_aee737a8_3.2.1.js +0 -2350
- /package/dist/{en-us_e83efd5d_3.2.1.js → en-us_e83efd5d_3.3.0-RC02.js} +0 -0
- /package/dist/{es-cl_5939150a_3.2.1.js → es-cl_5939150a_3.3.0-RC02.js} +0 -0
- /package/dist/{face_api_0e3ce8c8_3.2.1.js → face_api_0e3ce8c8_3.3.0-RC02.js} +0 -0
- /package/dist/{index-idlf-detector_39cfdffa_3.2.1.js → index-idlf-detector_39cfdffa_3.3.0-RC02.js} +0 -0
- /package/dist/{index-idlf-detector_a819b3c8_3.2.1.js → index-idlf-detector_a819b3c8_3.3.0-RC02.js} +0 -0
- /package/dist/{pt-br_fae15356_3.2.1.js → pt-br_fae15356_3.3.0-RC02.js} +0 -0
package/README.md
CHANGED
@@ -256,6 +256,12 @@ Currently supported tag parameters:
|
|
256
256
|
|
257
257
|
Example: `face_detection_sensitivity=strict`
|
258
258
|
|
259
|
+
- **camera_device_id**: Defines the camera device ID to be used for video capture. This allows specifying which camera should be used when multiple cameras are available.
|
260
|
+
|
261
|
+
Default: `undefined` (uses default camera)
|
262
|
+
|
263
|
+
Example: `camera_device_id="0"` or `camera_device_id="camera-id-string"`
|
264
|
+
|
259
265
|
### **Run-time Configuration**
|
260
266
|
|
261
267
|
#### **Functions**
|
@@ -508,6 +514,13 @@ component.setNotifyEachFingerCollected(true);
|
|
508
514
|
|
509
515
|
- **setLivenessEndpoint(url: string)**: Sets the liveness endpoint to validate the capture. This is required when liveness is enabled. The component will uise this endpoint to evaluate capture and facial liveness.
|
510
516
|
|
517
|
+
- **async captureSingleFace(
|
518
|
+
validateDetections: boolean
|
519
|
+
): Promise<{
|
520
|
+
returnCode: handleCaptureReturnStatus;
|
521
|
+
message?: string;
|
522
|
+
}**: Calls the capture face function from the web component directly. The advantage of this method is that it calls the capture function directly, works with or without liveness detection, and allows you to enable or disable detection validation during face capture.
|
523
|
+
|
511
524
|
- **async captureSingleFinger(
|
512
525
|
fingerNameOrIndex: number | BodyPartNames,
|
513
526
|
getFingerprintParams: CaptureParams
|
package/dist/{DocumentCollector_3a227a66_3.2.1.js → DocumentCollector_d1c80ecf_3.3.0-RC02.js}
RENAMED
@@ -1,6 +1,6 @@
|
|
1
|
-
import { S as nt,
|
2
|
-
import { W as Bi, C as Gi, V as Qi, a as Xi } from "./
|
3
|
-
import { matchDimensions as Yi, resizeResults as Vi } from "./face_api_0e3ce8c8_3.
|
1
|
+
import { S as nt, t as ot, x as rt, y as lt, z, B as j, C as D, bi as se, D as Q, E as f, b3 as ne, bj as kt, a4 as w, K as E, L as M, bk as q, bl as vi, N as oe, W as L, Q as $, a2 as pe, R as ee, G as W, H as Te, I as H, J as Ae, T as te, O as Y, P as v, V as F, X as Ii, a6 as Ye, a7 as ve, Z as G, a0 as Ie, a8 as wi, a9 as we, ab as yi, aa as ue, ac as ye, ad as Ve, ae as Je, af as zt, ai as Ce, al as xe, am as Ci, an as jt, ao as Me, $ as Mi, ah as Ke, aq as Rt, as as qe, _ as Di, ax as _i, aA as pi, aB as Ti, aD as $e, aE as re, j as Ai, aF as et, aS as St, d as De, aT as Wt, aU as tt, aV as Oi, aJ as it, bm as Ni, aW as ki, aX as zi, aY as ji, aC as Ri, aZ as Si, bn as Wi, a$ as Ei, b0 as _e, b1 as Zi, b2 as Pi, b4 as le, b5 as ct, a3 as Fi, a1 as V, a5 as J, w as Et, b6 as Li, bo as Hi, ba as at, bp as Ui } from "./main_92f80aa7_3.3.0-RC02.js";
|
2
|
+
import { W as Bi, C as Gi, V as Qi, a as Xi } from "./ValidationAlert_f608a307_3.3.0-RC02.js";
|
3
|
+
import { matchDimensions as Yi, resizeResults as Vi } from "./face_api_0e3ce8c8_3.3.0-RC02.js";
|
4
4
|
const Ji = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIwNiIgaGVpZ2h0PSI4OTAiIHZpZXdCb3g9IjAgMCAxMjA2IDg5MCIgZmlsbD0ibm9uZSIgb3BhY2l0eT0iMC4yIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogICAgPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8xOF80KSIgb3BhY2l0eT0iMCI+CiAgICA8bWFzayBpZD0icGF0aC0xLWluc2lkZS0xXzE4XzQiIGZpbGw9IndoaXRlIj4KICAgIDxyZWN0IHg9IjQiIHdpZHRoPSIxMTk4IiBoZWlnaHQ9Ijg4MiIgcng9IjYiLz4KICAgIDwvbWFzaz4KICAgIDxyZWN0IHg9IjQiIHdpZHRoPSIxMTk4IiBoZWlnaHQ9Ijg4MiIgcng9IjYiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS1vcGFjaXR5PSIwLjki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FnZUZpeCIvPgogICAgPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CiAgICA8ZmVPZmZzZXQgZHk9IjQiLz4KICAgIDxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjIiLz4KICAgIDxmZUNvbXBvc2l0ZSBpbjI9ImhhcmRBbHBoYSIgb3BlcmF0b3I9Im91dCIvPgogICAgPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMjUgMCIvPgogICAgPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJlZmZlY3QxX2Ryb3BTaGFkb3dfMThfNCIvPgogICAgPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMThfNCIgcmVzdWx0PSJzaGFwZSIvPgogICAgPC9maWx0ZXI+CiAgICA8L2RlZnM+CiAgICA8L3N2Zz4KICAgIA==";
|
5
5
|
function xi(a) {
|
6
6
|
let e, t, s, n, r, o, g, h, d, l, u;
|
@@ -110,7 +110,7 @@ function Zt(a) {
|
|
110
110
|
t || (W(e.$$.fragment, s), t = !0);
|
111
111
|
},
|
112
112
|
o(s) {
|
113
|
-
|
113
|
+
H(e.$$.fragment, s), t = !1;
|
114
114
|
},
|
115
115
|
d(s) {
|
116
116
|
te(e, s);
|
@@ -139,7 +139,7 @@ function qi(a) {
|
|
139
139
|
}
|
140
140
|
}), {
|
141
141
|
c() {
|
142
|
-
e = D("div"), t = D("div"), s = D("div"), n = D("img"), o =
|
142
|
+
e = D("div"), t = D("div"), s = D("div"), n = D("img"), o = L(), u && u.c(), h = L(), $(d.$$.fragment), this.c = Q, pe(n.src, r = Ji) || f(n, "src", r), f(n, "alt", "document"), f(s, "class", "w-full h-full relative"), f(t, "class", "absolute inset-0 flex justify-center"), f(e, "id", "doc-rectangle"), f(e, "class", g = "doc-loader " + /*loading*/
|
143
143
|
(a[0] ? "doc-loading" : "") + " z-10"), f(
|
144
144
|
e,
|
145
145
|
"style",
|
@@ -153,7 +153,7 @@ function qi(a) {
|
|
153
153
|
p(c, [b]) {
|
154
154
|
/*showWatermark*/
|
155
155
|
c[3] ? u ? b & /*showWatermark*/
|
156
|
-
8 && W(u, 1) : (u = Zt(), u.c(), W(u, 1), u.m(e, null)) : u && (Te(),
|
156
|
+
8 && W(u, 1) : (u = Zt(), u.c(), W(u, 1), u.m(e, null)) : u && (Te(), H(u, 1, 1, () => {
|
157
157
|
u = null;
|
158
158
|
}), Ae()), (!l || b & /*loading*/
|
159
159
|
1 && g !== (g = "doc-loader " + /*loading*/
|
@@ -177,7 +177,7 @@ function qi(a) {
|
|
177
177
|
l || (W(u), W(d.$$.fragment, c), l = !0);
|
178
178
|
},
|
179
179
|
o(c) {
|
180
|
-
|
180
|
+
H(u), H(d.$$.fragment, c), l = !1;
|
181
181
|
},
|
182
182
|
d(c) {
|
183
183
|
c && E(e), u && u.d(), c && E(h), te(d, c);
|
@@ -295,7 +295,7 @@ function Pt(a) {
|
|
295
295
|
}
|
296
296
|
}), {
|
297
297
|
c() {
|
298
|
-
e = D("div"), t = D("div"), s = D("video"), r =
|
298
|
+
e = D("div"), t = D("div"), s = D("video"), r = L(), o = D("canvas"), g = L(), h = D("div"), d = D("div"), A && A.c(), l = L(), $(u.$$.fragment), c = L(), $(b.$$.fragment), f(s, "id", "bry-cc-camera-video-tag"), f(s, "class", n = /*$ready*/
|
299
299
|
a[12] ? Y() ? "absolute inset-0" : "w-full h-full object-cover" : "w-0 h-0"), s.playsInline = !0, s.muted = !0, s.autoplay = !0, f(o, "id", "bry-ce-detectionsCanvas"), f(o, "class", "absolute top-0 left-0 max-w-full"), f(t, "class", "overflow-hidden"), ne(
|
300
300
|
t,
|
301
301
|
"width",
|
@@ -344,7 +344,7 @@ function Pt(a) {
|
|
344
344
|
T[13].videoHeight + "px"
|
345
345
|
), /*$ready*/
|
346
346
|
T[12] ? A ? (A.p(T, R), R[0] & /*$ready*/
|
347
|
-
4096 && W(A, 1)) : (A = Ft(T), A.c(), W(A, 1), A.m(d, null)) : A && (Te(),
|
347
|
+
4096 && W(A, 1)) : (A = Ft(T), A.c(), W(A, 1), A.m(d, null)) : A && (Te(), H(A, 1, 1, () => {
|
348
348
|
A = null;
|
349
349
|
}), Ae());
|
350
350
|
const P = {};
|
@@ -366,7 +366,7 @@ function Pt(a) {
|
|
366
366
|
m || (W(A), W(u.$$.fragment, T), W(b.$$.fragment, T), m = !0);
|
367
367
|
},
|
368
368
|
o(T) {
|
369
|
-
|
369
|
+
H(A), H(u.$$.fragment, T), H(b.$$.fragment, T), m = !1;
|
370
370
|
},
|
371
371
|
d(T) {
|
372
372
|
T && E(e), a[34](null), a[36](null), A && A.d(), te(u), te(b), C = !1, ct(O);
|
@@ -403,7 +403,7 @@ function Ft(a) {
|
|
403
403
|
}
|
404
404
|
}), {
|
405
405
|
c() {
|
406
|
-
$(e.$$.fragment), t =
|
406
|
+
$(e.$$.fragment), t = L(), $(s.$$.fragment);
|
407
407
|
},
|
408
408
|
m(r, o) {
|
409
409
|
ee(e, r, o), z(r, t, o), ee(s, r, o), n = !0;
|
@@ -428,14 +428,14 @@ function Ft(a) {
|
|
428
428
|
n || (W(e.$$.fragment, r), W(s.$$.fragment, r), n = !0);
|
429
429
|
},
|
430
430
|
o(r) {
|
431
|
-
|
431
|
+
H(e.$$.fragment, r), H(s.$$.fragment, r), n = !1;
|
432
432
|
},
|
433
433
|
d(r) {
|
434
434
|
te(e, r), r && E(t), te(s, r);
|
435
435
|
}
|
436
436
|
};
|
437
437
|
}
|
438
|
-
function
|
438
|
+
function Lt(a) {
|
439
439
|
let e, t, s, n, r;
|
440
440
|
function o(d, l) {
|
441
441
|
return (
|
@@ -446,7 +446,7 @@ function Ht(a) {
|
|
446
446
|
let g = o(a), h = g(a);
|
447
447
|
return {
|
448
448
|
c() {
|
449
|
-
e = D("slot"), t = D("div"), s = D("img"), r =
|
449
|
+
e = D("slot"), t = D("div"), s = D("img"), r = L(), h.c(), pe(s.src, n = Fi) || f(s, "src", n), f(s, "alt", "loading gif"), f(s, "class", "m-auto h-[10em] lg:h-[12em]"), f(t, "class", "translate-y-1/3 md:translate-y-1/4 xl:translate-y-1/2"), f(e, "name", "loading-camera-gif"), f(e, "class", "block h-[17em] lg:h-[21.6em] xl:h-[30em]");
|
450
450
|
},
|
451
451
|
m(d, l) {
|
452
452
|
z(d, e, l), w(e, t), w(t, s), w(t, r), h.m(t, null);
|
@@ -496,7 +496,7 @@ function aa(a) {
|
|
496
496
|
}
|
497
497
|
};
|
498
498
|
}
|
499
|
-
function
|
499
|
+
function Ht(a) {
|
500
500
|
let e, t, s = (
|
501
501
|
/*$_*/
|
502
502
|
a[19]("faceCollector.finish") + ""
|
@@ -506,7 +506,7 @@ function Lt(a) {
|
|
506
506
|
), d, l, u;
|
507
507
|
return {
|
508
508
|
c() {
|
509
|
-
e = D("div"), t = D("button"), n = V(s), o =
|
509
|
+
e = D("div"), t = D("button"), n = V(s), o = L(), g = D("button"), d = V(h), t.disabled = r = /*$justification*/
|
510
510
|
a[16].length === 0, f(t, "class", "ce-dui-btn ce-dui-btn-primary ce-dui-btn-block flex-shrink"), f(g, "id", "bry-cc-retake-button"), f(g, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-outline flex-shrink"), f(e, "class", "ce-dui-btn-group flex");
|
511
511
|
},
|
512
512
|
m(c, b) {
|
@@ -556,7 +556,7 @@ function sa(a) {
|
|
556
556
|
t || (W(e.$$.fragment, s), t = !0);
|
557
557
|
},
|
558
558
|
o(s) {
|
559
|
-
|
559
|
+
H(e.$$.fragment, s), t = !1;
|
560
560
|
},
|
561
561
|
d(s) {
|
562
562
|
te(e, s);
|
@@ -574,7 +574,7 @@ function na(a) {
|
|
574
574
|
let h = g(a), d = h(a);
|
575
575
|
return {
|
576
576
|
c() {
|
577
|
-
e = D("div"), t = D("img"), r =
|
577
|
+
e = D("div"), t = D("img"), r = L(), d.c(), f(t, "class", "m-auto col-start-1 col-end-1 max-h-[23.2em]"), pe(t.src, s = /*$dataTypePrefix*/
|
578
578
|
a[20] + "," + /*$image*/
|
579
579
|
a[17]) || f(t, "src", s), t.hidden = n = !/*$captured*/
|
580
580
|
a[14] || !/*$showFaceWhileValidating*/
|
@@ -622,7 +622,7 @@ function oa(a) {
|
|
622
622
|
let Z = I(a), m = Z(a);
|
623
623
|
return {
|
624
624
|
c() {
|
625
|
-
e = D("div"), m.c(), t =
|
625
|
+
e = D("div"), m.c(), t = L(), s = D("div"), n = D("button"), o = V(r), h = L(), d = D("button"), u = V(l), n.disabled = g = /*$saved*/
|
626
626
|
a[15] || /*$requestResult*/
|
627
627
|
a[18] !== re.OK, f(n, "class", "ce-dui-btn ce-dui-btn-primary ce-dui-btn-block flex-shrink"), f(d, "id", "bry-cc-retake-button"), f(d, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-outline flex-shrink"), f(s, "class", "ce-dui-btn-group flex"), f(e, "class", "flex flex-col justify-between");
|
628
628
|
},
|
@@ -744,9 +744,9 @@ function da(a) {
|
|
744
744
|
a[13] && Pt(a)
|
745
745
|
), u = !/*$ready*/
|
746
746
|
a[12] && /*$cameraStatusStore*/
|
747
|
-
a[11] === F.OK &&
|
747
|
+
a[11] === F.OK && Lt(a), c = (
|
748
748
|
/*$captured*/
|
749
|
-
a[14] &&
|
749
|
+
a[14] && Ht(a)
|
750
750
|
);
|
751
751
|
const b = [na, sa], I = [];
|
752
752
|
function Z(m, C) {
|
@@ -761,7 +761,7 @@ function da(a) {
|
|
761
761
|
}
|
762
762
|
return ~(o = Z(a)) && (g = I[o] = b[o](a)), {
|
763
763
|
c() {
|
764
|
-
e = D("div"), t = D("div"), l && l.c(), s =
|
764
|
+
e = D("div"), t = D("div"), l && l.c(), s = L(), u && u.c(), n = L(), c && c.c(), r = L(), g && g.c(), h = Ii(), this.c = Q, f(t, "class", "relative mx-auto"), f(e, "class", "flex flex-col justify-between");
|
765
765
|
},
|
766
766
|
m(m, C) {
|
767
767
|
z(m, e, C), w(e, t), l && l.m(t, null), w(t, s), u && u.m(t, null), w(t, n), c && c.m(t, null), a[39](e), z(m, r, C), ~o && I[o].m(m, C), z(m, h, C), d = !0;
|
@@ -769,14 +769,14 @@ function da(a) {
|
|
769
769
|
p(m, C) {
|
770
770
|
/*$videoStore*/
|
771
771
|
m[13] ? l ? (l.p(m, C), C[0] & /*$videoStore*/
|
772
|
-
8192 && W(l, 1)) : (l = Pt(m), l.c(), W(l, 1), l.m(t, s)) : l && (Te(),
|
772
|
+
8192 && W(l, 1)) : (l = Pt(m), l.c(), W(l, 1), l.m(t, s)) : l && (Te(), H(l, 1, 1, () => {
|
773
773
|
l = null;
|
774
774
|
}), Ae()), !/*$ready*/
|
775
775
|
m[12] && /*$cameraStatusStore*/
|
776
|
-
m[11] === F.OK ? u ? u.p(m, C) : (u =
|
777
|
-
m[14] ? c ? c.p(m, C) : (c =
|
776
|
+
m[11] === F.OK ? u ? u.p(m, C) : (u = Lt(m), u.c(), u.m(t, n)) : u && (u.d(1), u = null), /*$captured*/
|
777
|
+
m[14] ? c ? c.p(m, C) : (c = Ht(m), c.c(), c.m(t, null)) : c && (c.d(1), c = null);
|
778
778
|
let O = o;
|
779
|
-
o = Z(m), o === O ? ~o && I[o].p(m, C) : (g && (Te(),
|
779
|
+
o = Z(m), o === O ? ~o && I[o].p(m, C) : (g && (Te(), H(I[O], 1, 1, () => {
|
780
780
|
I[O] = null;
|
781
781
|
}), Ae()), ~o ? (g = I[o], g ? g.p(m, C) : (g = I[o] = b[o](m), g.c()), W(g, 1), g.m(h.parentNode, h)) : g = null);
|
782
782
|
},
|
@@ -784,7 +784,7 @@ function da(a) {
|
|
784
784
|
d || (W(l), W(g), d = !0);
|
785
785
|
},
|
786
786
|
o(m) {
|
787
|
-
|
787
|
+
H(l), H(g), d = !1;
|
788
788
|
},
|
789
789
|
d(m) {
|
790
790
|
m && E(e), l && l.d(), u && u.d(), c && c.d(), a[39](null), m && E(r), ~o && I[o].d(m), m && E(h);
|
@@ -828,7 +828,7 @@ function ma(a, e, t) {
|
|
828
828
|
}
|
829
829
|
async function Qt() {
|
830
830
|
const [i, p] = (ke ?? "")?.replaceAll(" ", "")?.split("x")?.map((y) => y ? parseInt(y) : void 0);
|
831
|
-
!i || !p || (Y() ? (await
|
831
|
+
!i || !p || (Y() ? (await Li(), v(
|
832
832
|
oe,
|
833
833
|
c = {
|
834
834
|
videoWidth: window.innerWidth,
|
@@ -851,7 +851,7 @@ function ma(a, e, t) {
|
|
851
851
|
}
|
852
852
|
async function pt() {
|
853
853
|
let i = Yt();
|
854
|
-
if (K && !(await
|
854
|
+
if (K && !(await Hi(i, fe)).result) {
|
855
855
|
console.warn("Document capture - document not detected! Resetting capture.");
|
856
856
|
return;
|
857
857
|
}
|
@@ -912,9 +912,9 @@ function ma(a, e, t) {
|
|
912
912
|
try {
|
913
913
|
let { stream: p, deviceId: y, width: N, height: k, aspectRatio: B } = await St(U.width, U.height, d, i);
|
914
914
|
if (v(Ve, I = p, I), U.aspectRatio = B || N / k, U.aspectRatio > 1 && N < U.width || U.aspectRatio < 1 && k < U.width) {
|
915
|
-
U.width = N, U.height = N / 1.7777, I.getTracks()?.forEach((
|
916
|
-
const { stream:
|
917
|
-
v(Ve, I =
|
915
|
+
U.width = N, U.height = N / 1.7777, I.getTracks()?.forEach((He) => He?.stop());
|
916
|
+
const { stream: Le } = await St(U.width, U.height, d, i);
|
917
|
+
v(Ve, I = Le, I);
|
918
918
|
}
|
919
919
|
v(ue, u = y || l[0].deviceId, u);
|
920
920
|
} catch (p) {
|
@@ -945,7 +945,7 @@ function ma(a, e, t) {
|
|
945
945
|
function Yt() {
|
946
946
|
const i = c.videoWidth, p = c.videoHeight, y = Gt.width, N = p / i * y, k = document.createElement("canvas"), B = k.getContext("2d");
|
947
947
|
k.width = y, k.height = N, B && ha(B, _, k);
|
948
|
-
const
|
948
|
+
const Le = k.width / c.videoWidth, He = k.height / c.videoHeight, gi = Y() ? 0.25 : 0.15, hi = Math.round(k.height * gi), Ue = C.width * Le, Be = C.height * He, Ot = (Y() ? 0.15 : 0.2) * Ue, Nt = 0.2 * Be, mi = (k.width - Ue) / 2 - Ot / 2, bi = (k.height - hi - Be) / 2 - Nt / 2, Ge = Ue + Ot, Qe = Be + Nt, ae = document.createElement("canvas");
|
949
949
|
ae.width = Ge, ae.height = Qe;
|
950
950
|
const Xe = ae.getContext("2d");
|
951
951
|
return Xe?.clearRect(0, 0, ae.width, ae.height), Xe?.drawImage(k, mi, bi, Ge, Qe, 0, 0, Ge, Qe), Xe?.save(), ae;
|
@@ -1014,7 +1014,7 @@ function ma(a, e, t) {
|
|
1014
1014
|
try {
|
1015
1015
|
if (Se >= ga) {
|
1016
1016
|
Se = 0;
|
1017
|
-
const p = await Ri(fe), y = await import("./face_api_0e3ce8c8_3.
|
1017
|
+
const p = await Ri(fe), y = await import("./face_api_0e3ce8c8_3.3.0-RC02.js");
|
1018
1018
|
let N;
|
1019
1019
|
if (N = y.detectSingleFace(_, p), i = await N.withFaceLandmarks(), S.getContext("2d")?.clearRect(0, 0, S.width, S.height), i != null) {
|
1020
1020
|
const k = Yi(S, _, !0);
|