资源简介
利用OpenCV在VS2015平台下对进行人脸识别,包含整个工程文件

代码片段和文件信息
#include
#include
using namespace std;
using namespace cv;
int main(int argc char** argv)
{
Mat src = imread(“me.jpg“);
namedWindow(“input_image window“ WINDOW_AUTOSIZE);
imshow(“inputimage“ src);
CascadeClassifier detector;
//detector.load(“E:\\SOFTWARE\\opencv\\sources\\data\\haarcascades\\haarcascade_eye.xml“);//检测眼睛
//detector.load(“E:\\SOFTWARE\\opencv\\sources\\data\\haarcascades\\haarcascade_eye_tree_eyeglasses.xml“);
//detector.load(“E:\\SOFTWARE\\opencv\\sources\\data\\haarcascades\\haarcascade_frontalcatface.xml“);
//detector.load(“E:\\SOFTWARE\\opencv\\sources\\data\\haarcascades\\haarcascade_frontalcatface_extended.xml“);
detector.load(“D:\\Software\\opencv343\\sources\\data\\haarcascades\\haarcascade_frontalface_alt.xml“);//人脸检测(有效)
//detector.load(“E:\\SOFTWARE\\opencv\\sources\\data\\haarcascades\\haarcascade_frontalface_alt_tree.xml“);
//detector.load(“E:\\SOFTWARE\\opencv\\sources\\data\\haarcascades\\haarcascade_frontalface_alt2.xml“);
//detector.load(“E:\\SOFTWARE\\opencv\\sources\\data\\haarcascades\\haarcascade_frontalface_default.xml“);
//detector.load(“E:\\SOFTWARE\\opencv\\sources\\data\\haarcascades\\haarcascade_fullbody.xml“);
//detector.load(“E:\\SOFTWARE\\opencv\\sources\\data\\haarcascades\\haarcascade_lefteye_2splits.xml“);
//detector.load(“E:\\SOFTWARE\\opencv\\sources\\data\\haarcascades\\haarcascade_licence_plate_rus_16stages.xml“);
//detector.load(“E:\\SOFTWARE\\opencv\\sources\\data\\haarcascades\\haarcascade_lowerbody.xml“);
//detector.load(“E:\\SOFTWARE\\opencv\\sources\\data\\haarcascades\\haarcascade_profileface.xml“);
//detector.load(“E:\\SOFTWARE\\opencv\\sources\\data\\haarcascades\\haarcascade_righteye_2splits.xml“);
//detector.load(“E:\\SOFTWARE\\opencv\\sources\\data\\haarcascades\\haarcascade_russian_plate_number.xml“);
//detector.load(“E:\\SOFTWARE\\opencv\\sources\\data\\haarcascades\\haarcascade_smile.xml“);
//detector.load(“E:\\SOFTWARE\\opencv\\sources\\data\\haarcascades\\haarcascade_upperbody.xml“);
vectorfaces;
detector.detectMultiScale(src faces 1.1 3 0 Size(30 30));
for (size_t t = 0; t < faces.size(); t++)
{
rectangle(src faces[t] Scalar(0 0 255) 2 8);
}
namedWindow(“result window“ WINDOW_AUTOSIZE);
imshow(“result“ src);
imwrite(“face_recog.jpg“ src);
waitKey(0);
return 0;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-01-10 16:03 image_face_detection - 副本\
目录 0 2019-01-10 16:03 image_face_detection - 副本\.vs\
目录 0 2019-01-10 16:03 image_face_detection - 副本\.vs\peizhi\
目录 0 2019-01-10 16:03 image_face_detection - 副本\.vs\peizhi\v14\
文件 30208 2019-01-09 16:24 image_face_detection - 副本\.vs\peizhi\v14\.suo
目录 0 2019-01-10 16:03 image_face_detection - 副本\Debug\
目录 0 2019-01-10 16:03 image_face_detection - 副本\peizhi\
目录 0 2019-01-10 16:03 image_face_detection - 副本\peizhi\Debug\
目录 0 2019-01-10 16:03 image_face_detection - 副本\peizhi\Debug\peizhi.tlog\
文件 2718 2019-01-09 16:23 image_face_detection - 副本\peizhi\main.cpp
文件 7376 2018-12-06 16:50 image_face_detection - 副本\peizhi\peizhi.vcxproj
文件 945 2018-12-06 16:50 image_face_detection - 副本\peizhi\peizhi.vcxproj.filters
目录 0 2019-01-10 16:03 image_face_detection - 副本\peizhi\x64\
目录 0 2019-01-10 16:03 image_face_detection - 副本\peizhi\x64\Debug\
文件 544056 2019-01-09 16:23 image_face_detection - 副本\peizhi\x64\Debug\main.obj
文件 236 2019-01-09 16:23 image_face_detection - 副本\peizhi\x64\Debug\peizhi.log
目录 0 2019-01-10 16:03 image_face_detection - 副本\peizhi\x64\Debug\peizhi.tlog\
文件 2658 2019-01-09 16:23 image_face_detection - 副本\peizhi\x64\Debug\peizhi.tlog\CL.command.1.tlog
文件 119210 2019-01-09 16:23 image_face_detection - 副本\peizhi\x64\Debug\peizhi.tlog\CL.read.1.tlog
文件 1302 2019-01-09 16:23 image_face_detection - 副本\peizhi\x64\Debug\peizhi.tlog\CL.write.1.tlog
文件 5418 2019-01-09 16:23 image_face_detection - 副本\peizhi\x64\Debug\peizhi.tlog\li
文件 6170 2019-01-09 16:23 image_face_detection - 副本\peizhi\x64\Debug\peizhi.tlog\li
文件 1274 2019-01-09 16:23 image_face_detection - 副本\peizhi\x64\Debug\peizhi.tlog\li
文件 227 2019-01-09 16:23 image_face_detection - 副本\peizhi\x64\Debug\peizhi.tlog\peizhi.lastbuildstate
文件 1510400 2019-01-09 16:23 image_face_detection - 副本\peizhi\x64\Debug\vc140.idb
文件 2330624 2019-01-09 16:23 image_face_detection - 副本\peizhi\x64\Debug\vc140.pdb
目录 0 2019-01-10 16:03 image_face_detection - 副本\peizhi\x64\Release\
文件 3752664 2018-12-06 16:59 image_face_detection - 副本\peizhi\x64\Release\main.obj
文件 467 2018-12-06 16:59 image_face_detection - 副本\peizhi\x64\Release\peizhi.log
目录 0 2019-01-10 16:03 image_face_detection - 副本\peizhi\x64\Release\peizhi.tlog\
文件 658 2018-12-06 16:59 image_face_detection - 副本\peizhi\x64\Release\peizhi.tlog\CL.command.1.tlog
............此处省略19个文件信息
相关资源
- 基于OpenCV的数字识别468815
- 使用opencv去掉二值化图像中黑色面积
- opencv环境配置
- win10 64位下编译的opencv4.5.5库,opencv
- librdkafka win7 64位 vs2015编译Release版本
- AnkhSvn-2.6.12735 支持VS2010-VS2015 官方原版
- 通过x264录制RGB屏幕视频vs2013工程,
- NVIDIAOpticalFlowSDK-79c6cee80a2df9a196f20afd6
- opencv_contrib-3.4.0.zip
- opencv2.4.9源码分析——SIFT
- 用两个摄像头实现,双目标定,双目
- 论文研究-基于肤色和AdaBoost算法的彩
- opencv_traincascade训练分类器,手势识别
- opencv3.0交叉编译用parallel.cpp
- 基于opencv的图像识别识别图像中的色
- 基于openCV的识别特定颜色区域
- 基于OpenCV的分水岭算法实现
- FFmpeg 采集摄像头输出rtmp直播流媒体,
- QT+opencv+OCR 身份证号码,银行卡号识别
- opencv视频特定颜色区域识别
- 把RGB转换为HSV和HSI然后根据黄色和蓝
- opencv视觉测距
- 基于Qt和opencv的身份证号码识别系统
- opencv_ffmpeg249.dll
- SfM稀疏三维点云重建--完整工程文件
- 基于opencv的数人头程序源代码
- Emgu.CV 打开视频与人脸检测
- 利用OpenCV中的Stitcher类实现全景图像拼
- opencv实现的sift算法源码,包含了图像
- openCV 上的小波变换
评论
共有 条评论