Shampoo preparation method and related device
By acquiring and analyzing hair images, determining the hair type using visual recognition technology, and obtaining and processing shampoos based on preset mapping relationships, the problem that shampoos in the prior art cannot accurately match individual hair type, and achieving efficient and personalized hair care effects.
Patent Information
- Application Number
- CN202510082983.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2024-03-18
- Filing Date
- 2025-01-20
- Publication Date
- 2025-05-13
AI Technical Summary
The prior art is difficult to accurately match individual hair types, resulting in shampoo not being able to effectively meet individual hair care needs.
By obtaining the hair image of the target object, using visual recognition technology to determine the hair type, and obtain and process the corresponding shampoo based on the preset hair type and configuration parameter mapping relationship to match the individual's hair type.
It realizes the precise configuration of shampoo according to the individual's hair type, improving the efficiency and user experience of shampoo and hair care.
Smart Images

Figure CN119991615A_ABST
Abstract
Description
[0001] This application claims the priority of the Chinese patent application filed with the China Patent Office on March 18, 2024, with application number 202410306306.3 and application name “Shampoo Preparation Method and Related Devices”, all contents of which are incorporated by reference in this application. Technical Field
[0002] The present application relates to the field of cosmetic technology or the field of automated shampoo preparation technology, and specifically to a shampoo preparation method and related devices. Background Art
[0003] In life, hair plays a very important role in personal image. Therefore, people often pay more attention to the quality of hair. Hair washing and hair care have also received much attention with the current social development fashion trend. However, hair is also the part of the body that is most likely to get dirty. The importance of hair care and cleaning is self-evident. Different people have different hair types. Hair, like skin, can be oily, neutral, or dry. The specific needs depend on the secretion of the sebum membrane. However, in actual applications, users often only choose one shampoo for cleaning. For example, a family will also choose one shampoo for cleaning, which results in the shampoo not being able to accurately match the individual hair quality needs. Therefore, the problem of how to configure a shampoo suitable for the user's personal hair type needs to be solved urgently. Summary of the invention
[0004] The embodiments of the present application provide a shampoo configuration method and related devices, which can configure shampoo suitable for the user's personal hair type, improve the user's hair washing and hair care efficiency, and also improve the user experience.
[0005] In a first aspect, the present application provides a method for preparing a shampoo.
[0006] Applied to a shampoo dispensing device, the shampoo dispensing device comprises P containers, each of the P containers contains shampoo for at least one type of hair quality, P is an integer greater than 1, and the method comprises:
[0007] Acquire a target hair image of a target object;
[0008] Determining a target hair quality type corresponding to the target hair image;
[0009] Determine a target configuration parameter corresponding to the target hair quality type, the target configuration parameter comprising a target configuration portion set and a target processing control parameter; the target configuration portion set comprising the configuration portion of shampoo in each of the P containers;
[0010] Obtain corresponding shampoo from the P containers according to the target configuration quantity set to obtain Q portions of shampoo, where Q is a positive integer less than or equal to P;
[0011] The Q portions of shampoo are processed according to the target processing control parameters to obtain the target shampoo.
[0012] In a second aspect, an embodiment of the present application provides a shampoo dispensing device, which is applied to a shampoo dispensing device, wherein the shampoo dispensing device comprises P containers, each of the P containers is filled with shampoo for at least one type of hair quality, and P is an integer greater than 1. The device comprises: an acquisition unit, a determination unit, and a processing unit, wherein:
[0013] The acquisition unit is used to acquire a target hair image of a target object;
[0014] The determination unit is used to determine a target hair quality type corresponding to the target hair image; determine target configuration parameters corresponding to the target hair quality type, wherein the target configuration parameters include a target configuration number set and a target processing control parameter; the target configuration number set includes the configuration number of shampoo in each of the P containers;
[0015] The acquisition unit is further used to acquire corresponding shampoo from the P containers according to the target configuration quantity set to obtain Q portions of shampoo, where Q is a positive integer less than or equal to P;
[0016] The processing unit is used to process the Q portions of shampoo according to the target processing control parameters to obtain the target shampoo.
[0017] In a third aspect, an embodiment of the present application provides a shampoo preparation device, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the processor, and the program includes instructions for executing the steps in the first aspect of the embodiment of the present application.
[0018] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps described in the first aspect of the embodiment of the present application.
[0019] In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in the first aspect of the embodiment of the present application. The computer program product may be a software installation package.
[0020] The implementation of the embodiments of the present application has the following beneficial effects:
[0021] It can be seen that the shampoo configuration method and related devices described in the embodiments of the present application are applied to a shampoo configuration device, which includes P containers, each of the P containers is filled with shampoo for at least one hair type, P is an integer greater than 1, a target hair image of a target object is obtained, a target hair type corresponding to the target hair image is determined, and a target configuration parameter corresponding to the target hair type is determined, the target configuration parameter includes a target configuration number set and a target processing control parameter; the target configuration number set includes the configuration number of shampoo in each of the P containers, and the corresponding shampoo is obtained from the P containers according to the target configuration number set to obtain Q portions of shampoo, Q is a positive integer less than or equal to P, and the Q portions of shampoo are processed according to the target processing control parameters to obtain the target shampoo, and the user's hair type can be accurately identified by using visual recognition technology, and then the corresponding shampoo is configured based on the hair type, so that the shampoo suitable for the user's personal hair type can be configured, thereby improving the user's hair washing and hair care efficiency and also improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0023] Figure 1 It is a schematic diagram of a process of preparing a shampoo provided in an embodiment of the present application;
[0024] Figure 2 It is a structural schematic diagram of a shampoo dispensing device provided in an embodiment of the present application;
[0025] Figure 3 It is a schematic diagram of another process of preparing shampoo provided in an embodiment of the present application;
[0026] Figure 4 is a schematic structural diagram of another shampoo dispensing device provided in an embodiment of the present application;
[0027] Figure 5 This is a block diagram of the functional units of a shampoo dispensing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but in a possible example also includes steps or units that are not listed, or in a possible example also includes other steps or units inherent to these processes, methods, products or devices.
[0029] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0030] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0031] In the embodiments of the present application, different hair quality classification methods can obtain different hair quality types. For example, according to the conventional hair quality classification method, the hair quality type can include at least one of the following: neutral hair, dry hair, oily hair, mixed hair, damaged hair, etc., which are not limited here. Neutral hair can be understood as: the hair is neither greasy nor dry, and is moderately soft and soft, with a natural luster, which is generally regarded as the most ideal hair state. Dry hair can be understood as dry hair, and it feels a little rough when touched. The disadvantage is that it lacks luster and is easy to deform after styling, and it is oily hair. Oily hair can be understood as greasy hair, which feels a little sticky when touched, and the disadvantage is that there is a lot of dandruff and lack of luster. Mixed hair can be understood as the scalp is oily, and the hair ends are dry. Usually, it is often accompanied by dandruff and itching. Damaged hair can be understood as dry and rough hair, and the disadvantage is that the hair ends may be split. Of course, there are other hair types, such as fine and soft hair, small and fine hair, coarse and hard hair, soft hair, naturally curly hair, straight hair, etc., which are not limited here.
[0032] In the embodiment of the present application, the shampoo dispensing device can be set in a production plant to realize batch personalized shampoo dispensing. The shampoo dispensing device can also be set in a public place to realize retail shampoo, for example, to provide personalized shampoo dispensing for hotels, guesthouses, and hair salons, and can also provide personalized shampoo for families.
[0033] See also Figure 1 , Figure 1 1 is a flow chart of a shampoo preparation method provided by an embodiment of the present application. As shown in the figure, it is applied to a shampoo preparation device. The shampoo preparation device includes P containers. Each of the P containers contains shampoo for at least one type of hair quality. P is an integer greater than 1. The shampoo preparation method includes:
[0034] 101. Obtain a target hair image of a target object.
[0035] In the embodiments of the present application, the target object may include at least one of the following: a person, an animal, etc., which are not limited here. A person may be classified by age, and may include at least one of the following: an infant, a child, a teenager, a middle-aged person, an elderly person, etc., which are not limited here. A person may also be classified by gender, and may include at least one of the following: a man, a woman, etc. An animal may include at least one of the following: a cat, a dog, a monkey, a hamster, etc., which are not limited here.
[0036] In the present application embodiment, Figure 2 As shown, the shampoo preparation device may include P containers, each of the P containers is filled with shampoo for at least one hair type, P is an integer greater than 1, for example, the P containers may be filled with at least one of the following shampoos: shampoo with black hair function, shampoo with anti-aging scalp function, shampoo with anti-dandruff and anti-itching function, shampoo with anti-hair loss function, shampoo with scalp oil control function, etc., which are not limited here. The P containers may also be filled with clean water, mineral water, rice washing water, etc., which are not limited here.
[0037] In the embodiment of the present application, the shampoo configuration device may include a camera, for example, a target hair image of a target object may be obtained through the camera. The shampoo configuration device may also not include a camera, and after the user device is connected to the shampoo configuration device for communication, the user device may send the target hair image of the target object to the shampoo configuration device, and the shampoo configuration device may receive the target hair image.
[0038] 102. Determine a target hair quality type corresponding to the target hair image.
[0039] In the embodiment of the present application, different hair types have different hair images, and the target hair type corresponding to the target hair image can be determined by using visual recognition technology. The target hair type can include one or more hair types.
[0040] Optionally, the above step 102, determining the target hair quality type corresponding to the target hair image, may include the following steps:
[0041] A21, performing image enhancement processing on the target hair image to obtain a first hair image;
[0042] A22. determining a target hair density according to the first hair image;
[0043] A23, extracting features from the first hair image to obtain a first target feature set, wherein the first target feature set includes at least one of the following features: oil stains, dandruff, hair brightness, number of split ends, and degree of hair dryness;
[0044] A24. Determine the target hair type based on the target hair density and the target feature set.
[0045] In the embodiment of the present application, the target hair image may be subjected to image enhancement processing. Specifically, the target hair image may be subjected to global image enhancement processing or local image enhancement processing to obtain a first hair image. Then, the target hair density may be determined based on the first hair image. Different hair densities indicate the degree of hair loss of the user. The first hair image may then be subjected to feature extraction to obtain a first target feature set. The first target feature set may include at least one of the following features: oil stains, dandruff, hair brightness, the number of hair split ends, the degree of hair dryness, etc., which are not limited here. Finally, the target hair type may be determined based on the target hair density and the first target feature set. In the specific implementation, , the user's real target hair type can be analyzed in combination with the hair density and the various features in the first target feature set. Since different hair types have corresponding features of different types, and different hair types have different degrees of hair types, the specific hair types can be analyzed using visual recognition technology. For example, the target hair density and the interval range corresponding to each feature in the first target feature set can be determined to obtain multiple interval ranges, and then the corresponding target hair type can be determined based on the multiple interval ranges. For example, different hair types can pre-set a value range for each feature, and then see whether each feature falls within a certain value range. Based on this method, the final target hair type can be determined.
[0046] 103. Determine target configuration parameters corresponding to the target hair quality type, wherein the target configuration parameters include a target configuration portion set and a target processing control parameter; the target configuration portion set includes the configuration portion of shampoo in each of the P containers.
[0047] In the embodiment of the present application, different hair types may correspond to different configuration parameters. The configuration parameters may include a configuration set and a processing control parameter. The configuration set may include the configuration number of shampoo in each of P containers. The processing control parameter may include at least one of the following: the configuration order of the shampoo in each container, the processing temperature, the processing humidity, the stirring time, the vibration time, etc., which are not limited here.
[0048] In the embodiment of the present application, the mapping relationship between the preset hair quality type and the configuration parameters can be pre-stored, and then the target configuration parameters corresponding to the target hair quality type can be determined based on the mapping relationship. In this way, the corresponding number of shampoo configurations and the corresponding processing control parameters can be configured based on the hair quality types of different users, which helps to configure a shampoo suitable for the user's personal hair quality type, improve the user's hair washing and hair care efficiency, and also improve the user experience.
[0049] Optionally, the above step 102, determining the target hair quality type corresponding to the target hair image, may include the following steps:
[0050] B21, extracting features from the target hair image to obtain a second target feature set;
[0051] B22, inputting the second target feature set into a preset neural network model to obtain a target hair type recognition result, wherein the target hair type recognition result includes Q hair type recognition results, and each hair type recognition result corresponds to a hair type recognition probability;
[0052] B23. Determine the target hair type according to the target hair type recognition result.
[0053] Among them, the preset neural network model can be preset or system default, and the preset neural network model can include at least one of the following: a convolutional neural network model, a fully connected neural network model, a recurrent neural network model, etc., which are not limited here. The preset neural network model can be used to realize hair type recognition. In a specific implementation, the preset neural network model can collect a large number of users' hair images for training the preset neural network model, so that the preset neural network model meets the set conditions, and the set conditions can be reaching a preset number of training times or reaching a preset convergence condition.
[0054] In the embodiment of the present application, feature extraction may also be performed on the target hair image to obtain a second target feature set, which may include at least one of the following features: hair density, hair width, hair length, oil stains, dandruff, hair brightness, number of hair split ends, hair dryness, etc., which are not limited here. The target feature set is then input into a preset neural network model to obtain a target hair quality type recognition result, which includes Q hair quality type recognition results, each hair quality type recognition result corresponding to a hair quality type recognition probability. Finally, the target hair quality type may be determined according to the target hair quality type recognition result. For example, a hair quality type recognition result with a greater than preset probability among the hair quality type recognition probabilities may be selected, and the target hair quality type is determined based on the hair quality type recognition result with a greater than preset probability. The preset probability may be preset or set by system default. In this way, the preset neural network model may be used to identify the possible hair quality types of the user.
[0055] Optionally, the above step 103, determining the target configuration parameters corresponding to the target hair quality type, may include the following steps:
[0056] 31. Determine the target configuration number set according to the hair type recognition probability corresponding to each hair type recognition result in the Q hair type recognition results;
[0057] 32. Determine the target processing control parameters corresponding to the target configuration set.
[0058] In the embodiment of the present application, the greater the probability of hair type recognition, the greater the number of shampoo portions taken from the corresponding container. In a specific implementation, the sum of the hair type recognition probabilities corresponding to each of the Q hair type recognition results can be calculated, and then the ratio between the hair type recognition probability corresponding to each of the Q hair type recognition results and the sum can be calculated. The corresponding target configuration portion set is determined based on the ratio. Since different shampoos may have an impact on each other, the configuration order of the shampoo in each container, as well as the processing temperature, processing humidity, stirring time, vibration time, etc. of each link can be determined based on the target configuration portion set. Finally, the target processing control parameters can be obtained. In this way, the user's hair type can be deeply analyzed, and the shampoo corresponding to the hair type can be configured, which helps to configure a shampoo suitable for the user's personal hair type, improve the user's hair washing and hair care efficiency, and also improve the user experience.
[0059] 104. Obtain corresponding shampoo from the P containers according to the target configuration quantity set to obtain Q portions of shampoo, where Q is a positive integer less than or equal to P.
[0060] In an embodiment of the present application, corresponding shampoo can be obtained from P containers according to the target configuration number set to obtain Q portions of shampoo, where Q is a positive integer less than or equal to P. Further, the configuration raw materials of the shampoo corresponding to the user's hair type can be obtained, which helps to configure shampoo suitable for the user's personal hair type, improve the user's hair washing and hair care efficiency, and also improve the user experience.
[0061] 105. Process the Q portions of shampoo according to the target processing control parameters to obtain target shampoo.
[0062] In the embodiment of the present application, Q portions of shampoo can be processed according to the target processing control parameters to obtain the target shampoo, which helps to configure shampoo suitable for the user's personal hair type, improves the user's hair washing and hair care efficiency, and also improves the user experience.
[0063] Optionally, the above step 105, processing the Q portions of shampoo according to the target processing control parameters to obtain the target shampoo, may include the following steps:
[0064] A51. Obtain target physiological state parameters of the target object;
[0065] A52, determining a target adjustment parameter corresponding to the target physiological state parameter;
[0066] A53, adjusting the target processing control parameter according to the target adjustment parameter to obtain a first processing control parameter;
[0067] A54. Process the Q portions of shampoo according to the first processing control parameters to obtain the target shampoo.
[0068] In the embodiment of the present application, the target physiological state parameter may include at least one of the following: blood lipids, blood temperature, heart rate, blood sugar, adrenaline, etc., which are not limited here. The target physiological state parameter reflects the user's physical condition to a certain extent. In the specific implementation, the mapping relationship between the preset physiological state parameter and the adjustment parameter can be pre-set, and then the target adjustment parameter corresponding to the target physiological state parameter can be determined based on the mapping relationship. The target adjustment parameter can adjust the configuration order, processing temperature, processing humidity, stirring time, and vibration time of the shampoo in each container. Specifically, the target processing control parameter can be adjusted according to the target adjustment parameter to obtain the first processing control parameter. For example, the processing temperature of a certain link can be adjusted so that the adapted shampoo is more adapted to the user's physical and mental condition. Finally, Q portions of shampoo can be processed according to the first processing control parameter to obtain the target shampoo, which is helpful to configure a shampoo suitable for the user's personal hair type, improve the user's shampooing and hair care efficiency, and also improve the user experience.
[0069] Optionally, the above step A54, processing the Q portions of shampoo according to the first processing control parameter to obtain the target shampoo, may include the following steps:
[0070] S1, obtaining target internal environment parameters of the shampoo dispensing device;
[0071] S2, determining target fine-tuning parameters corresponding to the target internal environment parameters;
[0072] S3, fine-tuning the first processing control parameter according to the target fine-tuning parameter to obtain a second processing control parameter;
[0073] S4. Process the Q portions of shampoo according to the second processing control parameter to obtain the target shampoo.
[0074] In the embodiment of the present application, the internal environment parameters of the shampoo dispensing device may include at least one of the following: temperature, humidity, brightness, microbial content, pressure, etc., which are not limited here. Among them, the adjustment effect of the fine-tuning parameter is weaker than the adjustment effect of the adjustment parameter.
[0075] In a specific implementation, sensors can be used to obtain the target internal environmental parameters of the shampoo configuration equipment, and a mapping relationship between the preset internal environmental parameters and fine-tuning parameters can be pre-stored. The target fine-tuning parameters related to the target internal environmental parameters can be determined based on the mapping relationship. The target fine-tuning parameters can adjust the processing temperature, processing humidity, stirring time, and vibration time. Specifically, the first processing control parameter can be fine-tuned according to the target fine-tuning parameter to obtain the second processing control parameter. For example, the processing temperature of a certain link can be adjusted to make the adapted shampoo more suitable for the user's physical and mental condition. Finally, Q portions of shampoo can be processed according to the second processing control parameter to obtain the target shampoo, which helps to configure shampoo suitable for the user's personal hair type, improve the user's hair washing and hair care efficiency, and also improve the user experience.
[0076] It can be seen that the shampoo configuration method described in the embodiment of the present application is applied to a shampoo configuration device, which includes P containers, each of the P containers is filled with shampoo for at least one hair type, P is an integer greater than 1, a target hair image of a target object is obtained, a target hair type corresponding to the target hair image is determined, and a target configuration parameter corresponding to the target hair type is determined, the target configuration parameter includes a target configuration number set and a target processing control parameter; the target configuration number set includes the configuration number of shampoo in each of the P containers, and the corresponding shampoo is obtained from the P containers according to the target configuration number set to obtain Q portions of shampoo, Q is a positive integer less than or equal to P, and the Q portions of shampoo are processed according to the target processing control parameters to obtain the target shampoo, and the user's hair type can be accurately identified by using visual recognition technology, and then the corresponding shampoo is configured based on the hair type, so that the shampoo suitable for the user's personal hair type can be configured, thereby improving the user's hair washing and hair care efficiency, and also improving the user experience.
[0077] With the above Figure 1 For the embodiments shown, please refer to Figure 3 , Figure 3 1 is a flow chart of another shampoo preparation method provided in an embodiment of the present application, which is applied to a shampoo preparation device, wherein the shampoo preparation device comprises P containers, each of the P containers is filled with shampoo for at least one type of hair quality, and P is an integer greater than 1. The shampoo preparation method comprises:
[0078] 301. Obtain a target hair image of a target object.
[0079] 302. Determine a target hair quality type corresponding to the target hair image.
[0080] 303. Determine target configuration parameters corresponding to the target hair quality type, wherein the target configuration parameters include a target configuration portion set and a target processing control parameter; the target configuration portion set includes the configuration portion of shampoo in each of the P containers.
[0081] 304. Obtain corresponding shampoo from the P containers according to the target configuration quantity set to obtain Q portions of shampoo, where Q is a positive integer less than or equal to P.
[0082] 305. Process the Q portions of shampoo according to the target processing control parameters to obtain target shampoo.
[0083] The specific description of the above steps 301 to 305 can refer to the above Figure 1 The corresponding steps of the described shampoo preparation method will not be repeated here.
[0084] 306. Obtain target care parameters corresponding to the target hair type.
[0085] Among them, in the embodiment of the present application, the care parameters may include at least one of the following: shampooing frequency, shampooing time period, shampoo usage capacity, shampooing method, shampooing temperature, etc., which are not limited here. In the specific implementation, the mapping relationship between the preset hair quality type and the care parameters can be pre-set, and then, the target care parameters corresponding to the target hair quality type can be determined based on the mapping relationship.
[0086] 307. Determine a target usage suggestion parameter corresponding to the target care parameter, and guide the target subject to use the target shampoo according to the target usage suggestion parameter.
[0087] In an embodiment of the present application, different care parameters can generate corresponding usage suggestion parameters. In a specific implementation, a mapping relationship between preset care parameters and usage suggestion parameters can be pre-set. Then, the target usage suggestion parameters corresponding to the target care parameters can be determined based on the mapping relationship. The target object can be guided to use the target shampoo according to the target usage suggestion parameters. The target usage suggestion parameters can be pushed to the user device, or can also be printed on a container containing the target shampoo.
[0088] It can be seen that the shampoo configuration method described in the embodiment of the present application is applied to a shampoo configuration device, the shampoo configuration device includes P containers, each of the P containers is filled with shampoo for at least one hair type, P is an integer greater than 1, a target hair image of a target object is obtained, a target hair type corresponding to the target hair image is determined, and a target configuration parameter corresponding to the target hair type is determined, the target configuration parameter includes a target configuration portion set and a target processing control parameter; the target configuration portion set includes the configuration portion number of shampoo in each of the P containers, and the corresponding shampoo is obtained from the P containers according to the target configuration portion set to obtain Q parts of shampoo, Q is a positive integer less than or equal to P, Q parts of shampoo are processed according to the target processing control parameters to obtain the target shampoo, the target care parameters corresponding to the target hair type are obtained, the target usage suggestion parameters corresponding to the target care parameters are determined, and the target object is guided to use the target shampoo according to the target usage suggestion parameters. The visual recognition technology can be used to accurately identify the user's hair type, and then the corresponding shampoo is configured based on the hair type. The shampoo suitable for the user's personal hair type can be configured, thereby improving the user's shampooing and hair care efficiency, and also improving the user experience. The user can also be guided to use the shampoo correctly to further ensure the user's shampooing and care effects.
[0089] In accordance with the above embodiment, please refer to Figure 4 , Figure 4: is a schematic diagram of the structure of a shampoo dispensing device provided in an embodiment of the present application. As shown in the figure, the device includes a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor. In the embodiment of the present application, the shampoo dispensing device includes P containers, each of the P containers is filled with shampoo for at least one type of hair quality, P is an integer greater than 1, and the program includes instructions for executing the following steps:
[0090] Acquire a target hair image of a target object;
[0091] Determining a target hair quality type corresponding to the target hair image;
[0092] Determine a target configuration parameter corresponding to the target hair quality type, the target configuration parameter comprising a target configuration portion set and a target processing control parameter; the target configuration portion set comprising the configuration portion of shampoo in each of the P containers;
[0093] Obtain corresponding shampoo from the P containers according to the target configuration quantity set to obtain Q portions of shampoo, where Q is a positive integer less than or equal to P;
[0094] The Q portions of shampoo are processed according to the target processing control parameters to obtain the target shampoo.
[0095] Optionally, in determining the target hair quality type corresponding to the target hair image, the program includes instructions for performing the following steps:
[0096] Performing image enhancement processing on the target hair image to obtain a first hair image;
[0097] determining a target hair density according to the first hair image;
[0098] Performing feature extraction on the first hair image to obtain a first target feature set, wherein the first target feature set includes at least one of the following features: oil stains, dandruff, hair brightness, number of hair split ends, and degree of hair dryness;
[0099] The target hair type is determined based on the target hair density and the target feature set.
[0100] Optionally, in determining the target hair quality type corresponding to the target hair image, the program includes instructions for performing the following steps:
[0101] Performing feature extraction on the target hair image to obtain a second target feature set;
[0102] Inputting the second target feature set into a preset neural network model to obtain a target hair type recognition result, wherein the target hair type recognition result includes Q hair type recognition results, and each hair type recognition result corresponds to a hair type recognition probability;
[0103] The target hair type is determined according to the target hair type recognition result.
[0104] Optionally, in determining the target configuration parameters corresponding to the target hair quality type, the program includes instructions for performing the following steps:
[0105] Determining the target configuration number set according to the hair quality type recognition probability corresponding to each hair quality type recognition result in the Q hair quality type recognition results;
[0106] The target processing control parameters corresponding to the target configuration set are determined.
[0107] Optionally, in the aspect of processing the Q portions of shampoo according to the target processing control parameters to obtain the target shampoo, the program includes instructions for executing the following steps:
[0108] Acquiring target physiological state parameters of the target object;
[0109] Determining a target adjustment parameter corresponding to the target physiological state parameter;
[0110] adjusting the target processing control parameter according to the target adjustment parameter to obtain a first processing control parameter;
[0111] The Q portions of shampoo are processed according to the first processing control parameter to obtain the target shampoo.
[0112] Optionally, in the aspect of processing the Q portions of shampoo according to the first processing control parameter to obtain the target shampoo, the program includes instructions for executing the following steps:
[0113] Acquiring target internal environmental parameters of the shampoo dispensing device;
[0114] determining target fine-tuning parameters related to the target internal environmental parameters;
[0115] Fine-tune the first processing control parameter according to the target fine-tuning parameter to obtain a second processing control parameter;
[0116] The Q portions of shampoo are processed according to the second processing control parameter to obtain the target shampoo.
[0117] It can be seen that the shampoo configuration device described in the embodiment of the present application includes P containers, each of the P containers is filled with shampoo for at least one hair type, P is an integer greater than 1, a target hair image of the target object is obtained, a target hair type corresponding to the target hair image is determined, and a target configuration parameter corresponding to the target hair type is determined, the target configuration parameter includes a target configuration number set and a target processing control parameter; the target configuration number set includes the configuration number of shampoo in each of the P containers, and the corresponding shampoo is obtained from the P containers according to the target configuration number set to obtain Q portions of shampoo, Q is a positive integer less than or equal to P, and the Q portions of shampoo are processed according to the target processing control parameters to obtain the target shampoo, and the user's hair type can be accurately identified by using visual recognition technology, and then the corresponding shampoo is configured based on the hair type, so that the shampoo suitable for the user's personal hair type can be configured, thereby improving the user's hair washing and hair care efficiency, and also improving the user experience.
[0118] Figure 5 1 is a functional unit composition block diagram of a shampoo dispensing device 500 involved in an embodiment of the present application. The shampoo dispensing device 500 is applied to a shampoo dispensing device. The shampoo dispensing device includes P containers, each of the P containers is filled with shampoo for at least one type of hair quality, and P is an integer greater than 1. The shampoo dispensing device 500 includes: an acquisition unit 501, a determination unit 502, and a processing unit 503, wherein:
[0119] The acquisition unit 501 is used to acquire a target hair image of a target object;
[0120] The determination unit 502 is used to determine a target hair quality type corresponding to the target hair image; determine target configuration parameters corresponding to the target hair quality type, wherein the target configuration parameters include a target configuration number set and a target processing control parameter; the target configuration number set includes the configuration number of shampoo in each of the P containers;
[0121] The acquisition unit 501 is further configured to acquire corresponding shampoo from the P containers according to the target configuration quantity set, to obtain Q portions of shampoo, where Q is a positive integer less than or equal to P;
[0122] The processing unit 503 is used to process the Q portions of shampoo according to the target processing control parameters to obtain the target shampoo.
[0123] Optionally, in determining the target hair quality type corresponding to the target hair image, the determining unit 502 is specifically configured to:
[0124] Performing image enhancement processing on the target hair image to obtain a first hair image;
[0125] determining a target hair density according to the first hair image;
[0126] Performing feature extraction on the first hair image to obtain a first target feature set, wherein the first target feature set includes at least one of the following features: oil stains, dandruff, hair brightness, number of hair split ends, and degree of hair dryness;
[0127] The target hair type is determined based on the target hair density and the target feature set.
[0128] Optionally, in determining the target hair quality type corresponding to the target hair image, the determining unit 502 is specifically configured to:
[0129] Performing feature extraction on the target hair image to obtain a second target feature set;
[0130] Inputting the second target feature set into a preset neural network model to obtain a target hair type recognition result, wherein the target hair type recognition result includes Q hair type recognition results, and each hair type recognition result corresponds to a hair type recognition probability;
[0131] The target hair type is determined according to the target hair type recognition result.
[0132] Optionally, in determining the target configuration parameters corresponding to the target hair quality type, the determining unit 502 is specifically configured to:
[0133] Determining the target configuration number set according to the hair quality type recognition probability corresponding to each hair quality type recognition result in the Q hair quality type recognition results;
[0134] The target processing control parameters corresponding to the target configuration set are determined.
[0135] Optionally, in the aspect of processing the Q portions of shampoo according to the target processing control parameters to obtain the target shampoo, the processing unit 503 is specifically used for:
[0136] Acquiring target physiological state parameters of the target object;
[0137] Determining a target adjustment parameter corresponding to the target physiological state parameter;
[0138] adjusting the target processing control parameter according to the target adjustment parameter to obtain a first processing control parameter;
[0139] The Q portions of shampoo are processed according to the first processing control parameter to obtain the target shampoo.
[0140] Optionally, in the aspect of processing the Q portions of shampoo according to the first processing control parameter to obtain the target shampoo, the processing unit 503 is specifically used for:
[0141] Acquiring target internal environmental parameters of the shampoo dispensing device;
[0142] determining target fine-tuning parameters related to the target internal environmental parameters;
[0143] Fine-tune the first processing control parameter according to the target fine-tuning parameter to obtain a second processing control parameter;
[0144] The Q portions of shampoo are processed according to the second processing control parameter to obtain the target shampoo.
[0145] It can be seen that the shampoo configuration device described in the embodiment of the present application is applied to a shampoo configuration device, which includes P containers, each of the P containers is filled with shampoo for at least one hair type, P is an integer greater than 1, a target hair image of a target object is obtained, a target hair type corresponding to the target hair image is determined, and a target configuration parameter corresponding to the target hair type is determined, the target configuration parameter includes a target configuration number set and a target processing control parameter; the target configuration number set includes the configuration number of shampoo in each of the P containers, and the corresponding shampoo is obtained from the P containers according to the target configuration number set to obtain Q portions of shampoo, Q is a positive integer less than or equal to P, and the Q portions of shampoo are processed according to the target processing control parameters to obtain the target shampoo, and the user's hair type can be accurately identified by using visual recognition technology, and then the corresponding shampoo is configured based on the hair type, so that the shampoo suitable for the user's personal hair type can be configured, thereby improving the user's hair washing and hair care efficiency, and also improving the user experience.
[0146] It can be understood that the functions of each program module of the shampoo dispensing device of this embodiment can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.
[0147] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps of any method described in the above method embodiments, and the above computer includes a shampoo preparation device.
[0148] The present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps of any method described in the method embodiment. The computer program product may be a software installation package, and the computer includes a shampoo dispensing device.
[0149] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0150] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0151] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the above-mentioned units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0152] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0153] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0154] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or CD-ROM and other media that can store program codes.
[0155] A person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash drive, a read-only memory (English: Read-Only Memory, abbreviated as: ROM), a random access memory (English: Random Access Memory, abbreviated as: RAM), a magnetic disk or an optical disk, etc.
[0156] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for preparing a shampoo, characterized in that: Applied to a shampoo dispensing device, the shampoo dispensing device comprises P containers, each of the P containers contains shampoo for at least one type of hair quality, P is an integer greater than 1, and the method comprises: Acquire a target hair image of a target object; Determining a target hair quality type corresponding to the target hair image; Determine a target configuration parameter corresponding to the target hair quality type, the target configuration parameter comprising a target configuration portion set and a target processing control parameter; the target configuration portion set comprising the configuration portion of shampoo in each of the P containers; Obtain corresponding shampoo from the P containers according to the target configuration quantity set to obtain Q portions of shampoo, where Q is a positive integer less than or equal to P; The Q portions of shampoo are processed according to the target processing control parameters to obtain the target shampoo.
2. The method according to claim 1, characterized in that The determining of the target hair quality type corresponding to the target hair image comprises: Performing image enhancement processing on the target hair image to obtain a first hair image; determining a target hair density according to the first hair image; Performing feature extraction on the first hair image to obtain a first target feature set, wherein the first target feature set includes at least one of the following features: oil stains, dandruff, hair brightness, number of hair split ends, and hair dryness; The target hair type is determined based on the target hair density and the target feature set.
3. The method according to claim 1, characterized in that The determining of the target hair quality type corresponding to the target hair image comprises: Performing feature extraction on the target hair image to obtain a second target feature set; Inputting the second target feature set into a preset neural network model to obtain a target hair type recognition result, wherein the target hair type recognition result includes Q hair type recognition results, and each hair type recognition result corresponds to a hair type recognition probability; The target hair type is determined according to the target hair type recognition result.
4. The method according to claim 3, characterized in that: The determining of the target configuration parameters corresponding to the target hair quality type includes: Determining the target configuration number set according to the hair quality type recognition probability corresponding to each hair quality type recognition result in the Q hair quality type recognition results; The target processing control parameters corresponding to the target configuration set are determined.
5. The method according to any one of claims 1 to 4, characterized in that: The step of processing the Q portions of shampoo according to the target processing control parameters to obtain the target shampoo comprises: Acquiring target physiological state parameters of the target object; Determining a target adjustment parameter corresponding to the target physiological state parameter; adjusting the target processing control parameter according to the target adjustment parameter to obtain a first processing control parameter; The Q portions of shampoo are processed according to the first processing control parameter to obtain the target shampoo.
6. The method according to claim 5, characterized in that The step of processing the Q portions of shampoo according to the first processing control parameter to obtain the target shampoo comprises: Acquiring target internal environmental parameters of the shampoo dispensing device; determining target fine-tuning parameters related to the target internal environmental parameters; Fine-tune the first processing control parameter according to the target fine-tuning parameter to obtain a second processing control parameter; The Q portions of shampoo are processed according to the second processing control parameter to obtain the target shampoo.
7. A shampoo dispensing device, characterized in that: Applied to a shampoo dispensing device, the shampoo dispensing device comprises P containers, each of the P containers contains shampoo for at least one type of hair quality, P is an integer greater than 1, the device comprises: an acquisition unit, a determination unit and a processing unit, wherein: The acquisition unit is used to acquire a target hair image of a target object; The determination unit is used to determine a target hair quality type corresponding to the target hair image; determine target configuration parameters corresponding to the target hair quality type, wherein the target configuration parameters include a target configuration number set and a target processing control parameter; the target configuration number set includes the configuration number of shampoo in each of the P containers; The acquisition unit is further used to acquire corresponding shampoo from the P containers according to the target configuration quantity set to obtain Q portions of shampoo, where Q is a positive integer less than or equal to P; The processing unit is used to process the Q portions of shampoo according to the target processing control parameters to obtain the target shampoo.
8. The device according to claim 7, characterized in that In the aspect of determining the target hair quality type corresponding to the target hair image, the determining unit is specifically used for: Performing image enhancement processing on the target hair image to obtain a first hair image; determining a target hair density according to the first hair image; Performing feature extraction on the first hair image to obtain a first target feature set, wherein the first target feature set includes at least one of the following features: oil stains, dandruff, hair brightness, number of hair split ends, and hair dryness; The target hair type is determined based on the target hair density and the target feature set.
9. A shampoo preparation device, characterized in that: The method comprises a processor and a memory, wherein the memory is used to store one or more programs and is configured to be executed by the processor, wherein the program comprises instructions for executing the steps in the method according to any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that: A computer program for electronic data exchange is stored, wherein the computer program enables a computer to execute the method according to any one of claims 1 to 6.