<< Chapter < Page Chapter >> Page >

Results

Distinguishing the best smile from a set

Using several more images of Danny, we can determine which image of him has his best smile.

Figure 1: Input images for distinguishing the best smile of the set

When determining the best smile from this set of given photos, the following calculated data is used in the code’s decision tree.

Image Corner Density Mouth Curvature
1 63 0.0043
2 78 -0.0010
3 24 0.0045
4 6 -0.0010

Table 1: Corner Density and Mouth Curvature Parameters for Images 1-4

Photos one and two both contain high numbers of corner points, but number one has a greater curvature. Photo four does not meet the minimum threshold number of data points, so its curvature is irrelevant. Since photo three meets the minimum threshold and has the greatest curvature, it is selected as the best smile photo of the set.

Distribution of our smile detection parameters

We wanted to run more extensive tests to see if our determination of smiling subjects works on a large set of subjects. We obtained the FEI face database ( Link )[6] , which has images of 200 subjects. In one image the subject is smiling, and in the other the subject maintains a neutral expression. We gathered results on the distribution of each parameter, and also whether the program correctly predicted which image of the two was a smile.

Figure 6: Corner Density distributions for the 200 Non-Smiling and 200 Smiling photos from the database. (NOTE: The x-axes have significantly different scales)

Figure 8: Mouth Curvature distributions for the 200 Non-Smiling and 200 Smiling photos from the database. (NOTE: The y-axes have significantly different scales)

One important trend noticed in the distribution is that the concavity parameter has a high probability of being positive when analyzing a smiling photo. The parameter is negative less than 5% of the time for analyzed smiling images. We used this to validate our requirement that the curvature of an image must be positive to be identified as the most smiling photo of a set.

Another thing that we notice is while a neutral photo will not always provide line a predictable curvature parameter, there will often be a lack of detected edges. We confirmed discarding images with a low number of detected mouth corners was also a good strategy. At the threshold of 10 that we used (must have greater than 10 corners), about 78% of smiling photos will be kept as candiates for the most smiling photo, while 81% of non-smiling photos will be eliminated as candidates. Using both terms, we see the separation at there is relatively high separation that can be achieved from using both the corner density and mouth curvature parameters.

Corner Density Mouth Curvature
Smiling Face 16.3 0.0124
Unsmiling Face 7.7 0.0016

Table 2 : Mean Corner Density and Mouth Curvature for images from the FEI database.

The final step of if multiple images are able to pass all thresholds, is selecting the image with the highest mouth curvature. As seen in Table 2 , the average mouth curvature of a smiling face is over 7 times that of an unsmiling face.

Performance analysis

Number (of 200) Total % Procedure Accuracy
Correct Recognitions 121 61% 93%
False Positives 9 5% 7%
Inconclusive 70 35%

Table 3 : Percentage out of total database images from the FEI database, as well success and failure rate of the images the program attempted to analyze.

Using the decision tree outlined in Section 4.2 , we got the result in table 3 . Of the 200 subjects analyzed, 70 were deemed inconclusive because they could not be properly analyzed as either the face or mouth detection algorithm didn’t work properly, or less than 11 corners in both images. The remaining 130 photos were analyzed with only 9 false positives, and a 93% success rate of those analyzed.

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Smile identification via feature recognition and corner detection. OpenStax CNX. Dec 17, 2012 Download for free at http://cnx.org/content/col11469/1.1
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Smile identification via feature recognition and corner detection' conversation and receive update notifications?

Ask