| | |
| | | } |
| | | percentagePPT.value = parseInt(`${progress * 100}`) |
| | | } else if (res && res.length > 0) { |
| | | console.log('解析成功', res) |
| | | console.log('courseInfo', courseInfo.value) |
| | | res.forEach((item) => { |
| | | item.isActive = false |
| | |
| | | //向原始ppt添加数据,用作后续ppt中是否包含人脸的数据校验原始数据 |
| | | const InitPpt = PPTArr.value.map( (item)=>{ |
| | | return item.innerPicture.src |
| | | } ) |
| | | } ) |
| | | const { detectFacesInImages } = useFaceDetection() |
| | | const IsHaveFace = await detectFacesInImages(InitPpt) |
| | | if( IsHaveFace ){ |
| | |
| | | result = data.getString("result"); |
| | | System.out.println("任务已完成,结果文件路径: " + result); |
| | | } else if (status == 3){ |
| | | throw new RuntimeException("任务失败,请联系管理员"); |
| | | throw new RuntimeException(data.getString("msg")); |
| | | }else { |
| | | System.out.println("任务尚未完成,当前进度: " + data.getIntValue("progress") + "%"); |
| | | } |