Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

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?


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...
  • Comment on Face Recognition/Verification and other biometrics in perl

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.

      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?

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
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-06-19 22:25 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.