18.03.2014 Views

Recognition of facial expressions - Knowledge Based Systems ...

Recognition of facial expressions - Knowledge Based Systems ...

Recognition of facial expressions - Knowledge Based Systems ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

There is another kind <strong>of</strong> structure (Listing 13) used for computing the probability <strong>of</strong> a<br />

parameter being in a certain state, given the state <strong>of</strong> presence/absence <strong>of</strong> the Action Unit<br />

parameters.<br />

//-------------------------<br />

1: struct cere2<br />

2: {<br />

3: int AU[10][2];<br />

4: int n;<br />

5: int P[2];<br />

6: cere2():n(0){}<br />

7: void empty(void){n=0;}<br />

8: void setP(int k,int clasa){P[0]=k;P[1]=clasa;}<br />

9: void add(int au,int activ){AU[n][0]=au;AU[n][1]=activ;n++;}<br />

10: };<br />

//-------------------------<br />

Listing 13. A query for computing the CPTs for the first level<br />

The sources <strong>of</strong> all the routines can be consulted in the appendix section.<br />

Facial expression recognition application<br />

As a practical application for the current project, a system for <strong>facial</strong> expression<br />

recognition has been developed. Basically, it handles a stream <strong>of</strong> images gathered from a<br />

video camera and further applies recognition on very frame. Finally, it provides as result<br />

a graph with the variances <strong>of</strong> the six basic emotions <strong>of</strong> the individual in a time domain.<br />

The figure below <strong>of</strong>fers an overview on the functionality <strong>of</strong> the designed system.<br />

- 79 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!