diff --git a/public/vendor/mediapipe/facefinder.js b/public/vendor/mediapipe/facefinder.js index a07034e..44acf7b 100644 --- a/public/vendor/mediapipe/facefinder.js +++ b/public/vendor/mediapipe/facefinder.js @@ -72,7 +72,7 @@ async function loadDetector() { return FaceDetector.createFromOptions(fileset, { baseOptions: { modelAssetPath: `${VENDOR}/blaze_face_short_range.tflite`, delegate: 'CPU' }, runningMode: 'VIDEO', - minDetectionConfidence: 0.5, + minDetectionConfidence: 0.35, // dilonggarkan — lebih sensitif di kamera HP / cahaya kurang numFaces: 1, }); } diff --git a/resources/views/face/scan.blade.php b/resources/views/face/scan.blade.php index d44ce3e..b56f4c6 100644 --- a/resources/views/face/scan.blade.php +++ b/resources/views/face/scan.blade.php @@ -440,7 +440,7 @@ function faceScan() { } try { const stream = await navigator.mediaDevices.getUserMedia({ - video: { facingMode: this.facing, width: { ideal: 1280 } }, + video: { facingMode: this.facing, width: { ideal: 960 } }, audio: false, }); this.$refs.video.srcObject = stream;