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

140 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.

  15. certainly like your web site but you need to check the spelling on several of your posts. A number of them are rife with spelling issues and I find it very bothersome to tell the truth nevertheless I will surely come back again.

  16. Thanks for another informative blog. Where else could I am getting that kind of info written in such an ideal means? I have a project that I am just now working on, and I have been at the glance out for such information.

  17. Hi, i think that i saw you visited my weblog thus i came to ?return the favor?.I am attempting to find things to enhance my site!I suppose its ok to use some of your ideas!!

  18. Hey! I know this is kinda off topic but I was wondering if you knew where I could locate a captcha plugin for my comment form? I’m using the same blog platform as yours and I’m having problems finding one? Thanks a lot!

  19. Fantastic beat ! I would like to apprentice while you amend your web site, how can i subscribe for a blog web site? The account helped me a acceptable deal. I had been a little bit acquainted of this your broadcast offered bright clear concept

  20. I have seen a great deal of useful points on your web-site about computer systems. However, I have the view that lap tops are still more or less not powerful more than enough to be a good option if you normally do projects that require a great deal of power, just like video touch-ups. But for net surfing, word processing, and majority of other popular computer work they are just great, provided you can’t mind the screen size. Appreciate sharing your opinions.

  21. I?ll immediately grab your rss feed as I can not find your e-mail subscription link or e-newsletter service. Do you have any? Please let me know in order that I could subscribe. Thanks.

  22. Along with the whole thing which appears to be building throughout this specific area, all your points of view tend to be somewhat radical. Nevertheless, I appologize, but I do not subscribe to your entire strategy, all be it refreshing none the less. It looks to everybody that your commentary are actually not totally justified and in fact you are your self not really totally certain of your argument. In any event I did take pleasure in looking at it.

  23. UpvoteRocket is the leading automated voting service for private MMORPG servers. Our system climbs toplist rankings on XtremeTop100, TopG, GTop100, Top100Arena, and 20+ other platforms with intelligent automation that blends seamlessly with natural traffic. Every vote is delivered through authentic connections with realistic timing patterns to maximize success rates. Whether you run a Ragnarok, World of Warcraft, Mu Online, Lineage 2, or Perfect World server, we handle the voting so you can focus on your game. Pay only for successful votes, track progress in real-time, and watch your server rise to #1 while you sleep.

  24. Thanks for your write-up. One other thing is that if you are marketing your property on your own, one of the challenges you need to be mindful of upfront is when to deal with home inspection accounts. As a FSBO supplier, the key concerning successfully moving your property along with saving money with real estate agent revenue is information. The more you already know, the softer your sales effort is going to be. One area exactly where this is particularly significant is inspection reports.

  25. Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You obviously know what youre talking about, why throw away your intelligence on just posting videos to your blog when you could be giving us something enlightening to read?

  26. Valuable info. Lucky me I discovered your website unintentionally, and I am surprised why this twist of fate didn’t took place in advance! I bookmarked it.

  27. I found your weblog web site on google and examine a couple of of your early posts. Continue to keep up the very good operate. I just extra up your RSS feed to my MSN Information Reader. In search of forward to reading more from you in a while!?

  28. http://www.factorytinsigns.com is 100 Trusted Global Metal Vintage Tin Signs Online Shop. We have been selling art and décor online worldwide since 2008. Started in Sydney, Australia. 2000+ Tin Beer Signs, Outdoor Metal Wall Art, Business Tin Signs, Vintage Metal Signs to choose from. 100 Premium Quality Artwork. Up-to 40 OFF Sale Store-wide. Fast Shipping USA, Canada, UK, Australia, New Zealand, Europe.

Deixe um comentário

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