于老师的项目地址
GitHub - ShiqiYu/libfacedetection: An open source library for face detection in images. The face detection speed can reach 1000FPS.
关于如何使用,于老师写得很清楚:
测试代码


CMakeList.txt 和 三个face开头的cpp文件都是于老师项目里面的,facedetection_export.h是运行cmake产生的,main.cpp可以参考于老师项目里example文件夹下的三个cpp文件,我用的是 detect-image.cpp。
效果:






![[Qt 教程之Widgets模块] —— QComboBox 组合框](https://img-blog.csdnimg.cn/6f982d13aece4db9bec20c06375533ac.png#pic_center)












