4.28358

4.3 | 69 ratings Rate this file 1227 downloads (last 30 days) File Size: 169.58 KB File ID: #11073

Face Detection System

by Omid Sakhi

 

13 May 2006 (Updated 13 Jan 2010)

Code covered by the BSD License  

Face Detection using Gabor feature extraction and neural network

Download Now | Watch this File

File Information
Description

Version : 5.3

Please visit the official website for this program at the address:

http://fadesys.omidsakhi.com

You will find instructions on how to run the program, some basic diagrams of the algorithm and also a forum and a contact page to discuss about it.

To run the program:

    1- copy all files and directories to the MATLAB's work folder
     * In order to run the program you must have Image Processing and Neural Networks Toolboxes

    2- find the file named "main.m"

    3- Double click on this file or type "main" in the command window

    4- a menu will be shown . click on "Train Network" and wait until the program is done with the training

    5- click on "Test on Photos". A dialog box will be appeared. Select a .jpg photo

    6- Wait until the program detects some faces

Required Products Image Processing Toolbox
Neural Network Toolbox
MATLAB release MATLAB 7.9 (2009b)
Zip File Content  
Other Files
changelog.txt,
create_gabor.m,
createffnn.m,
drawrec.m,
face/1.png,
face/10.png,
face/11.png,
face/12.png,
face/13.png,
face/14.png,
face/15.png,
face/16.png,
face/17.png,
face/18.png,
face/19.png,
face/2.png,
face/20.png,
face/21.png,
face/22.png,
face/23.png,
face/24.png,
face/25.png,
face/26.png,
face/27.png,
face/28.png,
face/29.png,
face/3.png,
face/30.png,
face/31.png,
face/32.png,
face/33.png,
face/34.png,
face/35.png,
face/36.png,
face/37.png,
face/38.png,
face/39.png,
face/4.png,
face/40.png,
face/41.png,
face/42.png,
face/43.png,
face/44.png,
face/45.png,
face/46.png,
face/47.png,
face/48.png,
face/49.png,
face/5.png,
face/50.png,
face/51.png,
face/52.png,
face/53.png,
face/54.png,
face/55.png,
face/56.png,
face/57.png,
face/58.png,
face/59.png,
face/6.png,
face/60.png,
face/61.png,
face/62.png,
face/63.png,
face/64.png,
face/65.png,
face/66.png,
face/67.png,
face/68.png,
face/69.png,
face/7.png,
face/8.png,
face/9.png,
gabor.m,
im1.jpg,
im2.jpg,
im2vec.m,
im3.jpg,
im4.jpg,
imscan.m,
license.txt,
loadimages.m,
main.m,
mminmax.m,
non-face/1.png,
non-face/10.png,
non-face/11.png,
non-face/12.png,
non-face/13.png,
non-face/14.png,
non-face/15.png,
non-face/16.png,
non-face/17.png,
non-face/2.png,
non-face/20.png,
non-face/21.png,
non-face/22.png,
non-face/23.png,
non-face/25.png,
non-face/26.png,
non-face/27.png,
non-face/28.png,
non-face/29.png,
non-face/3.png,
non-face/30.png,
non-face/31.png,
non-face/32.png,
non-face/33.png,
non-face/34.png,
non-face/35.png,
non-face/36.png,
non-face/37.png,
non-face/38.png,
non-face/39.png,
non-face/4.png,
non-face/41.png,
non-face/42.png,
non-face/43.png,
non-face/44.png,
non-face/45.png,
non-face/46.png,
non-face/47.png,
non-face/48.png,
non-face/49.png,
non-face/5.png,
non-face/50.png,
non-face/51.png,
non-face/52.png,
non-face/53.png,
non-face/54.png,
non-face/55.png,
non-face/56.png,
non-face/57.png,
non-face/58.png,
non-face/59.png,
non-face/6.png,
non-face/7.png,
non-face/8.png,
non-face/9.png,
readme.txt,
template1.png,
template2.png,
trainnet.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (96)
16 May 2006 Terry Duong

I have just download it and haven't check it yet. But iam sure it good. I am doing in face recognition using NN too. Hope i can learn a lot from yours

16 May 2006 Engin Kocaadam

Good work, but has some problems with exact detection.

21 Jun 2006 Tzafrir Shlomo

good work !!
thank you

22 Jun 2006 Tzafrir Shlomo

Dear Omid,
when we run the Main under Matlab we received the following errors:
??? Error: File: C:\MATLAB6p1\work\loadimages.m Line: 6 Column: 6
Missing operator, comma, or semicolon.

Error in ==> C:\MATLAB6p1\work\main.m
On line 41 ==> IMGDB = loadimages;
We would appreciate it if you could help us solving the problem.
best wishes,
Dr. Tzafrir Shlomo

24 Jun 2006 Alfa Gatriono Kencana

this gonna be a good work today
but, i still didn't get the point after using some RGB image. thanks for the reply. it's mean a lot to me

01 Aug 2006 saba hafez

when I create the exe file recive this massage whats means?
The ntvdm cpu has encountered an illegal instruction
Cs:____ ip:____ op: _ _ _ _ _ choose close to terminate the aplication

23 Aug 2006 Omid Bonakdar Sakhi

This source is for educational purpose only and is tested under MATLAB 7.0 . not for distribution or creating .exe files . Most of the compiling problems and building exe files return to Matlab bugs . Please check Matlab Bugs and Solutions .

26 Aug 2006 Bharat Knight

thanqs

23 Oct 2006 haoxue wang

good example

26 Oct 2006 aysel saberi

very googd

30 Oct 2006 Ngoc Hanh Dang  
09 Nov 2006 good good  
09 Dec 2006 leo mariaraj

hi like the project.But u should involve the final step of matching the rectangle marked face with image in database.which is actuall face recoginition

11 Dec 2006 klesk ch  
14 Dec 2006 gober good

excuse me sir,
my name is GoberGood.
I have been studying in Ahmad Dahlan University.
I have downloaded your program matlab about "face detection" at http://www.mathworks.com.
and I interest to develop your program
to finish the my master education. for that,
I hope to you to assist the me in collecting reference
of about " face detection" and problem any kind of which
you get when doing research. I very requiring of
your paper. forgiveness, if my english is bad.

29 Dec 2006 Greg Kirksey  
29 Dec 2006 bal krishna Kalidhar

I am in need of face recognition product for identification of few preselected faces out of crowd of 10000 moving on a railway plateform. product to be integrated to CCTV system of VEINT/ IngerSol Rand surveillance systems.
Please reply yes/no as i am serching such produc for presentation to High level security agency top brasses.
Col Kalidhar (retd)
91-011-9910045944

30 Dec 2006 Amirzeb Badshah

it was really interesting seeing people submitting their work.i hope to do so.it was a good experience.

06 Jan 2007 Mamatha Reddy

good

27 Jan 2007 waqas hijazi

Hi i am student of BCS and doing my poject in matlab.So i need help thats why i am visiting this site/

29 Jan 2007 Ankit Nagpal

Excellent work done.
BUT
Can anyone tell me...
How nn is used in face detection ?? (Iam a beginner in nn)

pleassssseeee......
ankit.nagpal@yahoo.co.in

29 Jan 2007 Ankit Nagpal

Help is insufficient on the role of nn in the project......

01 Mar 2007 Leonid Doroshenkov  
19 Mar 2007 m m  
24 Mar 2007 Avinash Pokhriyal

dear sakhi, the code is excellent but how it is implemented in MATLAB and how NN is used for it is not explained in detail. pl do some help on these areas.

24 Mar 2007 jain varsha

find the DCT format

08 Apr 2007 shrikant nangare

your program is awesome man.

18 Apr 2007 hossam mohammed  
28 Apr 2007 lisheng XU

Where is the mfile named adapthisteq?

25 May 2007 Patrick Storer

crazy

08 Jun 2007 siva kumar viswanadhuni

Very nice project sir,

24 Jun 2007 Luigi Rosa

The recognition rate of last release has been improved.

11 Jul 2007 Suvad Selman

Hello,
I am Suvad Selman and I have one thing to ask (report). I have download this file, unzip it and when i run main.m i got some strange error messages. Here is the message that I get:
*WARNING* PREMNMX is an obsolete function.

Use MAPMINMAX instead, type HELP PREMNMX for bug warning.
Type NNTWARN OFF to suppress NNT warning messages.

Please help me so that I can run this program normally.
Thanks in advance.

19 Jul 2007 a k

good

19 Jul 2007 newgirl newgirl  
22 Jul 2007 fer hadaf

I need a fuzzy connectivity toolbox for image segmentation.I can't find anything.plz help me!

30 Jul 2007 anil gaikwad

good

03 Aug 2007 swathi reddy

This is an excellent program i have ever seen in mathworks. Good job sir.

I am a student, working for my class project on "multi target tracking". it helped me a lot for the compleation of my project.Thanks a lot :)

16 Aug 2007 ihsan ihsan

Excelent Job, Sir.

22 Aug 2007 Lee Jack

Useless

27 Aug 2007 teerawat kamnardsiri  
03 Sep 2007 Sahar M

Hi dear Mr. Sakhi.I'm a AI student.I run your code & found it very interesting & usefull so I decided to use it as a part of one of my projects.I have some questions about your project:what sort of images can be used for train & specially for test,do you have any database for it?do you have any document & refrences about it(maybe in farsi)?I will be very appriciating if you let me have those docs.I hope to receive your reply as soon as possible.Thanks in advance for your help.

06 Sep 2007 karan sadarangani

when i try to train the network , it gives an error. do i have to do something before training the n/w

10 Sep 2007 VN Man

thanks u much

19 Sep 2007 bakri mamun

matlab

21 Sep 2007 QI YF

THANKS

22 Sep 2007 kundan debnath  
04 Oct 2007 Josiah Yoder

Notes:
To run under linux (ubuntu) with Matlab 7.3 (R2006b), I made the following changes:

 * Use / instead of \ for paths in loadimages.m
 * Use mapminmax( x' )' instead of premnmx( x )
   in imscan.m and im2vec.m

11 Oct 2007 vishal wankhede

Code has written by rich knoedge person

25 Oct 2007 Yaron M

got the following error after pressing train network button:

??? Error using ==> network.train
Inputs are incorrectly sized for network.
Matrices must all have 2160 rows.

Error in ==> trainnet at 17
net = train(net,P,T);

Error in ==> main at 36
        net = trainnet(net,IMGDB);

what to do?

26 Oct 2007 om yadav

well done

31 Oct 2007 Tom Shih

Real face image can't be found with large face

22 Nov 2007 muhammad ekbal ahmad  
30 Nov 2007 Ankur goyal

great work

25 Dec 2007 richal zhao

very interested in the subject

26 Dec 2007 bb bbbbb  
29 Dec 2007 jihong zhang

thank you !The result is very right.
But I don't know how to use the gaborfilter?

31 Dec 2007 kim Yeh

Very good.
This is an interesting subject.

01 Jan 2008 Abdallah Asrawi

Thanks Its Very nice But it need more work.
I wanna Ask can I use a part of the code in my Thesis Research.
My e-mail:asrwi@yahoo.com

18 Jan 2008 madhu jain

it is helpful in research work it is good

25 Jan 2008 cs joshi

can i have a little favour,by having the code of this excellent subject so that i can work more on this topic

05 Feb 2008 ewan n/a

thanx for giving this.may god bless you.it really help me.

06 Feb 2008 fayth yap

i am currently doing some survey on this title, could you pls do me a favour that to give me some guidance about this topic? your help will be much appreciated. I would like to ask another favour that could i have the code so i can understand more about this topic. Thanks

11 Feb 2008 hasan sadikin

could you pls do me a favour that to give me some guidance about this topic? your help will be much appreciated. I would like to ask another favour that could i have the code so i can understand more about this topic. Thanks

04 Mar 2008 ravi kiran

a nibble slow

10 Mar 2008 sandip pandao

very helful for new comers

13 Mar 2008 Phyu Moe

matlab Files

29 Mar 2008 Mohan G

hey. do anyone have any paper or thesis for this code... please mail me if u have.. it s very urgent... thanks in advance..
my email id is mohanxpressions@gmail.com

16 May 2008 nirjhar bhattacharjee

The codes can't detect face?
What can i do?
i followed the instruction too.
But....................

29 May 2008 AKROUT Belhassen

good application.
i encourage you to contenue in this project

02 Jun 2008 nzg ningzhigang  
04 Jun 2008 Srikrishna Bhat

With such a small data base a good classifier has been developed. Need to increase the speed.

04 Jun 2008 anila satish

is it advisable to carry out a research in face detection techniques using image rpocesisng and neural networks?

24 Jun 2008 Alex Mugioiu

I'm working for my PhD in "Face Recognition". I have a number of databases of still faces. In order to reduce the computational level and to discard the background information i tried your algorithm for detection, but with little success. I'm confident that with your guidance (in training and using the network) i can obtain much better results.
Thank you in advance.

30 Jun 2008 a a  
13 Jul 2008 fayth zed

Thanks for ur guidance, i have learned alot from it. I really appreciate ur help mr Omid Sakhi

20 Jul 2008 asher peretz  
24 Jul 2008 M V

nice

03 Aug 2008 chinmayananda mohapatra

good

25 Aug 2008 se df  
25 Aug 2008 r r  
14 Sep 2008 Ivelina Stefanova

User-friendly interface, nice.
The only drawback is that test images need to be re-sized as the algorithm may only recognise faces appr. 27 x 18 pixels.

07 Dec 2008 sara

wonderful work , thank you, but it did not detect large image with high resolution

10 Dec 2008 Sahar Mirzaei

i am currently doing some survey on object recognition and neural network.
Your code is wonderful. Do you have some guidance or documentation about it. It would be very nice, if you could send me some documentation about this topic, so that I can undrestand your code more better. Thank in advance for your help.

31 Dec 2008 Sivaraam

nice

02 Jan 2009 fayaz fayaz

i am currently doing this project on face recognition,
so currently i want to extract face from an image using matlab, could you pls do me a favour that to give me some guidance about this topic? your help will be much appreciated. I would like to ask another favour that could i have the code so i can understand more about this topic. Thanks

04 May 2009 Daniel N

very nice work

18 May 2009 Daniel N

nice

21 Sep 2009 Kourosh Afsari  
10 Oct 2009 Raymond Cheng

Thanks for your code.

03 Nov 2009 hala tbeel

hello .. I need to know how to extract features from facial images as mouth , noise and eyes .. please help me :(

13 Dec 2009 Omid Sakhi  
30 Jan 2010 hira

helloo...
i neeed help in implementing NN for Face detection and recognition
please help me

08 Feb 2010 siddharth shah  
21 Apr 2010 cui jianzhu

I have seen your Face Detection using Gabor feature extraction and neural network. Your Gabor feature extraction method is different from the papers. And I can not understand it. Can you introduce some materia about your code. Just like some Gabor formulas.

21 Jul 2010 Nishant Jha  
Please login to add a comment or rating.
Updates
23 May 2006

I have Added comments to all files to make them easy and understandable.

21 May 2007

Version 5.0 : Better Algorithm with a user's guide

14 May 2009

one article ( in Persian ) and one user guide ( in English ) are added to the project.

15 May 2009

Fixing the FIle Format

10 Aug 2009

I have only changed the description and added the address of the website for this program.

14 Dec 2009

Two fixes are solved.
1- correcting path for linux systems
2- problem of mapminmax for older versions of MATLAB

13 Jan 2010

replacing two functions with built-in functions, so that older versions of MATLAB can run the program correctly.

Tag Activity for this File
Tag Applied By Date/Time
application Omid Sakhi 22 Oct 2008 08:25:08
face detection Omid Sakhi 22 Oct 2008 08:25:08
neural networks Omid Sakhi 22 Oct 2008 08:25:08
application li hao 04 Nov 2008 09:47:43
face detection sake lingamaiah 18 May 2009 00:35:52
application elem guzel 22 May 2009 08:18:01
application elem guzel 22 May 2009 08:18:01
face detection elem guzel 22 May 2009 08:18:02
neural networks elem guzel 22 May 2009 15:15:01
feature extraction Omid Sakhi 03 Aug 2009 10:40:55
gabor filters Omid Sakhi 03 Aug 2009 10:41:06
image processing Omid Sakhi 03 Aug 2009 10:41:20
application Mr. Ram Kumar 15 Sep 2009 05:32:07
image processing Bibin Raj V.S 29 Nov 2009 01:13:43
face detection hemanth kumar 08 Dec 2009 23:16:31
self_rating Matt Fig 14 Dec 2009 14:28:15
eye detection in matlab rania aziz 08 Jan 2010 01:14:40
face detection using neural network Gaurav 11 Jan 2010 06:33:46
image processing bikram mehar 17 Jan 2010 01:04:52
eye detection in matlab Omid Sakhi 09 Feb 2010 04:48:51
face detection using neural network Nifty Sylph 17 Apr 2010 08:11:19
face detection kuoping 29 Jun 2010 06:55:26
application javed iqbal 20 Aug 2010 03:35:52
eye detection in matlab muhammad ahmed raza 23 Aug 2010 04:11:14

Contact us at files@mathworks.com