Ir ao conteúdo

Reconhecimento Facial no Ubuntu.

Boa noite,

Estive dando uma lida sobre reconhecimento facial nos últimos dias e achei o pam-face-authentication. Acessei o mesmo e vi as dependencias dele:

Opencv 1.0.0 +
libpam (também o pacote de desenvolvedor)
libX11 (também o pacote de desenvolvedor)
Qt4.5 (Não foi testado com versões anteriores)

Então pensei, por que não testar? Bom vamos começar…

Open CV – How to Install
Irei fazer um breve resumo do que eu fiz:

1. $ sudo apt-get install build-essential

2. Acessei o synaptic e procurei pelo “CMake”, Subversion, GTK+ 2.x, libpng, zlib, libjpeg, libtiff, libjasper, python 2.3 ou maior, swig. Instalei também as “-dev” para desenvolvedores. (Foram diversos pacotes que não sei listar já que não sabia ao certo quais exatamente eram necessários.)

3. $ sudo apt-get install libavformat-dev

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

5. $ cd latest_tested_snapshot/opencv (O diretório deve conter CMakeLists.txt, INSTALL, etc…)

6. $ mkdir release

7. $ cd release

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

9. $ make

10. $ sudo make install

11. $ sudo ldconfig -v

12. $ cd bin

13. $ ./cxcoretest

Verifiquei se passou nos testes e passou. Então prossegui na instalação dos requisitos.

(OpenCv agora deve estar instalado e funcionando.)

Agora faltava a libpam, libX11, Qt4.5 procurei manualmente os mesmos no synaptic mais uma vez e adiciuonei também os pacotes de desenvolvedor. (Novamente foram vários pacotes instalados, porém não tinha certeza do que ia ou não, antes sobrar do que faltar num teste como esses.)

Outras dependencias? Provavelmente Ok.

Vamos ao que insteressa, instalação do “pam-face-authentication” (ingles)

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

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

3. $ cd pam-face-authentication-0.3

4. $ mkdir build

5. $ cd build

6. $ cmake -D CMAKE_INSTALL_DIR=/usr ..

7. $ make

8. $ sudo make install

Após instalado acessei o menu “Applications – Other – QtFacetrainer”, fiz reconhecimento facial. Fui em Advanced e testei, e me pareceu que estava funcionando.

Continuando a ler vi que havia um método para rodar o reconhecimento facial automaticamente quando fosse utilizado o comando “su usuario”.

Editei o “/etc/pam.d/su” com $ sudo vi /etc/pam.d/su

e adicionei a seguinte linha no inicio do arquivo:

auth sufficient pam_face_authentication.so enableX

(Lembrando que está opção é para quem deseja que uma janela com a exibição da webcam seja exibida. Caso você não deseje utilize auth sufficient pam_face_authentication.so)

Bom, espero que ajude um pouco, assim que for fazendo mais testes nas demais versões do Ubuntu mantenho você informado.

Até breve,
Matheus

PS: Testei o mesmo na minha instalação velha do Ubuntu 9.04 e não obtive sucesso, mas lembro que foi minha primeira tentativa e posso ter feito algo errado. Como já estava pra formatar e instalar o 9.10 alpha 4 e testa-lo, decidi tentar novamente.) Entrei em contato com o desenvolvedor do pam-face, tentando esclarecer minhas dúvidas sobre o problema no pam-face. Quem sabe ajude você.

PS2: desculpe os vários erros de portugues, mas estou escrevendo bem rápido pois amanhã cedo tenho aula e já está tarde.

Publicado emLinuxUbuntu

125 Comentários

  1. of course like your web-site but you need to check the spelling on several of your posts. Many of them are rife with spelling problems and I find it very bothersome to tell the truth nevertheless I will surely come back again.

  2. Terrific work! This is the type of information that should be shared around the internet. Shame on Google for not positioning this post higher! Come on over and visit my website . Thanks =)

  3. Hi there! Do you know if they make any plugins to protect against hackers? I’m kinda paranoid about losing everything I’ve worked hard on. Any recommendations?

  4. Howdy! Do you know if they make any plugins to help with Search Engine Optimization? I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very good success. If you know of any please share. Thanks!

  5. I loved as much as you’ll receive carried out right here. The sketch is tasteful, your authored material stylish. nonetheless, you command get bought an shakiness over that you wish be delivering the following. unwell unquestionably come more formerly again as exactly the same nearly very often inside case you shield this hike.

  6. I was just looking for this info for some time. After six hours of continuous Googleing, finally I got it in your web site. I wonder what’s the lack of Google strategy that don’t rank this kind of informative sites in top of the list. Normally the top sites are full of garbage.

  7. Thanks for your intriguing article. Other thing is that mesothelioma cancer is generally caused by the breathing of materials from asbestos fiber, which is a very toxic material. It is commonly observed among workers in the structure industry with long exposure to asbestos. It could be caused by moving into asbestos covered buildings for an extended time of time, Genes plays a crucial role, and some consumers are more vulnerable to the risk as compared with others.

  8. It’s a pity you don’t have a donate button! I’d certainly donate to this brilliant blog! I suppose for now i’ll settle for book-marking and adding your RSS feed to my Google account. I look forward to new updates and will share this blog with my Facebook group. Chat soon!

  9. Woah! I’m really enjoying the template/theme of this blog. It’s simple, yet effective. A lot of times it’s very hard to get that “perfect balance” between user friendliness and visual appearance. I must say you have done a superb job with this. Also, the blog loads extremely fast for me on Opera. Superb Blog!

  10. affordablecanvaspaintings.com.au is Australia Popular Online 100 percent Handmade Art Store. We deliver Budget Handmade Canvas Paintings, Abstract Art, Oil Paintings, Artwork Sale, Acrylic Wall Art Paintings, Custom Art, Oil Portraits, Pet Paintings, Building Paintings etc. 1000+ Designs To Choose From, Highly Experienced Artists team, Up-to 50 percent OFF SALE and FREE Delivery Australia, Sydney, Melbourne, Brisbane, Adelaide, Hobart and all regional areas. We ship worldwide international locations. Order Online Your Handmade Art Today.

  11. Have you ever considered creating an e-book or guest authoring on other websites? I have a blog based on the same ideas you discuss and would love to have you share some stories/information. I know my viewers would enjoy your work. If you’re even remotely interested, feel free to shoot me an e mail.

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

  13. There are some fascinating cut-off dates on this article however I don?t know if I see all of them middle to heart. There is some validity but I will take maintain opinion till I look into it further. Good article , thanks and we would like more! Added to FeedBurner as properly

  14. Admiring the time and energy you put into your website and in depth information you provide. It’s nice to come across a blog every once in a while that isn’t the same outdated rehashed information. Great read! I’ve bookmarked your site and I’m adding your RSS feeds to my Google account.

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *