Using the Face Detection Library

Here is another demonstration of face detection library in Processing. The library download is updated now with the source and a data folder of the classifier configuration files.

Here is also a list of the OpenCV dynamic link libraries which are required to run the face detection program.

  • cxcore100.dll
  • cv100.dll
  • libguide40.dll

7 Responses to “Using the Face Detection Library”

  1. Jorge says:

    Hi,

    I’ve been trying to use your library but I keep getting this error:
    ——————————
    Exception in thread “Thread-2″ java.lang.UnsatisfiedLinkError: D:\processing-0135-expert\libraries\pFaceDetect\library\PFaceDetect.dll: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at pFaceDetect.PFaceDetect.(PFaceDetect.java:10)
    —————————————————-

    Have you any idea of what might be causing this?
    Thanks,
    Jorge Cardoso

  2. Bryan says:

    It looks like that you have to install OpenCV first in your computer. And it should add the C:\Program Files\OpenCV\bin to your PATH environment variable, which includes all those DLL.

  3. Jorge says:

    No, it’s not that. I had already done that (should have mentioned already, sorry).

    I used the Dependency Walker utility that comes with Visual Studio to look at the PFaceDetect.dll and it said it depends on msvcr80d.dll which I didn’t have, so I installed this aswell. Dependency Walker doesn’t find any missing dependencies now but I still get the same error…

    I googled the error but I keep running into .NET problems… May I ask what have you used to compile your dll?

    Thanks for your trouble (and for the library ;) ,
    Jorge

  4. Bryan says:

    I use MS Visual Studio 2005 Express Version. The dll in the web you download is the Debug version which may cause the missing module error. I replace it with the Release version and you can try again. Thanks.

    Bryan

  5. Jorge says:

    Still the same error… Its probably something with my machine, but have you tried running your code in another machine?

    I know I’m asking too much, but could I get a copy of the VS Project files, so that I can compile it locally (it would be easier than creating the project from scratch and adding the source in your distribution because I’m not too experienced in Visual Studio…)?

  6. Jorge says:

    Don’t mind my last comment.

    I built a VC6.0 project and imported your code (it was not that hard after all). I compiled it and replaced your dll by the new one.

    Now it works.

    Thanks for your help (and patience),
    jorge

  7. Bryan says:

    The machines I tested have similar configurations (XP SP2, with .NET framework). Thanks for your testing and enjoy.

Leave a Reply

You must be logged in to post a comment.