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. Thanks for your helpful post. Through the years, I have been able to understand that the actual symptoms of mesothelioma cancer are caused by the particular build up connected fluid relating to the lining on the lung and the chest cavity. The illness may start within the chest vicinity and pass on to other parts of the body. Other symptoms of pleural mesothelioma include fat loss, severe breathing in trouble, a fever, difficulty taking in food, and bloating of the neck and face areas. It really should be noted that some people existing with the disease do not experience virtually any serious indicators at all.

  2. Once I initially commented I clicked the -Notify me when new feedback are added- checkbox and now every time a remark is added I get four emails with the same comment. Is there any method you’ll be able to remove me from that service? Thanks!

  3. I will right away grab your rss feed as I can not find your e-mail subscription link or e-newsletter service. Do you’ve any? Kindly let me know in order that I could subscribe. Thanks.

  4. Thank you for the good writeup. It in fact was a amusement account it. Look advanced to more added agreeable from you! However, how could we communicate?

  5. The following time I read a blog, I hope that it doesnt disappoint me as a lot as this one. I imply, I do know it was my option to read, but I truly thought youd have one thing fascinating to say. All I hear is a bunch of whining about something that you could fix should you werent too busy in search of attention.

  6. I don?t even know how I stopped up here, but I thought this submit was great. I don’t understand who you are however certainly you’re going to a famous blogger in the event you are not already 😉 Cheers!

Leave a Reply

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