A method and device for generating a cosmetic formula

By obtaining activity information and calculating the viewing angle, the makeup color is determined and the makeup formula is generated, which solves the problem in the existing technology that makeup products are not suitable for users and venues, and ensures that users present their best postures on different occasions.

CN113609322BActive Publication Date: 2024-10-01GUANGDONG MARUBI BIOLOGICAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110788072.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-13
Publication Date
2024-10-01
Estimated Expiration
2041-07-13

Smart Images

  • Figure CN113609322B_ABST
    Figure CN113609322B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and device for generating a makeup formula, the method comprising: obtaining user activity information, the activity information comprising venue information, location information and lighting information; using the venue information and the location information to calculate the viewing angle of the audience; determining the makeup color according to the viewing angle and the lighting information; screening a plurality of makeup products based on the makeup color, and using the plurality of makeup products to generate a makeup formula. The present invention can obtain the user's activity information, determine the cosmetics required by the user based on the activity information, so that the used cosmetics can match the user's participating activities and the user's skin, so that the user can present the best posture.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of cosmetics, and in particular to a method and device for generating a cosmetic formula. Background Art

[0002] The pursuit of beauty has always been human nature, both in ancient and modern times, both in China and abroad. Cosmetics or skin care products can clean, maintain, beautify and modify a person's appearance, or correct human body odor to keep the user in good condition.

[0003] Since cosmetics or skin care products can modify the user's appearance to enhance the user's appearance and temperament, users will be made up when attending different occasions or events to make them look their best. For example, before the emcee or host hosts an award ceremony or wedding event, the hired makeup staff will select the corresponding products based on their personal experience to do maintenance and makeup for the user in the background.

[0004] However, the currently commonly used maintenance makeup methods have the following technical problems. Since the maintenance makeup products used are selected by makeup artists based on their subjective experience or personal visual perception, the products used are not suitable for users, and the products used do not match the activities, event venues or lighting that the users attend, making it difficult to present a good posture. Summary of the invention

[0005] The present invention provides a method and device for generating a makeup formula, which can generate a usage formula of a makeup product adapted to the activity venue attended by the user and the viewing angle of the audience, so that the user can use the formula to maintain makeup and present the best posture to the audience.

[0006] A first aspect of an embodiment of the present invention provides a method for generating a cosmetic formula, the method comprising:

[0007] Acquire user's activity information, wherein the activity information includes venue information, location information and lighting information;

[0008] Calculating the viewing angle of the audience using the venue information and the location information;

[0009] determining a makeup color according to the viewing angle and the lighting information;

[0010] A plurality of cosmetic products are screened based on the cosmetic color, and a cosmetic formula is generated using the plurality of cosmetic products.

[0011] In a possible implementation manner of the first aspect, determining the makeup color according to the viewing angle and the lighting information includes:

[0012] Collecting a user's facial image;

[0013] determining a viewing area in the facial image based on the viewing angle, and capturing a viewing image from the facial image according to the viewing area;

[0014] adjusting the image color value of the viewing image according to the lighting information and generating a lighting illumination image;

[0015] extracting the user's skin condition from the light illumination image;

[0016] When the skin condition is exposed, determining the makeup color to be a natural color;

[0017] When the skin condition is gray, the makeup color is determined to be a bright color.

[0018] In a possible implementation manner of the first aspect, screening a plurality of cosmetic products based on the cosmetic color includes:

[0019] Get the user's skin color;

[0020] Superimposing and blending the skin color and the makeup color to obtain a matching color;

[0021] A plurality of corresponding cosmetic products are searched according to the matching colors.

[0022] In a possible implementation manner of the first aspect, the position information includes user position information and viewer position information, and the viewing angle includes a horizontal angle and a vertical angle;

[0023] The calculating the viewing angle of the audience by using the venue information and the position information includes:

[0024] Calculate the vertical angle of the audience's viewing according to the venue information and the audience's position information;

[0025] The lateral viewing angle of the audience is calculated according to the user position information and the audience position information.

[0026] A second aspect of an embodiment of the present invention provides a device for generating a cosmetic formula, the device comprising:

[0027] An acquisition module is used to acquire the user's activity information, wherein the activity information includes venue information, location information and lighting information;

[0028] A calculation module, used to calculate the viewing angle of the audience using the venue information and the location information;

[0029] a determination module, configured to determine a makeup color according to the viewing angle and the lighting information;

[0030] A generation module is used to screen a plurality of cosmetic products based on the cosmetic color and generate a cosmetic formula using the plurality of cosmetic products.

[0031] In a possible implementation manner of the second aspect, the determining module is further configured to:

[0032] Collecting a user's facial image;

[0033] determining a viewing area in the facial image based on the viewing angle, and capturing a viewing image from the facial image according to the viewing area;

[0034] adjusting the image color value of the viewing image according to the lighting information and generating a lighting illumination image;

[0035] extracting the user's skin condition from the light illumination image;

[0036] When the skin condition is exposed, determining the makeup color to be a natural color;

[0037] When the skin condition is gray, the makeup color is determined to be a bright color.

[0038] In a possible implementation manner of the second aspect, the generating module is further configured to:

[0039] Get the user's skin color;

[0040] Superimposing and blending the skin color and the makeup color to obtain a matching color;

[0041] A plurality of corresponding cosmetic products are searched according to the matching colors.

[0042] In a possible implementation manner of the second aspect, the position information includes user position information and viewer position information, and the viewing angle includes a horizontal angle and a vertical angle;

[0043] The calculation module is also used for:

[0044] Calculate the vertical angle of the audience's viewing according to the venue information and the audience position information;

[0045] The lateral viewing angle of the audience is calculated according to the user position information and the audience position information.

[0046] Compared with the prior art, the method and device for generating a makeup formula provided by the embodiments of the present invention have the following beneficial effects: the present invention can obtain the user's activity information, determine the cosmetics required by the user based on the activity information, so that the cosmetics used can match the user's participation in the activities and the user's skin, thereby allowing the user to present the best posture. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 It is a flowchart of a method for generating a cosmetic formula provided by an embodiment of the present invention;

[0048] Figure 2 It is a structural schematic diagram of a makeup formula generation device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0049] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0050] The commonly used maintenance makeup methods currently have the following technical problems. When attending an event, a makeup artist hired by the event will do makeup for each participant, and the maintenance makeup products used are selected by the makeup artist based on personal subjective experience or personal visual perception. Different users have different skin types and body fats, and the products used may not necessarily be suitable for the users. Moreover, the products used are often inconsistent with the activities, event venues or lighting attended by the users, making it difficult to present the users' best postures.

[0051] In order to solve the above problems, a method for generating a cosmetic formula provided in an embodiment of the present application will be introduced and explained in detail through the following specific embodiments.

[0052] Reference Figure 1 , which shows a flow chart of a method for generating a cosmetic formula provided by an embodiment of the present invention.

[0053] Wherein, as an example, the method for generating the cosmetic formula may include:

[0054] S11. Acquire activity information of the user, where the activity information includes venue information, location information, and lighting information.

[0055] The activity information may be comprehensive personal information corresponding to an activity attended or participated by the user. The user may be a participant of the activity, such as a dancer, emcee, host, performing guest, etc.

[0056] In this embodiment, the activity information may include venue information, location information, and lighting information.

[0057] For example, venue information can be the coordinates of an outdoor park, the stage area of ​​an indoor shopping mall, etc. Location information is the user's standing position in the event, or it can be the audience's viewing position, for example, the host is on the center bisector of the stage, the drumming guest is playing drums at the upper left corner of the stage, and the audience is watching from the front of the stage, etc. Lighting information is the angle information and brightness information of the stage lighting.

[0058] S12: Calculate the viewing angle of the audience using the venue information and the location information.

[0059] In order to allow the audience to see the best posture of the participants on the stage, the venue information and position information can be used to calculate the audience's viewing angle, which is the angle when the audience's position in the venue is looking at the stage.

[0060] In one embodiment, the position information includes user position information and viewer position information, and the viewing angle includes a horizontal angle and a vertical angle. As an example, step S12 may include the following sub-steps:

[0061] The horizontal angle is the horizontal viewing angle of the audience watching the entire stage and the participants on the stage from the audience position. The vertical angle is the vertical viewing angle of the audience watching the entire stage and the participants on the stage from the audience position.

[0062] Sub-step S121: Calculate the audience's viewing longitudinal angle according to the venue information and the audience position information.

[0063] Specifically, the audience's viewing height value can be obtained from the audience position information, and then the stage height can be obtained from the venue information. A certain preset height value is added to the stage height to obtain the audience's viewing height value.

[0064] Connect the coordinate points corresponding to the viewable height value and the viewing angle viewing height value into a straight line, extend the coordinates of the viewable height value downward by a vertical line, and extend the coordinates of the viewing angle viewing height value horizontally by a horizontal line toward the stage, and connect them into a right triangle with the straight line connecting the coordinate points corresponding to the viewable height value and the viewing angle viewing height value as the oblique line, and use trigonometric functions to calculate the corresponding longitudinal angle.

[0065] Sub-step S122: Calculate the lateral viewing angle of the audience according to the user position information and the audience position information.

[0066] Specifically, the coordinate point A of the user's position information and the two coordinate points B and C at the farthest ends from the stage of the audience's position information can be obtained.

[0067] Calculate the angle ∠BAC to get the lateral angle.

[0068] S13: Determine makeup color according to the viewing angle and the lighting information.

[0069] Since different positions receive different lights, and different viewing angles will also cause differences, it is necessary to determine the required makeup color based on the viewing angle and lighting information.

[0070] In order to make the makeup color more consistent with the user's skin condition on stage, step S13 may include the following sub-steps as an example:

[0071] Sub-step S131: collecting a user's facial image.

[0072] In an optional embodiment, the facial image may be acquired synchronously with acquiring the activity information of the user. Specifically, the facial image of the user may be acquired through a user terminal.

[0073] Sub-step S132: determining a viewing area in the facial image based on the viewing angle, and capturing a viewing image from the facial image according to the viewing area.

[0074] On the stage, because different users stand in different positions, the audience may only see part of the user's face or the whole face, or may not see the participant standing in a corner. Therefore, it is necessary to determine the specific viewing area of ​​the audience.

[0075] Specifically, the user's location information can be determined to determine whether the location information is within the viewing angle. If so, it is determined whether the viewing angle can cover the user. If the viewing angle can completely cover the location information, the viewing area is the entire facial image. If the left part covers the location information, the viewing area is the left area of ​​the facial image. If the right part covers the location information, the viewing area is the right area of ​​the facial image.

[0076] After the viewing area is determined, a corresponding viewing image may be captured from the facial image according to the viewing area.

[0077] Sub-step S133: adjusting the image color value of the viewing image according to the lighting information and generating a lighting illumination image.

[0078] After determining the viewing image, lighting information (e.g., light intensity, light color, etc.) can be collected, and then the color change value formed by the viewing image caused by lighting in the viewing image can be simulated according to the lighting information, and the viewing image can be adjusted based on the color change value to generate a lighting image.

[0079] The generated light-illuminated image is a simulated facial image of a user illuminated by light on a stage.

[0080] Sub-step S134: extracting the user's skin condition from the light illumination image.

[0081] Different users' skin types will be exposed to different light conditions. For example, if a user's skin color is white, and they are in the middle of the stage and exposed to strong light, their appearance will be exposed and difficult to see. If a user's skin color is yellowish, and they are standing at the edge of the stage and only have a little light, their appearance will be dim.

[0082] It is necessary to obtain the state of the user when being illuminated by light so that the makeup can be adjusted for the user based on the user's skin condition.

[0083] Sub-step S135: when the skin condition is exposed, determining the makeup color to be the natural color.

[0084] Sub-step S136: when the skin condition is gray, determine that the makeup color is a bright color.

[0085] Specifically, when the user's skin condition is exposed, it can be determined that the user is already in a state of bright highlights and easy to see, and the user's makeup can be appropriately faded. When the user's skin condition is dull and gray, it can be determined that the user is already in a state of dull and difficult to see, and the user's makeup can be appropriately made more bright.

[0086] S14, screening a plurality of cosmetic products based on the cosmetic color, and generating a cosmetic formula using the plurality of cosmetic products.

[0087] After determining the user's skin condition and the makeup color that matches the skin condition, multiple cosmetics for use can be screened, and corresponding makeup formulas can be generated. Finally, the corresponding makeup formula is recommended to the user for reference.

[0088] After the makeup color is determined, the makeup color may not match the user's personal skin color. In order to match the makeup color with the user's skin color, as an example, step S14 may include the following sub-steps:

[0089] Sub-step S141: obtaining the user's skin color.

[0090] Specifically, the skin color can be obtained from a facial image of the user, which is captured in advance and is not made up, and the corresponding skin color can be obtained from the facial image.

[0091] Sub-step S142: superimposing and blending the skin color and the makeup color to obtain a matching color.

[0092] The skin color and makeup color are superimposed and blended. For example, if the user's skin color is pale and the makeup color is bright color, a brighter color can be superimposed on the bright color to obtain a matching color.

[0093] Sub-step S143: searching for a plurality of corresponding cosmetic products according to the matching color.

[0094] Based on matching colors, multiple matching makeup products can be found.

[0095] In actual operation, since different cosmetic products have different absorption and use orders, the absorption order of each cosmetic product can be obtained separately, and then the cosmetic products are arranged in order from slow to fast, and finally the corresponding cosmetic formula is generated.

[0096] In this embodiment, the embodiment of the present invention provides a method for generating a makeup formula, which has the beneficial effect that the present invention can obtain the user's activity information, determine the cosmetics required by the user based on the activity information, so that the cosmetics used can match the user's participation in the activities and the user's skin, thereby allowing the user to present the best posture.

[0097] The embodiment of the present invention also provides a device for generating a cosmetic formula, see Figure 2 , showing a schematic structural diagram of a makeup formula generation device provided by an embodiment of the present invention.

[0098] Wherein, as an example, the makeup formula generating device may include:

[0099] The acquisition module 201 is used to acquire the user's activity information, wherein the activity information includes venue information, location information and lighting information;

[0100] A calculation module 202, configured to calculate a viewing angle of a viewer using the venue information and the location information;

[0101] A determination module 203, configured to determine a makeup color according to the viewing angle and the lighting information;

[0102] The generation module 204 is used to screen a plurality of cosmetic products based on the cosmetic color, and generate a cosmetic formula using the plurality of cosmetic products.

[0103] Furthermore, the determining module is also used for:

[0104] Collecting a user's facial image;

[0105] determining a viewing area in the facial image based on the viewing angle, and capturing a viewing image from the facial image according to the viewing area;

[0106] adjusting the image color value of the viewing image according to the lighting information and generating a lighting illumination image;

[0107] extracting the user's skin condition from the light illumination image;

[0108] When the skin condition is exposed, determining the makeup color to be a natural color;

[0109] When the skin condition is gray, the makeup color is determined to be a bright color.

[0110] Furthermore, the generating module is also used for:

[0111] Get the user's skin color;

[0112] Superimposing and blending the skin color and the makeup color to obtain a matching color;

[0113] A plurality of corresponding cosmetic products are searched according to the matching colors.

[0114] Further, the position information includes user position information and viewer position information, and the viewing angle includes a horizontal angle and a vertical angle;

[0115] The calculation module is also used for:

[0116] Calculate the vertical angle of the audience's viewing according to the venue information and the audience's position information;

[0117] The lateral viewing angle of the audience is calculated according to the user position information and the audience position information.

[0118] Furthermore, an embodiment of the present application also provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for generating a makeup formula as described in the above embodiment is implemented.

[0119] Furthermore, an embodiment of the present application also 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 the method for generating a cosmetic formula as described in the above embodiment.

[0120] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A method for generating a cosmetic formula, characterized in that: The method comprises: Acquire user's activity information, wherein the activity information includes venue information, location information and lighting information; Calculating the viewing angle of the audience using the venue information and the location information; determining a makeup color according to the viewing angle and the lighting information; screening a plurality of cosmetic products based on the cosmetic color, and generating a cosmetic formula using the plurality of cosmetic products; The step of determining the makeup color according to the viewing angle and the lighting information includes: Collecting a user's facial image; determining a viewing area in the facial image based on the viewing angle, and capturing a viewing image from the facial image according to the viewing area; adjusting the image color value of the viewing image according to the lighting information and generating a lighting illumination image; extracting the user's skin condition from the light illumination image, and determining the makeup color according to the skin condition; The position information includes user position information and viewer position information, and the viewing angle includes a horizontal angle and a vertical angle; The calculating the viewing angle of the audience by using the venue information and the position information includes: Calculate the vertical angle of the audience's viewing according to the venue information and the audience's position information; Calculate the lateral viewing angle of the audience according to the user position information and the audience position information; The specific calculation method of the longitudinal angle is to obtain the viewing height value of the audience from the audience position information, and obtain the viewing height value of the audience from the venue information; Connect the coordinate points corresponding to the viewable height value and the viewing angle viewing height value into a straight line, extend a vertical line downward at the coordinates of the viewable height value, extend a horizontal line horizontally toward the stage direction at the coordinates of the viewing angle viewing height value, and connect them into a right triangle formed by connecting the coordinate points corresponding to the viewable height value and the viewing angle viewing height value, and calculate the longitudinal angle using trigonometric functions; The specific calculation method of the horizontal angle is to obtain the coordinate point of the user position information and the two coordinate points at the end of the audience position information that are farthest from the stage; Calculate the angle between the two coordinate points of the end and the coordinate point of the user's location information to obtain the horizontal angle.

2. The method for generating a cosmetic formula according to claim 1, characterized in that: The step of determining the makeup color according to the viewing angle and the lighting information includes: When the skin condition is exposed, determining the makeup color to be a natural color; When the skin condition is gray, the makeup color is determined to be a bright color.

3. The method for generating a cosmetic formula according to claim 1, characterized in that: The screening of a plurality of cosmetic products based on the cosmetic color comprises: Get the user's skin color; Superimposing and blending the skin color and the makeup color to obtain a matching color; A plurality of corresponding cosmetic products are searched according to the matching colors.

4. A cosmetic formula generating device, characterized in that: The device comprises: An acquisition module is used to acquire the user's activity information, wherein the activity information includes venue information, location information and lighting information; A calculation module, used to calculate the viewing angle of the audience using the venue information and the location information; a determination module, configured to determine a makeup color according to the viewing angle and the lighting information; a generating module, configured to screen a plurality of cosmetic products based on the cosmetic color, and generate a cosmetic formula using the plurality of cosmetic products; The determining module is also used for: Collecting a user's facial image; determining a viewing area in the facial image based on the viewing angle, and capturing a viewing image from the facial image according to the viewing area; adjusting the image color value of the viewing image according to the lighting information and generating a lighting illumination image; extracting the user's skin condition from the light illumination image, and determining the makeup color according to the skin condition; The position information includes user position information and viewer position information, and the viewing angle includes a horizontal angle and a vertical angle; The calculation module is also used for: Calculate the vertical angle of the audience's viewing according to the venue information and the audience's position information; Calculate the lateral viewing angle of the audience according to the user position information and the audience position information; The specific calculation method of the longitudinal angle is to obtain the viewing height value of the audience from the audience position information, and obtain the viewing height value of the audience from the venue information; Connect the coordinate points corresponding to the viewable height value and the viewing angle viewing height value into a straight line, extend a vertical line downward at the coordinates of the viewable height value, extend a horizontal line horizontally toward the stage direction at the coordinates of the viewing angle viewing height value, and connect them into a right triangle formed by connecting the coordinate points corresponding to the viewable height value and the viewing angle viewing height value, and calculate the longitudinal angle using trigonometric functions; The specific calculation method of the horizontal angle is to obtain the coordinate point of the user position information and the two coordinate points at the end of the audience position information that are farthest from the stage; Calculate the angle between the two coordinate points of the end and the coordinate point of the user's location information to obtain the horizontal angle.

5. The cosmetic formula generating device according to claim 4, characterized in that: The determining module is also used for: When the skin condition is exposed, determining the makeup color to be a natural color; When the skin condition is gray, the makeup color is determined to be a bright color.

6. The cosmetic formula generating device according to claim 4, characterized in that: The generation module is also used for: Get the user's skin color; Superimposing and blending the skin color and the makeup color to obtain a matching color; A plurality of corresponding cosmetic products are searched according to the matching colors.

7. An electronic device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for generating a cosmetic formula according to any one of claims 1 to 3 is implemented.

8. A computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to enable a computer to execute the method for generating a cosmetic formula according to any one of claims 1 to 3.