root 4 years ago
parent
commit
98db0c62fc
1 changed files with 1 additions and 1 deletions
  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 => {