-
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
-
使用WMI获取Windows所有USB摄像头设备名称,支持Win10
使用WMI获取Windows所有USB摄像头设备名称的VS开发下的小程序,不需要视频音频管理类,简单实用可扩展,支持xp及以上系统,包括Win10。
- 2023-04-27 01:50:03下载
- 积分:1
-
little wai gua
用c#做的little外挂,采用vs2005制作
- 2022-03-20 10:08:13下载
- 积分:1
-
Vigenere Cypher
Vigenere Cypher - C Implementation-Vigenere Cypher- C Implementation
- 2022-04-10 03:07:04下载
- 积分:1
-
vc项目开发全程实录 的源代码,书上的例子都有哦
vc项目开发全程实录 的源代码,书上的例子都有哦-Record vc project development throughout the source code, books, examples of both Oh ...
- 2022-12-10 08:20:03下载
- 积分:1
-
基于wince下串口助手源代码。可以支持十六进制发送接收。
基于wince下串口助手源代码。可以支持十六进制发送接收。-Serial assistant source code. Support hexadecimal send and receive.
- 2022-03-24 18:07:56下载
- 积分:1
-
source VC
屏幕打印源程序VC编程-source VC
- 2022-07-08 17:25:26下载
- 积分:1
-
这是一个管理系统的建设银行帐户,这是由五。
建设银行帐户管理系统 visual foxpro代码-This is a management system of Construction Bank accounts which is compiled by visual foxpro
- 2022-09-13 23:35:03下载
- 积分:1
-
浮动效果的列表框,在VC++环境下进行开发
浮动效果的列表框,在VC++环境下进行开发-effect of the floating box, the VC environment for development
- 2022-01-25 18:28:58下载
- 积分:1
-
小游戏,四连环,请指教
小游戏,四连环,请指教-small games, four series, please enlighten
- 2023-04-09 04:55:03下载
- 积分:1