-
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
-
《Visual C++程序设计实验指导与实训》源代码
《Visual C++程序设计实验指导与实训》源代码- Visual C++ Guidance and training program design experiments, the source code
- 2022-03-05 03:00:53下载
- 积分:1
-
投票问卷管理系统 很好的 希望大家快来下载吧 我自己编写的 并且很使用...
投票问卷管理系统 很好的 希望大家快来下载吧 我自己编写的 并且很使用-vote questionnaire management system good hope we hurry I downloaded it and is prepared to use
- 2022-01-24 16:47:52下载
- 积分:1
-
一个非常好用的小闹钟程序
一个非常好用的小闹钟程序-a very user-friendly small alarm clock procedures
- 2023-07-04 07:00:02下载
- 积分:1
-
一个完整的图形绘制系统,注释清楚,操作简单
一个完整的图形绘制系统,注释清楚,操作简单-Rendering a complete system, notes a clear, simple operation
- 2022-01-20 22:59:49下载
- 积分:1
-
数字转换
将数字转换成单词 的函数,葡萄牙语
- 2022-07-28 02:56:36下载
- 积分:1
-
We believe that a large number of users supported, as a free software CHM browse...
我们相信,有众多用户的支持,作为免费软件的CHM浏览器(CHMExplorer),一样能做到最好-We believe that a large number of users supported, as a free software CHM browser (CHMExplorer), the same can do the best
- 2022-04-12 03:40:24下载
- 积分:1
-
登录页
登录页
- 2022-03-25 20:45:41下载
- 积分:1
-
输入一个自然数N(2≤N≤9),要求输出如下的螺旋矩阵,即边长为N*N,元素取值为1至N*N,1在左上角,呈顺时针方向依次放置各元素。
N=3时,相应...
输入一个自然数N(2≤N≤9),要求输出如下的螺旋矩阵,即边长为N*N,元素取值为1至N*N,1在左上角,呈顺时针方向依次放置各元素。
N=3时,相应的矩阵中每个数字位置如下图所示:
1 2 3
8 9 4
7 6 5-Enter a natural number N (2 ≤ N ≤ 9), the requirements are as follows spiral output matrix, that is, edge length of N* N, the element values for the 1 to N* N, 1 in the upper left corner, showing a clockwise direction in order to place the various elements . N = 3, the corresponding figures for the location of each matrix as follows: 123,894,765
- 2023-07-10 21:40:03下载
- 积分:1
-
modeless dialog details
无模式对话框详细信息
- 2023-03-22 19:20:03下载
- 积分:1