| | |
| | | formData.append('file', blobFile) |
| | | checkUploadFile(formData).then(re=>{ |
| | | console.log('-----',re) |
| | | if(re.code===200&&re?.result?.length>0){ |
| | | const entityId=re?.result[0]._label |
| | | console.log(entityId,'得到了人脸识别id,存患者code到vuex') |
| | | sockteStore().setfaceSockte({ |
| | | deviceType: "人脸识别", |
| | | deviceName: "人脸识别", |
| | | result: entityId, |
| | | resultTime: '' |
| | | }) |
| | | }else{ |
| | | console.log('本地没识别') |
| | | } |
| | | |
| | | }).finally(()=>{ |
| | | // 删除图片 |
| | | delImg(path) |
| | |
| | | // 是否本地识别 |
| | | const isLanFace= confingInfoStore().confingInfo.isLanFace |
| | | if(isLanFace===true){ |
| | | console.log('本地识别') |
| | | //本地识别 |
| | | faceApiCheck(path) |
| | | }else{ |
| | | //阿里验证外网 |
| | | console.log('阿里识别') |
| | | faceShibie(path) |
| | | } |
| | | |