Makeup teaching method and device, electronic device, and storage medium

By acquiring user facial images and makeup teaching materials, and determining and marking makeup locations, the problem of lack of interaction in existing video makeup teaching is solved and the accuracy and success rate of makeup teaching are improved.

CN113781271BActive Publication Date: 2024-10-08YUANLI JINZHI (CHONGQING) TECHNOLOGY CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202110874705.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-30
Publication Date
2024-10-08
Estimated Expiration
2041-07-30

AI Technical Summary

Technical Problem

The existing video makeup teaching method lacks interaction with learners, resulting in poor teaching effect and inability to effectively guide users to perform makeup operations in the correct position.

Method used

By obtaining the target user's facial image and makeup teaching materials, the target makeup location is determined, and the makeup location is displayed on the client or server side to guide the user to perform makeup operations at the corresponding location, increasing interactivity and accuracy.

Benefits of technology

The interactivity and accuracy of makeup teaching are improved, allowing users to better keep up with the teaching rhythm, master the essentials of makeup, and improve the success rate of makeup.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113781271B_ABST
    Figure CN113781271B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a makeup teaching method and device, electronic device, and storage medium, the method comprising: in response to a makeup teaching request triggered by a target user, obtaining facial makeup teaching materials corresponding to the target user; wherein the facial makeup teaching materials include makeup teaching image information indicating makeup information, and the makeup information includes makeup position information; based on the facial image of the target user and the makeup position information, determining the target makeup position of the target user; and instructing the target user to perform corresponding makeup operations at the target makeup position. This solution plays a role of makeup prompting, allowing students to keep up with the teaching rhythm and improve the success rate of makeup teaching.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a makeup teaching method and device, an electronic device, and a computer-readable storage medium. Background Art

[0002] Makeup, also known as cosmetics, is the use of cosmetics and tools, taking regular steps and techniques to render, draw, and arrange the face, facial features, and other parts of the human body to enhance the three-dimensional impression, adjust the shape and color, cover up defects, and show the spirit, so as to achieve the purpose of beautifying visual perception. Makeup can show the unique natural beauty of a person; it can improve the original shape, color, and quality of a person, and add beauty and charm.

[0003] At present, there are also many video makeup teaching methods. However, for the existing video makeup teaching methods, most of them are videos recorded by teachers doing makeup on themselves, or on a face model or model's face, for users to watch and learn. However, this makeup teaching method is separated from the interaction between learners and the teaching effect is poor. Summary of the invention

[0004] The embodiment of the present application provides a makeup teaching method to guide users to put on makeup and provide a makeup success rate.

[0005] The present application embodiment provides a makeup teaching method, comprising:

[0006] In response to a makeup teaching request triggered by a target user, acquiring facial makeup teaching materials corresponding to the target user; wherein the facial makeup teaching materials include makeup teaching image information indicating makeup information, and the makeup information includes makeup position information;

[0007] Determining a target makeup position of the target user based on the facial image of the target user and the makeup position information;

[0008] The target user is instructed to perform a corresponding makeup operation at the target makeup position.

[0009] In one embodiment, in response to a makeup teaching request triggered by a target user, obtaining facial makeup teaching materials corresponding to the target user includes:

[0010] In response to the makeup teaching request, acquiring a facial image of the target user;

[0011] Determining makeup type information matching the target user according to the facial image;

[0012] Determine facial makeup teaching materials corresponding to the target user according to the makeup type information.

[0013] In one embodiment, the makeup teaching request carries makeup type information;

[0014] Accordingly, in response to the makeup teaching request triggered by the target user, obtaining the facial makeup teaching material corresponding to the target user includes:

[0015] Determine facial makeup teaching materials corresponding to the target user according to the makeup type information.

[0016] In one embodiment, determining the facial makeup teaching material corresponding to the target user according to the makeup type information includes:

[0017] Searching for facial makeup teaching materials corresponding to the makeup type information from a pre-established facial makeup teaching material library, and determining the facial makeup teaching materials found as the facial makeup teaching materials corresponding to the target user;

[0018] or,

[0019] The facial makeup teaching material corresponding to the makeup type information is searched from a pre-established facial makeup teaching material library; based on the facial image of the target user, the basic makeup information currently existing for the target user is determined; based on the basic makeup information currently existing for the target user, the teaching material corresponding to the basic makeup information in the facial makeup teaching material is eliminated to obtain the facial makeup teaching material corresponding to the target user.

[0020] In one embodiment, determining a target makeup position of the target user based on the facial image of the target user and the makeup position information includes:

[0021] Extracting first position information of key facial points of the facial image and second position information of key facial points in the makeup teaching image information;

[0022] Constructing a location mapping relationship between the second location information and the first location information according to the first location information and the second location information;

[0023] The target makeup position of the target user is determined according to the makeup position information indicated in the makeup teaching image information and the position mapping relationship.

[0024] In one embodiment, instructing the target user to perform a corresponding makeup operation at the target makeup position includes:

[0025] The target user's facial image with the target makeup position marked thereon is displayed so that the target user performs a makeup operation at the target makeup position.

[0026] In one embodiment, instructing the target user to perform a corresponding makeup operation at the target makeup position includes:

[0027] The target makeup position of the facial image is sent to the client where the target user is located, triggering the client where the target user is located to display the facial image marked with the target makeup position.

[0028] In one embodiment, after instructing the target user to perform a corresponding makeup operation at the target makeup position, the method further includes:

[0029] Acquire the current facial image of the target user;

[0030] Determining a color value and / or makeup position information of a current makeup based on the current facial image;

[0031] According to the color value and / or makeup position information of the current makeup, the target user is instructed to correct the makeup.

[0032] In one embodiment, before acquiring the facial makeup teaching material corresponding to the target user, the method further includes:

[0033] Get makeup tutorial videos;

[0034] Repetitive image frames in the makeup teaching video are removed to obtain at least one frame of makeup teaching image information;

[0035] Determining makeup information in each frame of the makeup teaching image information;

[0036] Based on the makeup teaching image information of each frame and the corresponding makeup information, facial makeup teaching materials are generated.

[0037] The present application also provides a makeup teaching device, comprising:

[0038] A material acquisition module, configured to respond to a makeup teaching request triggered by a target user and acquire facial makeup teaching materials corresponding to the target user; wherein the facial makeup teaching materials include makeup teaching image information indicating makeup information, and the makeup information includes makeup position information;

[0039] A position determination module, configured to determine a target makeup position of the target user based on the facial image of the target user and the makeup position information;

[0040] The makeup instruction module is used to instruct the target user to perform corresponding makeup operations at the target makeup position.

[0041] The present application also provides an electronic device, the electronic device comprising:

[0042] processor;

[0043] a memory for storing processor-executable instructions;

[0044] Wherein, the processor is configured to execute the above-mentioned makeup teaching method.

[0045] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. The computer program can be executed by a processor to complete the above-mentioned makeup teaching method.

[0046] The technical solution provided by the above-mentioned embodiments of the present application obtains the facial image of the target user when conducting makeup teaching, and based on the facial image of the target user and the makeup position information in each frame of makeup teaching image information, finds the target makeup position in the facial image to be applied with makeup, and instructs the target user to perform corresponding makeup operations at the target makeup position, thereby increasing the interaction between the makeup teaching and the target user's face, and serving as a reminder of the position to apply makeup, so that students can fully keep up with the teaching rhythm, master the essentials of makeup, and improve the success rate of makeup. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the technical solution of the embodiments of the present application, the drawings required for use in the embodiments of the present application are briefly introduced below.

[0048] Figure 1 is a structural schematic diagram of an electronic device provided by an embodiment of the present application;

[0049] Figure 2 It is a schematic diagram of the process of the makeup teaching method provided in the embodiment of the present application;

[0050] Figure 3 yes Figure 2 Detailed flowchart of step S210 in the corresponding embodiment;

[0051] Figure 4 yes Figure 2 Detailed flowchart of step S220 in the corresponding embodiment;

[0052] Figure 5 yes Figure 2 A schematic diagram of a makeup correction process provided based on the corresponding embodiment;

[0053] Figure 6 It is a schematic diagram of generating facial makeup teaching materials provided in an embodiment of the present application;

[0054] Figure 7 It is a detailed flowchart of a makeup teaching method provided by an embodiment of the present application;

[0055] Figure 8 is a detailed flowchart of a makeup teaching method provided by another embodiment of the present application;

[0056] Fig. 9 It is a block diagram of a makeup teaching device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0057] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0058] Similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0059] In recent years, research on computer vision, deep learning, machine learning, image processing, image recognition and other technologies based on artificial intelligence has made important progress. Artificial Intelligence (AI) is an emerging science and technology that studies and develops theories, methods, technologies and application systems for simulating and extending human intelligence. Artificial intelligence is a comprehensive discipline involving many types of technologies such as chips, big data, cloud computing, the Internet of Things, distributed storage, deep learning, machine learning, neural networks, etc. Computer vision, as an important branch of artificial intelligence, specifically allows machines to recognize the world. Computer vision technology usually includes face recognition, liveness detection, fingerprint recognition and anti-counterfeiting verification, biometric recognition, face detection, pedestrian detection, target detection, pedestrian recognition, image processing, image recognition, image semantic understanding, image retrieval, text recognition, video processing, video content recognition, behavior recognition, 3D reconstruction, virtual reality, augmented reality, simultaneous localization and mapping (SLAM), computational photography, robot navigation and positioning and other technologies. With the research and advancement of artificial intelligence technology, this technology has been applied in many fields, such as security, urban management, traffic management, building management, park management, facial access, facial attendance, logistics management, warehouse management, robots, intelligent marketing, computational photography, mobile phone imaging, cloud services, smart homes, wearable devices, unmanned driving, automatic driving, smart medical care, facial payment, facial unlocking, fingerprint unlocking, identity verification, smart screens, smart TVs, cameras, mobile Internet, live streaming, beauty, makeup, medical beauty, and smart temperature measurement.

[0060] Figure 1 1 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 100 can be used to execute the makeup teaching method provided in an embodiment of the present application. Figure 1As shown, the electronic device 100 includes: one or more processors 102, and one or more memories 104 storing processor executable instructions. The processor 102 is configured to execute the makeup teaching method provided in the following embodiment of the present application.

[0061] The processor 102 can be a gateway, a smart terminal, or a device including a central processing unit (CPU), a graphics processing unit (GPU), or other forms of processing units with data processing capabilities and / or instruction execution capabilities. It can process data of other components in the electronic device 100 and control other components in the electronic device 100 to perform desired functions.

[0062] The memory 104 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 102 may run the program instructions to implement the training method of the key point detection model or the key point detection method described below. Various applications and various data, such as various data used and / or generated by the application, may also be stored in the computer-readable storage medium.

[0063] In one embodiment, Figure 1 The electronic device 100 shown may also include an input device 106, an output device 108, and a data acquisition device 110, which are interconnected via a bus system 112 and / or other forms of connection mechanisms (not shown). Figure 1 The components and structures of the electronic device 100 shown are merely exemplary and non-limiting. The electronic device 100 may also have other components and structures as required.

[0064] The input device 106 may be a device for a user to input instructions, and may include one or more of a keyboard, a mouse, a microphone, a touch screen, etc. The output device 108 may output various information (e.g., images or sounds) to the outside (e.g., a user), and may include one or more of a display, a speaker, etc. The data acquisition device 110 may acquire an image of an object, and store the acquired image in the memory 104 for use by other components. Exemplarily, the data acquisition device 110 may be a camera.

[0065] In one embodiment, the various components in the example electronic device 100 for implementing the makeup teaching method of the embodiment of the present application can be integrated or dispersed, such as integrating the processor 102, memory 104, input device 106 and output device 108 into one, while separating the data acquisition device 110.

[0066] In one embodiment, the example electronic device 100 for implementing the makeup teaching method of the embodiment of the present application can be implemented as an intelligent terminal such as a smart phone, a tablet computer, a car-mounted device, a desktop computer, a server, etc.

[0067] Figure 2 Schematic diagram of the makeup teaching method provided in the embodiment of the present application. Figure 2 As shown, the method may include the following steps S210-S230.

[0068] Step S210: In response to a makeup teaching request triggered by a target user, acquiring facial makeup teaching materials corresponding to the target user.

[0069] Among them, the facial makeup teaching material includes makeup teaching image information indicating makeup information. Makeup teaching image information refers to a face image marked with makeup information. In a specific embodiment, the makeup information may include makeup position information. In some other embodiments, in addition to the makeup position information, the above-mentioned makeup information may also include any one or more of the makeup information that needs to be drawn at the position indicated by the above-mentioned makeup position information, the makeup product information that needs to be used, the makeup tool information, and the explanation content. The makeup position information is used to indicate the makeup position in each frame of the makeup teaching image, the makeup product information is used to indicate what brand, type, and color of cosmetics are used, and the makeup tool information is used to indicate what auxiliary tools are used for makeup. The explanation content can be in text or voice form to explain the makeup essentials.

[0070] The target user refers to a user who is learning to put on makeup. In one embodiment, the target user can click on the makeup teaching software, so that the makeup teaching software client receives the makeup teaching request. The target user can also click to select a type of facial makeup teaching material, so that the client receives the makeup teaching request. In response to the received makeup teaching request, the client can obtain the facial makeup teaching material from the local or server end.

[0071] In another embodiment, the makeup teaching request can also be sent from the client to the server. The client responds to the trigger instruction of the target user clicking on the makeup teaching software or clicking to select a type of facial makeup teaching material, and sends the makeup teaching request to the server. The server responds to the makeup teaching request and can obtain the facial makeup teaching materials corresponding to the target user stored locally.

[0072] It should be noted that there may be only one kind of facial makeup teaching material, or there may be facial makeup teaching materials suitable for different face shapes (such as round face, oval face, rectangular face, square face, oval face), or facial makeup teaching materials for different types of makeup (daily makeup, party makeup, transparent makeup, smoky makeup, stage makeup).

[0073] Step S220: determining a target makeup position of the target user based on the facial image of the target user and the makeup position information.

[0074] The target makeup position refers to the makeup position in the facial image, and the makeup position corresponds to the makeup position information in the makeup teaching image. Determining the target makeup position of the target user can be performed by the client or the server.

[0075] Step S230: instructing the target user to perform corresponding makeup operations at the target makeup position.

[0076] The indication method may be to directly display the facial image with the target makeup position marked, or to send the facial image with the target makeup position marked to the client for display.

[0077] It should be noted that the execution subject of the method provided in the embodiment of the present application can be a client or a server, or it can be implemented by the client and the server cooperating with each other, such as step S210 and step S220 are executed by the server, and step S230 is executed by the client. Of course, it can also be other combinations, which will not be listed one by one in the embodiments of the present application.

[0078] In one embodiment, assuming that the target makeup position is calculated by the client, the client can directly display the target user's facial image with the target makeup position marked, thereby achieving the effect of teaching the target user that he can perform makeup operations at the target makeup position. The target makeup position can be marked by displaying a specific mark at the target makeup position, and the specific mark can be a red dot, a circle, a cross, etc.

[0079] In one embodiment, assuming that the target makeup position is calculated by the server, the server can send the target makeup position of the facial image to the client where the target user is located. The client where the target user is located receives the target makeup position, which can trigger the client where the target user is located to display the facial image marked with the target makeup position, thereby achieving the effect of teaching the target user that he can perform makeup operations at the target makeup position.

[0080] In one embodiment, when the client displays the target user's facial image with the target makeup position marked, the makeup product information corresponding to each makeup teaching image frame can also be prompted in the form of text, pattern or voice.

[0081] The makeup product information may include product types and brands. Different makeup teaching images may be configured with the same or different makeup product information. The makeup product information corresponding to each makeup teaching image may be configured in advance.

[0082] Prompt in the form of text, pattern or voice, for example, display the pattern corresponding to xx brand "lipstick" on the display interface of the target user's face image, directly display the text "xx brand lipstick", and voice prompt "xx brand lipstick". This can help remind students what products to use for makeup.

[0083] In one embodiment, when the client displays the target user's facial image with the target makeup position marked, a voice teaching segment corresponding to the makeup teaching image can also be played.

[0084] Among them, the voice teaching clip can be recorded in advance and stored in the client or server. The client can also download it from the server through the network. The voice teaching clip can be considered as the pre-recorded explanation of the makeup process by the makeup artist. For example, for drawing eyebrows, a voice teaching clip of drawing eyebrows can be recorded and bound to the makeup teaching image of drawing eyebrows. When the makeup teaching image of drawing eyebrows is obtained, the voice teaching clip of drawing eyebrows can be played.

[0085] The technical solution provided by the above-mentioned embodiments of the present application can find the target makeup position in the facial image to be made-up based on the makeup position information in each frame of makeup teaching image information, and instruct the target user to perform corresponding makeup operations at the target makeup position, thereby serving as a prompt for where to do makeup, allowing students to keep up with the teaching rhythm, master the essentials of makeup, and improve the success rate of makeup.

[0086] Optionally, in a specific embodiment, as Figure 3 As shown, the above step S210 may include steps S211 to S213.

[0087] Step S211: In response to the makeup teaching request, obtaining a facial image of the target user.

[0088] The facial image of the target user can be acquired by a smart device with a camera where the makeup teaching software client is located. In one embodiment, the client can obtain the facial image of the target user in response to the makeup teaching request. In another embodiment, the server can also obtain the facial image of the target user from the client in response to the makeup teaching request.

[0089] Step S212: Determine makeup type information matching the target user based on the facial image.

[0090] The client or server can determine the facial contour according to the facial image, and then compare it with the facial contours of different face shapes to determine the face shape of the target user, so that the makeup type information matching the target user can be the face shape makeup. For example, the makeup type information can be one of round face makeup, oval face makeup, rectangular face makeup, square face makeup, and oval face makeup.

[0091] Step S213: determining facial makeup teaching materials corresponding to the target user according to the makeup type information.

[0092] In one embodiment, the client or server may establish a facial makeup teaching material library in advance, which includes facial makeup teaching materials corresponding to each face shape, and according to the makeup type information (e.g., round face makeup) determined in step S212, the facial makeup teaching material corresponding to the makeup type information (e.g., round face makeup) may be searched from the facial makeup teaching material library. The found facial makeup teaching material is used as the facial makeup teaching material corresponding to the target user.

[0093] In another embodiment, it is assumed that the target user has completed some makeup, referred to herein as basic makeup, and needs to refer to teaching materials to continue to complete the remaining makeup, so there is no need to start teaching from the first frame of makeup teaching image. Specifically, the client or server can search for facial makeup teaching materials corresponding to makeup type information from a pre-established facial makeup teaching material library. Then, based on the target user's facial image, determine the target user's current basic makeup information. The basic makeup information is used to indicate which positions of the facial image have been completed with makeup. For example, the color of the makeup position of the face image without makeup and the face image of the target user can be compared, and the makeup position with a large color difference can be considered as the position where makeup has been completed.

[0094] Afterwards, based on the target user's current basic makeup information, the teaching materials corresponding to the basic makeup information in the facial makeup teaching materials may be removed to obtain the facial makeup teaching materials corresponding to the target user.

[0095] The facial makeup teaching material indicates the makeup position information of each frame of makeup teaching image information. Since the position where makeup has been completed does not need to be taught again, the teaching material corresponding to the position where makeup has been completed is deleted from the facial makeup teaching material, and the remaining teaching material is considered to be the teaching material of the makeup to be completed. In the future, makeup teaching can be performed only based on the remaining teaching material of the makeup to be completed.

[0096] In another embodiment, the makeup type can also be selected by the target user. The target user can select a makeup type (e.g., stage makeup, round face makeup, etc.) according to his / her needs. Based on the selection triggered by the target user, the client or server can receive a makeup teaching request. The makeup teaching request can carry makeup type information. One makeup type can correspond to one facial makeup teaching material, and thus, the client or server can determine the facial makeup teaching material corresponding to the target user according to the makeup type information.

[0097] In one embodiment, the facial makeup teaching materials corresponding to each makeup type may be stored in a database, and the client or server may search for the facial makeup teaching materials corresponding to the makeup type information from a pre-established facial makeup teaching material library, and then use the searched facial makeup teaching materials as the facial makeup teaching materials corresponding to the target user;

[0098] In another embodiment, assuming that the target user has completed some basic makeup, refer to the above, after finding the facial makeup teaching materials corresponding to the makeup type information from the pre-established facial makeup teaching material library, the target user's current basic makeup information is determined based on the target user's facial image; based on the target user's current basic makeup information, the teaching materials corresponding to the basic makeup information in the facial makeup teaching materials are eliminated to obtain the facial makeup teaching materials corresponding to the target user for subsequent makeup teaching.

[0099] Optionally, in a specific embodiment, as Figure 4 As shown, the above step S220 specifically includes the following steps S221-S223.

[0100] Step S221: extracting first position information of key facial points of the facial image and second position information of key facial points in the makeup teaching image information;

[0101] The key points of the face may include the corners of the eyes, the corners of the mouth, the tip of the nose, and other positions. For example, the key points of the face in the face image and the key points of the face in the makeup teaching image information may be extracted by a feature point detection algorithm. For the purpose of distinction, the coordinates of each key point of the face in the face image may be referred to as the first position information. The coordinates of each key point of the face in the makeup teaching image information may be referred to as the second position information.

[0102] Step S222: constructing a position mapping relationship between the second position information and the first position information according to the first position information and the second position information.

[0103] The position mapping relationship may be a transformation function f(x) that transforms the second position information x into the first position information y.

[0104] Step S221: determining a target makeup position of the target user according to the makeup position information indicated in the makeup teaching image information and the position mapping relationship.

[0105] On the basis of obtaining the above position mapping relationship, the makeup position information indicated in the makeup teaching image information can be used as x1, substituted into the above transformation function f(x), and the calculated result can be used as the target makeup position of the target user.

[0106] In one embodiment, in order to make the makeup of the target user closer to the makeup in the makeup teaching image and improve the success rate of makeup teaching, the makeup of the target user can also be corrected. Figure 5 As shown, the method provided in the embodiment of the present application may also include the following steps S501-S503.

[0107] Step S501: Acquire the current facial image of the target user.

[0108] The above steps S501 to S503 can be performed by the client or the server. The real-time facial image of the target user can be acquired in real time by the camera of the smart terminal where the client is located. The server can obtain the current facial image of the target user from the client.

[0109] Step S502: Determine the color value and / or makeup position information of the current makeup based on the current facial image.

[0110] The color value can be represented by RGB (red, green, blue) value or CMYK (printing color mode) value. Due to the makeup operation of the target user, the color value of the target makeup position will change, so the color value of the target makeup position in the current face image can be obtained in real time.

[0111] The makeup position information refers to the actual position of the lip makeup, eyebrow makeup, etc. in the current facial image. For example, the actual position of the lip makeup in the current facial image can be determined based on the known color value of the lip makeup. The actual position of the eyebrow makeup in the current facial image can be determined based on the known color value of the eyebrow makeup.

[0112] Step S503: instructing the target user to correct the makeup according to the color value of the current makeup and / or the makeup position information.

[0113] It should be noted that the process of correcting the makeup of the target user includes at least the following three situations:

[0114] Determine the color value of the current makeup, and correct the makeup of the target user based on the color value (such as correcting the thickness and hue of the makeup); determine the makeup position information of the current makeup, and correct the makeup of the target user based on the makeup position information (such as correcting the position of the makeup, etc.); or, determine the color value and makeup position information of the current makeup, and correct the makeup of the target user based on the color value and makeup position information.

[0115] In one embodiment, the target user may be instructed to correct the makeup color of the target makeup position according to the difference between the color value of the target makeup position and the color value of the makeup position information.

[0116] For example, when the color value of the target makeup position of the current facial image is substantially consistent with the color value of the makeup position information in the makeup teaching image, it can be considered that the target makeup position of the currently acquired facial image has been made up. Therefore, the difference between the color value of the makeup position information and the color value of the target makeup position can be calculated as the difference between the color value of the target makeup position and the color value of the makeup position information. If the color value of the makeup position information is greater than the color value of the target makeup position, and the difference is greater than the threshold value (i.e., the difference is a positive number, and the difference is greater than the threshold value), it can be considered that the student's makeup is too light. On the contrary, if the color value of the makeup position information is less than the color value of the target makeup position, and the difference is greater than the threshold value (i.e., the difference is a negative number, and the absolute value of the difference is greater than or equal to the threshold value.), it can be considered that the student's makeup is too thick. In one embodiment, the client can voice prompt "too thick", "too light", or display "too thick", "too light" in text on the display interface of the target user's facial image. Thereby guiding the target user to correct the makeup of the target makeup position.

[0117] In one embodiment, when the color value of the target makeup position of the current facial image is substantially consistent with the color value of the makeup position information in the makeup teaching image, it can be considered that the target makeup position of the currently acquired facial image has been completed, and then the next frame of makeup teaching image can be acquired from the facial makeup teaching material, and makeup teaching is continued based on the next frame of makeup teaching image, and the above steps S220 to S230 are executed to perform makeup teaching, and so on, until all makeup teaching images are acquired, and it can be considered that makeup is completed, thereby enabling students to keep up with the makeup artist's makeup speed at each step and accurately grasp the makeup essentials of each step.

[0118] In another embodiment, the target user can be instructed to correct the makeup position information according to the makeup position information and the makeup position information. For example, the target user can be prompted to correct the makeup position by indicating that the eyebrows are too high or too low.

[0119] In other embodiments, the target user may be instructed to modify the makeup position information and the color value of the target makeup position according to the makeup position information, the color value of the target makeup position, and the color value of the makeup position information. Thus, the makeup position and the makeup color may be modified at the same time.

[0120] In one embodiment, when the makeup position information of the current facial image and the color value corresponding to the makeup position information are basically consistent with the makeup position information and the color value of the makeup position information in the makeup teaching image, it can be considered that the target makeup position of the currently acquired facial image has been completed, and then the next frame of makeup teaching image can be obtained from the facial makeup teaching material, and the makeup teaching is continued based on the next frame of makeup teaching image, and the above steps S220-S230 are executed to perform makeup teaching, and so on, until all the makeup teaching images are obtained. It can be considered that the makeup is completed, thereby enabling students to keep up with the makeup artist's makeup speed at each step and accurately grasp the makeup essentials of each step.

[0121] Figure 6 Schematic diagram of the process of constructing facial makeup teaching materials provided by the embodiment of the present application. The process can be executed by the client or the server. Figure 6 As shown, the following steps S601-S603 are included.

[0122] Step S601: Obtain a makeup teaching video.

[0123] Makeup tutorial videos refer to facial makeup images captured at a preset frame rate during the makeup process of a professional makeup artist. Depending on the makeup artist's face shape and the type of makeup they apply, makeup tutorial videos of different makeup types can be obtained. Accordingly, makeup tutorial materials of different makeup types can be obtained from them.

[0124] Step S602: removing repeated image frames in the makeup teaching video to obtain at least one frame of makeup teaching image information;

[0125] For example, assuming that there are 5,000 frames of facial makeup images in a makeup tutorial video, the first frame can be compared with the second frame. If the color value of each pixel is basically the same, it can be considered that the first frame and the second frame are repeated, and the first frame or the second frame can be removed. Assuming that the second frame is removed, the first frame can be compared with the third frame. If the color value of each pixel still does not change, it can be considered that the first frame and the third frame are repeated, and the third frame can be removed. And so on, for repeated facial makeup images, only one frame can be retained and arranged in chronological order to obtain multiple frames of makeup tutorial images.

[0126] Step S603: determining makeup information in each frame of the makeup teaching image information;

[0127] Step S604: Generate facial makeup teaching materials based on the makeup teaching image information of each frame and its corresponding makeup information.

[0128] In one embodiment, by comparing the facial color differences between adjacent frames in multiple frames of makeup teaching image information, the facial pixels of the facial color differences are marked as the makeup positions corresponding to the next frame of the image, thereby obtaining the makeup position information corresponding to each frame of makeup teaching image information.

[0129] In the remaining images obtained after removing duplicate image frames, the facial color differences (for example, different RGB color values) of corresponding pixels between adjacent frames can be compared, and the facial pixels with facial color differences can be marked as the makeup positions corresponding to the next frame of the image. For example, the first frame and the second frame in the remaining image are compared, and the color value at a certain position A changes. Then, the position A where the color value changes can be considered to be the makeup position corresponding to the second frame of the makeup teaching image. Similarly, the second frame and the third frame are compared, and the color value at a certain position B changes. Then, the position B where the color value changes can be considered to be the makeup position corresponding to the third frame of the makeup teaching image. By analogy, the makeup position information corresponding to each frame of the makeup teaching image information can be obtained, and the facial makeup teaching material can be obtained. Based on this facial makeup teaching material, the target user can be guided to perform makeup operations.

[0130] To facilitate understanding of the makeup teaching method provided in the embodiment of the present application, the method provided in the embodiment of the present application will be introduced below in combination with specific application scenarios.

[0131] Optionally, in a specific implementation manner, the method provided in the embodiment of the present application may be applied to a server. For this application scenario, a possible implementation manner of the embodiment of the present application is as follows: Figure 7 As shown, the specific steps include:

[0132] Step S701, receiving a makeup teaching request sent by a client;

[0133] Step S702: according to the makeup type information carried in the makeup teaching request, searching for facial makeup teaching materials corresponding to the makeup type information from a local facial makeup teaching material library; the facial makeup teaching materials include makeup teaching image information indicating makeup position information;

[0134] In a specific implementation, after acquiring the facial makeup teaching materials, the server instructs the client to collect the facial image of the target user.

[0135] Step S703, obtaining a facial image of the target user from the client;

[0136] Step S704: extracting first position information of key facial points of the facial image and second position information of key facial points in the makeup teaching image information;

[0137] Step S705: constructing a position mapping relationship between the second position information and the first position information according to the first position information and the second position information;

[0138] Step S706: Calculate the target makeup position of the target user according to the makeup position information indicated in the makeup teaching image information and the position mapping relationship.

[0139] Step S707: sending the target makeup position of the facial image to the client where the target user is located, triggering the client where the target user is located to display the facial image marked with the target makeup position.

[0140] Step S708: Acquire the current facial image of the target user from the client;

[0141] Step S709: determining the color value of the current makeup based on the current facial image;

[0142] Step S710: Send prompt information to the client according to the color value of the current makeup and the color value of the makeup position information, and the client outputs the prompt information to instruct the target user to correct the makeup.

[0143] Optionally, in another specific implementation manner, the method provided in the embodiment of the present application may be applied to a client. For this application scenario, a possible implementation manner of the embodiment of the present application is as follows: Figure 8 As shown, the specific steps include:

[0144] Step S801, responding to a makeup teaching request triggered by a target user selecting a target makeup type;

[0145] Step S802: Sending the makeup type information carried in the makeup teaching request to the server;

[0146] Step S803: receiving facial makeup teaching materials corresponding to the makeup type information returned by the server; the facial makeup teaching materials include makeup teaching image information indicating makeup position information;

[0147] Of course, in some implementations, the above-mentioned facial makeup teaching materials may also be stored locally on the client. In this case, when the client receives a makeup teaching request triggered by a target user, the corresponding facial makeup materials are obtained from the client locally.

[0148] Step S804, collecting a facial image of the target user;

[0149] Step S805: extracting first position information of key facial points of the facial image and second position information of key facial points in the makeup teaching image information;

[0150] Step S806: constructing a position mapping relationship between the second position information and the first position information according to the first position information and the second position information;

[0151] Step S807: Calculate the target makeup position of the target user according to the makeup position information indicated in the makeup teaching image information and the position mapping relationship.

[0152] Step S808: displaying the facial image with the target makeup position marked;

[0153] Step S809: collecting the current facial image of the target user;

[0154] Step S810: determining the color value of the current makeup based on the current facial image;

[0155] Step S811: Output prompt information according to the color value of the current makeup and the color value of the makeup position information, instructing the target user to correct the makeup.

[0156] Where explanation is required, Figure 8 In the illustrated embodiment, the step of acquiring the target user's facial image may be performed before step S802, or after step S803, or simultaneously with the operations of step S802 and step S803; Figure 8 It only lists one possible implementation method and does not constitute a limitation of the embodiments of the present application.

[0157] The method provided by the above embodiment of the present application allows users to select their favorite makeup type and receive makeup teaching from the client or server. Based on the makeup position information indicated by the makeup teaching image information, the user's target makeup position can be determined, so as to provide prompts and guide the user to apply makeup at the target makeup position, thereby improving the accuracy of the user's makeup position. When the position or color of the actual makeup is inconsistent with the position or color in the makeup teaching image, prompts can also be provided to guide the user to correct the makeup, further ensuring the accuracy of the makeup and improving the teaching effect.

[0158] The following is an embodiment of the device of the present application, which can be used to execute the above-mentioned makeup teaching method embodiment of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the makeup teaching method of the present application.

[0159] Fig. 9 FIG. 1 is a block diagram of a makeup teaching device according to an embodiment of the present application. Fig. 9As shown, the device includes: a material acquisition module 910, a position determination module 920 and a makeup instruction module 930.

[0160] The material acquisition module 910 is used to respond to the makeup teaching request triggered by the target user and acquire the facial makeup teaching material corresponding to the target user; wherein the facial makeup teaching material includes makeup teaching image information indicating makeup information, and the makeup information includes makeup position information;

[0161] A position determination module 920, configured to determine a target makeup position of the target user based on the facial image of the target user and the makeup position information;

[0162] The makeup instruction module 930 is used to instruct the target user to perform a corresponding makeup operation at the target makeup position.

[0163] In one embodiment, the material acquisition module 910 includes:

[0164] An image acquisition unit, configured to acquire a facial image of the target user in response to the makeup teaching request;

[0165] A type determination unit, configured to determine makeup type information matching the target user based on the facial image;

[0166] The material determination unit is used to determine the facial makeup teaching material corresponding to the target user according to the makeup type information.

[0167] In one embodiment, the makeup teaching request carries makeup type information; accordingly, the material acquisition module 910 is specifically used to determine the facial makeup teaching material corresponding to the target user according to the makeup type information.

[0168] In one embodiment, the material determination unit is specifically used for:

[0169] Searching for facial makeup teaching materials corresponding to the makeup type information from a pre-established facial makeup teaching material library, and determining the facial makeup teaching materials found as the facial makeup teaching materials corresponding to the target user;

[0170] or,

[0171] The facial makeup teaching material corresponding to the makeup type information is searched from a pre-established facial makeup teaching material library; based on the facial image of the target user, the basic makeup information currently existing for the target user is determined; based on the basic makeup information currently existing for the target user, the teaching material corresponding to the basic makeup information in the facial makeup teaching material is eliminated to obtain the facial makeup teaching material corresponding to the target user.

[0172] In one embodiment, the location determination module 920 includes:

[0173] A position extraction unit, used for extracting first position information of key facial points of the facial image and second position information of key facial points in the makeup teaching image information;

[0174] a relationship building unit, configured to build a position mapping relationship between the second position information and the first position information according to the first position information and the second position information;

[0175] A position calculation unit is used to determine the target makeup position of the target user according to the makeup position information indicated in the makeup teaching image information and the position mapping relationship.

[0176] In one embodiment, the makeup instruction module 930 is specifically used to: display the facial image of the target user marked with the target makeup position, so that the target user performs a makeup operation at the target makeup position.

[0177] In another embodiment, the makeup instruction module 930 is specifically used to: send the target makeup position of the facial image to the client where the target user is located, and trigger the client where the target user is located to display the facial image marked with the target makeup position.

[0178] In one embodiment, the above device further includes:

[0179] A current image acquisition module, used to acquire the current facial image of the target user;

[0180] A makeup determination module, used to determine the color value and / or makeup position information of the current makeup based on the current facial image;

[0181] The makeup correction module is used to instruct the target user to correct the makeup according to the color value and / or makeup position information of the current makeup.

[0182] In one embodiment, the above device further includes:

[0183] Video acquisition module, used to acquire makeup teaching videos;

[0184] A duplicate elimination module, used to eliminate duplicate image frames in the makeup teaching video to obtain at least one frame of makeup teaching image information;

[0185] A position marking module, used to determine makeup information in each frame of the makeup teaching image information;

[0186] The material generation module is used to generate facial makeup teaching materials based on the makeup teaching image information of each frame and its corresponding makeup information.

[0187] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned makeup teaching method, and will not be repeated here.

[0188] The device provided by the implementation of this application allows users to select their favorite makeup type and receive makeup teaching from the client or server. Based on the makeup position information indicated by the makeup teaching image information, the user's target makeup position can be determined, so as to provide prompts and guide the user to apply makeup at the target makeup position, thereby improving the accuracy of the user's makeup position. When the actual makeup position or color is inconsistent with the position or color in the makeup teaching image, prompts can also be provided to guide the user to correct the makeup, further ensuring the accuracy of the makeup and improving the teaching effect.

[0189] In another embodiment of the present application, a computer storage medium is provided, on which a computer program is stored. When a computer runs the computer program, the steps of the method in the above method embodiment are executed.

[0190] In another embodiment of the present application, a computer program is also provided, which can be stored in a cloud or local storage medium. When the computer program is run by a computer or a processor, it is used to execute the corresponding steps of the method of the embodiment of the present application, and is used to implement the corresponding modules in the makeup teaching device according to the embodiment of the present application.

[0191] In several embodiments provided in the present application, the disclosed devices and methods may also be implemented in other ways. The device embodiments described above are merely schematic, for example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to the multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram may represent a module, a program segment or a part of a code, and a module, a program segment or a part of a code contains one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the box may also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they may sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of boxes in the block diagram and / or the flowchart, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0192] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0193] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.

[0194] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A makeup teaching method, characterized in that: include: In response to a makeup teaching request triggered by a target user, acquiring facial makeup teaching materials corresponding to the target user; wherein the facial makeup teaching materials include makeup teaching image information indicating makeup information, and the makeup information includes makeup position information; Determining a target makeup position of the target user based on the facial image of the target user and the makeup position information; Instructing the target user to perform a corresponding makeup operation at the target makeup position; Wherein, determining the target makeup position of the target user based on the facial image of the target user and the makeup position information includes: Extracting first position information of key facial points of the facial image and second position information of key facial points in the makeup teaching image information; Constructing a location mapping relationship between the second location information and the first location information according to the first location information and the second location information; Determining a target makeup position of the target user according to the makeup position information indicated in the makeup teaching image information and the position mapping relationship; Wherein, instructing the target user to perform a corresponding makeup operation at the target makeup position includes: the client displays a facial image of the target user marked with the target makeup position.

2. The method according to claim 1, characterized in that The step of obtaining facial makeup teaching materials corresponding to the target user in response to the makeup teaching request triggered by the target user includes: In response to the makeup teaching request, acquiring a facial image of the target user; Determining makeup type information matching the target user according to the facial image; Determine facial makeup teaching materials corresponding to the target user according to the makeup type information.

3. The method according to claim 1, characterized in that The makeup teaching request carries makeup type information; Accordingly, in response to the makeup teaching request triggered by the target user, obtaining the facial makeup teaching material corresponding to the target user includes: Determine facial makeup teaching materials corresponding to the target user according to the makeup type information.

4. The method according to claim 2 or 3, characterized in that The step of determining facial makeup teaching materials corresponding to the target user according to the makeup type information includes: Searching for facial makeup teaching materials corresponding to the makeup type information from a pre-established facial makeup teaching material library, and determining the facial makeup teaching materials found as the facial makeup teaching materials corresponding to the target user; or, The facial makeup teaching material corresponding to the makeup type information is searched from a pre-established facial makeup teaching material library; based on the facial image of the target user, the basic makeup information currently existing for the target user is determined; based on the basic makeup information currently existing for the target user, the teaching material corresponding to the basic makeup information in the facial makeup teaching material is eliminated to obtain the facial makeup teaching material corresponding to the target user.

5. The method according to claim 1, characterized in that The instructing the target user to perform a corresponding makeup operation at the target makeup position includes: The target makeup position of the facial image is sent to the client where the target user is located, triggering the client where the target user is located to display the facial image marked with the target makeup position.

6. The method according to claim 1, characterized in that After instructing the target user to perform a corresponding makeup operation at the target makeup position, the method further includes: Acquire the current facial image of the target user; Determining a color value and / or makeup position information of a current makeup based on the current facial image; According to the color value and / or makeup position information of the current makeup, the target user is instructed to correct the makeup.

7. The method according to claim 1, characterized in that Before acquiring the facial makeup teaching material corresponding to the target user, the method further includes: Get makeup tutorial videos; Repetitive image frames in the makeup teaching video are removed to obtain at least one frame of makeup teaching image information; Determining makeup information in each frame of the makeup teaching image information; Based on the makeup teaching image information of each frame and the corresponding makeup information, facial makeup teaching materials are generated.

8. A makeup teaching device, characterized in that: include: A material acquisition module, configured to respond to a makeup teaching request triggered by a target user and acquire facial makeup teaching materials corresponding to the target user; wherein the facial makeup teaching materials include makeup teaching image information indicating makeup information, and the makeup information includes makeup position information; A position determination module, configured to determine a target makeup position of the target user based on the facial image of the target user and the makeup position information; A makeup instruction module, used to instruct the target user to perform a corresponding makeup operation at the target makeup position; Wherein, determining the target makeup position of the target user based on the facial image of the target user and the makeup position information includes: Extracting first position information of key facial points of the facial image and second position information of key facial points in the makeup teaching image information; Constructing a location mapping relationship between the second location information and the first location information according to the first location information and the second location information; Determining a target makeup position of the target user according to the makeup position information indicated in the makeup teaching image information and the position mapping relationship; Wherein, instructing the target user to perform a corresponding makeup operation at the target makeup position includes: the client displays a facial image of the target user marked with the target makeup position.

9. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to execute the makeup teaching method described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program can be executed by a processor to complete the makeup teaching method described in any one of claims 1-7.

Citation Information

Patent Citations

  • Makeup application assistance device, makeup application assistance method, and makeup application assistance program

    CN104205168A

  • Makeup guiding method and apparatus

    CN108256432A

  • Auxiliary makeup method and device, and smart mirror

    CN108765268A

  • An intelligent cosmetic exchange method and a storage medium

    CN109446365A

  • Making-up action assisting device, making-up action assisting system, and making-up action assisting method

    JP2014191813A