-
facedetector
人脸检测器 #include < iostream >
#include < cv.h >
#include < highgui.h >
int main(void)
{
int 键 = 0 ;
int i;
CvMemStorage * 存储 = cvCreateMemStorage (0) ;
CvCapture * 捕获 = cvCaptureFromCAM (0) ;
char * 文件名 ="haarcascade_frontalface_alt.xml";
CvHaarClassifierCascade * 梯级 = (CvHaarClassifierCascade *) cvLoad (文件名,
0,0,0) ;
虽然 (关键! = "q") {
IplImage * 帧 = cvQueryFrame (捕获) ;
如果 (! 帧) 断 ;
CvSeq * 脸 = cvHaarDetectObjects (
帧,
级联,
存储,
1.1、
3,
0 / * CV_HAAR_DO_CANNY_PRUNNING *,
cvSize (40,40)) ;
为 (我 = 0 ; 我 < (脸? 面孔-> 共: 0) ; i + +) {
CvRect * wajah = (CvRect *) cvGetSeqElem (的脸,我) ;
CvFont 字体 ;
cvInitFont (& 字体,CV_FONT_HERSHEY_SIMPLEX,1.0,1.0,1,5,CV_AA) ;
CvRect * r=(CvRect*) cvGetSeqElem(faces, i) ;
cvPutTex
- 2022-01-30 19:16:21下载
- 积分:1
-
这是一个Matlab程序计算PSD也绘制一个图来说明这些…
it is a program in matlab to calculate psd and it also plot a graph to show these
- 2023-03-20 17:50:03下载
- 积分:1
-
实现在内存充足的前提下进行二维快速复利叶变换的功能。
实现在内存充足的前提下进行二维快速复利叶变换的功能。-It can accomplish the 2-D FFT on the condition that it has big enough EMS memory.
- 2023-04-06 23:20:03下载
- 积分:1
-
For C++ Beginners small procedures, learn how to use windows keyboard and mouse.
适合C++初学者的小程序,学习如何在窗口上使用键盘和鼠标.-For C++ Beginners small procedures, learn how to use windows keyboard and mouse.
- 2022-05-24 08:27:20下载
- 积分:1
-
ACM question of a good explanation, makes sense for the novice is not easy to co...
一套不错的ACM题讲解,对于新手很有意义,很不容易搜集到的-ACM question of a good explanation, makes sense for the novice is not easy to collect the
- 2022-06-29 16:20:19下载
- 积分:1
-
基于vc++的数字排序功能,另外还有文件打开和保存功能
基于vc++的数字排序功能,另外还有文件打开和保存功能-Vc++ based on the number of ranking features, as well as file open and save functions
- 2023-03-05 19:15:03下载
- 积分:1
-
绘制的图片可以自由放大缩小,借压缩不需要密码直接使用
绘制的图片可以自由放大缩小,借压缩不需要密码直接使用-drawing pictures free zooming through compression used directly without a password
- 2022-03-03 23:56:35下载
- 积分:1
-
Vc++个人练习.rar
Vc++个人练习.rar-Vc personal practice. Rar
- 2022-03-12 06:58:22下载
- 积分:1
-
此源代码程序是管道客户端的对应服务器端,利用它可以作为管道程序客户端的测试...
此源代码程序是管道客户端的对应服务器端,利用它可以作为管道程序客户端的测试-this source code procedure is a pipeline to the corresponding client server, using it as a pipeline Client test
- 2022-04-15 15:58:28下载
- 积分:1
-
代码行数计算工具,
可以计算某个目录下面及其子
目录中指定类型[以后缀名]标识的
文件集合包含代码的总行数,大家可以
任意使用,任意修改源代码。...
代码行数计算工具,
可以计算某个目录下面及其子
目录中指定类型[以后缀名]标识的
文件集合包含代码的总行数,大家可以
任意使用,任意修改源代码。
空行不算
简单注释不算,比如, “//”开头的行不算-Lines of code calculated by the number of tools, can calculate a directory and its subdirectories below the specified type [to the suffix name] logo document collection contains a few head office code, we can use, modify any source code. Notes is not a simple blank line is not, for example, // at the beginning of the line is not
- 2022-10-25 04:50:02下载
- 积分:1