From 480c0834c2dc57721022cc9b06d527a3e7cad09b Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期五, 18 七月 2025 13:09:55 +0800
Subject: [PATCH] gx百度sdk适配

---
 src/views/home/index.vue |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/views/home/index.vue b/src/views/home/index.vue
index 1d6f471..121c2b3 100644
--- a/src/views/home/index.vue
+++ b/src/views/home/index.vue
@@ -321,9 +321,7 @@
 const getUserMediaFail = ref(false) // 获取用户媒体失败
 let lsDateTime:any=new Date()
 const msg = ref<string>("没识别到人脸...");
-const datetext=computed(()=>{
-  return  formatDate(new Date(),'YYYY-mm-dd  WWW')
-})
+const datetext=ref(formatDate(new Date(),'YYYY-mm-dd  WWW'))
 /**体重发送时候显示在界面的体重 */
 const weightInfoResult=ref() 
 let timer:any=new Date()
@@ -429,6 +427,7 @@
       id: 0,
       code: '',
       name: '',
+      patientNamePyFull:'',
       patientAvatarIcon: '',
       deviceCode: '',
       hemoCode: '',
@@ -673,7 +672,7 @@
       // 人脸识别成功后 1查看是否开启测温
       // console.log(`患者信息识别成功:${patientInfo.value.name}`)
       ipcRenderer.invoke('logger', `患者信息识别成功:${patientInfo.value.name}`)
-      let str = `${patientInfo.value.name}识别成功,分区:${patientInfo.value.设备分区名称},床号:${patientInfo.value.deviceNo},`
+      let str = `${patientInfo.value.patientNamePyFull?patientInfo.value.patientNamePyFull:patientInfo.value.name}识别成功,分区:${patientInfo.value.设备分区名称},床号:${patientInfo.value.deviceNo},`
       dialogVisible.value = false
       speech.value?.speak({ text: str }).then(() => {
       })
@@ -1095,6 +1094,7 @@
       if(clockNum.value===0){
         fuxuan()
       }
+      datetext.value= formatDate(new Date(),'YYYY-mm-dd  WWW')
       date.value=formatDate(new Date(),'YYYY-mm-dd HH:MM')
       if(Number(date.value.substring(11,13))<12){
         timeShidaun.value='上午好!'
@@ -1205,7 +1205,7 @@
   canvas.height = video.videoHeight
   // 参数:图片,裁剪开始x坐标,裁剪开始y坐标,裁剪宽度,裁剪高度,目标x坐标,目标y坐标,目标宽度,目标高度
   // context.drawImage(image, 100, 100, 200, 200, 0, 0, 200, 200);
-  canvas.getContext('2d')?.drawImage(video, startPoint.x-10,startPoint.y-10,width+20,height+20,0,0,width+10,height+10)
+  canvas.getContext('2d')?.drawImage(video, startPoint.x-20,startPoint.y-20,width+60,height+60,20,20,width+60,height+60)
   const imgSrc = canvas?.toDataURL('image/png');
 
   return imgSrc

--
Gitblit v1.8.0