This application claims the priority benefit of Chinese application serial no. 201710733033.0, filed on Aug. 24, 2017. The entirety of the above-mentioned patent application is hereby incorporated by reference herein and made a part of this specification.
The invention relates to a facial feature recognition technique, and more particularly, to a device and a method for eyeliner-wearing guide.
The natural instinct of a female is beauty care. Many women will highlight their facial features through makeup. For example, the appearance may be enhanced or altered by putting on makeup at places like lips, eyes, eyebrows, etc. However, makeup is not one of the innate skills. Those who wish to improve the makeup effect can do so through a lot of learning together with regular practices.
Currently, makeup learners can obtain makeup information by getting related images/videos from the Internet. Nonetheless, the learning approach of getting related images/videos from the Internet can often lead to deviations or errors instead of expected result in actual practices. In particular, deviations or errors are likely to occur when putting on eye shadow or eyeliner around eyes. Accordingly, finding a way for learning makeup with modern equipments is one of the issues to be solved by manufacturers through development of new technologies.
The present disclosure provides a device and a method for eyeliner-wearing guide, which can be used to display a preferable eyeliner-wearing guide area according to a facial image of the user so the user can put on eyeliner according to the prompting provided by the eyeliner-wearing guide device. As a result, a convenient and interactive makeup teaching can be provided.
The device for eyeliner-wearing guide of the invention includes an image capturing device, a processor and a display. The image capturing device captures a facial image of a user, and the facial image at least includes an eye portion of the user. The processor is configured to receive the facial image, obtain a plurality of eye feature points according to the facial image, and obtain an eyeliner guide area by performing a calculation according to the eye feature points and an eyeliner type. The display displays the facial image of the user and the corresponding eyeliner guide area to guide the user for wearing a makeup according to the eyeliner guide area.
The method for eyeliner-wearing guide of the invention includes the following steps. A facial image of a user is captured, and the facial image at least includes an eye portion of the user. A plurality of eye feature points are obtained according to the facial image of the user, and an eyeliner guide area is obtained by performing a calculation according to the eye feature points and an eyeliner type. Also, the facial image of the user and the eyeliner guide area corresponding thereto are displayed to guide the user for wearing a makeup according to the eyeliner guide area.
Based on the above, with the device for eyeliner-wearing guide and the method for eyeliner-wearing guide provided by the present disclosure, the eyeliner guide area may be calculated and displayed according to the eye portion in the facial image of the user so that the user can be aware of the more preferable eyeliner-wearing area for makeup which allows the user to properly put on the eyeliner. In addition to the eyeliner guide area generated by utilizing the two adjacent eyelid feature points and the eyeliner width value corresponding to the eyeliner type, the eyeliner end guide point corresponding to different eyeliner types may also be generated by utilizing the outer corner feature point and the outer corner eyeliner width corresponding to the eyeliner type so that the eyeliner guide area may display the outer corner in different shapes. In this way, even if the user is not familiar with makeup, the user is still able to put on the eyeliner according to the prompt provided by the eyeliner-wearing guide device. As a result, a convenient and interactive makeup teaching can be provided.
To make the above features and advantages of the invention more comprehensible, several embodiments accompanied with drawings are described in detail as follows.
The accompanying drawings are included to provide a further understanding of the invention, and are incorporated in and constitute a part of this specification. The drawings illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
Reference will now be made in detail to the present preferred embodiments of the invention, examples of which are illustrated in the accompanying drawings. Wherever possible, the same reference numbers are used in the drawings and the description to refer to the same or like parts.
The image capturing device 110 is configured to capture a facial image of a user. The present embodiment aims to calculate for an ideal position for eyeliner-wearing by capturing an eye portion in the facial image of the user. Accordingly, it is required that the facial image of the user at includes the eye portion from a left-half face or a right-half face, so that a preferable relative position may be calculated for the eyeliner of the left-half face or the eyeliner of the right-half face. The image capturing device 110 is, for example, embedded camcorders (or cameras) or cell phones (or cameras) connected in external manner, which are not particularly limited by the disclosure.
The display 140 can display multimedia information and the facial image of the user in real time. For example, the display unit 140 can display the facial image of the user and provide options including multiple eyeliner types, distance adjustments for each eyeliner of the corresponding eyeliner type (e.g., stretching or shortening an outer corner eyeliner or an overall eyeliner width) and eyeliner colors for the user to select. In the present exemplary embodiment, the display 140 may be a display that is disposed behind a material with high reflection index (e.g., a mirror) and manufactured in combination with OLED (Organic Light-Emitting Diode). Thus, the user is able to see his/her own face through the mirror, and the display 140 may also display related information on the mirror for the user to check, touch and select. However, the disclosure is not limited to the above. The eyeliner-wearing guide device 100 of the present embodiment may also be an equipment disposed on a dressing table. A screen of the eyeliner-wearing guide device 100 may be disposed behind a mirror to display text or image for the user to view through the mirror. In other embodiments, the eyeliner-wearing guide device 100 may also be consumer electronic products (e.g., a smart phone, a tablet computer, etc.) or may be a portable mirror box formed in combination with a portable mirror.
The processor 135 can perform a calculation according to the facial image of the user captured by the image capturing device 110 so as to capture a plurality of facial feature points of the user related to the user's face (especially, eye feature points at an upper eyelid portion, a lower upper eyelid and an outer corner portion). Then, after an eyeliner guide area is obtained by performing a calculation according to the eye feature points and the eyeliner type by the processor 135, the facial image of the user and the eyeliner guide area are displayed by the display 140 so the user may be guided for wearing a makeup with reference to the eyeliner guide area. The above-mentioned “eyeliner type” may be customized by the user, or a preset eyeliner type may be selected by the user with assistance of the processor 135 according to a face shaped of the user obtained from the facial image. The eyeliner guide area of the present embodiment is an eyeliner guide area represented by dotted-line. Person who applies the present embodiment may also have the eyeliner guide area represented by ways of an upper eyelid/lower eyelid guide line, a direction arrow guide line, etc.
The processor 135 may be a central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), a programmable logic device (PLD) or other similar devices. The processor 135 is configured to run various software programs and/or instruction sets required for providing the eyeliner indication area. In the present exemplary embodiment, the processor 135 is a face detection system running a Dlib-based database (which may also be referred to as “Dlib Face Landmark”) to detect and analyze 194 facial feature points of the user's face. These facial feature points are used to represent various face portions including eyes, eyebrows, nose, lips, chin outline, etc. In other cases, it is also possible that only 119 facial feature points of the user's face are analyzed. Alternatively, the facial feature points of the user may be captured by using other algorithms for detecting the facial feature points. The present embodiment and the following embodiments are described using left eye feature points of the user as an example. For example, the feature points of a left eye are numbered by points 114 to 123 (for upper eyelid feature points), points 125 to 133 (for lower eyelid feature points) and a point 124 (for an outer corner feature point). Person who applies the present embodiment should be able to apply various computational methods and examples for the left eye feature points. The present embodiment is not limited to only the realization of the eyeliner guide area corresponding to the left eye, and the eyeliner guidance area corresponding to both eyes may also be realized.
In the present embodiment, when the user is facing the mirror while the eyeliner-wearing guide device 100 is running, the display 140 will display the facial image of the user and analyze each feature point in the facial image in real time. In order to facilitate the interaction with the eyeliner drawing guide device, in the present disclosure, an eyeliner guide area with better visual design for makeup is further calculated based on positions of the eye portion of the user. Then, such eyeliner guide area is displayed on the facial image of the user by the display 140 so as to prompt the user positions for eyeliner-wearing. Further, the user can adjust a thickness, a position, a shape, and a preset distance between eyelids for the eyeliner guide area through a display interface shown by
Each eyeliner width table in Table 1 to Table 6 is provided with the corresponding eyeliner width values corresponding to each of the upper eyelid feature points and the lower eyelid feature points. In Table 1 to Table 6, “Feature point number” refers to the feature points 114 to 133 of the left eye; “Eyeliner width” refers to the eyeliner width value corresponding to each of the eyelid feature points (the points 114 to 123 and 125 to 133) or the outer corner feature point (the point 124). Values of the “eyeliner width” are in centimeters (cm). Person who applies the present embodiment may also use pixel as the unit. The width of each pixel in the present embodiment may be 0.04 cm, and each centimeter is equal to a width of 25 pixels.
Detailed process of step S420 is described below with reference to
With reference to
Step S510 is described in detail as follows. The processor 135 can obtain a distance between the two adjacent eyelid feature points (the point A and the point C), and obtain a distance e (by dividing said distance into half) and a coordinate of a first indication point P1 at a middle of the two adjacent eyelid feature points (the point A and the point C). Then, the processor 135 checks the eyeliner width table corresponding to the eyeliner type for the two adjacent eyelid feature points (the point A and the point C) so as to obtain the eyeliner width values corresponding to the point A and the point C. Herein, it is assumed that the preset eyeliner type is “Downturned eyeliner” corresponding to Table 1. As such, according to Table 1, it can be known that both the eyeliner widths of the point A (114) and the point C (115) are 0.1. Therefore, an eyeliner width value d1 of the adjacent eyelid feature points (the point A and the point C) is set as 0.1 in the present embodiment. In the case where eyeliner widths corresponding to the two adjacent eyelid feature points are different, based on demand of person who applies the present embodiment, an average value between the two eyeliner widths, as well as a maximum value or a minimum value among the two eyeliner widths may serve as the eyeliner width value d1. In other words, the eyeliner width value corresponding to the adjacent eyelid feature points is obtained according to the eyeliner width table of the eyeliner type.
After obtaining the distance e and the eyeliner width value d1, the processor 135 can calculate an angle θ according to a half of the distance e and the eyeliner width value d1. The angle θ is an included angle between a first line segment L1 formed by connecting the two adjacent eyelid feature points A and C and a second line segment L2 formed by connecting the eyeliner reference point (e.g., the point B1) with one of the two adjacent eyelid feature points (e.g., the point A). Equation for calculating the angle θ is provided as follows.
Then, the processor 135 can calculate a coordinate of the eyeliner reference point B1 according to the angle θ and a first indication point P1 at the middle of the two adjacent eyelid feature points A and C. Equation for calculating the coordinate of the eyeliner reference point B1 is provided as follows.
It should be noted that, the other adjacent eyelid feature points (e.g., the points 115 and 116, the points 116 and 117, the points 117 and 118; the points 125 and 126, the points 126 and 127, the points 127 and 128) may also serve as the point A and the point C, so that the processor 135 can calculate the eyelid reference point (e.g., the points B2, B3, B4; the points B11, B12, B13) corresponding to the adjacent upper eyelid feature points and the adjacent lower eyelid feature points according to the above equation. The points B2 to B10 are the eyeliner reference points of the adjacent upper eyelid feature points 115 to 123, respectively; the points B11 to B20 are the eyeliner reference points of the adjacent lower eyelid feature points 125 to 134, respectively.
Referring back to
First, the processor 135 calculates a second indication point P2 at a middle of the first upper eyelid feature point 123 and the first lower eyelid feature point 125. Further, the processor 135 obtains an outer corner eyeliner width value d2 (e.g., 1.2 cm) according to the eyeliner width table (e.g., Table 4) corresponding to the eyeliner type (e.g., the long eyeliner) of the outer corner feature point 124. Subsequently, the processor 135 forms an outer corner reference point PF that is distanced from the outer corner feature point 124 by the outer corner eyeliner width value d2 in a direction DL from the second indication point P2 towards the outer corner feature point.
Next, the processor 135 forms the eyeliner end guide point according to the eyeliner type and the outer corner reference point PF. In the case where the eyeliner type is the long eyeliner/the downturned eyeliner/the wide-set eyeliner, the outer corner reference point PF will be the eyeliner end guide point since the outer corner of these eyeliner type does not turn upwardly. On the other hand, in the case where the eyeliner type is the upturned eyeliner, since the outer corner does turn upwardly, the processor 135 can calculate an eyeliner end guide point PF1 according to the outer corner PF and a preset upturn angle a. Equation for calculating the eyeliner end guide point PF1 is provided as follows.
Referring back to
A major difference between the present embodiment including
The upper eyelid feature points NF1 may be the 114th to 124th feature points of the left eye E1 in “Dlib Face Landmark”; the upper eyelid feature points NF2 may be the 134th to 144th feature points of the right eye in “Dlib Face Landmark”. The lower eyelid feature points NF3 may be the 125th to 133rd feature points of the left eye in “Dlib Face Landmark”; the lower eyelid feature points NF4 may be the 145th to 153rd feature points of the right eye in “Dlib Face Landmark”. The first preset distance D1, the second preset distance D2 or the third preset distance D3 may be a spacing of one, five, eight or ten pixels. Person who applies the present embodiment may adjust a length of the first preset distance D1, the second preset distance D2 or the third preset distance D3 based on demand, and may also change a value of the first preset distance D1, the second preset distance D2 or the third preset distance D3 according to the adjustment of the user. The preset distances D1, D2 and D3 may also be represented by tables used in the foregoing embodiment so each of the upper eyelid feature points or the lower eyelid feature points can correspond to a different distance. In this way, the upper eyeliner guide lines EL1 and EL2 and the lower eyeliner guide lines EL3 and EL4 may be generated with different shapes according to the different eyeliner type.
In the step S430 of
In summary, with the device for eyeliner-wearing guide and the method for eyeliner-wearing guide provided by the present disclosure, the eyeliner guide area may be calculated and displayed according to the eye portion of the facial image of the user so that the user can be aware of the more preferable eyeliner-wearing area for makeup which allows the user to properly put on the eyeliner. In addition to the eyeliner guide area generated by utilizing the two adjacent eyelid feature points and the eyeliner width value corresponding to the eyeliner type, the eyeliner end guide point corresponding to different eyeliner types may also be generated by utilizing the outer corner feature point and the outer corner eyeliner width corresponding to the eyeliner type so that the eyeliner guide area may display the outer corner in different shapes. In this way, even if the user is not familiar with makeup, the user is still able to put on the eyeliner according to the prompt provided by the eyeliner-wearing guide device. As a result, a convenient and interactive makeup teaching can be provided.
It will be apparent to those skilled in the art that various modifications and variations can be made to the structure of the present invention without departing from the scope or spirit of the invention. In view of the foregoing, it is intended that the present invention cover modifications and variations of this invention provided they fall within the scope of the following claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
201710733033.0 | Aug 2017 | CN | national |