Face scan: ganti model deteksi ke blaze_face_full_range — jangkauan lebih luas (wajah sedang/jauh), tidak hanya wajah dekat

This commit is contained in:
Novy San87
2026-08-05 18:17:23 +07:00
parent 324d9d55d8
commit 4ff1e4495f
2 changed files with 2 additions and 2 deletions
Binary file not shown.
+2 -2
View File
@@ -1,6 +1,6 @@
/** /**
* facefinder.js — Live face detection + LIVENESS multi-sinyal overlay. * facefinder.js — Live face detection + LIVENESS multi-sinyal overlay.
* Self-hosted penuh (tanpa CDN): vision_bundle.mjs + wasm/ + blaze_face_short_range.tflite * Self-hosted penuh (tanpa CDN): vision_bundle.mjs + wasm/ + blaze_face_full_range.tflite
* + face_landmarker.task (blendshape senyum + kedalaman 3D + kedipan). * + face_landmarker.task (blendshape senyum + kedalaman 3D + kedipan).
* *
* Sinyal liveness (PASIF, cukup 1 lolos): * Sinyal liveness (PASIF, cukup 1 lolos):
@@ -70,7 +70,7 @@ async function loadDetector() {
const { FilesetResolver, FaceDetector } = await import(`${VENDOR}/vision_bundle.mjs`); const { FilesetResolver, FaceDetector } = await import(`${VENDOR}/vision_bundle.mjs`);
const fileset = await FilesetResolver.forVisionTasks(`${VENDOR}/wasm`); const fileset = await FilesetResolver.forVisionTasks(`${VENDOR}/wasm`);
return FaceDetector.createFromOptions(fileset, { return FaceDetector.createFromOptions(fileset, {
baseOptions: { modelAssetPath: `${VENDOR}/blaze_face_short_range.tflite`, delegate: 'CPU' }, baseOptions: { modelAssetPath: `${VENDOR}/blaze_face_full_range.tflite`, delegate: 'CPU' },
runningMode: 'VIDEO', runningMode: 'VIDEO',
minDetectionConfidence: 0.35, // dilonggarkan — lebih sensitif di kamera HP / cahaya kurang minDetectionConfidence: 0.35, // dilonggarkan — lebih sensitif di kamera HP / cahaya kurang
numFaces: 1, numFaces: 1,