Skip to content

armgit / facex

Public Imported from GitHub
0

Full face stack that runs entirely in the browser. Detection, 576-point 3D mesh, recognition, anti-spoof, smile — all WebAssembly, zero server. Apache 2.0.

Fix detection: use 320x320 input, lower threshold to 0.3, 128MB memory

atynov8e8dc08a2e6d
diff --git a/docs/demo/detect.wasm b/docs/demo/detect.wasm
index 0b61ca6..e8e3513 100644
Binary files a/docs/demo/detect.wasm and b/docs/demo/detect.wasm differ
diff --git a/docs/demo/index.html b/docs/demo/index.html
index 60324c9..ec94833 100644
--- a/docs/demo/index.html
+++ b/docs/demo/index.html
@@ -215,7 +215,7 @@ $('btnStart').onclick = async () => {
// ===== Detect =====
function runDetect() {
const W = video.videoWidth, H = video.videoHeight;
- const ds = 160;
+ const ds = 320;
const detCv = document.createElement('canvas'); detCv.width = ds; detCv.height = ds;
const dCtx = detCv.getContext('2d', { willReadFrequently: true });
const scale = Math.min(ds/W, ds/H);