使用AAM在Opencv中检测嘴唇

时间:2013-02-27 08:45:38

标签: ios opencv

我是iOS开发和Opencv的新手。我想检测精确的嘴唇位置及其宽度和高度。我已经使用了那些haarcascade_mcs_mouth.xml文件,但结果并不令人满意。所以,如果任何人可以给我一些关于AAM过程的想法,那么它将非常有用。提前致谢。

2 个答案:

答案 0 :(得分:2)

https://github.com/MasteringOpenCV/code第6章& 7

(书部分在google.books上)

我认识的其他2人:

http://code.google.com/p/aam-opencv/

http://code.google.com/p/asmlib-opencv

和ofc,STASM,http://www.milbo.users.sonic.net/

答案 1 :(得分:1)

为什么不使用Core Image,而不是使用OpenCV来检测嘴唇位置? 使用级联增强在计算上很重。我打赌表现遭遇一些“速度”不是吗?

使用核心图像:

CIDetector* detector = [CIDetector detectorOfType:CIDetectorTypeFace
context:nil options:[NSDictionary dictionaryWithObject:CIDetectorAccuracyHigh forKey:CIDetectorAccuracy]]; //You can adjust accuracy here
NSArray* features = [detector featuresInImage:image];

for(CIFaceFeature* faceFeature in features)
{
    if(faceFeature.hasMouthPosition)
    {
        //Access mouse position using 'faceFeature.mouthPosition'
        //track maybe?
        //use Lucas Kanade tracker or Fast Corner tracker
    }
}