Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Face Recognition/Verification and other biometrics in perl

by schweini (Friar)
on Dec 26, 2007 at 17:39 UTC ( [id://659084]=perlquestion: print w/replies, xml ) Need Help??

schweini has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks,
Does anyone know of a way to get a perl-application to do (basic) face-recognition (having a 'corpus' of faces, i'd like to know whether a given face of a person is in that corpus)? There seems to be something like that, using the OpenCV library, in python, but i can't find anything for perl. I'd be happy with some command-line tool that simply spits out some parseable numbers on STDOUT, so i could incorporate it in my perl scripts, but most, if not all, things i found online are basically C(++) libraries, so i'dhave to go the XS route, which i'd really rather not do. Besides, the 'command line API' would have the big benefit that the face recognition would be easily swappable. Additionally, any other kind of trivially usable biometrics-package would be great to know of - fingerprints, speaker/voice recognition, etc.
So, any tips?

thanks,
-schweini

Update: Oh, i meant to ask for something that actually claims to work - there are a lot of projects around that start with "This prject will someday provide...", or "This is pre-alpha software..." and so on. I was looking for somthing at least in a more usable state...

Replies are listed 'Best First'.
Re: Face Recognition/Verification and other biometrics in perl
by dynamo (Chaplain) on Dec 26, 2007 at 19:08 UTC
    First off, if you know enough to go the XS route, you probably also know enough to go the command-line-tool route, using the same libraries you have already found - I'd suggest that you write a simple wrapper in C++ and allow it to take text-based arguments plus a picture to recognize.

    As for a pure-perl option, I'm not sure you're going to want to go that route, though I don't know what kind of hardware you're working with. The reason is that it will very likely be slow, unless you use some kind of semi-compiled language extension to do the work, such as PDL.

    PDL may be the kind of thing you are looking for. It seems likely that someone's written facial recognition (or other biometric identification) software in PDL.

    Good luck,
    - D

Re: Face Recognition/Verification and other biometrics in perl
by dpavlin (Friar) on Dec 31, 2007 at 22:37 UTC
    There is XS binding for OpenCV on CPAN under name Image::ObjectDetect. I didn't tried it myself, but would appreciate other experiences about it.

    2share!2flame...
      Yes, i found that one a bit later, too - but the documentation is a bit sparse, and i couldn't find any information on this on the OpenCV site. Did you get it to work?
        open cv can detect faces but i think its far from face recognition

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://659084]
Approved by McDarren
Front-paged by dynamo
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-03-19 06:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found