bry-biometric-collector 2.0.7-RC01 → 2.1.0
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/{CameraStatus_90a8b945_2.0.7-RC01.js → CameraStatus_f976d76e_2.1.0.js} +1 -1
- package/dist/{DocumentCollector_75a766a3_2.0.7-RC01.js → DocumentCollector_684f0e96_2.1.0.js} +3 -3
- package/dist/{FaceCollector_f12e457d_2.0.7-RC01.js → FaceCollector_15a0b861_2.1.0.js} +5 -5
- package/dist/bry-biometric-collector-main.js +1 -1
- package/dist/{fingersApi_d2c44b80_2.0.7-RC01.js → fingersApi_a849d576_2.1.0.js} +1 -1
- package/dist/index-no-detector_acb82d83_2.1.0.js +10395 -0
- package/dist/index.js +1 -1
- package/dist/{main_458df687_2.0.7-RC01.js → main_24abfd20_2.1.0.js} +13 -13
- package/package.json +1 -1
- package/dist/index-no-detector_c7c1d3a2_2.0.7-RC01.js +0 -10402
- /package/dist/{en-us_9e0134e1_2.0.7-RC01.js → en-us_9e0134e1_2.1.0.js} +0 -0
- /package/dist/{face_api_0e3ce8c8_2.0.7-RC01.js → face_api_0e3ce8c8_2.1.0.js} +0 -0
- /package/dist/{pt-br_64defcaa_2.0.7-RC01.js → pt-br_64defcaa_2.1.0.js} +0 -0
package/dist/index.js
CHANGED
@@ -7195,8 +7195,8 @@ function Rd(A, e, t = !1) {
|
|
7195
7195
|
async function Fd(A) {
|
7196
7196
|
let e = new URL("/weights", document.baseURI).toString();
|
7197
7197
|
A && (e = A), console.log("requesting weights from", e), await Promise.all([
|
7198
|
-
(await import("./face_api_0e3ce8c8_2.0.
|
7199
|
-
(await import("./face_api_0e3ce8c8_2.0.
|
7198
|
+
(await import("./face_api_0e3ce8c8_2.1.0.js")).nets.tinyFaceDetector.load(e),
|
7199
|
+
(await import("./face_api_0e3ce8c8_2.1.0.js")).loadFaceLandmarkModel(e)
|
7200
7200
|
]);
|
7201
7201
|
}
|
7202
7202
|
function po() {
|
@@ -10141,13 +10141,13 @@ customElements.define("camera-disallowed", Li);
|
|
10141
10141
|
let TE = 6.5;
|
10142
10142
|
const xn = rA(!0), VE = rA(), XE = rA(!1);
|
10143
10143
|
async function Hd() {
|
10144
|
-
return new (await import("./face_api_0e3ce8c8_2.0.
|
10144
|
+
return new (await import("./face_api_0e3ce8c8_2.1.0.js")).TinyFaceDetectorOptions({
|
10145
10145
|
scoreThreshold: 0.6
|
10146
10146
|
});
|
10147
10147
|
}
|
10148
10148
|
async function Od(A, e, t, r = !1) {
|
10149
10149
|
if (t) {
|
10150
|
-
const C = (await import("./face_api_0e3ce8c8_2.0.
|
10150
|
+
const C = (await import("./face_api_0e3ce8c8_2.1.0.js")).draw;
|
10151
10151
|
C.drawDetections(e, A), new C.DrawFaceLandmarks(A.landmarks, { pointColor: "gold" }).draw(e);
|
10152
10152
|
}
|
10153
10153
|
const o = A.landmarks.positions, i = zE(o), n = await ZE(o), I = A.detection.box, B = await WE(I, n, e, t);
|
@@ -10158,16 +10158,16 @@ function zE(A) {
|
|
10158
10158
|
return pi(e, t);
|
10159
10159
|
}
|
10160
10160
|
async function ZE(A) {
|
10161
|
-
const e = (await import("./face_api_0e3ce8c8_2.0.
|
10161
|
+
const e = (await import("./face_api_0e3ce8c8_2.1.0.js")).Point;
|
10162
10162
|
let t = A[37].add(A[38]).add(A[40]).add(A[41]), r = A[43].add(A[44]).add(A[46]).add(A[47]);
|
10163
10163
|
return t = t.div(new e(4, 4)), r = r.div(new e(4, 4)), pi(r, t);
|
10164
10164
|
}
|
10165
10165
|
async function WE(A, e, t, r) {
|
10166
|
-
const o = (await import("./face_api_0e3ce8c8_2.0.
|
10166
|
+
const o = (await import("./face_api_0e3ce8c8_2.1.0.js")).Point, i = A.topLeft.x - e;
|
10167
10167
|
let n = 2.25, I = 1;
|
10168
10168
|
ta() && (n = 0.8, I = 0.7);
|
10169
10169
|
const B = A.topLeft.y - n * e, C = A.bottomLeft.x - e, l = A.bottomLeft.y + I * e, p = A.bottomRight.x + e, b = A.bottomRight.y + e, D = pi(new o(C, l), new o(i, B)), y = pi(new o(C, l), new o(p, b)), U = t.getContext("2d");
|
10170
|
-
return U.beginPath(), U.strokeStyle = "gold", VE.set(new (await import("./face_api_0e3ce8c8_2.0.
|
10170
|
+
return U.beginPath(), U.strokeStyle = "gold", VE.set(new (await import("./face_api_0e3ce8c8_2.1.0.js")).Box({ x: i, y: B, width: y, height: D })), U.rect(i, B, y, D), r && U.stroke(), {
|
10171
10171
|
topLeftX: i,
|
10172
10172
|
topLeftY: B,
|
10173
10173
|
bottomRightX: p,
|
@@ -22742,7 +22742,7 @@ function YI(A) {
|
|
22742
22742
|
return this;
|
22743
22743
|
}
|
22744
22744
|
async function jI(A, e) {
|
22745
|
-
return await import("./
|
22745
|
+
return await import("./fingersApi_a849d576_2.1.0.js").then((t) => t.captureSingleFinger(A, e));
|
22746
22746
|
}
|
22747
22747
|
function wd(A, e, t) {
|
22748
22748
|
let r, o, i, n, I, B, C, l, p, b, D, y, U, f, J, X, z, uA, iA, Y, aA, T, cA, LA, Be, Le, He, $, Ge, re, wA, Ke;
|
@@ -22750,7 +22750,7 @@ function wd(A, e, t) {
|
|
22750
22750
|
let { lottie_color: Et = "71 89 124" } = e, { extension_name: k = "BryWebExtension" } = e, { extension_url_chrome: S } = e, { extension_url_mozilla: oA } = e, { min_nfiq_acceptable: eA = 3 } = e;
|
22751
22751
|
EE(eA);
|
22752
22752
|
let { show_theme_picker: lA = "true" } = e, { video_dimensions: gA } = e, { enable_minutiae: dA } = e, { collector_select: _ = "BOTH" } = e, { import_lottie: yA = "true" } = e, { hide_tabs: UA = "false" } = e, { import_extension_script: OA = "false" } = e, { extension_url_script: JA } = e, { liveness_enable: PA = "false" } = e, { weights_path: ie } = e, { evaluate_photo: RA = "true" } = e, { show_capture_button: Ie = "true" } = e, { show_unconformities: ce = "true" } = e;
|
22753
|
-
Bi("en", () => import("./en-us_9e0134e1_2.0.
|
22753
|
+
Bi("en", () => import("./en-us_9e0134e1_2.1.0.js")), Bi("pt", () => import("./pt-br_64defcaa_2.1.0.js")), gI({
|
22754
22754
|
fallbackLocale: "en",
|
22755
22755
|
initialLocale: "pt"
|
22756
22756
|
});
|
@@ -22912,10 +22912,10 @@ function wd(A, e, t) {
|
|
22912
22912
|
return hA(Fn, l = v, l), this;
|
22913
22913
|
}
|
22914
22914
|
async function kt() {
|
22915
|
-
return t(17, _A = (await import("./
|
22915
|
+
return t(17, _A = (await import("./FaceCollector_15a0b861_2.1.0.js")).default), this;
|
22916
22916
|
}
|
22917
22917
|
async function $t() {
|
22918
|
-
return t(18, zA = (await import("./
|
22918
|
+
return t(18, zA = (await import("./DocumentCollector_684f0e96_2.1.0.js")).default), this;
|
22919
22919
|
}
|
22920
22920
|
function ur(v) {
|
22921
22921
|
ve(v);
|
@@ -23453,8 +23453,8 @@ class _I extends ye {
|
|
23453
23453
|
}
|
23454
23454
|
}
|
23455
23455
|
customElements.define("biometric-collector", _I);
|
23456
|
-
Bi("en", () => import("./en-us_9e0134e1_2.0.
|
23457
|
-
Bi("pt", () => import("./pt-br_64defcaa_2.0.
|
23456
|
+
Bi("en", () => import("./en-us_9e0134e1_2.1.0.js"));
|
23457
|
+
Bi("pt", () => import("./pt-br_64defcaa_2.1.0.js"));
|
23458
23458
|
gI({
|
23459
23459
|
fallbackLocale: "en",
|
23460
23460
|
initialLocale: KQ()
|
package/package.json
CHANGED