1. FaceDetection

按照说明文档步骤,编译顺利通过。

Ubuntu 16.04.4 LTS 编译 seetaface


2. FaceAlignment

2.1 复制FaceDetection中的  FaceDetection/include/face_detection.h 到FaceAlignment/include/; 和 FaceDetection/build/libseeta_facedet_lib.so 到 FaceAlignment/build/。

2.2 make -j 编译,报错:

     Ubuntu 16.04.4 LTS 编译 seetaface

 2.3 找到错误原因,打开 FaceAlignment/include/cfan.h,红色框为添加的部分。

       Ubuntu 16.04.4 LTS 编译 seetaface

2.4 在 FaceAlignment/build 目录下,执行 make clean && make -j, 编译成功。

Ubuntu 16.04.4 LTS 编译 seetaface

2.5 执行 cd .. && ./build/fa_test,出现错误。

Ubuntu 16.04.4 LTS 编译 seetaface

这是由于模型加载路径不对。

2.6 修改模型路径和源码中的模型路径。

2.6.1 转到 FaceAlignment/ 目录下,执行 cp ../FaceDetection/model/seeta_fd_frontal_v1.0.bin model/,将detection的模型拷贝到model下。

2.6.2 打开 FaceAlignment/src/test/face_alignment_test.cpp,修改模型路径如下:

Ubuntu 16.04.4 LTS 编译 seetaface

2.7 执行  cd build/ && make -j 重新编译,编译成功。

2.8 执行  cd .. && ./build/fa_test,运行成功。

Ubuntu 16.04.4 LTS 编译 seetaface


相关文章: