Lip detection in Opencv using AAM

Im new to iOS and Opencv development. And I want to determine the location of Exactly Lips, its width and height. I used the file haarcascade_mcs_mouth.xml, but the result was not satisfactory. Therefore, if anyone can give me some idea of ​​the AAM process, then it will be really helpful. Thank you in advance.

+6
source share
2 answers
+2
source

Instead of using OpenCV to locate lips, why not use Core Image? Using cascading enhancements is computationally heavy. I bet that performance is suffering some kind of "speed", right?

Using Core Image:

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 } } 
+1
source

All Articles