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

159 Comentários

  1. Thanks for the helpful post. It is also my belief that mesothelioma has an extremely long latency period, which means that indication of the disease may well not emerge till 30 to 50 years after the 1st exposure to mesothelioma. Pleural mesothelioma, that is certainly the most common type and is affecting the area around the lungs, might result in shortness of breath, upper body pains, and also a persistent cough, which may result in coughing up maintain.

  2. hello there and thank you for your information ? I have certainly picked up something new from right here. I did however expertise some technical points using this site, as I experienced to reload the site many times previous to I could get it to load correctly. I had been wondering if your web host is OK? Not that I am complaining, but sluggish loading instances times will very frequently affect your placement in google and could damage your high-quality score if ads and marketing with Adwords. Anyway I am adding this RSS to my email and can look out for a lot more of your respective exciting content. Ensure that you update this again soon..

  3. It?s really a great and helpful piece of information. I?m happy that you simply shared this useful info with us. Please keep us up to date like this. Thanks for sharing.

  4. As I website possessor I believe the content matter here is rattling excellent , appreciate it for your efforts. You should keep it up forever! Best of luck.

  5. I?m impressed, I must say. Really rarely do I encounter a weblog that?s each educative and entertaining, and let me tell you, you may have hit the nail on the head. Your idea is outstanding; the problem is one thing that not enough persons are talking intelligently about. I’m very blissful that I stumbled throughout this in my search for something relating to this.

  6. Definitely believe that that you said. Your favourite justification appeared to be at the web the simplest thing to take into accout of. I say to you, I certainly get annoyed while people think about worries that they plainly do not recognize about. You controlled to hit the nail upon the top as well as outlined out the entire thing with no need side-effects , people could take a signal. Will likely be back to get more. Thanks

  7. Thanks for the tips about credit repair on this amazing web-site. A few things i would tell people is to give up the particular mentality that they’ll buy currently and pay back later. As being a society most of us tend to try this for many things. This includes vacation trips, furniture, as well as items we want. However, you should separate your wants from all the needs. If you are working to improve your credit rating score actually you need some sacrifices. For example you possibly can shop online to economize or you can click on second hand retailers instead of high priced department stores to get clothing.

  8. I?m now not certain the place you’re getting your info, but great topic. I must spend some time learning more or understanding more. Thank you for wonderful info I used to be looking for this info for my mission.

  9. I’ve observed that in the world the present moment, video games include the latest rage with kids of all ages. There are occassions when it may be out of the question to drag your family away from the activities. If you want the very best of both worlds, there are various educational games for kids. Thanks for your post.

Deixe um comentário

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