A makeup mirror and state adjustment method

The image collector and processor of the smart makeup mirror automatically determines and adjusts the user's head posture and position, combined with the guide frame and color prompts of the display screen, to solve the problem of user subjectivity when the smart makeup mirror collects face photos, improving improve image quality and user experience.

CN113487670BInactive Publication Date: 2024-09-13HISENSE GRP HLDG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011159421.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-26
Publication Date
2024-09-13
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing smart makeup mirrors suffer from user subjectivity when collecting face photos, resulting in poor image quality and the head posture and position may no longer meet the shooting requirements when taking manual photos.

Method used

Design a cosmetic mirror equipped with an image collector and processor. It automatically determines whether adjustment is needed by collecting the user's head posture and position information, and provides a face guide frame and color changes through the display screen to prompt the user to adjust, avoiding the user's autonomy. Judgment and manual photography.

Benefits of technology

It improves the quality of image collection and user experience, ensures that the head posture and position meet shooting requirements, and reduces problems that do not meet shooting requirements due to manual photography.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113487670B
    Figure CN113487670B
Patent Text Reader

Abstract

The present application provides a makeup mirror and a state adjustment method, the makeup mirror comprising: an image collector, used to collect first image information of a user; a processor, configured to: determine the user's head posture and the user's position information relative to the makeup mirror according to the first image information; determine whether to send a first indication information to the user based on the head posture and position information, the first indication information is used to instruct the user to adjust the head posture and / or position; a prompter, used to send the first indication information according to the configuration of the processor. This method is to judge the user's facial state through a makeup mirror, and the makeup mirror determines whether the user's current facial state data can meet the subsequent processing requirements, thereby avoiding the user's autonomous judgment of whether his or her facial state data is appropriate, thereby improving the quality of the image used for subsequent processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of artificial intelligence technology, and in particular to a makeup mirror and a state adjustment method. Background Art

[0002] At present, by using smart makeup mirrors, users can better manage their makeup. The main principle is that the smart makeup mirror obtains the user's facial feature data, intelligently recommends suitable makeup to the user, and guides the user to modify his facial makeup in a timely manner.

[0003] In the above process, the smart makeup mirror collects the user's face photo to obtain the user's facial feature data, and then recommends makeup. However, in the process of the smart makeup mirror collecting the user's face photo, the user is often required to adjust the head posture and the user's position relative to the mirror according to the prompts issued by the smart makeup mirror, and the user is required to independently judge whether the current head posture and position meet the requirements for taking face photos.

[0004] In summary, the smart makeup mirror in the prior art has the disadvantage of user subjectivity when collecting facial photos.

[0005] Application Contents

[0006] The present application provides a makeup mirror and a state adjustment method, which are used to solve the problem of user subjectivity when a smart makeup mirror collects facial photos.

[0007] In a first aspect, an embodiment of the present application provides a makeup mirror, comprising: an image collector, for collecting first image information of a user; a processor, configured to: determine the user's head posture and position information of the user relative to the makeup mirror based on the first image information; determine whether to issue first indication information to the user based on the head posture and the position information, the first indication information being used to instruct the user to adjust the head posture and / or position; and a prompter, for issuing the first indication information according to the configuration of the processor.

[0008] Based on this solution, the image collector of the makeup mirror collects the first image information of the user and obtains the user's head posture and the position information of the user relative to the mirror surface. Then, based on the obtained head posture and position information, the makeup mirror determines whether it is necessary to send the user an instruction to adjust the head posture and / or position. This method is to judge the user's facial state through the makeup mirror, and the makeup mirror determines whether the user's current facial state data can meet the subsequent processing requirements, thereby avoiding the user's autonomous judgment on whether his or her facial state data is appropriate, thereby improving the quality of the image used for subsequent processing.

[0009] In certain embodiments of the present application, the processor is further configured to: upon determining that the head posture and the position information meet preset conditions, send a second indication message to the user, wherein the second indication message is used to instruct the user to maintain the current state until a preset time threshold; the prompter is further used to send the second indication message according to the configuration of the processor; the image collector is further used to collect second image information of the user when the user maintains the current state.

[0010] Based on this solution, when the makeup mirror analyzes the head posture and position information and determines that both meet their respective preset conditions, it can send an instruction message to the user to maintain the current state until a preset time threshold, and automatically collect image information of the user when maintaining the current state without the user having to manually take pictures, thereby avoiding the problem that the state that originally met the requirements for face photo shooting no longer meets the requirements for face shooting due to manual photography.

[0011] In certain embodiments of the present application, the processor is specifically configured to: after identifying that the first image information includes a facial image, obtain N 2D facial key points in the facial image; N is a positive integer; match the N 2D facial key points with a preset 3D facial model to determine the head posture; wherein the head posture is represented by Euler angles.

[0012] In certain embodiments of the present application, the makeup mirror also includes a display screen arranged on the mirror surface; the processor is specifically configured to: generate a face guide frame after identifying that the first image information includes a face image; the display screen is used to display the face guide frame; the face guide frame is used to instruct the user to place the facial contour within the face guide frame.

[0013] Based on this solution, when the makeup mirror identifies the first image information and finds that it includes a face image, a face guide frame is generated and displayed on a display screen arranged on the mirror surface of the makeup mirror, so as to prompt the user to adjust his or her face so that his or her facial contour is placed within the face guide frame. In this solution, since the face guide frame has the function of guiding the user to adjust his or her position relative to the mirror surface, it can detect in real time whether the user's current state meets the requirements of photo collection.

[0014] In certain embodiments of the present application, the processor is specifically configured to: generate a face guide frame with a first color after identifying that the first image information includes a face image; and generate a face guide frame with a second color when it is determined that the head posture and the position information meet preset conditions.

[0015] Based on this solution, since the face guide frame has the function of guiding the user to adjust himself relative to the mirror, on the one hand, the makeup mirror can detect in real time whether the user's current state meets the requirements of photo collection. On the other hand, by changing the color of the face guide frame to intuitively prompt the user whether the current state meets the requirements of photo collection, the user experience can be enhanced.

[0016] In certain embodiments of the present application, the processor is specifically configured to: if it is determined that the Euler angle corresponding to the head posture does not meet a preset angle condition, determine to send the first indication information to the user; the preset angle condition is a face-facing makeup mirror; and / or determine the contour position of the facial contour in the makeup mirror based on the first image information; if it is determined that the contour position does not meet a preset position condition, determine to send the first indication information to the user; the preset position condition is that the contour position is located between a first face frame and a second face frame; wherein, the first face frame is a face frame with a maximum recognizable facial contour, and the second face frame is a face frame with a minimum recognizable facial contour.

[0017] Based on this solution, after obtaining the user's head posture and position information, the makeup mirror matches the Euler angle corresponding to the head posture with the preset angle condition, and matches the obtained position information with the preset position condition. When it is determined that one or both do not meet the preset conditions, a first instruction information to adjust the head posture and / or position is sent to the user.

[0018] In a second aspect, an embodiment of the present application provides a makeup mirror, comprising: an image collector, for collecting first image information of a user; a display screen, for displaying; and a processor, configured to: in response to a first head posture of the user, control the display screen to display in a first state; in response to a second head posture of the user, control the display screen to display in a second state, wherein the first state is different from the second state.

[0019] Based on this solution, the image collector of the makeup mirror obtains the first image information of the user. When the processor of the makeup mirror detects that the first image includes the user's head and the posture is the first head posture, it can control the display screen of the makeup mirror to display in the first state; when the processor detects that the user's head posture is the second head posture, it can control the display screen to display in the second state, wherein the first head posture and the second head posture are two head postures corresponding to the user satisfying and not satisfying the shooting requirements during the process of adjusting the head posture facing the makeup mirror, and when the head posture meets the shooting requirements, the information that meets the shooting requirements is directly conveyed to the user by updating the state of the display screen, thereby enhancing the user's experience of using the makeup mirror.

[0020] In a third aspect, an embodiment of the present application provides a state adjustment method, the method comprising: determining a user's head posture and position information of the user relative to a makeup mirror based on first image information; wherein the first image information is obtained by collecting the user's state through an image collector of the makeup mirror; based on the head posture and the position information, determining whether to issue a first indication information to the user, the first indication information being used to instruct the user to adjust the head posture and / or position.

[0021] Based on this solution, the image collector of the makeup mirror collects the first image information of the user and obtains the user's head posture and the position information of the user relative to the mirror surface. Then, based on the obtained head posture and position information, the makeup mirror determines whether it is necessary to send the user an instruction to adjust the head posture and / or position. This method is to judge the user's facial state through the makeup mirror, and the makeup mirror determines whether the user's current facial state data can meet the subsequent processing requirements, thereby avoiding the user's autonomous judgment on whether his or her facial state data is appropriate, thereby improving the quality of the image used for subsequent processing.

[0022] In certain embodiments of the present application, when it is determined that the head posture and the position information meet preset conditions, a second indication message is sent to the user, and the second indication message is used to instruct the user to maintain the current state until a preset time threshold.

[0023] Based on this solution, when the makeup mirror analyzes the head posture and position information and determines that both meet their respective preset conditions, it can send an instruction message to the user to maintain the current state until a preset time threshold, and automatically collect image information of the user when maintaining the current state without the user having to manually take pictures, thereby avoiding the problem that the state that originally met the requirements for face photo shooting no longer meets the requirements for face shooting due to manual photography.

[0024] In certain embodiments of the present application, after identifying that the first image information includes a facial image, N 2D facial key points in the facial image are obtained; N is a positive integer; the N 2D facial key points are matched with a preset 3D facial model to determine the head posture; wherein the head posture is represented by Euler angles.

[0025] In some embodiments of the present application, after recognizing that the first image information includes a face image, a face guide frame is generated.

[0026] Based on this solution, when the makeup mirror identifies the first image information and finds that it includes a face image, a face guide frame is generated and displayed on a display screen arranged on the mirror surface of the makeup mirror, so as to prompt the user to adjust his or her face so that his or her facial contour is placed within the face guide frame. In this solution, since the face guide frame has the function of guiding the user to adjust his or her position relative to the mirror surface, it can detect in real time whether the user's current state meets the requirements of photo collection.

[0027] In certain embodiments of the present application, after identifying that the first image information includes a facial image, a facial guide frame having a first color is generated; when it is determined that the head posture and the position information meet preset conditions, a facial guide frame having a second color is generated.

[0028] Based on this solution, since the face guide frame has the function of guiding the user to adjust himself relative to the mirror, on the one hand, the makeup mirror can detect in real time whether the user's current state meets the requirements of photo collection. On the other hand, by changing the color of the face guide frame to intuitively prompt the user whether the current state meets the requirements of photo collection, the user experience can be enhanced.

[0029] In certain embodiments of the present application, if it is determined that the Euler angle corresponding to the head posture does not meet the preset angle condition, it is determined to send the first indication information to the user; the preset angle condition is a face-facing makeup mirror; and / or the contour position of the facial contour in the makeup mirror is determined based on the first image information; if it is determined that the contour position does not meet the preset position condition, it is determined to send the first indication information to the user; the preset position condition is that the contour position is located between a first face frame and a second face frame; wherein, the first face frame is a face frame with a maximum recognizable facial contour, and the second face frame is a face frame with a minimum recognizable facial contour.

[0030] Based on this solution, after obtaining the user's head posture and position information, the makeup mirror matches the Euler angle corresponding to the head posture with the preset angle condition, and matches the obtained position information with the preset position condition. When it is determined that one or both do not meet the preset conditions, a first instruction information to adjust the head posture and / or position is sent to the user.

[0031] In a fourth aspect, an embodiment of the present application provides a computing device, including:

[0032] A memory for storing program instructions;

[0033] The processor is used to call the program instructions stored in the memory and execute any implementation method of the third aspect according to the obtained program.

[0034] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute any implementation method of the third aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0036] Figure 1 A possible system architecture provided for an embodiment of the present application;

[0037] Figure 2 A state adjustment method provided in an embodiment of the present application;

[0038] Figure 3 A schematic diagram of Euler angles of a head posture provided in an embodiment of the present application;

[0039] Figure 4 A schematic diagram of a 6-point 2D-3D key point mapping provided in an embodiment of the present application;

[0040] Figure 5 A schematic diagram of an interface of a real-time face guide frame provided in an embodiment of the present application;

[0041] Figure 6 A schematic diagram of position determination is provided for an embodiment of the present application;

[0042] Figure 7 A schematic diagram of an initialization interface for collecting face photos provided in an embodiment of the present application;

[0043] Figure 8 A schematic diagram of a successful face photo collection interface provided in an embodiment of the present application;

[0044] Fig. 9 A cosmetic mirror provided in an embodiment of the present application;

[0045] Fig.10 A schematic diagram of a computing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0047] At present, by using smart makeup mirrors, users can better manage their makeup. Smart makeup mirrors collect users' facial photos to obtain users' facial feature data, so as to recommend suitable makeup to users and guide users to modify their facial makeup in a timely manner.

[0048] However, when the existing smart makeup mirror collects the user's facial image, the user is often required to adjust the head posture and position according to the prompts issued by the smart makeup mirror, and the user is required to independently determine whether the current head posture and position meet the requirements for taking a face photo. In addition, if the user determines that the current head posture and position meet the requirements for taking a face photo, the user is still required to manually take a face photo.

[0049] In summary, the method of obtaining the user's facial image by the above-mentioned smart makeup mirror has the disadvantage of subjectivity, and the manual photo taking method will affect the head posture and position that originally met the shooting requirements, which will further make the head posture and position during shooting not meet the shooting requirements.

[0050] Based on the above problems, the present application embodiment provides a possible system architecture. Figure 1 , which is a schematic diagram of a possible system architecture provided in an embodiment of the present application, and the system architecture includes a makeup mirror 110 and a user 120. The makeup mirror 110 includes a processor 1101, an image collector 1102, and a prompter 1103. In some embodiments of the present application, the makeup mirror 110 also includes a display screen 1104 disposed on the mirror surface.

[0051] The image collector 1102 may be a camera directly mounted on the makeup mirror 110 or may be a camera indirectly connected to the makeup mirror 110, which is not specifically limited in the embodiments of the present application. The image collector 1102 may be used to obtain the image information of the user in real time, and send the obtained image information to the processor 1101 in the makeup mirror 110, wherein the head posture of the user and the position of the user relative to the mirror surface may be determined through the image information, wherein the position may include the distance between the user's face and the makeup mirror 110 and the presentation position of the user's face in the makeup mirror 110, wherein the presentation position may include the user's complete face being located in the middle of the makeup mirror 110, the right side of the user's face being located in the upper left corner area / lower left corner area of ​​the makeup mirror 110, the left side of the user's face being located in the upper right corner area / lower right corner area of ​​the makeup mirror 110, and the like; on the other hand, the image collector 1102 may also be used to shoot a face that meets the shooting requirements, and send the shot face photo to the processor 1101 in the makeup mirror 110, and the processor 1101 performs the next step of processing.

[0052] In the embodiment of the present application, the processor 1101 can be mainly used for the following two aspects:

[0053] In a first aspect, the processor 1101 receives the user's image information sent by the image collector 1102, and analyzes the image information to determine whether the user's image information in the current state can be collected for processing in the next step.

[0054] Based on the analysis results of the first aspect, the second aspect can include the following two situations:

[0055] Scenario 1: When it is determined that the image information of the user in the current state can be collected, an image collection instruction is sent to the image collector 1102, so that the image collector 1102 takes a picture of the face that meets the shooting requirements, and receives the image information of the user sent by the image collector 1102, so as to process the image information in the next step;

[0056] In Scenario 2, when it is determined that the image information of the user in the current state cannot be collected, the processor 1101 sends indication information to the prompter 1103 and the display screen 1104 respectively. For example, the indication information can be sent to the prompter 1103 to prompt the user to adjust the head state and / or position through the prompter 1103, and the indication information can be sent to the display screen 1104 to prompt the user to adjust the position through the display screen 1104. Among them, the prompter 1103 can send prompt information to the user in the form of text, or in the form of voice broadcast, or in a combination of text and voice broadcast. Of course, other prompting methods can also be used, and this application does not make specific limitations; among them, the display screen 1104 can send prompt information to the user to adjust its own position by generating a face guide frame and changing the color of the face guide frame. It can be understood that the display screen 1104 at this time has the same function of sending prompt information to the user as the prompter 1103. In other words, the display screen 1103 at this time is a specific implementation method of the prompter 1103; on the other hand, the processor 1101 can also send image information acquisition instructions to the image acquirer 1102 to obtain and analyze the image information of the user in the process of adjusting his or her head posture and / or position in real time.

[0057] The prompter 1103 can be used to display the text prompt information sent by the processor 1101, so that the user can adjust his head posture and / or position according to the text prompt information; optionally, the text prompt information also includes information about the change of the color of the face guide frame. By using the operation of changing the color of the face guide frame, the user can intuitively receive the information that the current state of his head posture and position meet the preset face shooting requirements. The prompter 1103 can also be used to play the voice prompt information sent by the processor 1101, so that the user can adjust or maintain his head posture and / or position according to the voice prompt information.

[0058] The display screen 1104 can be used to generate a face guide frame according to the instruction information sent by the processor 1101, and change the color of the face guide frame to send prompt information to the user to adjust his or her position.

[0059] Based on the background technology issues and Figure 1 The system architecture shown in Figure 2 As shown, a state adjustment method provided by an embodiment of the present application can be performed by Figure 1 The processor 1101 in the illustrated architecture executes the following steps:

[0060] Step 201: determine the user's head posture and the position information of the user relative to the makeup mirror according to the first image information.

[0061] In this step, the first image information is obtained by collecting the user's status through the image collector of the makeup mirror.

[0062] For example, you can Figure 1 The image collector 1102 shown acquires the first image information of the user. After acquiring the first image information of the user, the image collector sends the first image information to the processor, so that the processor determines the head posture and position information of the user according to the acquired first image information.

[0063] Step 202: Determine whether to send first indication information to the user based on the head posture and the position information.

[0064] In this step, the first indication information is used to instruct the user to adjust the head posture and / or position. Figure 1 The prompter 1103 shown is issued.

[0065] Based on this solution, the image collector of the makeup mirror collects the first image information of the user and obtains the user's head posture and the position information of the user relative to the mirror surface. Then, based on the obtained head posture and position information, the makeup mirror determines whether it is necessary to send the user an instruction to adjust the head posture and / or position. This method is to judge the user's facial state through the makeup mirror, and the makeup mirror determines whether the user's current facial state data can meet the subsequent processing requirements, thereby avoiding the user's autonomous judgment on whether his or her facial state data is appropriate, thereby improving the quality of the image used for subsequent processing.

[0066] The following will explain the above steps in detail with examples.

[0067] In one implementation of the above step 201, after identifying that the first image information includes a facial image, N 2D facial key points in the facial image are obtained; N is a positive integer; the N 2D facial key points are matched with a preset 3D facial model to determine the head posture; wherein the head posture is represented by Euler angles.

[0068] In 3D space, the rotation of an object can be represented by three Euler angles, which are called pitch, yaw, and roll. Figure 3, is a schematic diagram of Euler angles of a head posture provided in an embodiment of the present application, wherein the pitch angle pitch is used to represent the rotation around the X-axis, corresponding to raising the head; the yaw angle yaw is used to represent the rotation around the Y-axis, corresponding to shaking the head; the roll angle roll is used to represent the rotation around the Z-axis, corresponding to turning the head.

[0069] In some embodiments of the present application, the key points of the face can first be detected by the PFLD algorithm, such as using 106 key point annotation data to locate the details such as the eye contour, and obtain the user's N 2D face key points from the 106 key points. For example, in the embodiment of the present application, the value of N is set to 6, and they are respectively represented as the user's left eye corner, right eye corner, nose tip, left mouth corner, right mouth corner and chin bottom; then, the obtained N 2D face key points are matched with the annotated 3D face model, such as by matching through 6-point matching, such as Figure 4 As shown, a schematic diagram of a 6-point 2D-3D key point mapping provided in an embodiment of the present application is provided; then, the conversion relationship between the 3D point and the corresponding 2D point is found by solving the rotation matrix and the translation matrix; finally, the above three Euler angles are solved according to the rotation matrix.

[0070] In one implementation of the above step 202, after recognizing that the first image information includes a face image, a face guide frame is generated.

[0071] In certain embodiments of the present application, the makeup mirror further includes a display screen provided with a mirror surface, and the display screen is used to display the face guide frame; the face guide frame is used to instruct the user to place the facial contour within the face guide frame.

[0072] In certain embodiments of the present application, when the user faces the smart makeup mirror, the image collector in the smart makeup mirror can collect the user's current state, and the collected content can include the user's upper body. When the image collector sends the collected image information of the user's current state to the processor, the processor can detect the user's face. At this time, the processor can synchronously generate a face guide frame and send the generated face guide frame to a display screen set on the mirror surface of the smart makeup mirror. The display screen displays the generated face guide frame to intuitively prompt the user to adjust his head posture and position to place his facial contour in the displayed face guide frame. Among them, the display area of ​​the face guide frame is a preset optimal area for determining whether the user's head position is appropriate.

[0073] In one embodiment, after recognizing that the first image information includes a face image, a face guide frame with a first color is generated; when it is determined that the head posture and the position information meet preset conditions, a face guide frame with a second color is generated.

[0074] For example, assume that the image collector of the smart makeup mirror collects the state of the user at time T1 to obtain image A, and sends image A to the processor of the smart makeup mirror. After the processor recognizes image A, it determines that there is a face in image A. However, the area where the facial contour of the face is located at this time does not meet the preset conditions. Therefore, the processor generates a face guide frame with a first color, such as a red face guide frame, and displays the red face guide frame through a display screen set on the mirror surface; when the user sees that the color of the face guide frame is the first color, that is, red, the user knows that he needs to adjust his head posture and position to meet the final shooting requirements, wherein the user has the first head posture at time T1, and the display screen is displayed in the first state, such as the color of the face guide frame is displayed as red; when the user adjusts his In the process of monitoring the head posture and position, the image collector collects the user's status data in real time. For example, at time T2, the image collector captures the user's status to obtain image B, and sends image B to the processor. After the processor recognizes image A, it determines that there is a face in image B, and the facial contour of the face at this time can meet the preset conditions, so that the processor can generate a face guide frame with a second color, such as a green face guide frame, and display the green face guide frame through a display screen set on the mirror; when the user sees that the color of the face guide frame is the second color, that is, green, the user can know that his current status can meet the final shooting requirements, wherein the user has the second head posture at time T2, and the display screen is displayed in the second state, such as the color of the face guide frame is displayed as green.

[0075] In the above process, when the user sees that the color of the face guide frame on the display screen is the first color, on the one hand, it can be assumed that the user has read the instruction manual of the smart makeup mirror. For example, the instruction manual can clearly state: when the color of the face guide frame is the first color, the user needs to adjust his head posture and position by himself; when the color of the face guide frame is the second color, the user no longer needs to adjust his head posture and position, and maintain the current state to a preset time threshold. The user knows that he needs to adjust his head posture and position based on the content of the instruction manual and the fact that the current color of the face guide frame is the first color. On the other hand, the user may receive text prompts and voice prompts from the smart makeup mirror through the prompter. Both text and voice prompts the user to adjust his head posture and position, so that the user knows that he needs to adjust his head posture and position according to the adjustment prompts issued by the smart makeup mirror to meet the final shooting requirements. Based on the same principle, when the user sees that the color of the face guide box on the display screen is the second color, on the one hand, it can be assumed that the user has read the instruction manual of the smart makeup mirror. On the other hand, it can also be that the user directly receives the text prompt information and voice prompt information sent by the smart makeup mirror through the prompter, and knows that he needs to maintain the current state to a preset time threshold, so that the smart makeup mirror can collect face photos that meet the shooting requirements.

[0076] like Figure 5 FIG. 1 is a schematic diagram of an interface of a real-time face guide frame provided in an embodiment of the present application. Figure 5 Figure (a) is a schematic diagram of an interface of a face guide frame with a first color provided in an embodiment of the present application, which is used to indicate that the area where the facial contour of the face is located does not meet the preset conditions, so that the face guide frame is displayed in the first color; Figure 5 Figure (b) is a schematic diagram of an interface of a face guide frame with a second color provided in an embodiment of the present application, which is used to indicate that the area where the facial contour of the face is located meets the preset conditions, so that the face guide frame appears in the second color.

[0077] It should be noted that Figure 5 In the example, a thinner and darker line is used to indicate that the facial contour area of ​​the face does not meet the preset condition, that is, the corresponding face guide frame has the first color, corresponding to Figure (a); Figure 5 The use of thicker and brighter lines indicates that the area where the facial contour of the face is located meets the preset conditions, that is, the corresponding face guide frame has the second color, corresponding to Figure (b).

[0078] In certain embodiments of the present application, if it is determined that the Euler angle corresponding to the head posture does not meet the preset angle condition, it is determined to send the first indication information to the user; the preset angle condition is a face-facing makeup mirror; and / or the contour position of the facial contour in the makeup mirror is determined based on the first image information; if it is determined that the contour position does not meet the preset position condition, it is determined to send the first indication information to the user; the preset position condition is that the contour position is located between a first face frame and a second face frame; wherein, the first face frame is a face frame with a maximum recognizable facial contour, and the second face frame is a face frame with a minimum recognizable facial contour.

[0079] In certain embodiments of the present application, when the user's face is facing the mirror and the head is at an appropriate distance from the mirror, the image information of the user collected at this time can be defined as a photo that meets the shooting requirements. In this process, it includes determining whether the user's head posture meets the preset angle condition and whether the user's position information meets the preset position condition. If and only if the user's head posture meets the preset angle condition and the user's position information meets the preset position condition, the user's image information in this state can be used as a photo that meets the shooting requirements. Specifically:

[0080] In the above example, when the user's head posture is determined by the 6-point 2D-3D key point matching technology of the face, that is, the three Euler angles corresponding to the head postures are determined, then for any one of the Euler angles, the Euler angle is compared with the preset angle condition corresponding to it. If and only if these three Euler angles respectively meet their respective preset angle conditions, it is determined that the user is facing the mirror at this time.

[0081] In the above example, in order to determine whether the position of the user's head from the mirror is appropriate, the embodiment of the present application provides a schematic diagram of position determination. Figure 6 As shown, the solid-line frame is used to represent the face guide frame, and the coordinates of the upper left point of the face guide frame are set to (a, b), and the coordinates of the lower right point are set to (a+w, b+h), which means that the face guide frame is a rectangular frame with a width of w and a height of h. When the user's facial contour just meets the face guide frame, it means that the position of the user's head relative to the mirror surface is optimal at this time; however, in the process of adjusting the position of the user's head, it is not always possible to adjust it very accurately so that the facial contour just meets the requirements of the face guide frame. Therefore, the present application sets a first face frame and a second face frame based on the idea of ​​an acceptable error range, and refers to Figure 6, dotted frame 1 and dotted frame 2 are used to represent the first face frame and the second face frame respectively, wherein the first face frame is the face frame with the largest recognizable facial contour, such as dotted frame 1 is used to represent the maximum bounding box of face detection, and the second face frame is the face frame with the smallest recognizable facial contour, such as dotted frame 2 is used to represent the smallest bounding box of face detection, which means that when the facial contour of the user recognized by the image collector is located in the area between dotted frame 1 and dotted frame 2, it means that the position of the user's face relative to the smart makeup mirror is also appropriate. As an example, suppose that dotted frame 1 and the solid frame have the same center, and dotted frame 1 is a rectangular frame with a width of 1.1w and a height of 1.1h, and suppose that dotted frame 2 and the solid frame have the same center, and dotted frame 2 is a rectangular frame with a width of 0.55w and a height of 0.55h. Therefore, when the coordinates (left, top, right, bottom) of the facial contour of the user recognized by the image collector meet the following requirements, it means that the position of the user's face relative to the smart makeup mirror is appropriate:

[0082] a+w / 2-1.1w / 2 <left<a+w / 2-0.55w / 2;

[0083] b+h / 2-1.1h / 2 <top<b+h / 2-0.55w / 2;

[0084] a+w / 2+0.55w / 2 <right<a+w / 2+1.1w / 2;

[0085] b+h / 2+0.55h / 2 <bottom<b+h / 2+1.1h / 2;

[0086] Among them, left is used to represent the horizontal coordinate of the upper left point of the user's facial contour, top is used to represent the vertical coordinate of the upper left point of the user's facial contour, right is used to represent the horizontal coordinate of the lower right point of the user's facial contour, and bottom is used to represent the vertical coordinate of the lower right point of the user's facial contour.

[0087] In one implementation of the above step 202, when it is determined that the head posture and the position information meet the preset conditions, a second indication message is sent to the user, and the second indication message is used to instruct the user to maintain the current state until a preset time threshold.

[0088] In certain embodiments of the present application, the prompter of the makeup mirror is used to issue the first indication information according to the configuration of the processor; optionally, the image collector of the makeup mirror is used to collect second image information of the user when maintaining the current state.

[0089] For example, when the processor of the smart makeup mirror determines that the user's head posture meets the preset angle condition and the user's position information meets the preset position condition, it is determined that the image information of the user in this state meets the requirements of photo shooting. At this time, the processor can send an instruction to the user to instruct the user to maintain this state until the preset time threshold. Wherein, the processor sends the instruction information to the prompter, and the prompter sends a prompt to the user, wherein the prompter can send a prompt to the user in the form of text, or in the form of voice broadcast, or in the form of a combination of text and voice broadcast, or through the color change of the face guide frame in the display screen (such as the color of the face guide frame changes from red to green), or other forms of prompts, which are not specifically limited in this application; after the user receives the information of maintaining the current state until the preset time threshold, the user can perform the action of maintaining the current state until the preset time threshold according to the prompt, and the smart makeup mirror detects that the duration of the user maintaining the current state reaches the preset time threshold. At this time, the processor sends an image acquisition instruction to the image collector so that the image collector collects the second image information of the user when maintaining the current state.

[0090] like Figure 7 As shown, it is a schematic diagram of an initialization interface for collecting face photos provided in an embodiment of the present application. The user can be prompted to "look straight at the camera", "take off glasses" and "adjust distance" in the form of text. The circle in the figure is used to indicate that the makeup mirror can also support users to manually click to take pictures.

[0091] like Figure 8 As shown, a schematic diagram of a face photo acquisition success interface provided by an embodiment of the present application is provided. Among them, the user can be prompted with text that "face acquisition is successful"; after the user receives the "face acquisition is successful" message, if the user needs to update the photos that have met the shooting requirements based on some needs, the makeup mirror can support the re-collection of face photos, such as prompting the user to re-collect face photos through the words "re-identify", so that when the user clicks the "re-identify" function button, the makeup mirror can re-execute the steps of face photo acquisition and judgment; otherwise, the user can directly enter the next step of the operation process by clicking the "perfect pass" function button.

[0092] Based on the same concept, the embodiment of the present application also provides a makeup mirror, which can correspond to the reference Figure 1 The makeup mirror 110 in the system shown in FIG. Fig. 9As shown, it at least includes a memory 901 and a processor 902, the memory is used to store program instructions; the processor is used to call the program instructions stored in the memory, and at least implement the following method by executing the obtained program: determining the user's head posture and the position information of the user relative to the makeup mirror according to the first image information; wherein the first image information is obtained by collecting the state of the user through the image collector of the makeup mirror; based on the head posture and the position information, determining whether to send first indication information to the user, the first indication information is used to instruct the user to adjust the head posture and / or position.

[0093] It is worth noting that the method that can be implemented by the makeup mirror in the embodiment of the present application can be specifically referred to the corresponding description in the above method embodiment, and will not be repeated here.

[0094] The embodiment of the present application also provides a computing device, which may be a desktop computer, a portable computer, a smart phone, a tablet computer, a personal digital assistant (PDA), etc. The computing device may include a central processing unit (CPU), a memory, an input / output device, etc. The input device may include a keyboard, a mouse, a touch screen, etc. The output device may include a display device, such as a liquid crystal display (LCD), a cathode ray tube (CRT), etc.

[0095] The memory may include a read-only memory (ROM) and a random access memory (RAM), and provides the processor with program instructions and data stored in the memory. In an embodiment of the present application, the memory may be used to store program instructions of the state adjustment method;

[0096] The processor is used to call the program instructions stored in the memory and execute the state adjustment method according to the obtained program.

[0097] like Fig.10 FIG. 1 is a schematic diagram of a computing device provided in an embodiment of the present application, wherein the computing device includes:

[0098] Processor 1001, memory 1002, transceiver 1003, bus interface 1004; wherein the processor 1001, memory 1002 and transceiver 1003 are connected via bus 1005;

[0099] The processor 1001 is used to read the program in the memory 1002 and execute the above-mentioned state adjustment method;

[0100] The processor 1001 may be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and a NP. It may also be a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0101] The memory 1002 is used to store one or more executable programs and can store data used by the processor 1001 when performing operations.

[0102] Specifically, the program may include program code, and the program code includes computer operation instructions. The memory 1002 may include volatile memory, such as random-access memory (RAM); the memory 1002 may also include non-volatile memory, such as flash memory, hard disk drive (HDD) or solid-state drive (SSD); the memory 1002 may also include a combination of the above-mentioned types of memory.

[0103] The memory 1002 stores the following elements, executable modules or data structures, or a subset thereof, or an extended set thereof:

[0104] Operation instructions: include various operation instructions, used to implement various operations.

[0105] Operating system: includes various system programs used to implement various basic businesses and handle hardware-based tasks.

[0106] The bus 1005 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.10 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0107] The bus interface 1004 may be a wired communication access port, a wireless bus interface or a combination thereof, wherein the wired bus interface may be, for example, an Ethernet interface. The Ethernet interface may be an optical interface, an electrical interface or a combination thereof. The wireless bus interface may be a WLAN interface.

[0108] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute a state adjustment method.

[0109] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0110] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0111] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0112] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0113] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0114] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A cosmetic mirror, characterized in that: include: An image collector, used for collecting first image information of a user; The processor is configured as: determining the head posture of the user and the position information of the user relative to the makeup mirror according to the first image information; Based on the head posture and the position information, determining whether to send first instruction information to the user, the first instruction information being used to instruct the user to adjust the head posture and / or position; The processor is specifically configured to: If it is determined that the Euler angle corresponding to the head posture does not meet the preset angle condition, it is determined to send the first indication information to the user; the preset angle condition is that the face is facing the makeup mirror; and / or the contour position of the facial contour in the makeup mirror is determined based on the first image information; if it is determined that the contour position does not meet the preset position condition, it is determined to send the first indication information to the user; the preset position condition is that the contour position is located between the first face frame and the second face frame; wherein the first face frame is the face frame with the largest recognizable facial contour, and the second face frame is the face frame with the smallest recognizable facial contour; the contour position is determined by the horizontal coordinate of the upper left point of the facial contour in the makeup mirror, The vertical coordinate of the upper left point of the facial contour in the makeup mirror, the horizontal coordinate of the lower right point of the facial contour in the makeup mirror, and the vertical coordinate of the lower right point of the facial contour in the makeup mirror are represented, and the preset position condition means that the horizontal coordinate of the upper left point of the facial contour in the makeup mirror satisfies the first constraint condition and the second constraint condition, wherein the first constraint condition is determined according to the horizontal coordinate of the upper left point of the face guide frame in the makeup mirror, the width of the face guide frame, and the width of the first face frame, and the second constraint condition is determined according to the horizontal coordinate of the upper left point of the face guide frame in the makeup mirror, the width of the face guide frame, and the width of the second face frame; the upper left point of the facial contour The vertical coordinate of the point in the makeup mirror satisfies the third constraint and the fourth constraint, wherein the third constraint is determined according to the vertical coordinate of the upper left point of the face guide frame in the makeup mirror, the height of the face guide frame and the height of the first face frame, and the fourth constraint is determined according to the vertical coordinate of the upper left point of the face guide frame in the makeup mirror, the height of the face guide frame and the height of the second face frame; the horizontal coordinate of the lower right point of the facial contour in the makeup mirror satisfies the fifth constraint and the sixth constraint, wherein the fifth constraint is determined according to the horizontal coordinate of the upper left point of the face guide frame in the makeup mirror, the width of the face guide frame and the width of the second face frame , the sixth constraint condition is determined according to the horizontal coordinate of the upper left point of the face guide frame in the makeup mirror, the width of the face guide frame and the width of the first face frame; the vertical coordinate of the lower right point of the facial contour in the makeup mirror satisfies the seventh constraint condition and the eighth constraint condition, the seventh constraint condition is determined according to the vertical coordinate of the upper left point of the face guide frame in the makeup mirror, the height of the face guide frame and the height of the second face frame, and the eighth constraint condition is determined according to the vertical coordinate of the upper left point of the face guide frame in the makeup mirror, the height of the face guide frame and the height of the first face frame; the face guide frame has the same center as the first face frame and the second face frame; A prompter is used to issue the first indication information according to the configuration of the processor.

2. The cosmetic mirror according to claim 1, characterized in that: The processor is further configured to: When it is determined that the head posture and the position information meet the preset conditions, second indication information is sent to the user, where the second indication information is used to instruct the user to maintain the current state until a preset time threshold; The prompter is further used to issue the second indication information according to the configuration of the processor; The image collector is further used to collect second image information of the user when the user maintains the current state.

3. The cosmetic mirror according to claim 1, characterized in that: The processor is specifically configured to: After recognizing that the first image information includes a face image, obtaining N 2D face key points in the face image; N is a positive integer; The N 2D facial key points are matched with a preset 3D facial model to determine the head posture; wherein the head posture is represented by Euler angles.

4. The cosmetic mirror according to claim 1, characterized in that: Also included is a display screen disposed on the mirror surface; The processor is specifically configured to: After recognizing that the first image information includes a face image, generating the face guide frame; The display screen is used to display the face guide frame; the face guide frame is used to instruct the user to place the facial contour within the face guide frame.

5. The cosmetic mirror according to claim 4, characterized in that: The processor is specifically configured to: After recognizing that the first image information includes a face image, generating a face guide frame having a first color; When it is determined that the head posture and the position information meet the preset conditions, a face guide frame with a second color is generated.

6. A state adjustment method, characterized in that: include: Determine the user's head posture and the position information of the user relative to the makeup mirror according to the first image information; wherein the first image information is obtained by collecting the state of the user through the image collector of the makeup mirror; Based on the head posture and the position information, determine whether to issue first instruction information to the user, the first instruction information being used to instruct the user to adjust the head posture and / or position; wherein, if it is determined that the Euler angle corresponding to the head posture does not satisfy a preset angle condition, determine to issue the first instruction information to the user; the preset angle condition is a face-facing makeup mirror; and / or determine the contour position of the facial contour in the makeup mirror based on the first image information; if it is determined that the contour position does not satisfy a preset position condition, determine to issue the first instruction information to the user; the preset position condition is the contour The position is located between a first face frame and a second face frame; wherein the first face frame is a face frame with a maximum recognizable facial outline, and the second face frame is a face frame with a minimum recognizable facial outline; the outline position is represented by the horizontal coordinate of the upper left point of the facial outline in the makeup mirror, the vertical coordinate of the upper left point of the facial outline in the makeup mirror, the horizontal coordinate of the lower right point of the facial outline in the makeup mirror, and the vertical coordinate of the lower right point of the facial outline in the makeup mirror, and the preset position condition refers to: the horizontal coordinate of the upper left point of the facial outline in the makeup mirror satisfies the first constraint condition and the second constraint condition, and the wherein the first constraint condition is determined according to the horizontal coordinate of the upper left point of the face guide frame in the makeup mirror, the width of the face guide frame, and the width of the first face frame; the second constraint condition is determined according to the horizontal coordinate of the upper left point of the face guide frame in the makeup mirror, the width of the face guide frame, and the width of the second face frame; the vertical coordinate of the upper left point of the facial contour in the makeup mirror satisfies the third constraint condition and the fourth constraint condition, wherein the third constraint condition is determined according to the vertical coordinate of the upper left point of the face guide frame in the makeup mirror, the height of the face guide frame, and the height of the first face frame, The fourth constraint condition is determined according to the ordinate of the upper left point of the face guide frame in the makeup mirror, the height of the face guide frame, and the height of the second face frame; the abscissa of the lower right point of the facial contour in the makeup mirror satisfies the fifth constraint condition and the sixth constraint condition, wherein the fifth constraint condition is determined according to the abscissa of the upper left point of the face guide frame in the makeup mirror, the width of the face guide frame, and the width of the second face frame, and the sixth constraint condition is determined according to the abscissa of the upper left point of the face guide frame in the makeup mirror, the width of the face guide frame, and the width of the first face frame;The vertical coordinate of the lower right point of the facial contour in the makeup mirror satisfies the seventh constraint and the eighth constraint. The seventh constraint is determined according to the vertical coordinate of the upper left point of the face guide frame in the makeup mirror, the height of the face guide frame and the height of the second face frame. The eighth constraint is determined according to the vertical coordinate of the upper left point of the face guide frame in the makeup mirror, the height of the face guide frame and the height of the first face frame. The face guide frame has the same center as the first face frame and the second face frame.

7. The method according to claim 6, characterized in that The method further comprises: When it is determined that the head posture and the position information meet the preset conditions, second indication information is sent to the user, where the second indication information is used to instruct the user to maintain the current state until a preset time threshold.

8. A computer device, characterized in that: include: Memory for storing computer programs; A processor, configured to call a computer program stored in the memory, and execute the method according to any one of claims 6 to 7 according to the obtained program.