root 4 년 전
부모
커밋
98db0c62fc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/components/function.vue

+ 1 - 1
src/components/function.vue

@@ -212,7 +212,7 @@ export default {
     // 初始化模型加载,匹配矩阵
     async fnInit() {
       // 加载模型
-      await faceapi.loadFaceRecognitionModel("/models");
+      await faceapi.loadFaceRecognitionModel("/static/models");
       // 生成人脸匹配矩阵数组对象,样本图片同步转码
       const labeledFaceDescriptors = await Promise.all(
         this.sampleArr.map(async item => {