Ask Your Question

facial emotion recognition using java

asked 2014-03-16 08:40:53 -0500

Gamming gravatar image

updated 2014-03-16 09:32:01 -0500

berak gravatar image

I want to recognize the emotion of a face. How should I implement opencv. I am entirely new to opencv. Is it possible to implement this in java? If yes how can I implement this.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-03-23 05:43:52 -0500

tomnjerry gravatar image

updated 2015-03-23 05:45:54 -0500

This can be achieved by dividing the problem into two: 1. Face detection in the image. 2. emotion detection. For the first, you can simply use the haarcascades available with openCV download.

Once you have detected the face, try matching the ROI versus a database of images of emotions, try to find the closest matching element and assign the same classification/label. Else Detect interesting face points, like nose tip, mouth corners, eye locations, closed/open lids and determine a relation between this elements for each mood.

First approach is possible by applying an abstract representation of the image (eigenFaces, fisherFaces) creating a unique representation of each mood and fitting a codebook feature vector to it. Then match vectors using a distance measure to find the best match.

Interesting links for you:

This should give a nice start !

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2014-03-16 08:40:53 -0500

Seen: 2,760 times

Last updated: Mar 23 '15