| | |
| | | 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 |