Method, device, storage medium and equipment for determining the long-lasting properties of makeup
By obtaining the multi-time pigment distribution map of the makeup application area, screening and calculating the area of the pigment area, the problems of low accuracy and efficiency of the makeup lasting effect are solved, and efficient and accurate makeup lasting evaluation is achieved.
Patent Information
- Application Number
- CN202310646641.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-02
- Publication Date
- 2025-09-05
- Estimated Expiration
- 2043-06-02
AI Technical Summary
The existing technology has low accuracy in determining the makeup lasting effect and low efficiency in the determination process. Existing methods, such as calculating the area difference by pressing the makeup application position or simulating the makeup removal process through manual interference, have problems of insufficient accuracy and low efficiency.
By obtaining the target pigment distribution map of the makeup application area at multiple moments, gradually adjusting the pigment threshold, and screening out the target pigment area with a pigment value greater than the target pigment threshold, the makeup durability is determined based on the area of the area, taking into account the two dimensions of oxidative discoloration and migration of makeup.
The accuracy and efficiency of determining the makeup lasting effect are improved, the complex process of the mathematical model is simplified, and a more accurate and efficient makeup lasting evaluation method is provided.
Smart Images

Figure CN116630446B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of cosmetics, and in particular relates to a method, device, storage medium and equipment for determining the long-lasting properties of cosmetics. Background Art
[0002] Faced with a wide variety of cosmetics products, how users should choose suitable cosmetics products has become an important issue.
[0003] Generally speaking, the longevity of a makeup product can be used as an important basis for determining the quality of the makeup product. Therefore, how to obtain the longevity of the makeup product is very important to users.
[0004] In the related art, cosmetics are transferred to a carrier by pressing the makeup application position, the makeup area at the makeup application position before and after the transfer is calculated, and the makeup lastingness is determined by the difference in the makeup area. The determination index is relatively simple, which may easily lead to inaccurate determination of the makeup lasting effect; or, the makeup removal process of volunteers is simulated by artificially interfering with the makeup after application, and images of the volunteers' makeup application position are collected and a mathematical model is established after data analysis of the cosmetic changes. However, the mathematical model is complex and the determination process is inefficient. Summary of the Invention
[0005] The embodiments of the present application provide a method, apparatus, storage medium, and device for determining the long-lasting properties of makeup, which can solve the problems of low accuracy of the existing makeup long-lasting effects and low efficiency of the determination process.
[0006] In a first aspect, embodiments of the present application provide a method for determining the longevity of makeup, comprising:
[0007] Obtaining target pigment distribution maps corresponding to the makeup application area at multiple moments, the multiple moments including: a moment before makeup is applied to the makeup application area, a moment immediately after makeup is applied, and a moment after a first preset time period after makeup is applied;
[0008] Gradually adjusting the pigment thresholds, and determining the target pigment threshold based on the areas of the pigment regions corresponding to the respective pigment thresholds and the area of the preset target pigment distribution map;
[0009] For each target pigment distribution map, respectively, according to the pigment value of each color in the target pigment distribution map, a target pigment area having a pigment value greater than a target pigment threshold is screened out from the target pigment distribution map;
[0010] The durability of the makeup at a time after the first preset time period after the makeup is applied is determined based on the area of the plurality of target pigment areas.
[0011] In a second aspect, an embodiment of the present application provides a device for determining the longevity of makeup, comprising:
[0012] an acquisition module, configured to acquire target pigment distribution maps corresponding to makeup application areas at multiple moments, the multiple moments including: a moment before makeup is applied to the makeup area, a moment immediately after makeup is applied, and a moment after a first preset time period after makeup is applied;
[0013] a determination module for gradually adjusting the pigment threshold value, determining the target pigment threshold value based on the area of the pigment region corresponding to each pigment threshold value and the area of a preset target pigment distribution map; and determining the longevity of the makeup at a moment after the first preset time period after the makeup is applied based on the area of the plurality of target pigment regions;
[0014] The screening module is used to screen out target pigment areas having pigment values greater than a target pigment threshold from the target pigment distribution map according to the pigment value of each color in the target pigment distribution map for each target pigment distribution map.
[0015] In a third aspect, an embodiment of the present application provides a computer storage medium storing a program, which, when executed, implements the method for determining the long-lasting properties of makeup as described in the first aspect.
[0016] In a fourth aspect, an embodiment of the present application provides an electronic device comprising: a processing component and a storage component; the storage component stores one or more computer instructions; the one or more computer instructions are used to be called by the processing component to execute the method for determining the durability of makeup as described in the first aspect.
[0017] The embodiments of the present application provide a method, apparatus, storage medium, and equipment for determining the long-lasting properties of makeup. After obtaining the target pigment distribution maps corresponding to the makeup application area before makeup application, at the moment of makeup application, and after the first preset time of makeup application, the embodiments of the present application will first screen out the target pigment areas whose pigment values are greater than the target pigment threshold from the target pigment distribution maps based on the pigment values of each color in each target pigment distribution map, then determine the area of the target pigment areas, and then determine the long-lasting properties of makeup based on the area areas of the target pigment areas corresponding to each target pigment distribution map.
[0018] Thus, the present application determines makeup longevity based on the area of the target pigment region, where the pigment value is greater than the target pigment threshold. Therefore, the present application considers not only the applied area but also the color when determining makeup longevity. Therefore, the present application determines makeup longevity from at least two dimensions: oxidative discoloration and migration. Furthermore, the present application does not utilize complex processes such as mathematical models, thereby improving both the efficiency and accuracy of determining makeup longevity. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments of the present application. 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 creative work.
[0020] Figure 1 A schematic flow chart of a method for determining the long-lasting properties of makeup provided in one embodiment of the present application;
[0021] Figure 2 A display interface for a target pigment distribution map provided in one embodiment of the present application;
[0022] Figure 3 Another display interface of a target pigment distribution map provided in an embodiment of the present application;
[0023] Figure 4 A schematic diagram of the hardware structure of a device for determining the long-lasting properties of makeup provided in one embodiment of the present application;
[0024] Figure 5 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0025] The features and exemplary embodiments of various aspects of the present application will be described in detail below. 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 and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is merely to provide a better understanding of the present application by illustrating the examples of the present application.
[0026] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply the existence of any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or node comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or node. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or node comprising the elements.
[0027] As described above, existing techniques transfer cosmetics to a carrier by pressing the application location, calculate the area of the cosmetics at the application location before and after transfer, and determine the makeup's longevity based on the difference in the area of the cosmetics. However, in this field, the longevity of makeup is primarily determined by migration and oxidation. This method determines makeup's migration based solely on the difference in the area of the cosmetics, ignoring the fact that the color of the makeup changes after oxidation but has not completely migrated. Consequently, this method can easily lead to inaccurate longevity. Alternatively, a human intervention process is performed on volunteers after makeup application to simulate the makeup removal process. Images of the volunteers' application locations are collected, and data analysis of the cosmetics changes is performed to establish a mathematical model. However, this mathematical model is complex and the determination process is inefficient.
[0028] In order to solve the problems in the prior art, the embodiments of the present application provide a method, apparatus, storage medium, and device for determining the longevity of makeup. The following first introduces the method for determining the longevity of makeup provided in the embodiments of the present application.
[0029] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The embodiments will be described in detail below with reference to the accompanying drawings.
[0030] It can be understood that the method for determining the long-lastingness of makeup provided in the embodiment of the present application can be used to determine the long-lastingness of various types of makeup. Lipstick is a classic makeup. The following describes the method for determining the long-lastingness of makeup provided in the embodiment of the present application using lipstick as an example.
[0031] Figure 1 FIG. 1 is a flow chart showing a method for determining the long-lasting properties of makeup provided in one embodiment of the present application. Figure 1 As shown, the method includes the following steps:
[0032] S101: Obtain target pigment distribution maps corresponding to makeup application areas at multiple moments.
[0033] The multiple moments include: a moment before applying makeup to the makeup area, an immediate moment after applying makeup, and a moment after a first preset time period after applying makeup.
[0034] In some embodiments, in order to obtain the durability of makeup at a specific moment after application, the first preset time can be flexibly set according to actual conditions, for example, the first preset time is 4 hours, the first preset time is 8 hours, the first preset time is 10 hours, and so on.
[0035] The N colors corresponding to the makeup area include skin color and makeup color, and the target pigment distribution map is the pixel position distribution of the skin color and makeup color in the makeup area on the same image.
[0036] In some embodiments, image data corresponding to the makeup application area may be input into a target imaging device to obtain a target pigment distribution map generated by the target imaging device based on the image data.
[0037] In other embodiments, a target pigment distribution map generated by the image data may be obtained by performing spectral analysis on the image data corresponding to the makeup application area.
[0038] S102 , gradually adjusting the pigment thresholds, and determining the target pigment threshold based on the areas of the pigment regions corresponding to the respective pigment thresholds and the area of the preset target pigment distribution map.
[0039] It is understandable that the ingredients of makeup are relatively complex, so the color of makeup is relatively complex and it is impossible to get the makeup color accurately.
[0040] In some embodiments, the pigment threshold can be adjusted, and the pigment area of each pigment threshold in the target pigment distribution map can be determined, and based on the comparison result of the pigment area area with the area of the preset target pigment distribution map, the target pigment threshold corresponding to the makeup color can be determined.
[0041] In some embodiments, the target pigment threshold corresponding to the makeup color may be determined based on a comparison result between the area of the pigment region and the area of the target pigment distribution map corresponding to the makeup region before makeup application.
[0042] In some embodiments, the target pigment threshold corresponding to the makeup color may be determined based on a comparison result between the area of the pigment region and the area of the target pigment distribution map corresponding to the instant after makeup application.
[0043] In some embodiments, the target pigment threshold corresponding to the makeup color may also be determined based on the above two comparison results.
[0044] S103 , for each target pigment distribution map, screen out target pigment areas having pigment values greater than a target pigment threshold value from the target pigment distribution map according to the pigment value of each color in the target pigment distribution map.
[0045] As an example, the target pigment threshold can be the minimum pigment value corresponding to the makeup color. Therefore, the target pigment region in the target pigment distribution map with a pigment value greater than the target pigment threshold can be determined as the target pigment region corresponding to the makeup region. In other words, the target pigment regions of the makeup region in the target pigment distribution map corresponding to each of the multiple moments in time can be determined.
[0046] S104: Determine the longevity of the makeup after a first preset time period after application based on the area of the multiple target pigment regions.
[0047] In some embodiments, the longevity of makeup at a moment after a first preset time after applying makeup, that is, the longevity of makeup at any moment after applying makeup, can be determined based on the comparison result between the area of the target pigment regions.
[0048] After obtaining the target pigment distribution maps corresponding to the makeup area before makeup, immediately after makeup, and after the first preset time of makeup, the embodiment of the present application will first screen out the target pigment area whose pigment value is greater than the target pigment threshold from the target pigment distribution map based on the pigment value of each color in each target pigment distribution map, then determine the area of the target pigment area, and then determine the makeup lastingness based on the area of the target pigment area corresponding to each target pigment distribution map.
[0049] Thus, the present application determines makeup longevity based on the area of the target pigment region, where the pigment value is greater than the target pigment threshold. Therefore, the present application considers not only the applied area but also the color when determining makeup longevity. Therefore, the present application determines makeup longevity from at least two dimensions: oxidative discoloration and migration. Furthermore, the present application does not utilize complex processes such as mathematical models, thereby improving both the efficiency and accuracy of determining makeup longevity.
[0050] In some embodiments, in order to ensure that the image data obtained based on the makeup area includes N colors in the acquisition area and improve determination efficiency, S101 can be specifically implemented through the following steps:
[0051] S1011. Illuminate the makeup area with preset light at multiple moments.
[0052] S1012: At any moment, perform image acquisition on the acquisition area including the makeup application area to obtain image data including N colors in the acquisition area.
[0053] S1013: Perform spectral analysis on the image data to obtain a pigment distribution map corresponding to N colors in the acquisition area.
[0054] The preset light has multiple wavelengths, the multiple wavelengths include a wavelength corresponding to each color, N is a positive integer, and N is greater than or equal to 1.
[0055] In some embodiments, there are generally seven wavelengths corresponding to the seven colors.
[0056] It will be appreciated that the multiple wavelengths include wavelengths corresponding to each color in the acquisition area. That is, the image data obtained by capturing the acquisition area after being illuminated by the preset light may include N colors in the acquisition area. Thus, the pigment distribution map obtained by spectral analysis based on the image data may include pigment values corresponding to the N colors in the acquisition area.
[0057] S1014 , for each pigment distribution map, according to the location of the makeup application area, select a target pigment distribution map corresponding to the makeup application area from the pigment distribution map.
[0058] Furthermore, since the image data is acquired from the acquisition area, to improve the efficiency of determining makeup longevity, a target pigment distribution map corresponding to the makeup application area can be selected from the pigment distribution map based on the location of the makeup application area. The makeup longevity at a specific moment can then be determined based on this target pigment distribution map.
[0059] Of course, the above-mentioned acquisition area can also be processed by a target imaging device to obtain a target pigment distribution map corresponding to the makeup area.
[0060] The target imaging device may be an Antera 3D (3D) imaging device, a Volfoni 3D imaging device, or the like.
[0061] In this embodiment, the makeup application area is illuminated with preset light of multiple wavelengths so that the image data obtained from the makeup application area includes N colors in the acquisition area. Spectral analysis is then performed on the image data to obtain a pigment distribution map corresponding to the N colors in the acquisition area. A target pigment distribution map corresponding to the makeup application area is then determined from the pigment distribution map. Compared to determining the makeup longevity directly based on the pigment distribution map, determining the makeup longevity based on the target pigment distribution map can improve the efficiency of the determination.
[0062] In some embodiments, to improve the accuracy of drawing the pigment distribution map, S1013 can be specifically implemented by the following steps:
[0063] S10131. Determine spectral data corresponding to each of the N colors based on the reflectance corresponding to each of the N colors in the acquisition area.
[0064] S10132. Obtain pixel positions corresponding to N colors in the image data.
[0065] S10133. Determine pigment distribution maps of N colors based on the spectral data and pixel positions.
[0066] Among them, the spectral data is the pigment value corresponding to the color.
[0067] After obtaining the spectral data corresponding to each of the N colors, the pixel positions corresponding to each of the N colors in the image data can be obtained. Based on the mapping relationship between the spectral data and the pixel positions, the pigment values corresponding to each pixel position can be determined, thereby plotting a pigment distribution map for the N colors.
[0068] In some embodiments, to improve the accuracy of the determined target pigment distribution map corresponding to the makeup application area, step S1014 can be specifically implemented by the following steps:
[0069] S10141. Display the pigment distribution map in a preset mode, where the preset mode is used to distinguish and display the makeup area from other areas of the collection area.
[0070] S10142. Receive the user's target operation on the target area.
[0071] S10143. In response to the target operation, the target area is determined to be a target pigment distribution map corresponding to the makeup area.
[0072] The target operation may be a touch operation, a selection operation, or the like.
[0073] Makeup is applied manually, so the makeup area can only be determined by receiving a user's selection of a specific area. Some areas of makeup often have inconsistent pigment values with other areas of the collection area before makeup is applied. Therefore, by displaying a target pigment distribution map in a preset mode, the areas with inconsistent pigment values can be distinguished and displayed.
[0074] Figure 2 A display interface of a target pigment distribution map provided in an embodiment of the present application, such as Figure 2 As shown, the interface includes a first area in which the pigment values in the collection area are respectively the first pigment value and the second area in which the pigment values are respectively the second pigment value. By receiving the user's selection operation on the second area, the second area is determined as the target pigment distribution map corresponding to the makeup area.
[0075] In some embodiments, the target pigment distribution map corresponding to the makeup application area may also be determined based on the difference in pigment values corresponding to each area.
[0076] From the above, a part of the makeup area generally has a large difference in pigment value between the other areas of the collection area before makeup, such as the lips and eyelashes. After makeup, due to the application of makeup, the pigment value difference between the makeup area and other areas of the collection area is even greater. When facing this part of the makeup area, since the pigment value of the makeup area before and after makeup is quite different from that of other areas, the target pigment distribution map corresponding to the corresponding makeup area can be determined in the pigment distribution map based on the pigment value. For example, the pigment area corresponding to the pigment value greater than a certain pigment threshold can be determined as the target pigment distribution map corresponding to the makeup area.
[0077] In some embodiments, to improve the accuracy of determining the target pigment threshold, step S102 can be specifically implemented by the following steps:
[0078] S1021. In the target pigment distribution map corresponding to the instant after makeup application, gradually adjust the pigment threshold to determine the pigment threshold corresponding to when the color coverage area accounts for the first proportion of the target pigment distribution map area.
[0079] S1022. When the first proportion is greater than the first preset proportion, determine a second proportion of the color coverage area corresponding to the pigment threshold in the target pigment distribution map corresponding to the moment before applying makeup to the area of the target pigment distribution map.
[0080] S1023: When the second specific gravity is less than the second preset specific gravity, determine the pigment threshold as the target pigment threshold.
[0081] As described above, the target pigment threshold can be determined based on a comparison between the area of the pigment region of each pigment threshold in the target pigment distribution map and the area of the target pigment distribution map corresponding to the moment before makeup is applied to the makeup area, or based on a comparison between the area of the pigment region of each pigment threshold in the target pigment distribution map and the area of the target pigment distribution map corresponding to the immediate moment after makeup is applied to the makeup area, or based on the comparison results of the above two comparisons.
[0082] In order to improve the accuracy of determining the target pigment threshold, the embodiment of the present application is described in terms of determining the target pigment threshold based on the comparison results of the above two comparisons.
[0083] Among them, at the moment after applying makeup, the N colors corresponding to the makeup area include skin color and makeup color, and at this time, the makeup color accounts for a relatively large proportion in the makeup area. Therefore, the pigment value corresponding to the makeup color accounts for a relatively large proportion in the target pigment distribution map corresponding to the moment after applying makeup. Therefore, in the target pigment distribution map corresponding to the moment after applying makeup, the color coverage area accounts for a relatively large first proportion of the target pigment distribution map area. When the first proportion is greater than the first preset proportion, the next step of comparison is performed.
[0084] Furthermore, before makeup is applied, the N colors corresponding to the makeup area include only skin color. Therefore, in the target pigment distribution map corresponding to the makeup area before makeup is applied, the second proportion of the color coverage area corresponding to the target pigment threshold to the area of the target pigment distribution map is relatively small. If the second proportion is less than the second preset proportion, the pigment threshold is determined as the target pigment threshold.
[0085] That is, when the first specific gravity is greater than the first preset specific gravity and the second specific gravity is less than the second preset specific gravity, the pigment threshold is determined as the target pigment threshold.
[0086] It should be noted that the first preset proportion and the second preset proportion can be flexibly set according to actual conditions and are not limited here. For example, the first preset proportion can be 90% and the second preset proportion can be 10%.
[0087] In some embodiments, the evaluation index of makeup longevity may be a makeup longevity rate. The following uses makeup longevity as an example to illustrate the specific implementation of S104.
[0088] As an implementation of S104, S104 may specifically include:
[0089] The following formula is used to determine the makeup holding rate corresponding to the first preset time after applying makeup:
[0090]
[0091] Among them, P is the makeup holding rate, A is the area of the target pigment area corresponding to the moment after the first preset time after the makeup area is applied, A1 is the area of the target pigment area corresponding to the moment before the makeup area is applied, and A0 is the pigment area of the target pigment area corresponding to the immediate moment after the makeup area is applied.
[0092] In order to conveniently and intuitively display the corresponding makeup holding rate at multiple moments, Figure 3 Another target pigment distribution map display interface provided by an embodiment of the present application receives a user's selection operation on the lip area, determines the lip area as the target pigment distribution map corresponding to the makeup area, and gradually adjusts the pigment threshold to obtain the target pigment distribution map shown in FIG. Figure 3 As shown in the target pigment distribution diagram of the lips at multiple moments, it is assumed that the first preset proportion is 90% and the second preset proportion is 10%. Figure 3 As shown, before makeup application, the target pigment area accounts for 5% of the target pigment distribution map area. That is, the color coverage area corresponding to the pigment threshold accounts for 5% of the target pigment distribution map area, which is less than the second preset proportion. Immediately after makeup application, the target pigment area accounts for 95% of the target pigment distribution map area, which is greater than the first preset proportion. The pigment threshold is determined as the target pigment threshold. Four hours after makeup application, the target pigment area accounts for 85% of the target pigment distribution map area. Eight hours after makeup application, the target pigment area accounts for 65% of the target pigment distribution map area. The resulting makeup lasting rate corresponding to four hours after makeup application is 88.9%, and the makeup lasting rate corresponding to eight hours after makeup application is 66.7%.
[0093] And in Figure 3 In the figure, it can be clearly seen that the area of the target pigment area is relatively large even at the moment of applying makeup, and the area of the target pigment area is gradually decreasing 4 hours and 8 hours after applying makeup.
[0094] As mentioned above, the longevity of a makeup product can be expressed by a longevity rate or a longevity duration. After step S104, the method further includes:
[0095] S105. Obtain the makeup lasting rate of the makeup every second preset time period.
[0096] S106: Determine a target moment when the makeup holding rate is less than a makeup holding rate threshold.
[0097] S107: Determine the time difference between the target moment and the instant after applying makeup as the makeup lasting time of the makeup.
[0098] The first preset duration and the second preset duration may be the same or different. The second preset duration may be flexibly set based on actual conditions. For example, if the duration of some cosmetics is generally expressed in hours, the second preset duration may be one hour; if the duration of some cosmetics is generally expressed in minutes, the second preset duration may be one minute, and so on.
[0099] Among them, the makeup lasting rate threshold can also be flexibly set based on actual conditions. For example, some cosmetics believe that if the makeup lasting rate is less than 20%, the makeup is no longer in a lasting state, while some cosmetics believe that if the makeup lasting rate is less than zero, the makeup is no longer in a lasting state.
[0100] In some embodiments, the makeup lasting rate threshold is 20%, the second preset time is one hour, and the target moment when the makeup lasting rate is less than the makeup lasting rate threshold is determined to be the ninth hour, then the makeup lasting time of the makeup is nine hours.
[0101] In some embodiments, the makeup holding rate threshold is 20%, the second preset time is one minute, the makeup holding rate at the 99th minute is 21%, and the makeup holding rate at the 100th minute is 19%, then the corresponding makeup holding time can be 100 minutes.
[0102] Based on the method for determining the longevity of makeup provided in the above embodiment, the present application also provides a specific implementation of a device for determining the longevity of makeup. Please refer to the following embodiment.
[0103] See first Figure 4 The device for determining the durability of makeup provided in the embodiment of the present application includes the following modules: an acquisition module 41 , a determination module 42 and a screening module 43 .
[0104] An acquisition module 41 is configured to acquire target pigment distribution maps corresponding to a makeup application area at multiple moments, wherein the multiple moments include: a moment before makeup is applied to the makeup application area, an immediate moment after makeup is applied, and a moment after a first preset time period after makeup is applied;
[0105] A determination module 42 is configured to gradually adjust the pigment threshold value and determine the target pigment threshold value based on the area of the pigment region corresponding to each pigment threshold value and the area of a preset target pigment distribution map;
[0106] a screening module 43 for screening, for each target pigment distribution map, target pigment areas having pigment values greater than a target pigment threshold value from the target pigment distribution map according to the pigment value of each color in the target pigment distribution map;
[0107] The determination module 42 is further configured to determine the durability of the makeup at a time after a first preset time period after the makeup is applied based on the area of the plurality of target pigment regions.
[0108] After obtaining the target pigment distribution maps corresponding to the makeup areas before makeup, immediately after makeup, and after the first preset time of makeup, the embodiment of the present application will first screen out the target pigment areas whose pigment values are greater than the target pigment threshold from the target pigment distribution maps based on the pigment values of each color in each target pigment distribution map, then determine the area of the target pigment areas, and then determine the makeup lastingness based on the area areas of the target pigment areas corresponding to each target pigment distribution map.
[0109] Thus, the present application determines makeup longevity based on the area of the target pigment region, where the pigment value is greater than the target pigment threshold. Therefore, the present application considers not only the applied area but also the color when determining makeup longevity. Therefore, the present application determines makeup longevity from at least two dimensions: oxidative discoloration and migration. Furthermore, the present application does not utilize complex processes such as mathematical models, thereby improving both the efficiency and accuracy of determining makeup longevity.
[0110] In some embodiments, in order to ensure that the image data obtained based on the makeup application area includes N colors in the acquisition area and improve the efficiency of determining the makeup durability, the acquisition module 41 is specifically configured to:
[0111] irradiating the makeup application area with preset light from the target imaging device at multiple times;
[0112] At any moment, the target imaging device is used to capture an image of a collection area including the makeup application area to obtain image data including N colors in the collection area, wherein the preset light has multiple wavelengths, the multiple wavelengths include a wavelength corresponding to each color, and N is a positive integer greater than or equal to 1;
[0113] Performing spectral analysis on the image data to obtain a pigment distribution map corresponding to the N colors in the acquisition area;
[0114] For each pigment distribution map, a target pigment distribution map corresponding to the makeup application area is selected from the pigment distribution map according to the location of the makeup application area.
[0115] In some embodiments, in order to determine the pigment distribution map of the image data, the acquisition module 41 is further specifically configured to:
[0116] Determining spectral data corresponding to each of the N colors based on reflectances corresponding to each of the N colors in the acquisition area;
[0117] Obtaining pixel positions corresponding to the N colors in the image data;
[0118] Based on the spectral data and the pixel positions, pigment distribution maps of the N colors are determined.
[0119] In some embodiments, the target pigment distribution map corresponding to the makeup application area may be determined manually. The screening module 43 is specifically configured to:
[0120] Displaying the target pigment distribution map in a preset mode, wherein the preset mode is used to distinguish between the makeup application area and other areas of the collection area;
[0121] receiving a target operation of a user on a target area in the target pigment distribution map;
[0122] In response to the target operation, the target area is determined to be a target pigment distribution map corresponding to the makeup application area.
[0123] In some embodiments, in order to improve the accuracy of determining the target pigment threshold, the determination module 42 is specifically configured to:
[0124] In the target pigment distribution map corresponding to the instant after makeup application, the pigment threshold is gradually adjusted to determine the pigment threshold corresponding to the first proportion of the color coverage area to the target pigment distribution map area;
[0125] When the first proportion is greater than a first preset proportion, determining a second proportion of the color coverage area corresponding to the pigment threshold in the target pigment distribution map corresponding to the moment before applying makeup to the area of the target pigment distribution map;
[0126] When the second specific gravity is less than a second preset specific gravity, the pigment threshold is determined as a target pigment threshold.
[0127] In some embodiments, there may be multiple evaluation indicators for makeup lastingness, such as makeup lasting rate, makeup lasting time, etc. The determination module 42 is specifically used to:
[0128] The makeup durability at the time corresponding to the first preset time after applying makeup is determined by the following formula:
[0129]
[0130] Among them, P is the makeup lasting property, A is the area of the target pigment area corresponding to the moment after the first preset time period after the makeup area is applied, A1 is the area of the target pigment area corresponding to the moment before the makeup area is applied, and A0 is the pigment area of the target pigment area corresponding to the immediate moment after the makeup area is applied.
[0131] In some embodiments, as described above, the long-lasting effect of a makeup product can be expressed by the long-lasting effect or the long-lasting effect.
[0132] The acquisition module 41 is further configured to acquire the makeup lasting rate of the makeup every second preset time period;
[0133] The determination module 42 is further configured to determine a target moment when the makeup lasting rate is less than a makeup lasting rate threshold; and determine the time difference between the target moment and the instant moment after applying makeup as the makeup lasting time of the makeup.
[0134] The corresponding target pigment distribution map device provided in the embodiment of the present invention can implement each step in the above method embodiment, and will not be described again here to avoid repetition.
[0135] Figure 5 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.
[0136] The electronic device may include a processor 501 and a memory 502 storing computer program instructions.
[0137] Specifically, the processor 501 may include a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0138] Memory 502 may include a large capacity memory for data or instructions. For example, and not limitation, memory 502 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, memory 502 may include removable or non-removable (or fixed) media. In appropriate cases, memory 502 may be inside or outside an integrated gateway disaster recovery node. In a specific embodiment, memory 502 is a non-volatile solid-state memory.
[0139] The memory may include read-only memory (ROM), random access memory (RAM), magnetic disk storage media nodes, optical storage media nodes, flash memory nodes, electrical, optical or other physical / tangible memory storage nodes. Thus, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory nodes) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.
[0140] The processor 501 reads and executes computer program instructions stored in the memory 502 to implement any one of the methods for determining the long-lasting properties of makeup in the above embodiments.
[0141] In one example, the electronic device may further include a communication interface 503 and a bus 504. Figure 5 As shown, the processor 501 , the memory 502 , and the communication interface 503 are connected via a bus 504 and communicate with each other.
[0142] The communication interface 503 is mainly used to implement communication between various modules, devices, units and / or nodes in the embodiments of the present application.
[0143] Bus 504 comprises hardware, software or both, and the parts of network security situation assessment node are coupled to each other.For example, and not limitation, bus can comprise accelerated graphics port (AGP) or other graphics buses, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransmission (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations.In suitable cases, bus 504 can comprise one or more buses.Although the present application embodiment describes and shows specific bus, the application considers any suitable bus or interconnection.
[0144] The electronic device can execute the method for determining the makeup durability of the embodiment of the present application, thereby realizing the combination of Figure 1 A method for determining the longevity of makeup is described.
[0145] In addition, in combination with the method for determining the long-lasting properties of makeup in the above-mentioned embodiment, the embodiment of the present application may provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the methods for determining and evaluating the long-lasting properties of makeup in the above-mentioned embodiments is implemented, and the same technical effects are achieved. To avoid repetition, they will not be described here. The above-mentioned computer-readable storage medium may include a non-transitory computer-readable storage medium, such as a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc., which is not limited here.
[0146] In addition, an embodiment of the present application further provides a computer program product, including computer program instructions, which, when executed by a processor, can implement the steps and corresponding contents of the aforementioned method embodiment.
[0147] It should be understood that the present application is not limited to the specific configurations and processes described above and illustrated in the figures. For the sake of brevity, a detailed description of known methods is omitted here. In the above embodiments, several specific steps are described and illustrated as examples. However, the method process of the present application is not limited to the specific steps described and illustrated. Those skilled in the art can make various changes, modifications, and additions, or change the order of the steps after understanding the spirit of the present application.
[0148] The functional blocks shown in the above structured block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in unit, a function card or the like. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory nodes, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0149] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps. In other words, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.
[0150] Aspects of the present disclosure have been described above with reference to the flowcharts and / or block diagrams of the methods, devices, and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box 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, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It is also understood that each box in the block diagram and / or flowchart and the combination of the boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0151] The above is only a specific implementation method of the present application. Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the scope of protection of the present application is not limited to this. Any technician familiar with this technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the scope of protection of this application.
Claims
1. A method for determining the long-lasting properties of makeup, characterized in that: include: Obtaining target pigment distribution maps corresponding to the makeup application area at multiple moments, the multiple moments including: a moment before makeup is applied to the makeup application area, a moment immediately after makeup is applied, and a moment after a first preset time period after makeup is applied; Gradually adjusting the pigment thresholds, and determining the target pigment threshold based on the areas of the pigment regions corresponding to the respective pigment thresholds and the area of the preset target pigment distribution map; For each target pigment distribution map, respectively, according to the pigment value of each color in the target pigment distribution map, a target pigment area having a pigment value greater than a target pigment threshold is screened out from the target pigment distribution map; determining the longevity of the makeup at a time after a first preset time period after the makeup is applied based on the area of the plurality of target pigment regions; The stepwise adjustment of the pigment threshold value, based on the pigment region area corresponding to each pigment threshold value and the area of a preset target pigment distribution map, to determine the target pigment threshold value, includes: In the target pigment distribution map corresponding to the instant after makeup application, the pigment threshold is gradually adjusted to determine the pigment threshold corresponding to the first proportion of the color coverage area to the target pigment distribution map area; When the first proportion is greater than a first preset proportion, determining a second proportion of the color coverage area corresponding to the pigment threshold in the target pigment distribution map corresponding to the moment before applying makeup to the area of the target pigment distribution map; When the second specific gravity is less than a second preset specific gravity, the pigment threshold is determined as a target pigment threshold.
2. The method for determining the long-lasting properties of makeup according to claim 1, wherein: The obtaining of target pigment distribution maps corresponding to makeup application areas at multiple moments includes: irradiating the makeup application area with preset light from the target imaging device at multiple times; At any moment, the target imaging device is used to capture an image of a collection area including the makeup application area to obtain image data including N colors in the collection area, wherein the preset light has multiple wavelengths, the multiple wavelengths include a wavelength corresponding to each color, and N is a positive integer greater than or equal to 1; Performing spectral analysis on the image data to obtain a pigment distribution map corresponding to the N colors in the acquisition area; For each pigment distribution map, a target pigment distribution map corresponding to the makeup application area is selected from the pigment distribution map according to the location of the makeup application area.
3. The method for determining the long-lasting properties of makeup according to claim 2, wherein: The performing spectral analysis on the image data to obtain a pigment distribution map corresponding to the N colors in the acquisition area includes: Determining spectral data corresponding to each of the N colors based on reflectances corresponding to each of the N colors in the acquisition area; Obtaining pixel positions corresponding to the N colors in the image data; Based on the spectral data and the pixel positions, pigment distribution maps of the N colors are determined.
4. The method for determining the long-lasting properties of makeup according to claim 2, wherein: For each pigment distribution map, selecting a target pigment distribution map corresponding to the makeup application area from the pigment distribution map according to the location of the makeup application area includes: Displaying the target pigment distribution map in a preset mode, wherein the preset mode is used to distinguish between the makeup application area and other areas of the collection area; receiving a target operation of a user on a target area in the target pigment distribution map; In response to the target operation, the target area is determined as a target pigment distribution map corresponding to the makeup area.
5. The method for determining the long-lasting properties of makeup according to claim 1, wherein: The step of determining the makeup durability of the makeup at a time after the first preset time after the makeup is applied based on the pigment areas of the plurality of target pigment regions includes: The makeup durability at the time corresponding to the first preset time after applying makeup is determined by the following formula: Among them, P is the makeup lasting property, A is the area of the target pigment area corresponding to the moment after the first preset time period after the makeup area is applied, A1 is the area of the target pigment area corresponding to the moment before the makeup area is applied, and A0 is the pigment area of the target pigment area corresponding to the immediate moment after the makeup area is applied.
6. The method for determining the long-lasting properties of makeup according to claim 5, wherein: The method further comprises: Obtaining the makeup lasting rate of the makeup every second preset time period; Determine the target moment when the makeup holding rate is less than the makeup holding rate threshold; The time difference between the target moment and the instant moment after applying makeup is determined as the makeup lasting time of the makeup.
7. A device for determining the longevity of makeup, comprising: an acquisition module, configured to acquire target pigment distribution maps corresponding to makeup application areas at multiple moments, the multiple moments including: a moment before makeup is applied to the makeup area, a moment immediately after makeup is applied, and a moment after a first preset time period after makeup is applied; a determination module, configured to gradually adjust the pigment threshold value and determine the target pigment threshold value based on the area of the pigment region corresponding to each pigment threshold value and the area of a preset target pigment distribution map; a screening module for screening, for each target pigment distribution map, target pigment areas having pigment values greater than a target pigment threshold value from the target pigment distribution map according to the pigment value of each color in the target pigment distribution map; The determination module is further configured to determine the longevity of the makeup at a time after the first preset time period after the makeup is applied based on the area of the plurality of target pigment regions; The determination module is further configured to gradually adjust the pigment threshold value, and determine the target pigment threshold value based on the pigment region area corresponding to each pigment threshold value and the area of a preset target pigment distribution map, including: In the target pigment distribution map corresponding to the instant after makeup application, the pigment threshold is gradually adjusted to determine the pigment threshold corresponding to the first proportion of the color coverage area to the target pigment distribution map area; When the first proportion is greater than a first preset proportion, determining a second proportion of the color coverage area corresponding to the pigment threshold in the target pigment distribution map corresponding to the moment before applying makeup to the area of the target pigment distribution map; When the second specific gravity is less than a second preset specific gravity, the pigment threshold is determined as a target pigment threshold.
8. A computer storage medium comprising: The computer program instructions for implementing the method for determining the long-lasting makeup property of a makeup product according to any one of claims 1 to 6 are stored.
9. An electronic device comprising: a processor and a memory storing computer program instructions; The processor executes the computer program instructions to implement the method for determining the long-lasting makeup property of any one of claims 1 to 6.
Citation Information
Patent Citations
KR20220015552A