From 71c241585a8eda2189360388aa78f2f5c44c52bf Mon Sep 17 00:00:00 2001 From: Songsl <2431955898@qq.com> Date: Tue, 26 May 2026 13:42:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E8=84=B8=E5=9B=BE=E7=89=87=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/livenessVerification/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/livenessVerification/index.vue b/src/views/livenessVerification/index.vue index adc8e55..bbb5917 100644 --- a/src/views/livenessVerification/index.vue +++ b/src/views/livenessVerification/index.vue @@ -125,7 +125,7 @@ async function detectAction(action) { const rightEye = landmarks.getRightEye() const eyeDiff = Math.abs(leftEye[0].y - rightEye[3].y) if (eyeDiff < 10) { - capturedFiles.front = await captureImage(video.value, 'front.png') + capturedFiles.front = await captureImage(video.value, 'front.jpg') clearInterval(interval) resolve() } @@ -133,7 +133,7 @@ async function detectAction(action) { if (action === 'mouth') { if (isMouthOpen(landmarks)) { - capturedFiles.mouth = await captureImage(video.value, 'mouth.png') + capturedFiles.mouth = await captureImage(video.value, 'mouth.jpg') clearInterval(interval) resolve() } @@ -142,7 +142,7 @@ async function detectAction(action) { if (action === 'yaw') { const yaw = estimateYaw(landmarks) if (Math.abs(yaw) > YAW_THRESHOLD) { - capturedFiles.yaw = await captureImage(video.value, 'yaw.png') + capturedFiles.yaw = await captureImage(video.value, 'yaw.jpg') clearInterval(interval) resolve() }