Outils pour utilisateurs

Outils du site


issue50:critique

Have you ever imagined logging in to your system using only your face? Sounds like science fiction, but it is now possible with an application called PAM Face Authentication. Using a webcam, it scans your face and allows you to log in without typing a password. No more passwords. The application was developed as part of the Google Summer-of-Code 2008 for openSUSE. The project was then extended during the Google Summer-of-Code 2009 to make it compatible with the KDE and Pardus distributions. The official website is pam-face-authentication.org, and it contains instructions on how to install the application. In this text we will install the application from source code. In my experience, available packages for Ubuntu and Kubuntu do not work with the latest releases. Users of previous versions are lucky. They can install it using the available packages. Webcam drivers gspca and uvc are integrated in the kernel, so you don't need to install the drivers manually.

Vous êtes-vous jamais vu en train de vous connecter à votre système avec rien d'autre que votre visage ? Ça a l'air d'être de la science-fiction, mais c'est maintenant possible avec une application qui s'appelle PAM Face Authentication. Avec une webcam, elle regarde votre visage et vous permet de vous connecter sans taper un mot de passe. Plus de mots de passe. Faisant partie du Google Summer-of-Code, 2008, l'application a été développée pour openSUSE. Le projet fut alors étendu, pour le rendre compatible avec les distributions KDE et Pardus, pendant le Google Summer-of-Code 2009.

Le site officiel est pam-face-authentication.org et vous y trouverez des instructions pour l'installation de l'application. Dans cet article, nous allons installer l'application à partir du code source. D'après mon expérience, les paquets disponibles pour Ubuntu et Kubuntu de fonctionnent pas avec les versions les plus récentes. Les utilisateurs de versions précédentes ont de la chance. Ils peuvent l'installer en se servant des paquets disponibles. Les pilotes de webcam gspca et uvc font partie intégrante du noyau et vous n'avez donc pas besoin de les installer manuellement.

Let’s start with the installation. Installation The first step is to install all dependencies. If you try to do it using the available documentation, you will notice it is not possible. The problem is caused by packages which don't exist! The solution is instead of libhighgui4 write libhighgui2.1. Here are the corrected commands: sudo apt-get install build-essential cmake qt4-qmake libx11-dev libcv-dev libcvaux-dev libhighgui2.1 libhighgui-dev libqt4-dev libpam0g-dev checkinstall When we have installed all the dependencies, we begin downloading, compiling, and installing the app. Execute these commands one-by-one. 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

Commençons par l'installation.

Installation

La première chose à faire est d'installer toutes les dépendances. Si vous essayez de le faire en utilisant la documentation disponible, vous remarquerez que ce n'est pas possible. C'est la faute à des paquets qui n'existent pas ! La solution est de saisir libhighgui2.1 au lieu de libhighgui4. Voici les commandes corrigées :

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

Quand nous avons installé toutes les dépendances, nous commençons à télécharger, compiler et installer l'appli. Exécutez ces commandes une par une.

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

Configuration To login to your system with face recognition, we must start with the face trainer. Just type qt-facetrainer in terminal, or go to Applications > Lost and Found > Qt Face Trainer. Follow the instructions. Next step is making a file which will contain plug-in information. Type these commands consecutively: cat « EOF | sudo tee /usr/share/pam-configs/face_authentication /dev/null Name: face_authentication profile Default: yes Priority: 900 Auth-Type: Primary Auth: [success=end default=ignore] pam_face_authentication.so enableX EOF After that, enable the plug-in using the following command: sudo pam-auth-update –package face_authentication Finally, you are finished with the installation. Users with enabled Auto login must disable it manually by going to System Administration > Login Screen > Convenience, and untick Enable Auto-Login.

Configuration

Pour se connecter à votre système au moyen de la reconnaissance de votre visage, vous devez commencer par l'entraînement (le « face trainer »). Il suffit de saisir qt-facetrainer dans un terminal ou d'aller à Applications > Lost and Found > Qt Face Trainer. Suivez les instructions.

La prochaine étape est de créer un fichier pour contenir les informations concernant le greffon. Saisissez ces commandes l'une après l'autre :

cat « EOF | sudo tee /usr/share/pam-configs/face_authentication /dev/null

Name: face_authentication profile Default: yes Priority: 900 Auth-Type: Primary Auth: [success=end default=ignore] pam_face_authentication.so enableX EOF

Ensuite, activez le greffon au moyen de ce qui suit :

sudo pam-auth-update –package face_authentication

L'installation est enfin terminée. Les utilisateurs qui ont activé la connexion automatique doivent la désactiver manuellement en allant à Système > Administration > Fenêtre de connexion et décocher « Se connecter automatiquement ».

Problems During testing, in a few cases, the application was unable to recognize me and it was frustrating. Fortunately, login with a password is still possible. Also, there were cases when the webcam was connected, but the application warned me that the webcam was disconnected. Reading this text, you probably asked yourself something like “Is it possible to cheat the application?”. I am leaving the reader to find the answer! Positive: Easy to use. Negative: Documentation is out-of-date, few bugs, hard to install, accuracy of recognition. Overall Since this is the only application of this type available for Linux, it does a good job. It can even be compared to commercial applications. Currently, all applications of this type aren't accurate. In a few years, we could expect it to be the default way to log in to your system with increased usage of these applications. Until then, there is no need to install it. Sooner or later, you will be frustrated by the accuracy of recognition. The best thing about PAM face authentication is it is free.

Problèmes

Parfois, pendant les tests, l'application ne savait pas me reconnaître et c'était frustrant. Heureusement, vous pouvez toujours vous connecter avec un mot de passe. Il y avait aussi des fois où un message m'avertissait que la webcam était déconnectée alors qu'elle était bel et bien connectée.

En lisant cet article, vous vous êtes sans doute demandé quelque chose comme : « Peut-on tromper l'application ? » Je laisse au lecteur le soin de trouver la réponse !

Bon point : Facile à utiliser.

Mauvais points : La documentation est périmée, quelques bogues, difficulté d'installation, justesse de la reconnaissance.

Dans l'ensemble

Puisque c'est la seule application du genre disponible pour Linux, elle fait du bon travail. On peut même la comparer à des applications commerciales. Actuellement, toutes les applications du genre ne fonctionnent pas avec justesse. Dans quelques années, nous pourrons nous attendre à ce que ce soit la façon par défaut de se connecter à votre système, avec une utilisation accrue de ces applications. Jusque-là, pas besoin de l'installer. Tôt ou tard, vous serez frustré par l'inexactitude de la reconnaissance.

Le plus intéressant est que PAM face authentication est gratuit.

issue50/critique.txt · Dernière modification : 2011/08/15 08:33 de fredphil91