• No results found

Research on Virtual Makeup System Based on SDM

N/A
N/A
Protected

Academic year: 2020

Share "Research on Virtual Makeup System Based on SDM"

Copied!
6
0
0

Loading.... (view fulltext now)

Full text

(1)

2017 3rd International Conference on Computer Science and Mechanical Automation (CSMA 2017) ISBN: 978-1-60595-506-3

Research on Virtual Makeup System Based on SDM

Jie LI1,a, Ying-Liang FU2,b,* and Xiao JIA3,c

1

Dalian Maritime University No 1, Lingshui Road High-tech District, Dalian, Liaoning, China

2

Dalian Maritime University No 1, Lingshui Road High-tech District, Dalian, Liaoning, China

3

Unit 3, Room 802, Dibaqu High-tech District, Dalian, Liaoning,China

a

[email protected], [email protected], c [email protected]

Keywords: Face detection, Contour extraction, Gamma Correction, Virtual makeup.

Abstract. This paper presents a visual-based virtual makeup system, which uses a camera to turn a user's computer into a virtual mirror. With this system, users do not need to experience in physical store, through the computer user can pick their own designated color lipstick, and to see their lip’s color effect of lipstick in real time.The system first detects the user's face and the positions of user's lips. Based on feature point detection and alignment, the SDM[1] algorithm is used to detect the lip’s feature points in real time. It is highly accurate, fast and it can meet the real-time requirements. We set the lips as the region of interest, then smooth the edge of lips, through the gamma correction to solve the lips of the light compensation because light compensation have a big influence to my lip makeup effect, and finally to achieve lip color. The user can freely choose the lipstick color in the video to watch the effect of the using lipstick. The biggest advantage of the system compared to other existing lip systems is it’s real-time and accuracy.

Introduction

There are many varieties of lipstick on the market, how to effectively choose safe products? every woman is very concerned about the problem. In the brand counter may have trial equipment, it can be for customers to try, but because too many people try, and for a long time there is no sealed state may deteriorate, so people who’s skin is easy to allergic can not try cosmetics to avoid cross-infection.

Facing the above problems, this paper combined image processing and computer vision technology to explores a real-time lip coloring method, extracts the lips contour by using the accuracy of the SDM[1] algorithm, and corrects the influence of uneven illumination by using gamma correction. Makeup technology provide users with a makeup effect after the very intuitive virtual lip effect, so as to carry out the actual makeup of the user and personalized image packaging to provide a valuable reference. In the final, this article will be in the form of software systems.

System Framework

System Diagram

(2)
[image:2.595.248.347.70.268.2]

Fig. 1 Flow Chart Of Makeup

Landmark Alignment

The SDM[1] algorithm avoids the problem that the Hessian matrix is not definite and the computationally large in the Newton method in the least squares method, which saves the computational complexity and detects the high accuracy of the lips. Face alignment can be framed as minimizing Eq. 1 over ∆x:

 

 

2

0 0 * 2

(

)

( (

))

f x

x

h d x

x

(1)

Where φ∗= h (d (x∗)) represents the SIFT[2] values in the manually labeled landmarks. In the

training images, φ∗and Δx are known. Newton’s method creates a sequence of updates as Eq. 2 

1

1

(

) (

)

k k k f k

x

x

H

x J x

(2)

It is unlikely that the algorithm can converge in a single update step unless f is quadratic under x. To deal with non-quadratic functions, the SDM will generate a sequence of descent directions. So SDM using Eq. 3

  

1 1 1

1

k k- k k k

x

x +R

b

(3)

SDM solves the difficult problem of H and J, It optimizes the least squares method by calculating the product of H and J. Fig. 2 shows the flow chart of calculating SDM:

Fig. 2 The process of calculating SDM

The following is the iterative comparison graph of the two algorithms under different Hessian

k k k k k

x  x 1  R 11  b 1

Artificially marked training sample library and Rk-2,bk-2...R0,b0

[image:2.595.96.524.612.748.2]
(3)
[image:3.595.182.415.111.389.2]

matrices, it shows that the SDM algorithm has better iterative effect. Abscissa is newton step, and the ordinate is normalized error.

Fig. 3 Two method’s comparison when H(x)=x3

Fig. 4 Two method’s comparison when H(x)=ERF(x)

The Fig. 3 and Fig. 4 shows SDM converges with the same number of iteration as Newton method, but each iteration is faster. Moreover, SDM is more robust against bad initializations and ill-conditions.

[image:3.595.207.407.581.696.2]

There’s many methods for face alignment, such as Active Appearance model[2], Morphable models[3], Eigentracking[4], they build an object appearance and shape representation by computing Principal Component Analysis (PCA) on a set of manually labeled data. Constrained Local Models (CLM) [5] model this prior similarly as AAM assuming all faces lie in a linear subspace expanded by PCA bases. Saragih et al.[6] proposed a non-parametric representation to model the posterior likelihood and the resulting optimization method is reminiscent of mean-shift. In [7], the shape prior was modeled non-parametrically from training data. Now we compared SDM with AAM if the face have a block under LFPW datasets[8], we can found SDM more suitable for us, their effect as Fig. 5:

Fig. 5 Different between SDM and AAM if there is a block

Green is SDM and red is AAM. This shows that if there is a block, SDM effect is stronger than SDM.so this is the reason we choose SDM.

SDM algorithm have a good alignment effect when people smile, conversation and other non-exaggerated expression, the effect of their different expressions as Fig. 6:

0 0.2 0.4 0.6 0.8 1 1.2

0 2 4 6 8

SDM Newton

0 0.5 1 1.5

0 2 4 6 8

(4)
[image:4.595.164.451.70.113.2]

Fig. 6 Different expression renderings

Contour Extraction And Smoothing Filter

Firstly, the edge detection of the image is realized by the morphological gradient edge detection operator, and the direction information of the edge is taken into account in the process, so that the main edge of the image can be better tracked. Finally, the contour information of the object is extracted by rolling expansion, The direction control condition factor is introduced in the process of moving the structural elements, which reduces the computational redundancy. The experimental results show that the method can realize edge detection and contour extraction with high precision.

[image:4.595.219.377.300.344.2]

For the 20 feature points of the lip detection, the green line is connected into the communication area, it can be regarded as a preliminary outline as shown in Fig. 7, by using Gaussian filtering, the image area is blurred and smooth, smooth contour edge looks more natural.

Fig. 7 Gaussian filter effect graph

Gamma Correction

[image:4.595.211.380.544.676.2]

In image processing, illumination is always an important factor affecting image quality. In order to effectively weaken the influence of illumination on the image quality, a reasonable Gamma value change curve is constructed by the method of superposition of nonlinear function, which makes the Gamma correction[9] method fully adapt to the actual situation of illumination change in the image and effectively prevent the situation image is distorted using gamma correction. Experiments show that the method has good performance in improving the image illumination condition and improving the image quality. In the light compensation, histogram equalization[10] is also an important method to solve the uneven illumination. The Fig. 8 and Fig .9 shows the results of gamma correction and histogram equalization. It can be seen that the effect of Gamma correction is more uniform than that of histogram equalization. So this paper uses the Gamma correction method.

Fig. 8 Gamma correction effect

Fig. 9 Histogram equalization effect

dst

src I

1[ ] *

alpha src I

2[ ] *

beta

gamma

;

(4)

We can adjust the alpha and beta values in Eq. 4, the lip contours is changed to be translucent, and ultimately achieve image fusion.

(5)
[image:5.595.146.453.166.404.2]

In this paper, this system has many advantages, for example, the video-based virtual makeup technology is real-time compared with the traditional 2D virtual lip technology, users can observe the using effect of user’s different angles, and maintain lip shape stability in the smiling state. Due to the limitations of feature point detection, users in the performance of exaggerated expression, the effect will be unsatisfactory. This is our next step to optimize the direction. The final make-up effect is as Fig. 10:

Fig. 10 Left And Right Direction lip Make-up effect

By using our system, users only need to click the keyboard toggle button to change the color of lipstick, we provide more than 10 colors for the user to select, later will increase. The system is to meet the needs of consumers in the selection of cosmetics on the Internet, this system make the purchase more convenient.

When our system deal with complex expressions, there will be cosmetic effect of the situation. The reason is that the accuracy of the facial feature point detection is changed with the change of the face angle. Our next step is to optimize the accuracy of the feature point detection and improve the usability of the system.

Acknowledgement

First and foremost, I would like to show my deepest gratitude to my supervisor, Dr. Fu Ying-liang, a respectable, responsible and resourceful scholar, who has provided me with valuable guidance in every stage of the writing of this thesis. Without his enlightening instruction, impressive kindness and patience, I could not have completed my thesis. His keen and vigorous academic observation enlightens me not only in this thesis but also in my future study.

References

[1] Xuehan Xiong and Fernando De la Torre, “Supervised Descent Method and its Applications to Face Alignment”, in CVPR, 2015

[2] T. Cootes, G. Edwards, and C. Taylor. Active appearance models. TPAMI, 23(6):681–685, 2001. 2,4, 6

(6)

[4] R M. J. Black and A. D. Jepson. Eigentracking: Robust matching and tracking of objects using view-based representation. IJCV, 26(1):63–84, 1998. 1, 2

[5] D. Cristinacce and T. Cootes. Automatic feature localisation with constrained local models. Journal of Pattern Recognition, 41(10):3054–3067, 2008. 3, 6

[6] J. Saragih, S. Lucey, and J. Cohn. Face alignment through subspace constrained mean-shifts. In ICCV, 2009. 3

[7] P. N. Belhumeur, D. W. Jacobs, D. J. Kriegman, and N. Kumar. Localizing parts of faces using a consensus of exemplars. In CVPR, 2011. 2, 3, 5, 6

[8] P. N. Belhumeur, D. W. Jacobs, D. J. Kriegman, and N. Kumar. Localizing parts of faces using a consensus of exemplars. In CVPR, 2011. 2, 3, 5, 6.

[9] Paul Viola, Michael Jones, “Robust real-time face detection,” International Journal of Computer Vision, vol. A247, pp. 529-551, 2004.

Figure

Fig. 2 The process of calculating SDM
Fig. 3 Two method’s comparison when H(x)=x3
Fig. 8 Gamma correction effect
Fig. 10:

References

Related documents

The grain size of the films decreases with the dopant concentration, results in lowering the dielectric constant (Table 1).. Dielectric constant of BST thin films as

Comparative study of psychiatric patients receiving treatment in tertiary care hospital and in primary health care

Western blots of sera from mice immunized with whole oocysts (control group), oocyst walls, and soluble extract (Fig. 3) dem- onstrated an immune response to a large number of

conservative Protestants is due to social and economic factors associated with both cohabitation..

Cricket club; water ski club; soccer; rifle club; dairy club; sororities; fraternities; entomology society; student wildlife society; Tarleton bands; Tarleton rangers; mixed media;

Based on concepts established by the Millennium Ecosystem Assessment, this study uses the Corporate Ecosystem Service Review as an analytical framework to identify priority