A lipstick color selection analysis system based on the Internet of Things
By combining the user's facial image and environmental data, a color number recommendation set is generated and the user is allowed to manually adjust. This solves the problem of ignoring external conditions and not considering the user's adjustment needs in the existing technology, and achieves more accurate and personalized lipstick. No. recommendation improves user experience.
Patent Information
- Application Number
- CN202410260834.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-07
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-03-07
AI Technical Summary
The existing technology ignores external conditions in lipstick color matching, such as ambient temperature and humidity, which affect the texture and durability of lipstick, and does not consider the user's need to manually adjust the color number, resulting in poor user experience.
A lipstick color selection and analysis system based on the Internet of Things is designed. Through the user information acquisition module, image processing module, fashion trend analysis module, environmental data acquisition module, color number recommendation module and secondary adjustment module, it combines the user's facial image, environment Data and fashion trends are used to generate a color number recommendation collection, and users are allowed to manually adjust it, ultimately generating a lipstick color that suits their personal preferences and skin color characteristics.
It provides more accurate lipstick color recommendations, taking into account the impact of environmental factors on lipstick color, improving user experience, saving time and energy, and helping users find the most suitable lipstick color.
Smart Images

Figure CN118132842B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Internet of Things, and in particular to a lipstick color matching selection and analysis system based on the Internet of Things. Background Art
[0002] Lipstick is a cosmetic used to be applied on the lips. Its main function is to change the color of the lips and enhance the beauty of the lips. Lipstick comes in a wide variety of colors, including red, orange, pink, purple, etc. Different colors can show different temperaments and styles. Lipstick color matching is an important topic in the field of cosmetics. It involves color theory, color matching, personal skin color and other aspects. With the continuous changes in fashion trends and people's pursuit of beauty, lipstick color matching has become an indispensable part of women's daily makeup.
[0003] The patent name is a technical solution published in a Chinese patent (patent number is 201810793374.1). This solution obtains the user's lip moisture, skin color, and clothing type to recommend a lipstick color that matches the user and sends it to the terminal APP, allowing users to find the lipstick color that suits them more conveniently and improve user satisfaction. However, there are still some shortcomings, which are specifically manifested in the following aspects: First, this solution only takes into account the user's own conditions such as lip moisture, skin color, etc. in lipstick color matching, but ignores external conditions, such as application scenarios, ambient temperature, and humidity. In different scenarios, the presentation effect of lipstick may be different, and changes in ambient temperature and humidity may affect the texture and durability of the lipstick, resulting in poor effect after application of lipstick and failure to achieve the expected effect.
[0004] Second, this solution does not take into account the user's need to manually adjust the color number. If the user is not satisfied with the existing lipstick color number, he or she can adjust the recommended color number according to his or her preferences and needs. Otherwise, it may affect the user experience. Summary of the invention
[0005] In order to overcome the shortcomings of the background technology, the embodiment of the present invention provides a lipstick color selection and analysis system based on the Internet of Things, which can effectively solve the problems involved in the above-mentioned background technology.
[0006] The objective of the present invention can be achieved through the following technical solutions: The present invention provides a lipstick color selection and analysis system based on the Internet of Things, including: a user information acquisition module, which is used to acquire an image of the user's face through a camera, recorded as the user's facial image, and at the same time read the makeup information selected by the user, the makeup information including the makeup intensity and the required application scenario keywords, and generate a required color number recommendation set according to the required application scenario keywords selected by the user.
[0007] The image processing module is used to obtain the user's skin color and lip color based on the user's facial image analysis, and then generate a recommended set of color numbers suitable for the user's skin color and a recommended set of color numbers suitable for the user's lip color.
[0008] The fashion trend analysis module is used to read the popular lipstick colors of each season and analyze them to obtain a recommended set of popular colors.
[0009] The environmental data acquisition module is used to obtain the temperature and humidity of the user's current location.
[0010] The environmental data analysis module is used to obtain the environmental impact coefficient based on the temperature and humidity of the user's current location.
[0011] The color number recommendation module is used to generate a color number recommendation set based on the required color number recommendation set, the user skin color suitable color number recommendation set, the user lip color suitable color number recommendation set, and the popular color number recommendation set.
[0012] The recommendation coefficient analysis module is used to analyze each color number in the color number recommendation set in combination with the environmental impact coefficient and the makeup intensity to obtain the recommendation degree index of each color number.
[0013] The secondary adjustment module is used to synthesize the color number recommendation set and the user's facial image to generate a user's facial simulation image, which is manually adjusted by the user.
[0014] The management database is used to store the color number sets corresponding to the keywords of each application scenario, the skin area pixel chromaticity value range corresponding to the skin color, the recommended color number corresponding to each skin color, the popular lipstick color number of each season, and the color numbers of each system.
[0015] Preferably, the specific analysis method of the user information acquisition module is: to acquire an image of the user's face through a camera, record it as the user's facial image, and select the degree of makeup through the user selection interface, and manually select the required application scenario keywords according to the labels provided by the system, and read the color number set corresponding to each required application scenario keyword from the management database, and match it with the required application scenario keyword selected by the user to generate a recommended set of required color numbers.
[0016] Preferably, the specific analysis process of the image processing module is as follows: the first step is to read the user's facial image, use edge detection technology to separate the user's facial skin area separately, record it as the user's facial skin area, and detect the chromaticity value of each pixel in the user's facial skin area, record it as ε i , where i represents the number of the i-th pixel, i = 1, 2, ..., n, through the formula Get the average chromaticity value of the pixels in the user's facial skin area Wherein n represents the number of pixels, the chromaticity value range corresponding to the skin color of each pixel is extracted from the management library, and the chromaticity value range to which the average chromaticity value of the pixels in the user's facial skin area belongs is obtained by screening, and then the user's skin color is obtained, which is recorded as the user skin color.
[0017] In the second step, the user's lip area is extracted separately from the user's facial image. The average chromaticity value of the pixels in the user's lip area is analyzed in the same way as the average chromaticity value of the pixels in the user's facial skin area. The average chromaticity value of the pixels in the user's lip area is matched with the lip color corresponding to the preset chromaticity value range of the pixels in each lip area to obtain the lip color corresponding to the average chromaticity value of the pixels in the user's lip area, which is recorded as the user's own lip color.
[0018] Preferably, the specific analysis process of the recommended set of color numbers suitable for the user's skin color and the recommended set of color numbers suitable for the user's lip color is as follows: the first step is to read the user's skin color, and at the same time read the recommended color numbers corresponding to each skin color from the management database, match them with the user's skin color, filter out the recommended color numbers corresponding to the user's skin color, and generate a recommended set of color numbers suitable for the user's skin color.
[0019] The second step is to read the user's own lip color, and read the recommended color number corresponding to each lip color from the management database, match it with the user's own lip color, filter out the recommended color number corresponding to the user's own lip color, and generate a recommended set of color numbers suitable for the user's lip color.
[0020] Preferably, the specific analysis process of the fashion trend analysis module is as follows: the first step is to read the popular color numbers of lipsticks of the season and the system color numbers from the management database, compare them with the preset color categories to which the color numbers belong, obtain the popular color numbers of lipsticks of the season and the color categories to which the system color numbers belong, and then match the system color numbers belonging to the same color category as the popular color numbers of lipsticks of the season, record them as recommended color numbers, and perform chromaticity value detection on each recommended color number, record them as λ x , where x represents the number of the xth recommended color number, x=1,2,...,y.
[0021] The second step is to use the formula Get the color difference Δλ of each recommended color number x ,in It represents the chromaticity value of the popular lipstick color of the season that is in the same color category as the x-th recommended color number. The color difference of each recommended color number is compared with the set color difference allowable threshold, and the recommended color numbers with color difference less than the color difference allowable threshold are screened out to form a recommended set of popular colors.
[0022] Preferably, the specific analysis process of the environmental data analysis module is as follows: the first step is to connect to the local meteorological platform, use the device to obtain the latitude and longitude information of the user's location, input the latitude and longitude information of the user's location into the local meteorological platform, divide the time period according to the preset time length, and obtain the temperature and humidity of each time period at the user's current location, which is recorded as α m , β m , where m represents the number of the mth time period, m = 1, 2, ..., n.
[0023] The second step is to calculate the temperature α of the user's current location in each time period m , humidity β m Substitute into the formula The influence degree of environment on lipstick color presentation χ is obtained and recorded as the environmental influence degree coefficient, where α0 and β0 represent the set temperature and humidity reference values, η1 and η2 represent the weight factors of temperature and humidity respectively, and n is the number of time periods.
[0024] Preferably, the specific analysis method of the color number recommendation module is: read the required color number recommendation set, the user skin color suitable color number recommendation set, the user lip color suitable color number recommendation set, and the popular color number recommendation set respectively, compare them one by one to filter out the intersection part, record it as the color number recommendation set, and number each color number in the color number recommendation set according to the set order.
[0025] Preferably, the specific analysis process of the recommendation coefficient analysis module is as follows: the first step is to read the color number recommendation set, and respectively detect the brightness value, hue value and chromaticity value of each color number in the color number recommendation set, which is recorded as l k , γ k , k , where k represents the number of the kth color number, k = 1, 2, ... q, and the environmental impact coefficient χ is read at the same time, and the brightness value, hue value and chromaticity value of each color number are multiplied by the environmental impact coefficient to obtain the brightness value, hue value and chromaticity value of each color number under the influence of the environment, recorded as l' k , γ' k ,λ' k .
[0026] The second step is to calculate the brightness value l' of each color number under the influence of the environment. k , hue value γ' k and chromaticity value λ' k Substitute into formula C k =l' k *a1+γ' k *a2+λ' k *a3 Get the color value C of each color number under the influence of the environment k, where a1, a2, and a3 represent the weight factors of the set brightness value, hue value, and chromaticity value, respectively. At the same time, the makeup intensity selected by the user is read, and it is compared with the preset color value threshold of the color number of each makeup intensity, and the color value threshold of the color number corresponding to the makeup intensity selected by the user is matched. The color value difference of each color number under the influence of the environment is obtained by subtracting it from the color value of each color number under the influence of the environment, which is recorded as ΔC k , substituting it into the formula Get the recommended index of each color number ψ k , where ΔC0 represents the set color value difference reference value, and e is a natural constant.
[0027] Preferably, the specific analysis process of the secondary adjustment module is as follows: the first step is to arrange the color numbers in the color number recommendation set in descending order according to the recommendation degree index, record the first color number as the pre-selected color number, and at the same time read the user's facial image, apply the pre-selected color number to the user's facial image, generate a user facial simulation image, send the user facial simulation image to the user terminal, and have the user manually adjust the color of the user facial simulation image.
[0028] The second step is to read the user facial simulation image that has been manually color-adjusted by the user to form a final user facial effect display image. If the generated user facial effect display image does not meet the user's expectations, return to the previous step and perform manual color adjustment again. If the generated user facial effect display image meets the user's expectations, save the image.
[0029] Compared with the prior art, the present invention has the following beneficial effects: 1. The present invention generates a color recommendation set by analyzing the makeup information selected by the user, the user's facial image, and the popular lipstick colors of each season, so that the user can get lipstick color recommendations that better meet his or her needs based on his or her preferences and skin color characteristics, saving time and energy.
[0030] 2. The present invention obtains the environmental impact coefficient by analyzing the temperature and humidity at the user's current location, and then analyzes each color number in the color number recommendation set to obtain the recommendation degree index of each color number, taking into account the impact of the environment on the lipstick color, and can provide more accurate lipstick color recommendations.
[0031] 3. The present invention combines the color recommendation collection with the user's facial image to form a user's facial simulation image, which is manually adjusted by the user. The user can intuitively see the actual effects of different lipstick colors on his or her face, helping the user to better judge which color is suitable for him or her. At the same time, the user can manually adjust the simulation image according to his or her own preferences and skin color characteristics to achieve an effect that better meets his or her expectations. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for describing the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0033] Figure 1 This is a system module connection diagram of the present invention. DETAILED DESCRIPTION
[0034] 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.
[0035] See also Figure 1 As shown, a lipstick color selection and analysis system based on the Internet of Things includes a user information acquisition module, an image processing module, a fashion trend analysis module, an environmental data acquisition module, an environmental data analysis module, a color number recommendation module, a recommendation coefficient analysis module, a secondary adjustment module, and a management database.
[0036] The management database is connected to the image processing module, the user information acquisition module, the fashion trend analysis module, and the environmental data analysis module; the recommendation coefficient analysis module is connected to the environmental data analysis module, the color number recommendation module, and the secondary adjustment module; the environmental data analysis module is connected to the environmental data acquisition module; and the color number recommendation module is connected to the user information acquisition module and the fashion trend analysis module.
[0037] The user information acquisition module is used to acquire an image of the user's face through a camera, recorded as the user's facial image, and at the same time read the makeup information selected by the user, the makeup information including the makeup intensity and the required application scenario keywords, and generate a recommended set of required color numbers based on the required application scenario keywords selected by the user.
[0038] The specific analysis method of the user information acquisition module is as follows: an image of the user's face is acquired through a camera and recorded as the user's facial image; the makeup intensity is selected through a user selection interface; at the same time, the required application scenario keywords are manually selected according to the labels provided by the system; a color number set corresponding to each required application scenario keyword is read from a management database; the color number set is matched with the required application scenario keyword selected by the user to generate a required color number recommendation set; this is convenient for satisfying the user's demand for lipstick color in different occasions and providing lipstick color recommendations that better meet the user's expectations.
[0039] The image processing module is used to obtain the user's skin color and lip color based on the user's facial image analysis, and then generate a recommended set of color numbers suitable for the user's skin color and a recommended set of color numbers suitable for the user's lip color.
[0040] The specific analysis process of the image processing module is as follows: the first step is to read the user's facial image, use edge detection technology to separate the user's facial skin area separately, record it as the user's facial skin area, and detect the chromaticity value of each pixel in the user's facial skin area, record it as ε i , where i represents the number of the i-th pixel, i = 1, 2, ..., n, through the formula Get the average chromaticity value of the pixels in the user's facial skin area Where n represents the number of pixels, and the chromaticity value range corresponding to the skin color of each pixel is extracted from the management library, and the chromaticity value range to which the average chromaticity value of the pixels in the user's facial skin area belongs is obtained by screening, and then the user's skin color is obtained, which is recorded as the user's skin color. The user's skin color can be accurately identified, and the user can be provided with a lipstick color recommendation that better suits his or her skin color, thereby improving satisfaction.
[0041] In the second step, the user's lip area is extracted separately from the user's facial image. According to the method of analyzing the average chromaticity value of the pixels in the user's facial skin area, the average chromaticity value of the pixels in the user's lip area is analyzed in the same way, and the average chromaticity value of the pixels in the user's lip area is matched with the lip color corresponding to the preset chromaticity value range of the pixels in each lip area to obtain the lip color corresponding to the average chromaticity value of the pixels in the user's lip area, which is recorded as the user's own lip color. According to the characteristics of the user's own lip color, a more personalized lipstick color recommendation can be provided to the user. The lipstick color suitable for people with different lip colors may be different. By accurately identifying the user's lip color, a lipstick color recommendation that better fits their lip color can be provided to increase satisfaction and user experience.
[0042] The specific analysis process of the recommended set of color numbers suitable for the user's skin color and the recommended set of color numbers suitable for the user's lip color is as follows: the first step is to read the user's skin color, and at the same time read the recommended color numbers corresponding to each skin color from the management database, match them with the user's skin color, filter out the recommended color numbers corresponding to the user's skin color, and generate a recommended set of color numbers suitable for the user's skin color; people with different skin colors may have different suitable lipstick colors. By matching the user's skin color and the recommended color numbers, the user can be provided with lipstick color recommendations that better suit their skin color.
[0043] The second step is to read the user's own lip color, and read the recommended color numbers corresponding to each lip color from the management database, match it with the user's own lip color, filter out the recommended color numbers corresponding to the user's own lip color, and generate a recommended set of color numbers suitable for the user's lip color; the traditional lipstick purchasing method may require users to try the colors themselves, but by reading the user's lip color and obtaining the corresponding recommended color numbers from the management database, it can quickly help users better judge which lipstick color number is suitable for them and improve the accuracy of decision-making.
[0044] The fashion trend analysis module is used to read the popular lipstick colors of each season and analyze them to obtain a recommended set of popular colors.
[0045] The specific analysis process of the fashion trend analysis module is as follows: the first step is to read the popular color numbers of lipsticks of the season and the system color numbers from the management database, compare them with the preset color categories to which the color numbers belong, and then match the system color numbers belonging to the same color category as the popular color numbers of the season, record them as recommended color numbers, and perform chromaticity value detection on each recommended color number, record them as λ x , where x represents the number of the xth recommended color number, x=1,2,...,y; by reading the popular colors of lipsticks of each season from the management database, the most popular lipstick colors can be recommended to users. These popular colors are usually selected according to fashion trends and market demands, allowing users to keep up with the trend and choose lipstick colors that are in line with current fashion.
[0046] The second step is to use the formula Get the color difference Δλ of each recommended color number x ,in It represents the chromaticity value of the popular lipstick color of the season that is in the same color category as the x-th recommended color number, compares the color difference of each recommended color number with the set color difference allowable threshold, and screens out the recommended color numbers with color difference less than the color difference allowable threshold to form a recommended set of popular color numbers; by calculating the color difference of each color number in the recommended color category, lipstick colors that are similar to the popular lipstick colors of the season can be further screened out, and a color difference less than the set threshold indicates that these lipstick colors are very close in color, so a more accurate lipstick color recommendation can be provided to users.
[0047] The environmental data acquisition module is used to obtain the temperature and humidity of the user's current location.
[0048] The environmental data analysis module is used to obtain the environmental impact coefficient based on the temperature and humidity of the user's current location.
[0049] The specific analysis process of the environmental data analysis module is as follows: the first step is to connect to the local meteorological platform, use the device to obtain the latitude and longitude information of the user's location, input the latitude and longitude information of the user's location into the local meteorological platform, divide the time period according to the preset time length, and obtain the temperature and humidity of each time period at the user's current location, recorded as α m , β m , where m represents the number of the m-th time period, m=1,2,...,n; the weather conditions of the user's current location can be timely understood, the color performance of lipstick in different environments can be more accurately evaluated, and the user can be helped to choose a suitable lipstick color.
[0050] The second step is to calculate the temperature α of the user's current location in each time period m , humidity β m Substitute into the formula The influence degree of environment on the color presentation of lipstick χ is obtained, which is recorded as the environmental influence degree coefficient, where α0 and β0 represent the set temperature and humidity reference values, η1 and η2 represent the weight factors of temperature and humidity respectively, and n is the number of time periods; environmental factors have a great influence on the presentation of lipstick color. For example, changes in temperature will cause lipstick to become dry or thinner, and changes in humidity will affect the gloss of lipstick. By considering the influence of environmental factors on lipstick color, users can choose a lipstick color suitable for the current environment and improve the use effect and durability of lipstick.
[0051] In one embodiment, η1 can be set to 0.5, and η2 can be set to 0.5. At higher temperatures, lipstick may become softer and more fluid, which may cause color diffusion or blurring. Conversely, at lower temperatures, lipstick may become harder and more prone to breakage, which may also affect color retention and presentation. Humidity affects the texture and durability of lipstick. Higher humidity may cause lipstick to slide off the lips more easily, while lower humidity may cause dry lips, thereby changing the application effect of lipstick and the vividness of the color. Therefore, the corresponding weights are equal.
[0052] The color number recommendation module is used to generate a color number recommendation set based on the required color number recommendation set, the user skin color suitable color number recommendation set, the user lip color suitable color number recommendation set, and the popular color number recommendation set.
[0053] The specific analysis method of the color number recommendation module is: read the required color number recommendation set, the user skin color adaptation color number recommendation set, the user lip color adaptation color number recommendation set, and the popular color number recommendation set respectively, compare them one by one to filter out the intersection part, record them as the color number recommendation set, and number each color number in the color number recommendation set according to the set order; comprehensively consider factors such as user needs, skin color adaptation and lip color adaptation, as well as currently popular lipstick colors, so as to obtain personalized color number recommendations that better meet user needs.
[0054] The recommendation coefficient analysis module is used to analyze each color number in the color number recommendation set in combination with the environmental impact coefficient and the makeup intensity to obtain the recommendation degree index of each color number.
[0055] The specific analysis process of the recommendation coefficient analysis module is as follows: the first step is to read the color number recommendation set, and respectively detect the brightness value, hue value and chromaticity value of each color number in the color number recommendation set, denoted as l k , γ k , k , where k represents the number of the kth color number, k = 1, 2, ... q, and the environmental impact coefficient χ is read at the same time, and the brightness value, hue value and chromaticity value of each color number are multiplied by the environmental impact coefficient to obtain the brightness value, hue value and chromaticity value of each color number under the influence of the environment, recorded as l' k , γ' k ,λ' k ; By considering the impact of environmental factors on lipstick color, it can help users choose a lipstick color suitable for the current environment and improve the use effect and durability of lipstick.
[0056] The second step is to calculate the brightness value l' of each color number under the influence of the environment. k , hue value γ' k and chromaticity value λ' k Substitute into formula C k =l' k *a1+γ' k *a2+λ' k *a3 Get the color value C of each color number under the influence of the environment k , where a1, a2, and a3 represent the weight factors of the set brightness value, hue value, and chromaticity value, respectively. At the same time, the makeup intensity selected by the user is read, and it is compared with the preset color value threshold of the color number of each makeup intensity, and the color value threshold of the color number corresponding to the makeup intensity selected by the user is matched. The color value difference of each color number under the influence of the environment is obtained by subtracting it from the color value of each color number under the influence of the environment, which is recorded as ΔC k , substituting it into the formula Get the recommended index of each color number ψ k, where ΔC0 represents the set color value difference reference value, and e is a natural constant. The makeup intensity has a great influence on the presentation of lipstick color. For example, in a heavier makeup, it is necessary to choose a lipstick color with high saturation and moderate brightness. By considering the influence of makeup intensity on lipstick color, it can help users choose a lipstick color suitable for the current makeup and improve the use effect of lipstick.
[0057] In one embodiment, a1+a2+a3=1 and a1=a2=a3. In color science, brightness value, hue value and chromaticity value are all key attributes for describing color, so the corresponding weights of brightness value, hue value and chromaticity value are equal.
[0058] The secondary adjustment module is used to synthesize the color number recommendation set and the user's facial image to generate a user's facial simulation image, which is manually adjusted by the user.
[0059] The specific analysis process of the secondary adjustment module is as follows: the first step is to arrange the colors in the color recommendation set in descending order according to the recommendation degree index, record the first color number as the pre-selected color number, and read the user's facial image at the same time, apply the pre-selected color number to the user's facial image, generate a user facial simulation image, send the user facial simulation image to the user terminal, and have the user manually adjust the user facial simulation image; applying the pre-selected color number to the user's facial image to generate a user facial simulation image can help the user intuitively understand the effects of different lipstick colors on his or her face, and the user can manually adjust the user's facial simulation image according to his or her own preferences and needs, thereby obtaining a more personalized lipstick color recommendation.
[0060] The second step is to read the user's facial simulation image that has been manually adjusted by the user to form a final user facial effect display image. If the generated user facial effect display image does not meet the user's expectations, return to the previous step to manually adjust the color again. If the generated user facial effect display image meets the user's expectations, save the image. By providing the user with the function of manual color adjustment and generating the final user facial effect display image, the user's participation and interactivity can be increased. The user can personally participate in the lipstick selection process and make adjustments according to his or her own preferences and needs, thereby improving user satisfaction.
[0061] The management database is used to store the color number sets corresponding to the keywords of each application scenario, the skin area pixel chromaticity value range corresponding to the skin color, the recommended color number corresponding to each skin color, the popular lipstick color number of each season, and the color numbers of each system.
[0062] This system generates a color recommendation set by analyzing the makeup information selected by the user, the user's facial image, and the popular lipstick colors of each season. At the same time, it obtains the environmental impact coefficient through temperature and humidity analysis at the user's current location, and then analyzes each color in the color recommendation set to obtain the recommendation degree index of each color number. The color recommendation set and the user's facial image are combined to form a user facial simulation image, which can be manually adjusted by the user. This can help users find suitable lipstick colors more quickly and make the recommendation results more in line with actual usage scenarios.
[0063] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations on the present invention. A person skilled in the art may make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention and they are still covered by the protection scope of the present invention.
Claims
1. A lipstick color selection and analysis system based on the Internet of Things, characterized in that: The system specifically includes the following modules: A user information acquisition module is used to acquire an image of the user's face through a camera, record it as the user's face image, and read the makeup information selected by the user, the makeup information includes the makeup intensity and the required application scenario keywords, and generate a required color number recommendation set according to the required application scenario keywords selected by the user; An image processing module is used to obtain the user's skin color and lip color according to the user's facial image analysis, and then generate a recommended set of color numbers suitable for the user's skin color and a recommended set of color numbers suitable for the user's lip color; Fashion trend analysis module, used to read the popular lipstick colors of each season and analyze them to obtain a recommended set of popular colors; Environmental data acquisition module, used to obtain the temperature and humidity of the user's current location; Environmental data analysis module, used to analyze the temperature and humidity of the user's current location to obtain the environmental impact coefficient; A color recommendation module is used to generate a color recommendation set based on the required color recommendation set, the user skin color matching color recommendation set, the user lip color matching color recommendation set, and the popular color recommendation set; The recommendation coefficient analysis module is used to analyze each color number in the color number recommendation set by combining the environmental impact coefficient and the makeup intensity to obtain the recommendation degree index of each color number; A secondary adjustment module is used to synthesize the color number recommendation set and the user's facial image to generate a user's facial simulation image, which is manually adjusted by the user; Management database, used to store color sets corresponding to keywords of each application scenario, skin area pixel chromaticity value range corresponding to skin color, recommended color numbers corresponding to each skin color, popular lipstick color numbers of each season, and various system color numbers; The specific analysis method of the color number recommendation module is: Read the required color number recommendation set, the user skin color suitable color number recommendation set, the user lip color suitable color number recommendation set, and the popular color number recommendation set respectively, compare them one by one to select the intersection part, record it as the color number recommendation set, and number each color number in the color number recommendation set according to the set order; The specific analysis process of the recommendation coefficient analysis module is as follows: The first step is to read the recommended color set and detect the brightness, hue and chromaticity of each color in the recommended color set, recorded as ,in Indicates The color number, , and read the environmental impact coefficient at the same time , the brightness value, hue value and chromaticity value of each color number are multiplied by the environmental impact coefficient to obtain the brightness value, hue value and chromaticity value of each color number under the influence of the environment, recorded as ; The second step is to calculate the brightness value of each color under the influence of the environment. , Hue value and chromaticity value Substitute into the formula Get the color value of each color number under the influence of the environment ,in The weight factors of the set brightness value, hue value and chromaticity value are respectively represented. At the same time, the makeup intensity selected by the user is read, and it is compared with the preset color value threshold of the makeup intensity and intensity, and the color value threshold of the color number corresponding to the makeup intensity selected by the user is matched. The color value difference of each color number under the influence of the environment is obtained by subtracting it from the color value of each color number under the influence of the environment, which is recorded as , substituting it into the formula Get the recommended index of each color number ,in Indicates the set color value difference reference value. is a natural constant; The specific analysis process of the secondary adjustment module is as follows: In the first step, the color numbers in the color number recommendation set are arranged in descending order according to the recommendation degree index, and the first color number is recorded as the pre-selected color number. At the same time, the user's facial image is read, and the pre-selected color number is set on the user's facial image to generate a user's facial simulation image, which is sent to the user terminal, and the user manually adjusts the user's facial simulation image; The second step is to read the user facial simulation image that has been manually color-adjusted by the user to form a final user facial effect display image. If the generated user facial effect display image does not meet the user's expectations, return to the previous step and perform manual color adjustment again. If the generated user facial effect display image meets the user's expectations, save the image.
2. According to the Internet of Things-based lipstick color selection and analysis system according to claim 1, it is characterized in that: The specific analysis method of the user information acquisition module is: The user's face is captured through the camera and recorded as the user's facial image. The degree of makeup is selected through the user selection interface. At the same time, the required application scenario keywords are manually selected according to the labels provided by the system, and the color number set corresponding to each required application scenario keyword is read from the management database. It is matched with the required application scenario keyword selected by the user to generate a recommended set of required color numbers.
3. The lipstick color selection and analysis system based on the Internet of Things according to claim 2, characterized in that: The specific analysis process of the image processing module is as follows: The first step is to read the user's facial image, use edge detection technology to separate the user's facial skin area, record it as the user's facial skin area, and detect the chromaticity value of each pixel in the user's facial skin area, record it as ,in Indicates The number of pixels, , through the formula Get the average chromaticity value of the pixels in the user's facial skin area ,in Represents the number of pixels, extracts the skin color corresponding to the chromaticity value range of each pixel from the management database, screens to obtain the chromaticity value range to which the average chromaticity value of the pixel in the user's facial skin area belongs, and then obtains the user's skin color, which is recorded as the user's skin color; In the second step, the user's lip area is extracted separately from the user's facial image. The average chromaticity value of the pixels in the user's lip area is analyzed in the same way as the average chromaticity value of the pixels in the user's facial skin area. The average chromaticity value of the pixels in the user's lip area is matched with the lip color corresponding to the preset chromaticity value range of the pixels in each lip area to obtain the lip color corresponding to the average chromaticity value of the pixels in the user's lip area, which is recorded as the user's own lip color.
4. The lipstick color selection and analysis system based on the Internet of Things according to claim 3 is characterized in that: The specific analysis process of the recommended color number set suitable for the user's skin color and the recommended color number set suitable for the user's lip color is as follows: The first step is to read the user's skin color, and at the same time read the recommended color number corresponding to each skin color from the management database, match it with the user's skin color, filter out the recommended color number corresponding to the user's skin color, and generate a recommended set of color numbers suitable for the user's skin color; The second step is to read the user's own lip color, and read the recommended color number corresponding to each lip color from the management database, match it with the user's own lip color, filter out the recommended color number corresponding to the user's own lip color, and generate a recommended set of color numbers suitable for the user's lip color.
5. The lipstick color selection and analysis system based on the Internet of Things according to claim 1, characterized in that: The specific analysis process of the fashion trend analysis module is as follows: The first step is to read the popular color numbers of lipsticks of the season and the system color numbers from the management database, compare them with the preset color categories of each color number to obtain the popular color numbers of the season and the color categories of each system color number, and then match the system color numbers belonging to the same color category as the popular color numbers of the season, record them as recommended color numbers, and perform chromaticity value detection on each recommended color number, record them as ,in Indicates The number of recommended color numbers, ; The second step is to use the formula Get the color difference of each recommended color number ,in Indicates the setting and The chromaticity values of the popular lipstick colors of the season in the same color category of the recommended color numbers are compared with the set color difference allowable threshold, and the recommended color numbers with color differences less than the color difference allowable threshold are screened out to form a recommended set of popular color numbers.
6. The lipstick color selection and analysis system based on the Internet of Things according to claim 1, characterized in that: The specific analysis process of the environmental data analysis module is as follows: The first step is to connect to the local meteorological platform, use the device to obtain the latitude and longitude information of the user's location, input the latitude and longitude information of the user's location into the local meteorological platform, divide the time period according to the preset time length, and obtain the temperature and humidity of each time period at the user's current location, recorded as ,in Indicates The number of the time period. ; The second step is to calculate the temperature of the user's current location at each time period. ,humidity Substitute into the formula Get the influence of environment on lipstick color , recorded as the environmental impact coefficient, where Indicates the set temperature and humidity reference values. Represent the weight factors of temperature and humidity respectively, is the number of time periods.
