-
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
-
视频播放器
简单的视频播放器,实现基本的所有功能、可以快进快退截图
- 2022-11-27 00:00:10下载
- 积分:1
-
网络对战五子棋
基于UDP连接的网络对战五子棋,界面简陋,初学者做的,功能也不是很完善。
- 2023-02-19 08:50:18下载
- 积分:1
-
编程环境为VC,图形化操作,可以实现光驱的打开,关闭。最小化此程序时能够托盘化显示。...
编程环境为VC,图形化操作,可以实现光驱的打开,关闭。最小化此程序时能够托盘化显示。-Programming environment for the VC, graphical operation, the drive can be opened, closed. Minimize to tray when the program display.
- 2023-06-15 23:10:03下载
- 积分:1
-
简单文本编辑程序,功能一般,其他的也没什么可说
简单文本编辑程序,功能一般,其他的也没什么可说-Simple text editing program, function normally, the other has nothing to say
- 2022-08-19 06:31:58下载
- 积分:1
-
一个小时钟程序,可以开始计时和暂停,显示当前时间
一个小时钟程序,可以开始计时和暂停,显示当前时间-a small clock algorithm, it can note the begining time and the finished time, and display the current time.
- 2022-02-13 19:31:42下载
- 积分:1
-
ODBC 方式 C++ 操作EXCEL的源代码
ODBC 方式 C++ 操作EXCEL的源代码-ODBC EXCEL
- 2022-09-29 06:25:06下载
- 积分:1
-
OPC Client
资源描述OPC Client 基本功能实现源代码,使用VC++编写,在VS2005下编写,界面比较简单,有注释,可以参考注释修改代码或者参考代码,没有多余功能,简介清楚,容易移植。
- 2023-06-11 08:35:19下载
- 积分:1
-
This program implements a simple text read and write operations, want to be help...
本程序实现了对文本的简单读写操作,希望对初学者有帮助-This program implements a simple text read and write operations, want to be helpful for beginners
- 2022-03-15 13:41:37下载
- 积分:1
-
第一个VC作品
第一个VC作品-No. 1 VC works!
- 2022-03-03 17:17:35下载
- 积分:1