AIDeployment in Face Detection and Face Recognition Model by Implementing Computer Vision

Shital Gawade *  Aniket Kothawale **  Jagdish Deshpande ***
*-*** Department of Electronic Science, Tuljaram Chaturchand College, Baramati, Maharashtra, India.

Abstract

As we all know, many more computer technologies are becoming popular for discrete applications these days, but identity verification for biometrics and security purposes is critical in industrial systems, banking systems, educational systems, and mobile systems, among other places. On that scenario identifying and recognizing the facial features is a basic requirement for authentication to reduce the embezzlement in above mentioned systems. Face detection is one of the computer technology and psychological process implemented to examine the human faces in digital images, however in face recognition system information of human face captured by camera or video frames is compared with the datasets of images. For considered system, 15 different datasets are taken for this training model to recognize the faces of different individuals. Till now lot of researches has been done on facial detection but some limitations like accuracy, real time face detection exists. This algorithm has more speed and accuracy to identify images with respect to feature extraction like nose, eyes and mouth of human being that varies from person to person. The proposed algorithm uses AI to match above unique features of individuals with databases of faces and find the name of that individual. It is used to authenticate clients via ID verification systems for preventing crime, unlocking devices, providing blind assistance, biometric systems, and payments, etc.

Keywords :

Introduction

Biometrics is the measurement of a person's physical attributes for the purpose of verifying their identity. It encompasses physiological traits like thumb prints and eye retina, as well as facial recognition, security, and authentication. The proposed system works without any human support and hardware. The most important aspect of this concept is the use of computer vision to detect and identify visual frames. In image processing, an image is processed and a transformation is applied to it in order to obtain the final image. In contrast, computer vision is a branch of artificial intelligence that instructs computers to illuminate and assess visual studios using various image processing methods. The model presented here uses different classifiers, libraries to identify face from image databases. The model's procedure is to first initialise the computer or mobile phone's camera, read images, convert them to grey scale for ease detection, then transmit the frame to the algorithm, load it into the model, and finally identify the frame with its Id and accuracy. Face detection algorithm analyses the position of images, the size and shape of eyes, nose, and mouth of frontal face photographs, and extracts features. Categorization for face detection algorithms is described by Sun et al. (2014). The methods of face detection is shown in Figure 1.

Figure 1. Methods for Face Detection

Knowledge based method follows the set of rules and also human knowledge to discover the faces. Template Matching method uses pre-determined face layouts to locate or detect the faces by the relationship between the face layouts and input images. The feature-based method detects faces by extracting structural features of the face for which the classifier is trained initially. The appearance-based method hang on a set of representative training facial images to search face models. This approach is effective than other methods. Statistical analysis and machine learning type techniques are implemented in appearance based method to observe appropriate attributes of images. Appearance based approach is further divided into Eigen face-Based, Distribution-Based, Neural-Networks, Support Vector, Machine Sparse Network of Winnows, Naive Bayes Classifiers, Hidden Markov Model and many more algorithms are used for face detection, emotion detection, object detection.

1. Literature Review

Many researchers did the research on face detection by applying various techniques. Jones and Viola (2003), and Viola and Jones (2004) describes the system which utilized the Adaboost algorithm to achieve high detection rate for processing the images. Mita et al. (2005), and Talele et al. (2012) proposed the face detection system based on a new feature that is Joint Haar like feature by applying Adaboost algorithm to acquire efficiency and accuracy. Chi et al. (2019) used Selective Refinement Network (SRN) in face detection to obtain high performance. Pham and Cham (2007) suggested the fast training and Haar feature based system which employed statistics of input data to minimize the training time.

2. Proposed Work

The flow diagram or methodology is shown in Figure 2.

Figure 2. Workflow for Face Detection and Face Recognition Model

2.1 Haar Cascade Frontal Face Algorithm

Haar cascade classifier has the following classifiers like haarcascade_eye and haarcascade_frontalface_ default as explained in Figure 3. For instructing the classifier, algorithm needs a number of image frames.

Figure 3. Face Model

2.2 Open CV

Open CV has been invented at Intel in 1999 by Gary Bradsky and supports wide varieties of programming languages such as C++, JAVA, Python, etc., accessible on various podiums as Windows, Linux, Android, etc. Open CV is a library of programming functions trained for real-time computer vision, machine learning and image processing. With this library images as well as videos are processed to detect objects, human faces. If it merged with different libraries like Numpy (Numerical Python) which is a library for the Python programming language and highly advanced library for numerical operations, multidimensional arrays and matrices including high-level mathematical functions performs the operation on these arrays. Besides that other libraries also imports to algorithm like scipy, imutils, mahotasetc for face identification and verification.

2.3 LBPH Face Recognizer

Figure 4. LBPH Algorithm

3. Methodology

Human brain identifies different faces everyday effortlessly and easily however for computer this is a very complex task as it has more variables. So in computer, recognition of individual is performed based on its digital image using various algorithms, libraries and identifies etc. Artificial intelligence and machine learning technologies are implemented to do such type of task, so AI plays a very significant role in face detection and recognition using image frames. Face detection and face recognition differs from each other. Face detection is to find human face in the images and extract them as in Figure 5, and face recognition means images are cropped, resized and converted into grayscale images, and algorithms are used to find features describing images. In this model, first initialize the camera used for getting images, images are then resized and and converted into grayscale.

Figure 5. Face Detection

Aside from that, a face detection technique such as the Haar algorithm, as well as a face recognition classifier, are to be loaded as the database in Figure 6. The grey scale image is split into 3 x 3 pixels and described as a 3 x 3 matrix using the LBPH algorithm. The centre value of the matrix is utilised as a threshold and is used to transform into its binary value for neighbours. Concatenate each binary value into a decimal number and use it as the matrix's central value. Finally, a new image is created that displays the features of the original image, which is then divided into several grid lines, resulting in a histogram with 0 to 255 positions. After comparing input image to the training dataset or histogram the algorithm returns the image with closest histogram and we find final match.

Figure 6. Data Bases

Conclusion

Conclusion The proposed model is efficient and is able to detect and recognize the human face as well as blurr image in real time using computer vision based on unique features like eyes, nose, mouth which are different from person to person with 90% to 95% accuracy. It requires large dataset of facial images and detects frontal face. The accuracy of model depends upon the as the number of images increases, the accuracy also increases. This model is deployed where biometrics are needed such as security system, attendance systems, ID verification systems etc.

References

[1]. Chi, C., Zhang, S., Xing, J., Lei, Z., Li, S. Z., & Zou, X. (2019, July). Selective refinement network for high performance face detection. In Proceedings of the AAAI Conference on Artificial Intelligence (Vol. 33, No. 01, pp. 8231-8238). https://doi.org/10.1609/aaai.v33i01.33018231
[2]. Jones, M., & Viola, P. (2003). Fast multi-view face detection. (TR-20003-96). Mitsubishi Electric Research Laboratories, Cambridge, MA. Retrieved https://www.merl.com/publications/docs/TR2003-96.pdf
[3]. Mita, T., Kaneko, T., & Hori, O. (2005, October). Joint haar-like features for face detection. In Tenth IEEE International Conference on Computer Vision (ICCV'05) (Vol. 2, pp. 1619-1626). IEEE. https://doi.org/10.1109/ICCV. 2005.129
[4]. Pham, M. T., & Cham, T. J. (2007, October). Fast training and selection of haar features using statistics in boosting based face detection. In 2007, IEEE 11th International Conference on Computer Vision (pp. 1-7). IEEE. https://doi.org/10.1109/ICCV.2007.4409038
[5]. Sun, Y., Wang, X. D., & Tang, X. (2014). Deep learning face representation by joint identification-verification. Advances in Neural Information Processing Systems, 27, 1988-1996.
[6]. Talele, K. T., Kadam, S., & Tikare, A. (2012). Efficient face detection using Adaboost. In IJCA Proceedings on International Conference in Computational Intelligence (Vol. 10).
[7]. Viola, P., & Jones, M. J. (2004). Robust real-time face detection. International Journal of Computer Vision, 57(2), 137-154. https://doi.org/10.1023/B:VISI.0000013087.492 60.fb