Open CV中的人脸检测代码 [英] Face detection code in Open CV

查看:103
本文介绍了Open CV中的人脸检测代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

In my program i am detecting the face of a person, my code is working well, but i am worry about this code, as for eye detection "cascade.detectMultiScale()" have many parameters, while  for Face detection i am using these few parameters, and how it detects the face, whether we have not initialized the size of detecting object in  "cascade.detectMultiScale()"

     cascade.detectMultiScale(gray, faces, 1.2, 2);

    for (int i = 0; i < faces.size(); i++)
    {
        Rect r = faces[i];
        rectangle(src, Point(r.x, r.y), Point(r.x + r.width, r.y + r.height), CV_RGB(0,0,255));
    }

推荐答案

这些文章可能会对你充分使用....



[< a href =http://www.codeproject.com/Articles/26897/TrackEye-Real-Time-Tracking-Of-Human-Eyes-Using-atarget =_ blanktitle =New Window> ^ ]





[ ^ ]



[ ^ ]
these articles may use full to you....

[^]


[^]

[^]


这篇关于Open CV中的人脸检测代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆