建立了ASMs,为什么还需要opencv训练好的xml文件呢

150 views
Skip to first unread message

anzhiyue

unread,
Oct 11, 2012, 1:43:20 AM10/11/12
to asmli...@googlegroups.com
opencv里面仅仅使用haarcascade_frontalface_alt2.xml文件就可以进行人脸识别了,而且xml文件的获取过程也是通过训练而来的,这样的话,如果没有现成的xml文件,岂不是需要训练两次,一次生成amf文件 一次是xml文件??

Yao Wei

unread,
Oct 14, 2012, 8:39:58 AM10/14/12
to asmli...@googlegroups.com, cau....@gmail.com
xml是用来进行人脸检测的 以便给ASM一个初始形状 这样ASM搜索才能更好的进行

2012/10/11 anzhiyue <cau....@gmail.com>

opencv里面仅仅使用haarcascade_frontalface_alt2.xml文件就可以进行人脸识别了,而且xml文件的获取过程也是通过训练而来的,这样的话,如果没有现成的xml文件,岂不是需要训练两次,一次生成amf文件 一次是xml文件??



--
Yao Wei, P.R. China
Mobile: (+86) 138-1698-4972

Everything should be made as simple as possible, but not simpler.

anzhiyue

unread,
Oct 14, 2012, 7:52:57 PM10/14/12
to asmli...@googlegroups.com, cau....@gmail.com
那可不可以说 haarcascade_frontalface_alt2.xml 文件是不是不是必须的,而是可选的,因为目前我想利用asmlibrary进行其他目标的检测,而手头并没有 haarcascade_frontalface_alt2.xml 类似的事先训练好的xml文件。

在 2012年10月14日星期日UTC+8下午8时39分58秒,Yao Wei写道:

Yao Wei

unread,
Oct 14, 2012, 8:53:43 PM10/14/12
to asmli...@googlegroups.com
 你需要自己定义目标检测函数替代vjfacedetect.cpp中的人脸检测函数,不然搜索没法进行,在ASM搜索过程中,我们需要利用先验知识给ASM一个初始的形状,不然将会导致ASM陷入局部最大或者最小的境地。

2012/10/15 anzhiyue <cau....@gmail.com>

anzhiyue

unread,
Oct 14, 2012, 9:38:08 PM10/14/12
to asmli...@googlegroups.com
哦 谢谢。我明白了, asmlibrary 没有包括aam方法吧,怎么看到有的人回复里面提到aam library 

在 2012年10月15日星期一UTC+8上午8时53分44秒,Yao Wei写道:
Reply all
Reply to author
Forward
0 new messages