Every action there is equal and opposite reaction.

linux face recognition tool

How to install facial recognition tool in Ubuntu Linux distro:

1) Install the dependencies required to run the face recognition tool. You can install that by executing the following command in terminal. To open  Terminal go to Applications > Accessories > Terminal. The commands are different for Lucid Lynx and Maverick Meerkat users:

Ubuntu Terminal

Lucid Lynx users: –

sudo apt-get install build-essential cmake qt4-qmake libx11-dev libcv-dev libcvaux-dev libhighgui4 libhighgui-dev libqt4-dev libpam0g-dev libswscale0

Maverick Meerkat users:

sudo apt-get install build-essential cmake qt4-qmake libx11-dev libcv-dev libcvaux-dev libqt4-dev libpam0g-dev libswscale0 libhighgui-dev libhighgui2.1

Ubuntu face login sudo command

2) Install the face recognition tool by executing the following commands one at a time.

cd /tmp

wget http://pam-face-authentication.googlecode.com/files/pam-face-authentication-0.3.tar.gz

tar zxf pam-face-authentication-0.3.tar.gz && cd pam-face-authentication-*

mkdir build && cd build

cmake -D CMAKE_INSTALL_PREFIX=/usr ..

make

sudo make install

3) Run the ‘Face Trainer’ application from the Applications > Other menu.

Ubuntu face login tool

Steps to add face recognition tool to GNOME display manager (GDM):

For the face login feature to be added to your default GNOME display manager you should execute the following sudo commands,

sudo sed -i '1i auth sufficient pam_face_authentication.so enableX' /etc/pam.d/gdm

sudo sed -i '1i auth sufficient pam_face_authentication.so enableX' /etc/pam.d/gnome-screensaver

Depending on your webcam model/make you may need to install and add libv4lto preload:

  • Create the file /etc/ld.so.preload
  • Paste in the path to the v411compat.so file commonly found in /usr/lib/libv4l

2 responses

  1. :s

    February 22, 2012 at 8:24 am

    • u can have ur own security in ur windows …
      i will send u its code for to compile in ur windows … :XD

      February 23, 2012 at 7:55 am

Leave a comment