Seetaface 03 Seetaface python版 win10 vs2015编译
来源:互联网 发布:cmd获取软件版本号 编辑:程序博客网 时间:2024/06/01 09:53
01 环境
win10x64
vs2015 update3
cmake3.7.2
git
源码:https://github.com/5455945/SeetaFaceEngine.git
如果要测试python demo,需要系统安装对应的python版本opencv。 pip3 install opencv-python
本实验使用的是opencv-python==3.2.0.7
。
需要安装numpy库。本实验使用的:numpy==1.13.0+mkl
。
02 源码下载
cd D:\git\DeepLearninggit clone https://github.com/5455945/SeetaFaceEngine.gitcd SeetaFaceEngine
03 配置cmake-gui
点击[Configure]。设置:
源码路径:D:/git/DeepLearning/SeetaFaceEngine
目标路径:D:/git/DeepLearning/SeetaFaceEngine/build/x64
勾选BUILD_SEETAFACEENGINE
不选BUILD_EXAMPLES、BUILD_SFMFCTEST
设置CMAKE_INSTALL_PREFIX
USE_OPENMP、USE_SSE默认勾选
BUILD_EXAMPLES=0BUILD_SEETAFACEENGINE=1BUILD_SFMFCTEST=0CMAKE_INSTALL_PREFIX=D:/git/DeepLearning/SeetaFaceEngine/build/x64/installUSE_OPENMP=1USE_SSE=1
注:如果要设置
BUILD_EXAMPLES=1
或BUILD_SFMFCTEST=1
,需要配置OpenCV_DIR
,因为这两个C++的用例使用了opencv。参考:Seetaface 01 Seetaface win10 vs2015编译(cmake自动配置,可选mfc界面)
此案及[Configure]、点击[Generate],完成后,点击[Open Project]打开vs2015 D:\git\DeepLearning\SeetaFaceEngine\build\x64\SeetaFaceEngine.sln
04 编译
vs2015打开D:\git\DeepLearning\SeetaFaceEngine\build\x64\SeetaFaceEngine.sln后,直接build Release版本后,再build INSTALL工程,完成python版本的安装。
INSTALL后,python版本算有3份拷贝。
1 Python安装目录下的Lib\site-packages\SeetaFaceEngine-0.1-py3.6.egg
本实验在C:\Python36\Lib\site-packages\SeetaFaceEngine-0.1-py3.6.egg
2 SeetaFaceEngine\python源码目录下,把需要的bin(dll)文件和model文件拷贝过来了。
3 CMAKE_INSTALL_PREFIX指定的安装目录下的python文件夹。内容和2 SeetaFaceEngine\python
相同。 D:\git\DeepLearning\SeetaFaceEngine\build\x64\install\python
注:这里1不是必须的。只要系统环境安装了opencv-python,和vs2015
运行时库。把SeetaFaceEngine\python完整拷贝到任意处,都可以正常运行。
05 测试
用PyCharm打开test_opencv.py、test_pillow.py运行。“`
C:\Python36\python.exe D:/git/DeepLearning/SeetaFaceEngine/python/test_opencv.py
C:\Python36\python.exe D:/git/DeepLearning/SeetaFaceEngine/python/test_pillow.py
test_opencv.py运行结果:
test detector:
(602,126,828,352) score=21.732229948043823
(457,77,596,216) score=30.60622215270996
(247,187,368,308) score=11.426725625991821
(298,13,343,58) score=14.56250661611557
(244,6,279,41) score=4.99791157245636
test aligner:
test identifier:
sim: [0.502326250076294, 0.2604138255119324]
“`
可自行修改test_opencv.py、test_pillow.pyif __name__ == '__main__':
部分。比如:使用命令行等。
06 参考
本python代码修改自https://github.com/TuXiaokang/pyseeta.git。
- Seetaface 03 Seetaface python版 win10 vs2015编译
- Seetaface 01 Seetaface win10 vs2015编译(cmake自动配置,可选mfc界面)
- seetaface
- ubuntu16.04编译seetaface
- seetaface 初识
- SeetaFace中科院开源人脸项目Ubuntu下编译
- Seetaface 02 Seetaface AndroidStudio Demo
- 开放seetaface的android版啦
- SeetaFace编译成功(有windows及Android源码)
- SeetaFace编译使用<中科院人脸识别SDK>
- seetaface VS2013下的编译安装he环境配置
- 脸部识别SeetaFace介绍
- SeetaFace大总结
- 【SeetaFace】人脸识别
- seetaface FaceDetection模块
- seetaface FaceAlignment模块
- seetaface 使用总结
- SeetaFace大总结
- Spring Boot WebMvcConfigurerAdapter 实现拦截器无配置
- Mybatis 打印SQL
- Linux修改/etc/profile文件导致进卡在登陆界面
- 2.2.QObject类功能说明和使用技巧
- OpenMP 参考(指令详解)
- Seetaface 03 Seetaface python版 win10 vs2015编译
- nginx错误反馈处理
- 对文件操作
- 【Nim游戏】hihoCoder#1172[博弈游戏·Nim游戏·二]题解
- Lombok常用注解小结
- 内置对象 request
- Android多线程编程
- UC 3
- 自定义View的onMeasure、onDraw、BitmapShader等等笔记__学习笔记