File Exchange

image thumbnail

fdlibmex --- fast and simple face detection

version 1.0 (1.9 MB) by

An efficient and easy-to-use mex library for detecting frontal faces in images

43 Downloads

Updated

No License

fdlibmex is a very simple face detection library for matlab. No toolboxes are required. The library consists of a single mex file with a single function that takes an image as input and outputs the locations of the frontal faces in the image.

The zip file includes mex files for the 32bit Windows, Linux and Mac platforms supported by Matlab, and an example script that illustrates the usage of the library.

Comments and Ratings (50)

Pranav Misra

I am trying to run this on a 64 bit machine, and am getting the error

Undefined function or method
'fdlibmex'

Kindly email me the 64-bit version on f2014096@pilani.bits-pilani.ac.in
Thanks!

fara zabihi

Zhang Yi

Txs

Qian Yu

Great! Thanks!

Nurul Ain

Hi, would you please send me a version that could be used in 64bit windws machine? Thanks!

Tran Vu

good

Lian Guite

Using the values stored in 'r', i have cut out the detected faces individually from some rgb images, and i am getting all faces in grayscale which is obvious because of the rgb2gray function i have used..
But is there any way to get those cut out faces in rgb ?? How to retain its original rgb composition after running the fdlibmex ??

adong7639

The result of this facedetector is as good as opencv!!!

selim

selim (view profile)

I tried to run the demo file but got an error
??? Undefined function or variable 'fdlibmex'.

Error in ==> fdlibmex_demo at 16
fdlibmex

Can somebody help me to solve this problem.
Please help.

Jason

Jason (view profile)

Matteo

Matteo (view profile)

Hi everyone.
I'm also trying to run the library demo on maci64, but there's no way to get it work.
It's some kind of problem with the mex file.
If someone could help it will be appreciate, thx!

xin lu

xin lu (view profile)

hi, i met the problem of "Undefined function or method
'fdlibmex' for input arguments
of type 'uint8'.

Error in ==> fdlibmex_demo at 23
pos = fdlibmex(img);"

I guess the binary file is compiled in 32bit compiler. Is that right? If that is the case, would you please send me a version that could be used in 64bit linux machine? Thanks!

weike yin

can u send the source code of dll to me,my E-mail:yinweike119@163.com
thank you!

emir

emir (view profile)

i got an error
??? Undefined function or method 'mblbp_featlist' for input arguments of type 'double'Can somebody help me to solve this problem.
thanks

I tried to run the demo file but got an error
??? Undefined function or variable 'fdlibmex'.

Error in ==> fdlibmex_demo at 16
fdlibmex

Can somebody help me to solve this problem.
Please help.

I am not able to detect faces in color image. Is there any way to do this ?

tjipto tjupu

mr wolf kienzle, im student in indonesia.now im do my final exame.but i have problem in face detection.mr wolf can i know the contain of fdlibmex.dll ??
thanks before.
cipto_jarwokatro@yahoo.com

Excellent work! Congratulations!
I submit one more request for the algorithm you use!

grace solomon

Hi,
Nice work on the face detector, seems to work well! Thanks for posting it.Would you like to tell us your algorithm?Please help.
regards,
grace

Mariam Z

I got it... thanks

Mariam Z

m unable to c the image wid the face detected.
I have not used this part of the code
fprintf('\n--- fdlibmex example ---\n');
fprintf('\n\t%d faces detected in \''%s\'' (see figure 1)\n\n', ...
    size(pos,1), imgfilename);
as its not clear how to use it
can u please help me wid this?

Hoang

Hoang (view profile)

Great job!
Would you like to tell us your algorithm? and how to analysis features to build your algorithm?
Thank you!

Frank

Frank (view profile)

I second the request for a 64bit windows version. :)

Thanks,

zhijun yao

Great work. Thank you.

Robert Delano

Wow this is great! Is there any way to get it to take a picture each time it recognizes a face?

Thanks again, Great job!

I tried to run the demo file but got an error "Undefined function or variable fdlibmex"
Do we need to load the dll library and if yes how to do this as the load library function requires a header which is no provided.
Please help.

Vitomir Struc

Vitomir Struc (view profile)

Great job.

Wolf Kienzle

Hi Alfian,

if you don't get an error message, then everything should be working OK. If not, here's a few things you may want to check: Have you tested it with the example image I provided? Are the faces in your images large enough (about 25x25 pixels)? Are they somewhat evenly illuminated and frontal (not rotated, no side views)? Have you tried cranking up the detection threshold?

Hope that helps!

Hi Wolf :)

I was trying to use your code... but it didn't work for any of my test images. I am working with football (soccer) videos.. and I tested on some frames (640X480)...

Image quality is quite ok (not excellent). All are in JPEG extension (not JPG)... but no errors were given... I had to add extra code to change from RGB to Grayscale tho.

Do you know why this is happening? I was expecting it to work because of the many good reviews ure getting. Anyway... I still believe it could work. Maybe I need to add some things here and there? thankx

Janayna

Very nice work. What database did you use? I work with face recognition I need help to find a large number of train images.

Thanks

pin pin

heloo... how to use this using visual foxpro or visual basic?
how to declare it?
thanks

ddt99999 Tong

Is it possible to have mex files for 64bit Windows? Thanks a lot..

Daniel N

good!

Zhe ‹

very nice work, it is so fast. how can i get more accuracy result from this demo. thanks

PEDRO GARCIA

It's fast to find a face with this code. The fastest code I have found on the web.

Could you provide any estimation about when the publication will be available?

Thanks,

Hanaa

Hanaa (view profile)

 Hi all!
 
I'm doing my final year project on 'Image Processing Methods for facial recognition using Matlab'. I've got Visual Studio 2005 background but never used MatLab before. I've just started on with research, video tutorials and reading.
 
Can anyone please help me with a guide, where can I start this from? Does this face detection code helps?
 
Your help would be very much appreciated! :))

Sorry, I did not read all the comments above. Are there any updates on the publlication and will it be protected by a patent?

Hi,

Great work. Thanks for posting it. Are you using still using the Rank Deficient Faces algorithm? If this is another algorithm can you provide a reference at this point?

Thanks,

Gerardo

Wolf Kienzle

hi!

bhupala: the library cannot detect eyes and nose directly. but the face detection result should be a good starting point for where to look for eyes, nose, etc.

james: thanks! the algorithm uses a cascaded classifier, however, unlike viola/jones, it does not use integral images or haar wavelets. i hope i will manage to write up something soon. when that happens, i'll definitely post a link in here. :)

happy holidays!

-wolf

James C

Hi Wolf,

Great program, its reliable and quick. I was wondering if you know when you are going to publish a journal? Also is you algorithm based on a particular type of face detection (e.g. active shape modeling or image integrals...)

Cheers
James

James C

Dear Wolf,

is there any way to detect eyes, nose and lips using this code?

regards,
bhupala

Wolf Kienzle

hi angela,

there is an optional sensitivity parameter, you just call pos = fdlibmex(img, threshold). threshold makes most sense around -10..10.

unfortunately, there are no scores :( however, you can get an idea of the confidence by running the detector again with a higher threshold and checking which detections remain.

good luck!
-wolf

Angela

Angela (view profile)

Hi Wolf,
 
Nice work on the face detector, seems to work well! Two questions though: (1) Is there any way gain access to parameters to adjust for precision and (2) are there any scores / confidences attached to each face detection?

Thanks,
Angela

Help the Noob

HI
I am very curious of me but and want to
try out this stuff...
but do i need Mathworks Matlab R2008a to make this work?

Jordi Palacin

Very nice and fast.

Peter Gehler

Worked out of the box with good results

Wolf Kienzle

The library implements a new algorithm (i.e. not Viola/Jones or the like) that has not been published yet. That's why there are no references, sorry.

Sebastien PARIS

Why don't you offer the source code ? or indicate any references ?.

Updates

file description extended

MATLAB Release
MATLAB 7.6 (R2008a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video