Article : FACIAL GESTURE RECOGNITION USING CORRELATION AND MAHALANOBIS DISTANCE

FACIAL GESTURE RECOGNITION USING CORRELATION AND MAHALANOBIS DISTANCE

ABSTRACT-

Augmenting human computer interaction withautomated analysis and synthesis of facial expressions is agoal towards which much research effort has been devoted recently.Facial gesture recognition is one of the important componentof natural human-machine interfaces; it may also be

used in behavioural science , security systems and inclinical practice. Although humans recognise facial expressions virtually without effort or delay, reliable expression recognition by machine is still a challenge.The face expression recognition problem is challenging because different individuals display the same expression differently.

This paper presents an overview of gesture recognition in real time using the concepts of correlation and Mahalanobis distance.We consider the six universal emotional categories namely joy, anger, fear, disgust, sadness and surprise. Keywords –Gesture recognition; Cross correlation; Mahalanobis Distance

PHP login then redirect

  I am using the following code to log users in to a series of secure pages - I need to have each user redirected to an appropriate page once submitted, I'm wondering what steps I need to take to single out the three login levels (admin,special,user):

if(isset($_SESSION['username'])){  function check_login($level) {  $username_s = mysql_real_escape_string($_SESSION['username']);  $sql = "SELECT user_level, restricted FROM login_users WHERE username = '$username_s'";  $result = mysql_query($sql);  $row = mysql_fetch_array($result);  $user_level = $row['user_level'];  $restricted = $row['restricted'];  $sql = "SELECT level_disabled FROM login_levels WHERE level_level = '$user_level'";  $result = mysql_query($sql);  $row2 = mysql_fetch_array($result);  $disabled = $row['level_disabled'];  if($disabled != 0) { include('disabled.php'); exit();  } elseif($restricted != 0) { include('disabled.php'); exit();  } elseif($user_level <= $level) { // User has authority to view this page.  } else { include('user_level.php'); exit();  }  }} else {  function check_login($level) { exit(); }  include('login.inc.php'); exit();php login

link|improve

20% accept rate

 

I would store the login level in a $_SESSION variable and then redirect the user based on that as you'll want to keep track of that login level from page to page. To redirect them, use header() with a Location: string.

For ex:

if ($_SESSION['log_level'] == 'admin') {  header("Location: admin.php");} else if ($_SESSION['log_level'] == 'editor') {  header("Location: editor.php");} else if ($_SESSION['log_level'] == 'author') {  header("Location: author.php");}