文件名称:DetectEyes
-
所属分类:
- 标签属性:
- 上传时间:2015-09-30
-
文件大小:2.53mb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
运用C++检测人眼,
2)用opencv中检测人脸、眼睛、嘴巴等都是用的CascadeClassifier分类器,具体使用时可以使用C的函数,也可以使用opencv中使用C++封装好的类。下面是它们检测目标时的函数形式(从opencv官网复制的)
C: CvSeq* cvHaarDetectObjects(const CvArr* image, CvHaarClassifierCascade* cascade, CvMemStorage* storage, double scale_factor=1.1, int min_neighbors=3, int flags=0, CvSize min_size=cvSize(0,0), CvSize max_size=cvSize(0,0) )
C++: void CascadeClassifier::detectMultiScale(const Mat& image, vector<Rect>& objects, double scaleFactor=1.1, int minNeighbors=3, int flags=0, Size minSize=Size(), Size maxSize=Size())
这两者最大的区别在于,用C封装的函数要自己手动分配内存,而用C++的形式则不用自己去分配内存,这就是很多同学在网上找到的代码有些要分配内存,有些又不用分配内存的原因。显然C++的形式更简洁,所以我下面的代码也是用的C++的函数。-
Detected with opencv face, eyes, mouth, etc. are used CascadeClassifier classification, you can use C functions specific use, you can use opencv use C++ classes packaged. Here is the form of the function when they detect target (copied the opencv official website)
2)用opencv中检测人脸、眼睛、嘴巴等都是用的CascadeClassifier分类器,具体使用时可以使用C的函数,也可以使用opencv中使用C++封装好的类。下面是它们检测目标时的函数形式(从opencv官网复制的)
C: CvSeq* cvHaarDetectObjects(const CvArr* image, CvHaarClassifierCascade* cascade, CvMemStorage* storage, double scale_factor=1.1, int min_neighbors=3, int flags=0, CvSize min_size=cvSize(0,0), CvSize max_size=cvSize(0,0) )
C++: void CascadeClassifier::detectMultiScale(const Mat& image, vector<Rect>& objects, double scaleFactor=1.1, int minNeighbors=3, int flags=0, Size minSize=Size(), Size maxSize=Size())
这两者最大的区别在于,用C封装的函数要自己手动分配内存,而用C++的形式则不用自己去分配内存,这就是很多同学在网上找到的代码有些要分配内存,有些又不用分配内存的原因。显然C++的形式更简洁,所以我下面的代码也是用的C++的函数。-
Detected with opencv face, eyes, mouth, etc. are used CascadeClassifier classification, you can use C functions specific use, you can use opencv use C++ classes packaged. Here is the form of the function when they detect target (copied the opencv official website)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
DetectEyes/Debug/DetectEyes.exe
DetectEyes/Debug/DetectEyes.ilk
DetectEyes/Debug/DetectEyes.pdb
DetectEyes/DetectEyes/1.jpg
DetectEyes/DetectEyes/Debug/BuildLog.htm
DetectEyes/DetectEyes/Debug/DetectEyes.exe.embed.manifest
DetectEyes/DetectEyes/Debug/DetectEyes.exe.embed.manifest.res
DetectEyes/DetectEyes/Debug/DetectEyes.exe.intermediate.manifest
DetectEyes/DetectEyes/Debug/DetectEyes.obj
DetectEyes/DetectEyes/Debug/mt.dep
DetectEyes/DetectEyes/Debug/vc90.idb
DetectEyes/DetectEyes/Debug/vc90.pdb
DetectEyes/DetectEyes/DetectEyes.cpp
DetectEyes/DetectEyes/DetectEyes.vcproj
DetectEyes/DetectEyes/DetectEyes.vcproj.Wenbo-PC.Wenbo.user
DetectEyes/DetectEyes/haarcascade_eye_tree_eyeglasses.xml
DetectEyes/DetectEyes/haarcascade_frontalface_alt.xml
DetectEyes/DetectEyes/haarcascade_frontalface_alt2.xml
DetectEyes/DetectEyes.ncb
DetectEyes/DetectEyes.sln
DetectEyes/DetectEyes.suo
DetectEyes/result.png
DetectEyes/总结.txt
DetectEyes/DetectEyes/Debug
DetectEyes/Debug
DetectEyes/DetectEyes
DetectEyes
DetectEyes/Debug/DetectEyes.ilk
DetectEyes/Debug/DetectEyes.pdb
DetectEyes/DetectEyes/1.jpg
DetectEyes/DetectEyes/Debug/BuildLog.htm
DetectEyes/DetectEyes/Debug/DetectEyes.exe.embed.manifest
DetectEyes/DetectEyes/Debug/DetectEyes.exe.embed.manifest.res
DetectEyes/DetectEyes/Debug/DetectEyes.exe.intermediate.manifest
DetectEyes/DetectEyes/Debug/DetectEyes.obj
DetectEyes/DetectEyes/Debug/mt.dep
DetectEyes/DetectEyes/Debug/vc90.idb
DetectEyes/DetectEyes/Debug/vc90.pdb
DetectEyes/DetectEyes/DetectEyes.cpp
DetectEyes/DetectEyes/DetectEyes.vcproj
DetectEyes/DetectEyes/DetectEyes.vcproj.Wenbo-PC.Wenbo.user
DetectEyes/DetectEyes/haarcascade_eye_tree_eyeglasses.xml
DetectEyes/DetectEyes/haarcascade_frontalface_alt.xml
DetectEyes/DetectEyes/haarcascade_frontalface_alt2.xml
DetectEyes/DetectEyes.ncb
DetectEyes/DetectEyes.sln
DetectEyes/DetectEyes.suo
DetectEyes/result.png
DetectEyes/总结.txt
DetectEyes/DetectEyes/Debug
DetectEyes/Debug
DetectEyes/DetectEyes
DetectEyes
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.