如何选择级联文件进行人脸检测? [英] How to choose the cascade file for face detection?

查看:63
本文介绍了如何选择级联文件进行人脸检测?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名新手,负责人脸识别.这些天,我尝试编译用于​​面部检测的OpenCV2.1代码.我发现大约有4个用于正面检测的级联文件,分别是"haarcascade_frontalface_alt.xml","haarcascade_frontalface_alt_tree.xml","haarcascade_frontalface_alt2.xml"和"haarcascade_frontalface_default.xml"

I am a freshman for face detection. These days I try to compile the OpenCV2.1 code for face detection. I found that there are about 4 cascade files for front face detection, which are "haarcascade_frontalface_alt.xml","haarcascade_frontalface_alt_tree.xml","haarcascade_frontalface_alt2.xml" and "haarcascade_frontalface_default.xml"

我没有找到任何文件来描述它们之间的区别,这对于人脸检测任务更可取?

I did not find any documents to describe the difference among them, which is prefer for face detection task?

推荐答案

要弄清每个人的成功程度,误报的数量以及发现的总数,我在41,452杂志的封面上运行了每个XML文件并制作了联系表和平均值.

To get an idea how successful each one is, how many false positives, and how much stuff in total it finds, I ran each XML file on 41,452 magazine covers and made a contact sheet and average of each.

以下是有关Flickr的结果.标题显示输入的XML文件名以及检测到的功能数量.

Here are the results on Flickr. The titles show the input XML filename and how many features were detected.

对于您提到的文件,发现了以下功能:

For the files you mention, here's how many features were found:

  • 10,692 haarcascade_frontalface_default.xml
  • 9,563 haarcascade_frontalface_alt2.xml
  • 8,970 haarcascade_frontalface_alt.xml
  • 4,720 haarcascade_frontalface_alt_tree.xml

我没有计算误报率,您必须检查图像(例如,微笑文件不是很好,但脸部通常是).当然,根据输入的数据,您会得到不同的结果,而杂志的封面通常是非常干净的照片.

I didn't count the false positives, you have to check the images for that (for example, the smile file isn't very good, but the faces generally are). Of course, you'll get different results depending on your input data, and magazine covers are generally quite clean photos.

这篇关于如何选择级联文件进行人脸检测?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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