# I. Introduction utomated face detection is an interesting and important computer vision problem with many commercial and law enforcement applications. It is very easy for human beings but very hard to automate in computerized applications. In practice, applications of automatic face recognition include access control, video-surveillance, identity variation, etc. The problem of automating the process of human face recognition is very complex and depends on many parameters such as lighting conditions, facial expressions, positions and orientations of the human faces. Researches in automatic face recognition started in the 1960s. There has been significant progress in the recent years that includes a number of face recognition and modeling systems. The Viola-Jones object detection framework is the first object detection framework to provide competitive object detection rates in real-time proposed in 2001 by Paul Viola and Michael Jones. [1] [2]This algorithm is implemented in OpenCV. The basic problem to be solved is to implement an algorithm for detection of faces in an image. This can be solved easily by humans. However there is a task contrast to how difficult it actually is to make a computer successfully solve this task. In order to easy the task Viola-Jones limit themselves to full view frontal upright faces. If we want to detect the entire face must point towards the camera and it should not be tilted to any side.A brief introduction to the foundations of face detection algorithms have discussed is this paper. For Face detection we have used viola jones algorithm and try to improve the detection changing the threshold value of image and describe the problem of detection. Face detection is a feature based approach in which face geometry is taken which includes face shape and other facial features like mouth, eyes, nose etc. The algorithm requires 2-D images whose threshold values of intensities are taken into consideration in the measurement of the number of the pixels to get the entire face feature area. We also compute the boundary box value where the detection portion are exist. From detected face image we separate the extracted part of face which are nose, eyes and lip and hole face portion by Discontinuous based Image Segmentation. # II. Related Researches Researches in automatic face recognition started in the 1960s. The first attempt to automated facial recognition approach consisted of checking the measurements between different facial features such as the corners of the eyes, the hair lines, holes of nose etc. This attempt was not that much successful. Towards the end of 1980s, the eigenfaces2 techniques prompted more intense researches which were used to find a face in a photo and to compare the images of field has reached up to that point where the operational use of facial recognition on high resolution frontal image was now feasible. The Viola and Jones face detector is the first ever face detection framework to provide successful face detection in real time. It contains three main ideas that make it possible to run in real time: the integral image, classifier learning with Adaboost, and the intentional cascade structure [1]. However, it produces a high false positive rate and false negative when directly applied to the input image. Various research contributions have been made to overcome these problems, such as using pre-filtering or post-filtering methods based skin color filter to provide complementary information in color images. In [2] [3] the authors proposed an interesting method to reduce the false detection by using a skin color as a prefiltering stage prior to the application VJFD. In [4] the authors proposed a hybrid method to reduce false positive in the VJFD by using skin color face postfiltering method in HSV color space. To reduce the effects of lighting, the authors in [5] applied an illumination compensation algorithm in the first step and then, they combine VJFD and the skin color detector to detect face. In [13] the authors proposed a method to reduce the false positive rate and keeping the high detection rate of the VJFD in real applications. In [6] the author has been proposed an algorithm for face detection based on edge information and hue. Though the results were not accurate for all type of images. Recently, a lot of research is being done in the vision community to accurate face detector in real work application, in particular, the seminal work by viola and Jones [7]. The Viola and Jones face detector has become the de facto standard to built successful face detection in real time, however, it produces a high false positive (detecting a face when there is none) and false negative rate (not detecting a face that's present) when directly applied to the input image. # III. Image Segmentation Image segmentation is one of the most essential part in digital image processing. In image segmentation, images are divided into multiple set of pixels, generally required to detect the region of interest (ROI) from an image based on some homogeneity criteria such as color, intensity or texture, which helps to locate and identify objects or boundaries in an image. There are currently different kind of algorithm, for doing the segmentation process. Each of them are separate from each other. Currently image segmentation approach, based on two properties of an image, is divided into two categories: a) Discontinuities based In this category, subdivision of images are done by the basis of suddenly changes of the intensity of grey levels of an image. Our task is primarily based on identification of isolated points, lines and edges. This include image segmentation like edge detection. # b) Similarities based In this category, subdivision of images are done by the basis of similarities in intensity or grey levels of an images. Our task here is on determine of similar points, lines and edges. It is also includes image segmentation algorithms like thresholding, region growing, region splitting and merging. There are different kind of method for Image segmentation and one of them is edge detection based. There are many different ways to perform edge detection, however, two most prominent used algorithm is Gradient Based Method and Gray Histogram Technique. We have used a operator of Gradient Based Method which is sobel operator. Gradient is the first derivative for image f(x, y). In an image when there is an abrupt change in the intensity near edge [9]. Basically sobel operator, canny operator, Laplace operator, Laplacian of Gaussian (LOG) operator etc is used as operator in gradient based method. Usually canny operator is used but there are a problem. Because it takes more time as compared to sobel operator. For this reason we have used Sobel operator. The sobel operator consists of a pair of 3×3 convolution kernels map as shown in Figure 1.One kernel is simply the other rotated by 90°. These kernels are designed to edges running vertically and horizontally relative to the pixel grid, one kernel for each of the two perpendicular orientations. The kernels can be applied separately to the input image, to produce separate measurements of the gradient component in each orientation (call these Gx and Gy). Typically, an approximate magnitude is computed using: which is much faster to compute. The angle of orientation of the edge (relative to the pixel grid) giving rise to the spatial gradient is given by [7]: # IV. Viola Jones Object Detection Framework The viola jones is a object detection frame work which is used to detect the human face. The main concept of the Viola-Jones algorithm is capable of detecting faces across a given input image. The viola jones performed operation in each pixel of a required area . [11]. # a) Feature Selection The Viola-Jones face detection framework work in a analyzes a given sub-window using features consisting of two or more rectangles, such as two- Rectangle feature of an image can be measure by using an intermediate representation for the image which we call the integral image. [4] The integral image at location x, y contains the sum of the pixels above and to the left of x, y, inclusive: (7) (8) (9) | | ? | | | | | | (1) where ii (x, y) is the integral image and i (x, y) is the original image (see Fig. 2). Using the following pair of recurrences (2) (3) where s(x, y) is the cumulative row sum, s(x,?1) =0, and ii (?1, y) = 0) the integral image can be computed in one pass over the original image. Using the integral image any rectangular sum can be computed in four array references (see Fig. 3). One alternative motivation for the integral image comes from the "boxlets" work of Simard et al. # Methodology The process for build up the propose system will be included parts: ? Face Image Acquisition: ? Smoothing/Filtering ? Features Extraction ? Image segmentation. After performing detection it is possible to detect the human face and segment the different part of face. The process of getting image from any source, especially hardware is called as image acquisition. For image acquisition we can use normally digital camera. In the image processing it is impossible without image receiving/acquisition. The sweetest Acquisition process is a digital camera into various formats such as Bitmap, JPEG, GIF and TIFF etc. We can also collect image from different kind of we page. # b) Smoothing/Filtering The purpose of smoothing is to reduce noise and improve the visual quality of the image often; smoothing is referred to as filtering. For this purpose of filtering we have used Gaussian Filtering Techniques. The Gaussian function are given below: (6) If the image is not noisy it is not necessary to filtering. Because filtering is not suitable for every image. We have use filtering for better result if necessary. # c) Features Extraction It is obvious that feature is very significant to any object detection algorithm. In matlab 2013 have used computer vision object detector tool box. For feature selecting here used the viola jones algorithm. Basically, there are a lot of features, such as eyes, nose, the topology of eye and nose, can be used for face detection. In viola jones face detection, a very simple and straightforward feature has been used. Each feature can be obtained by subtracting white areas from the black areas. Here, the area means the summation of all the pixels' gray value within the rectangle. Aiming at calculating these features, a special representation named as integral image has been used. In figure 15 face has found 3, nose found 2 and one mouth. But it's detection is incorrect. In figure 16 shows a side view of face image. In this case it doesn't found any face. # VII. # Conclusion In our task we trying to improve the face detection using viola john algorithm and segment the part of face like eyes, nose, lip etc. Then make the edge detection to convert image into binary image which can use in various purpose in image processing field .In our research we only work with the frontal face of human. If we use side view of image it cannot detect correctly. In future we will try to detect the face from various orientation, angle, geometric view and we want make classification of human face base on this information we extracted from this work. We will try to classify face expression based on segmentation of lip and mouth region. We think it will be very efficient for classification and detection. VIII. 1![Fig. 1 : Masks used by Sobel Operator](image-2.png "Fig. 1 :") 2![Fig. 2 : Two-rectangle features are shown in (A) and (B).Figure (C) shows a three-rectangle feature, and (D) a four-](image-3.png "Fig. 2 :") ![Fig. 2 : Two-rectangle features are shown in (A) and (B).Figure (C) shows a three-rectangle feature, and (D) a fourrectangle feature. There are many different types of artificial intelligence techniques to train a classification function. The Viola-Jones method used a simple and efficient classifier which based on AdaBoost learning technique, which formulated by Freund and Schapire in [13].If we want to get best result from this algorithm image have to in proper lighting condition include all facial properties like (skin color, glasses, facial hair).Here we first describe about the integral image. b) Integral Image Computation](image-4.png "") 1134![Fig. 3 : The value of the integral image at point (x, y ) is the sum of all the pixels above and to the left. The sum of the pixels within rectangle D can be computed with four array references[12]: ? The value of the integral image at location 1 is the sum of the pixels in rectangle A. The value at location 2 is A + B, at location 3 is A + C, and at location 4 is A + B + C + D. ? The sum within D can be computed as 4+1?(2 +3).A two-rectangle feature can be computed in six array references -for any scale](image-5.png "[ 11 ]Fig. 3 :Fig. 4 :") 34![2016 Global Journals Inc. (US) rectangle features, three-rectangle features and fourrectangle features, shown in Figure-2. The simple features used Haar basis functions[12]: Every feature calculate results come from in a single value which is calculated by subtracting the sum of the white rectangle(s) from the sum of the black rectangle(s). c) Learning Algorithm It is a Adaboost Training algorithm. It is a machine learning boosting algorithm. This algorithm capable of constructing a "strong" classifier though a weighted combination of a linear combination of weighted simple "weak" classifiers. (Each weak classifier is a threshold function based on the feature ð??"ð??"j.](image-6.png "? 3 © 4 )") 556![Fig. 5 : The detection based on cascade Classifiers e) Algorithm The overall Viola-Jones algorithm is summarized below:](image-7.png "( 5 )Fig. 5 :Fig. 6 :") 7![Fig. 7 : Block Diagram Detection and Segmentation Process](image-8.png "Fig. 7 :") 5![First I have detect the face then other parts of the face. If it cannot extract the face It will not find the any part of feature of face. It also compute the boundary box value which performs multi-scale object detection on the input image and return M-by-4 matrix.d) SegmentationIn our research Image segmentation dividing human face image into multiple parts. This is typically used to identify objects or other relevant information in digital images. From detected face image we separate the extracted part of face which are nose, eyes and lip and hole face portion by Discontinuous based Image Segmentation which is Edge detection. The segmentation of image using edge detection convert in a binary image. For image segmentation and edge detection we have used sobel operator of Gradient Based Method.VI. Experiments and Experimental ResultsAll the methods, techniques and algorithms have implemented using open CV in Matlab. It is enriched with many toolbox which make our research very smooth and easy. For object detection we have vision cascades object detector toolbox which embedded with Matlab 2013.First we read an image by imread () function. Then crop the image by imcrop () function. Then convert the RGB image into the gray 2016 Global Journals Inc. (US)](image-9.png "5 ©") 10![Fig. 8 : Original image Fig. 9 : Cropped Gaussian filter Gray scale image](image-10.png "Fig. 10 :") 111314![Fig. 11 : Crop and Edge Detection of Face Fig. 12 : Crop and Edge Detection of Eyes](image-11.png "Fig. 11 :Fig. 13 :Fig. 14 :") 15![Fig. 15 : Incorrect Detection of face, nose, eyes, mouth. Fig. 16 : Side view of image where face not detect](image-12.png "Fig. 15 :") © 2016 Global Journals Inc. (US) 1 © 2016 Global Journals Inc. (US) 1 © 2016 Global Journals Inc. (US) 8. Paul Viola and Michel J. Jones: "Rapid Object Detection Using a Boosted Cascade of Simple ## Acknowledgement The author would like to thanks to the Ministry of Information and Communication Technology of Bangladesh for giving financial support by providing MOICT-Fellowship. * boosting-based face detection and adaptation, Synthesis ChaZhang ZhengyouZhang Lectures on Computer Vision (Book) by Cha Zhang et al. 2010 * Face Detection in Color Images Using AdaBoost Algorithm Based on Skin Color Information Yan-WenWu Wuhan, Xue-Yi Ai Huazhong Normal Univ. * A hybrid face detection system using combination of appearance-based and featurebased methods ZSTabatabaie RWRahmat NIUdzir EKheirkhah IJCSNS International Journal of Computer Science and Network Security 9 5 May 2009 * Hybrid face detection in color images MNiazi SJafari IJCSI International Journal of Computer Sciences Issues 7 2010 * Combining haar feature and skin color based classifiers for face detection CEErdem SUlukaya AKaraali ATErdem IEEE 36th International Conference on Acoustics, Speech and Signal Processing 2011 ICASSP 2011 * Improved Viola-Jones Face Detector ShanshanWang AmrAbdel-Dayem Canada Department of Mathematics and Computer Science, Laurentian University Sudbury * Edge Based Human Face Detection Using Matlab PoonamDhankhar NehaSahu Proceedings of IRF International Conference IRF International Conference 16th February 2014 CSE ITM University Gurgaon-Haryana * Features Proceedings of the 2001 IEEE Computer Society Conference on Computer Vision and Pattern Recognition the 2001 IEEE Computer Society Conference on Computer Vision and Pattern Recognition 2001 1 * RajeshwarDass SwapnaPriyanka Devi Image Segmentation Techniques" IJECT 3 1 Jan. -March 2012 * Edge Detection Techniques Evaluations and Comparisons Ehsan Applied Mathematical Sciences 2 31 2008 * Robust Real-Time Face Detection PaulViola MichaelJJones International Journal of Computer Vision 57 2 2004 * A decision-theoretic generalization of online learning and an application to boosting YFreund RESchapire Journal of Computer and System Sciences 55 1997 * An Optimistic Approach For Implementing Viola Jones Face Detection Algorithm In Database System And In ShailyPand SandeepSharma Real Time" IJERT July-2015 4