| | |
| | | { |
| | | "name": "sign-tool", |
| | | "version": "2.6.2", |
| | | "version": "2.6.3", |
| | | "icon": "public/favicon.ico", |
| | | "main": "dist/electron/main/index.js", |
| | | "author": "", |
| | |
| | | } |
| | | //发送消除某些状态 |
| | | const fuxuan=()=>{ |
| | | console.log('返回---') |
| | | const datetimeCON = patientInfoStore().patientInfo.datetime |
| | | // 获取是否是一台主机连2个设备 |
| | | const islinkDouble=confingInfoStore().confingInfo.islinkDouble |
| | |
| | | resultTime: '', |
| | | state: 2 |
| | | }) |
| | | sockteStore().setfaceSockte({ |
| | | type: '人脸识别', |
| | | deviceName: '', |
| | | result: '', |
| | | resultTime: '', |
| | | state: 2 |
| | | }) |
| | | state.clockNum = patientInfoStore().viewNumber |
| | | state.aimTSL = '' |
| | | state.gao_ya = '' |
| | |
| | | if (patientInfo.value.id !== 0 && patientInfo.value.name !== '' && patientInfo.value.isScheduled === 1) { |
| | | // console.log(`患者信息识别成功:${patientInfo.value.name}`) |
| | | ipcRenderer.invoke('logger', `患者信息识别成功:${patientInfo.value.name}`) |
| | | let str = `${patientInfo.value.name}识别成功。` |
| | | let str = `${patientInfo.value.name}识别成功。床号:${patientInfo.value.deviceNo}` |
| | | state.dialogVisible = false |
| | | speech.value?.speak({ text: str }).then(() => { |
| | | }) |
| | |
| | | },3000) |
| | | }) |
| | | return { |
| | | ...toRefs(state),isUseFaceRecogService, guyanbi, loginRef, isLink, netLink, weightInfo, patientInfo, xyjInfo, inputRef, inputChabge |
| | | ...toRefs(state),isUseFaceRecogService,fuxuan, guyanbi, loginRef, isLink, netLink, weightInfo, patientInfo, xyjInfo, inputRef, inputChabge |
| | | } |
| | | } |
| | | } |
| | |
| | | <h4>人脸识别中。。。</h4> |
| | | </div> |
| | | </template> |
| | | <login ref="loginRef" /> |
| | | <login ref="loginRef" :dialogVisible="dialogVisible" /> |
| | | </el-dialog> |
| | | </div> |
| | | <el-dialog title="提示" v-model="netLink" width="30%"> |
| | |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | <div class="chongzhi" @click="fuxuan"> |
| | | 返回 |
| | | </div> |
| | | </div> |
| | | |
| | | </template> |
| | |
| | | margin: 0; |
| | | |
| | | } |
| | | .chongzhi{ |
| | | width: 100px; |
| | | height: 100px; |
| | | background: #769AFF; |
| | | color: #FFFFFF; |
| | | font-size: 20px; |
| | | line-height: 100px; |
| | | text-align: center; |
| | | position:fixed; |
| | | bottom:0px; |
| | | right:0px; |
| | | border-radius: 50px; |
| | | } |
| | | .devcont{ |
| | | width: 100%; |
| | | height: 99%; |
| | |
| | | import { confingInfoStore } from "@/stores/StoresConfing"; |
| | | |
| | | const msg = ref<string>("没识别到人脸..."); |
| | | |
| | | const props = defineProps({ |
| | | dialogVisible:{ |
| | | type:Boolean, |
| | | default:false |
| | | } |
| | | }) |
| | | let trackerTask: any = null; |
| | | const inputCode=ref('') |
| | | const inputRef = ref() |
| | |
| | | thisContext.drawImage(myVideo, 0,0, 250, 200); |
| | | imgSrc = myCanvas?.toDataURL('image/png'); |
| | | // 转文件 |
| | | base64toFile(imgSrc) |
| | | // 识别框显示才能到传阿里云识别 |
| | | if(props.dialogVisible){ |
| | | base64toFile(imgSrc) |
| | | } |
| | | setTimeout(() => { |
| | | console.log('监测到人脸后1s') |
| | | console.log('监测到人脸后3s') |
| | | trackerTask.run(); |
| | | }, 3000); |
| | | // @ts-ignore |