共: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-IMDN开发者社群-imdn.cn"> 共: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 - IMDN开发者社群-imdn.cn">
登录
首页 » Windows开发 » facedetector

facedetector

于 2022-01-30 发布 文件大小:29.26 kB
0 198
下载积分: 2 下载次数: 1

代码说明:

人脸检测器 #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

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 数组排序,用C 实现
    数组排序,用C 实现-Sorting an array using C to achieve
    2023-01-07 20:30:03下载
    积分:1
  • 基于osg的三角网生成
    C++实现了 对于离散点的等值线绘制,三角网的显示,实现了Delaunay三角网的生长算法。在VC++6.0环境下编译 In VC++ 6.0 compiler environment生成TIN类,不规则三角网,VC under TIN generation
    2022-01-26 02:32:01下载
    积分:1
  • electric power admittance building program,accordind liner parameter become a li...
    电力工作者常用软件,通过录入线路参数,形成导纳矩阵,用于电力潮流、仿真等基本计算-electric power admittance building program,accordind liner parameter become a linear matrix,it use for elecrtronic circuit ...etc
    2022-04-20 09:55:15下载
    积分:1
  • 多功能计算器,实现了加减乘除,同时有包含了进制转换
    多功能计算器,实现了加减乘除,同时有包含了进制转换-Multi-function calculator, a calculation, at the same time contains a hexadecimal conversion
    2022-04-15 17:00:08下载
    积分:1
  • XML Demo Code
    Xml应用程序:
    2022-05-17 00:39:17下载
    积分:1
  • 测试程序,可以很好的利用这个程序解决你所遇到的问题
    测试程序,可以很好的利用这个程序解决你所遇到的问题-Test procedure can be a very good use of this procedure to solve the problems encountered by you
    2023-03-19 17:30:04下载
    积分:1
  • ExcelVBA编程入门范例。
    ExcelVBA编程入门范例。 -Getting Started ExcelVBA programming paradigm.
    2022-03-25 02:06:39下载
    积分:1
  • 高质量C++C 编程指南 内容不多但很有用,提高程序质量的好书
    高质量C++C 编程指南 内容不多但很有用,提高程序质量的好书-Quality C++ C programming, not much, but useful guide to improve the program quality of books
    2022-05-27 06:04:36下载
    积分:1
  • 韩杰 (像数独游戏)
    数独之类的小游戏可以玩,恢复和保存你的游戏。 韩杰 (或 picross) 是一个聪明游戏和逻辑。如果你喜欢数独或数谜你去崇拜韩杰 !
    2022-02-13 06:44:56下载
    积分:1
  • RTF
    The RTF-control is a very useful beast, but it takes a nerve-grating amount of code to accomplish even the most basic formatting tasks. Adding the capabilities to easily edit formatted text is often a boon to an application, but taking this amount of work? Why not some commands to get and set the RTF directly? Save and load to a file? Built-in editing buttons?
    2022-05-10 22:03:52下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载