Вы находитесь на странице: 1из 11

# 7/19/13

## Face Detection Code

A practical guide to face detection using Gabor feature extraction and neural networks in MATLAB.

The Simplest, Most Effective Way To Learn Face Detection

"Thank you very much for your most valuable teaching. The information provided by you have been very useful to my project. You did a very good job for the students and the researchers by providing the information a bout face detection. The ebook was very informative and it is very helpful to my project (Face Recognition using PCA, LDA and Bayesian Classifier)." - From E. Raj

Here's The Simplest, Most Effective Way To Learn Face Detection (Or Object Detection) And Jumpstart Your Project
without spending so much time not knowing what to do or where to start
www.facedetectioncode.com 1/11

7/19/13

## Face Detection Code

Detecting faces or in general, objects, inside gray-level images is still a hard topic for new researches and students all over the world. It's certainly not your fault. Many researches who do not have access to the right resources, struggle for weeks and months before they understand how to manage their project. Sometimes the problem happens because the most of the available papers have a space limit and the authors can not put the basic and essential materials inside those papers. As a result, it is very likely that you encounter vague mathematical formulas that even after several times skimming the paper you still cannot understand them without reading some references. The other part of the problem is that you are not experienced enough to understand methods by just reading and examining other people's programs. In some cases it is even more practical to write your own program than try to understand a code that you find on the Internet without the help of the program's author. And the other problem is that there exist lots of ways to do object detection using machine learning techniques, neural networks, support vector machines, boosting,... Even more, there are many methods for feature extraction; using Gabor filters, Wavelets, Viola Jones, SVD, ... Considering all the problems above, what happens most of the time is that you start reading more and more papers, books and resources and you avoid doing the only thing that you are asked; Writing the code and get the results and finish your study..

## But There is a Simple and Effective Way

In fact, it's something you can start tapping into in the next few minutes (provided you pay close attention to what you're about to read).The best way to learn and start your project is to learn it from another program that works, while you have access to the author and the thoughts behind each and every line of the program. Face Detection System for MATLAB is one of the best programs that you can learn from. There is a reason behind each line of the program and if you know them and if you follow the program line by line, you will be able to change the program or parameters and adapt it for your own project. And Eventually you will have enough wisdom to write a program without knowing it.

## Here is How It Works ...

Face detection is the first and foremost step in any automated face recognition system. Its reliability greatly affects the performance and usability of the whole system. Given a single image or a video frame, an ideal face detector should have the ability to locate all the present faces inside that image, regardless of their position, facial gestures, variations in scale and orientation. Furthermore it should be robust against variation in illumination, skin color or background ... Several clues may facilitate the detection process. Skin color (for detecting faces in colourful images and videos) is one that often can be used. Motion (for detecting faces in video) is another well-known clue that can be estimated by analyzing several video frames in a row. But the hardest kind of detection is face detector in
www.facedetectioncode.com 2/11

7/19/13

## Face Detection Code

grey-level still images, in which there is no cue of any type such as color or motion. The processing is usually done as follows:

## Step One: Feature Extraction Function

You need a function that can transform a small patch of image into a vector. If you only reshape the 2D patch into a 1D vector, it is still a function and correct. But in practice it contains several stages. This function is the feature extraction function and should extract features in a wise manner, followed by a normalization. In Face Detection System for MATLAB, Gabor features are extracted from the patch and you will learn all about it in the guide that you are about to download.

## Step Two: Generating Data for Training

The next thing that you have to do is to crop some images with the same height and width. The height and width is the same size as the patch that we talked about in the previous step. Crop them using any editing software that you have; Paint, Gimp or PhotoShop.Then you use the feature extraction function that you already have and generate a vector for each image. You should store each vector in a matrix, so that it can be used later for the training of the classifier. Not only you need the data for faces, you also need data for patches that does not contain any face. Sometimes gathering these information is a challenge because you don't really know what is not a face. This problem is discussed in detail in the guide as well as how to read all the files and store them in the matrix.

## Step Three: Train The Classifier

Every detection system needs a classifier that looks at your vector and decides if it is the deal or not. In case of face detection, the classifier looks for faces. The main issues are to choose your classifier and set the parameters in a way that you get reasonable results. Face Detection System for MATLAB uses Neural Network as its classifier. Everything regarding how to generate the network and train it is discussed inside the guide in detail.

## Step Four: Scan a Picture

Then an image is scanned at all possible locations [and scales] by a sub-window (patch). Each patch is fed to the feature extraction function and the output vector goes to the classifier. There are ways to pre-select possible locations and how to pin point the location of the faces. .

Who Am I?
My name is Omid. Currently I perform research in Computer Vision and Image
www.facedetectioncode.com 3/11

7/19/13

## Face Detection Code

Processing. I am the author of Face Detection System for MATLAB. In year 2006, It took me three months to figure out all the details to write this program. Later that year, I uploaded my program in MATLAB's file exchange; Face detection using Gabor feature extraction and neural networks. With nearly 1000 downloads per month, it became one of the best face detection programs developed in MATLAB for educational purposes. You can also see my ranks in MATLAB's File Exchange Center and you can also find me on my Facebook page. The guide that you can download on this page is the result of hundred questions that I got from new students how wanted to write the same for their project. It is a line-by-line analysis of the Face Detection System program.

## In This Guide You Will Learn:

Artificial Neural Networks Perceptron Neuron Single Layer Perceptron Multi-Layer Feed-Forward Backpropagation Network
(Creating - Input and Output - Initialization - Training - Testing and Simulation - Error Computation - Training Set Generation)

## Feature Extraction (Gray-Level Features - Histogram Equalization - Illumination Effects - Normalization)

www.facedetectioncode.com 4/11

7/19/13

## Other Elements of a Face Detection System (PreSelection - Search Algorithm - Post-Processing)

Future Work (on Pre-Selection - on Feature Selection - on Classification - on Fast Convolutional Neural Networks)

And Naturally, I'm Not Going To Skimp You On a Guarantee: I'm Giving You 30 Days To Put It To The Test
I'm going to let you take 30 days to work through this guide and see just how solid it is at delivering the goods. And if you don't think this guide kicks ass - for any reason - just ask for a refund. So you'll get your money back nice and fast. Even last month someone mistakenly bought two copies and I refunded one of the automatically. As you know in PayPal, it is as simple as a click on "Issue Refund". Will some people take advantage of this 1-month guarantee and return the guide even though it's working really well for them? Undoubtedly, yeah. But I'm betting that you're "good people."
www.facedetectioncode.com 5/11

7/19/13

## Face Detection Code

Bottom line is - this is the real deal. You'll love it, or you get your money back. Couldn't be easier.

## Others Say ...

www.facedetectioncode.com

6/11

7/19/13

## Face Detection Code

www.facedetectioncode.com

7/11

7/19/13

## Face Detection Code

www.facedetectioncode.com

8/11

7/19/13

## Are You Ready?

Download the ebook now without any risk for \$23. I Guarantee that if it doesn't help you, Keep it for free
and ask for a full-refund.

An email will be sent to you with the download link and my secret email address that only you can ask your questions and get advise on your project. Don't lose that email ...

Whenever you need an advise on your project, you can ask for some insights and I will try to help you as much as possible.

## Disclaimer: The information contained

in this guide is for informational and educational purpose only. Any information or code in this book is either based on my own experience or from another educational source. You should always seek the advice of a professional before acting on something that I have published or recommended. Any use of these codes for security purposes or other activities which involve the life of others, is not recommended without seeking the advice of the experts. This site and the products and services offered on this site are not
associated, affiliated, endorsed, or sponsored by Google and Youtube, nor have they been reviewed tested or certified by Google, YouTube, Amazon, Aweber, Paypal, or any of the sites mentioned on the site.
www.facedetectioncode.com 9/11

7/19/13

## Face Detection Code

Find Me

Omid Sakhi
Like 157 people like Omid Sakhi.

## F acebook social plugin

www.facedetectioncode.com

10/11

7/19/13