Skip to content

Facial Recognition using Ubuntu.

Good Night,

I was reading about Facial Recognition and found pam-face-authentication. You must have this packages to use it:
Opencv 1.0.0 +
libpam (dev version)
libX11 (dev version)
Qt4.5 (dev version)

So I decided to try it. Let’s start.

Open CV – How to Install
This is a resume of what I did

1. Install the build-essential

$ sudo apt-get install build-essential

2. Access synaptic and search for “CMake”, Subversion, GTK+ 2.x, libpng, zlib, libjpeg, libtiff, libjasper, python 2.3+, swig. Don’t forget to install the -dev packages too

3. Install libavformat-dev

$ sudo apt-get install libavformat-dev

4. Download the opencv library

$ svn co https://opencvlibrary.svn.sourceforge.net/svnroot/opencvlibrary/tags/latest_tested_snapshot

5. Go to the download folder

$ cd latest_tested_snapshot/opencv

6. Create dir release

$ mkdir release

7. Access it

$ cd release

8. Use cmake (Don’t have sure if .. is necessary.)

\
$ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PYTHON_SUPPORT=ON ..

9. Make it

$ make

10. Install it

$ sudo make install

11.

$ sudo ldconfig -v

12.

$ cd bin

13. Verify if the dependencies works.

$ ./cxcoretest

Now go to Synpactic again and look for Libpam, libX11, Qt4.5 (don’t forget the -dev version)

How to install pam-face-authentication? Install PAM-FaCE-AUTH (reference)

1. Download pam-face-authentication (download the last version in my time I used 0.3)

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

2. Extract it.

$ tar -xf pam-face-authentication-0.3.tar.gz

3. Go to extracted folder

$ cd pam-face-authentication-0.3

4. Create build

$ mkdir build

5. Go to folder

$ cd build

6. (Don’t have sure if .. is necessary.)

$ cmake -D CMAKE_INSTALL_DIR=/usr ..

$ make

8.

$ sudo make install

Access Applications – Other – QtFacetrainer. Configure it. Go to Advanced and test it.

If you want to use it when somebody uses the “su” command. Edit “/etc/pam.d/su”

$ sudo vi /etc/pam.d/su

Add this line in the begin of the file

auth sufficient pam_face_authentication.so enableX

Other reference

Published inLinuxUbuntu

289 Comments

  1. This is very interesting, You’re a very skilled blogger. I’ve joined your feed and look forward to seeking more of your great post. Also, I have shared your site in my social networks!

  2. Do you mind if I quote a few of your posts as long as I provide credit and sources back to your site? My website is in the exact same niche as yours and my users would really benefit from some of the information you provide here. Please let me know if this okay with you. Thanks!

  3. One thing I would like to comment on is that fat reduction plan fast is possible by the suitable diet and exercise. A person’s size not merely affects the look, but also the quality of life. Self-esteem, depression, health risks, in addition to physical capabilities are afflicted in putting on weight. It is possible to just make everything right but still gain. In such a circumstance, a problem may be the root cause. While too much food instead of enough work out are usually at fault, common health concerns and widely used prescriptions can greatly enhance size. Kudos for your post in this article.

  4. One other thing is that an online business administration course is designed for learners to be able to effortlessly proceed to bachelors degree education. The Ninety credit college degree meets the other bachelor college degree requirements when you earn your associate of arts in BA online, you’ll have access to the most up-to-date technologies in such a field. Several reasons why students want to get their associate degree in business is because they may be interested in this area and want to find the general training necessary previous to jumping in a bachelor diploma program. Thx for the tips you provide as part of your blog.

Leave a Reply

Your email address will not be published. Required fields are marked *