Control method, device, equipment, medium and program product of washing machine

By identifying stain characteristics and adjusting washing parameters in conjunction with washing machine parameters, the problem of insufficient stain type adjustment in existing technologies is solved, achieving efficient washing results and energy saving.

CN116136051BActive Publication Date: 2026-07-24CHONGQING HAIER WASHING MASCH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHONGQING HAIER WASHING MASCH CO LTD
Filing Date
2021-11-16
Publication Date
2026-07-24

AI Technical Summary

Technical Problem

Current technology cannot adjust the washing parameters in the washing program for different types of stains, resulting in clothes not being washed clean and the washing effect being poor.

Method used

By acquiring images of stains on clothes to be washed, identifying stain characteristics and comparing them with pre-acquired stain type characteristics, and combining parameters such as washing machine weight and water hardness, the washing temperature, time, and detergent dosage are dynamically adjusted to achieve targeted washing.

Benefits of technology

It improves the washing effect of clothes, reduces energy waste and electricity costs, and ensures that clothes are washed clean in the shortest possible time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116136051B_ABST
    Figure CN116136051B_ABST
Patent Text Reader

Abstract

The application provides a control method, device, equipment, medium and program product of a washing machine. The method comprises the following steps: obtaining a stain feature in a stain image of clothes to be washed, comparing the stain feature in the stain image with a stain feature of each stain type obtained in advance, determining a target stain type of the clothes to be washed, obtaining a detergent dosage according to the weight of the clothes to be washed in the washing machine, obtaining a target washing temperature and a target washing duration according to the detergent dosage, the hardness of water used by the washing machine, and the target stain type of the clothes to be washed, and controlling the washing machine to wash the clothes to be washed according to the target washing temperature, the target washing duration and the detergent dosage. The technical scheme can configure different washing coefficients for different types of stains, effectively ensuring that the clothes are washed clean in the shortest time and improving the washing effect of the clothes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of washing machine technology, and in particular to a control method, device, equipment, medium and program product for a washing machine. Background Technology

[0002] To meet the washing needs of different clothing materials, washing machines are equipped with a variety of washing modes, such as standard, wool, and quick wash modes. Selecting the appropriate washing mode for the fabric and following the selected mode during washing can effectively reduce damage to the clothes.

[0003] In the prior art, since the washing machine is equipped with a touch screen, during the washing process, the user can click on the touch screen according to the material of the clothes and their own washing needs. The washing machine responds to the user's click on the touch screen, obtains the washing mode identifier corresponding to the click operation, and executes the washing program corresponding to the mode identifier to wash the clothes.

[0004] However, when clothes are stained, existing technology cannot adjust the washing parameters in the washing program according to the type of stain, which may result in the clothes not being cleaned properly and the washing effect being poor. Summary of the Invention

[0005] This application provides a control method, device, equipment, medium, and program product for a washing machine to solve the problem that the existing technology cannot adjust the washing parameters in the washing program according to the type of stain, which may result in clothes not being washed clean and the washing effect being poor.

[0006] In a first aspect, embodiments of this application provide a control method for a washing machine, including:

[0007] Obtain stain features from an image of stains on clothing to be washed, the stain features including stain color and stain shape;

[0008] The stain features in the stain image are compared with the stain features of each pre-acquired stain type to determine the target stain type of the garment to be washed;

[0009] The amount of laundry detergent to be added is determined based on the weight of the clothes to be washed in the washing machine.

[0010] Based on the amount of laundry detergent added, the hardness of the water used in the washing machine, and the type of target stain on the clothes to be washed, the target washing temperature and target washing time are obtained.

[0011] The washing machine is controlled to wash the clothes to be washed based on the target washing temperature, the target washing time, and the amount of laundry detergent added.

[0012] In one possible design of the first aspect, after determining the target stain type of the garment to be washed, the method further includes:

[0013] The degree of turbidity of the stains in the clothes to be washed is obtained by a turbidity sensor;

[0014] The washing coefficient is obtained based on the degree of soiling.

[0015] Accordingly, determining the amount of laundry detergent to be added based on the weight of the clothes to be washed in the washing machine includes:

[0016] The amount of laundry detergent to be added is determined based on the weight of the clothes to be washed in the washing machine and the washing coefficient.

[0017] In another possible design of the first aspect, after obtaining the amount of laundry detergent dispensed, the method further includes:

[0018] The water intake of the washing machine is obtained through a flow sensor;

[0019] The inlet water temperature of the washing machine is obtained through a temperature sensor;

[0020] Accordingly, obtaining the target washing temperature and target washing time based on the amount of laundry detergent added, the hardness of the water used in the washing machine, and the type of target stain on the clothes to be washed includes:

[0021] Based on the inlet water volume, the inlet water temperature, the specific heat capacity of water, the heating power of the washing machine, the amount of laundry detergent added, the hardness of the water used in the washing machine, and the type of target stain on the clothes to be washed, the target washing temperature and the target washing time are obtained.

[0022] Optionally, the stain type includes any one of the following: alcohol, cocoa, protein, carbon black, and sebum.

[0023] In another possible design of the first aspect, prior to acquiring stain features in an image of the stain on the garment to be washed, the method further includes:

[0024] Obtain the stain characteristics for each stain type from the networked database.

[0025] In another possible design of the first aspect, after determining the target stain type of the garment to be washed, the method further includes:

[0026] The hardness of the water used in the washing machine is obtained using a hardness sensor.

[0027] Secondly, embodiments of this application provide a control device for a washing machine, comprising:

[0028] The acquisition module is used to acquire stain features in an image of stains on clothes to be washed, the stain features including stain color and stain shape;

[0029] The processing module is used to compare the stain features in the stain image with the stain features of each pre-acquired stain type to determine the target stain type of the garment to be washed.

[0030] The processing module is also used to obtain the amount of laundry detergent to be added based on the weight of the clothes to be washed in the washing machine;

[0031] The processing module is also used to obtain the target washing temperature and target washing time based on the amount of laundry detergent added, the hardness of the water used in the washing machine, and the type of target stain on the clothes to be washed.

[0032] The processing module is also used to control the washing machine to wash the clothes to be washed based on the target washing temperature, the target washing time and the amount of laundry detergent added.

[0033] In one possible design of the second aspect, after determining the target stain type of the garment to be washed, the acquisition module is further configured to acquire the degree of turbidity of the stain in the garment to be washed through a turbidity sensor.

[0034] The processing module is also used to obtain a washing coefficient based on the degree of turbidity;

[0035] Accordingly, the processing module is specifically used for:

[0036] The amount of laundry detergent to be added is determined based on the weight of the clothes to be washed in the washing machine and the washing coefficient.

[0037] In another possible design of the second aspect, after obtaining the amount of laundry detergent dispensed, the obtaining module is further configured to:

[0038] The water intake of the washing machine is obtained through a flow sensor;

[0039] The inlet water temperature of the washing machine is obtained through a temperature sensor;

[0040] Accordingly, the processing module is specifically used for:

[0041] Based on the inlet water volume, the inlet water temperature, the specific heat capacity of water, the heating power of the washing machine, the amount of laundry detergent added, the hardness of the water used in the washing machine, and the type of target stain on the clothes to be washed, the target washing temperature and the target washing time are obtained.

[0042] Optionally, the stain type includes any one of the following: alcohol, cocoa, protein, carbon black, and sebum.

[0043] In another possible design of the second aspect, before acquiring the stain features in the stain image of the garment to be washed, the acquisition module is further configured to:

[0044] Obtain the stain characteristics for each stain type from the networked database.

[0045] In another possible design of the second aspect, after determining the target stain type of the garment to be washed, the acquisition module is further configured to:

[0046] The hardness of the water used in the washing machine is obtained using a hardness sensor.

[0047] Thirdly, embodiments of this application provide an electronic device, including: a processor, a memory, and computer program instructions stored in the memory and executable on the processor, wherein the processor executes the computer program instructions to implement the methods provided in the first aspect and various possible designs.

[0048] Fourthly, embodiments of this application may provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the methods provided in the first aspect and various possible designs.

[0049] Fifthly, embodiments of this application provide a computer program product, including a computer program, which, when executed by a processor, is used to implement the methods provided in the first aspect and various possible designs.

[0050] The washing machine control method, apparatus, device, medium, and program product provided in this application embodiment acquires stain features from a stain image of the clothes to be washed, compares the stain features in the stain image with pre-acquired stain features for each stain type to determine the target stain type of the clothes to be washed, obtains the amount of detergent to be added based on the weight of the clothes to be washed in the washing machine, obtains the target washing temperature and target washing time based on the amount of detergent added, the hardness of the water used in the washing machine, and the target stain type of the clothes to be washed, and controls the washing machine to wash the clothes to be washed based on the target washing temperature, target washing time, and amount of detergent added. It can configure different washing coefficients for different types of stains, thereby ensuring that targeted washing can be performed according to the characteristics of different types of stains, effectively ensuring that clothes are washed clean in the shortest time, improving the washing effect of clothes, and reducing electricity costs and energy waste. Attached Figure Description

[0051] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0052] Figure 1 This is a schematic diagram illustrating an application scenario of the washing machine control method provided in an embodiment of this application;

[0053] Figure 2 A flowchart illustrating an embodiment of the washing machine control method provided in this application;

[0054] Figure 3 A flowchart illustrating a second embodiment of the washing machine control method provided in this application;

[0055] Figure 4 This is a schematic diagram of the structure of the control device for a washing machine provided in an embodiment of this application;

[0056] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0057] The accompanying drawings have illustrated specific embodiments of this disclosure, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concepts of this disclosure to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0058] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0059] Before introducing the embodiments of this application, the application background of the embodiments of this application will be explained first:

[0060] Taking a front-loading washing machine as an example, traditional front-loading washing machines are equipped with a variety of washing modes, each with its own washing program, and each program includes pre-set washing parameters. During the washing process, users can control the washing process by tapping the touchscreen on the washing machine itself, or by tapping an app on their phone that is linked to the washing machine.

[0061] After the user taps the touchscreen, the drum washing machine responds to the user's tap, obtains the washing mode identifier corresponding to the tap, executes the washing program corresponding to the mode identifier, and washes the clothes according to the washing parameters in the washing program.

[0062] However, when clothes are stained, existing technology cannot adjust the washing parameters in the washing program according to the type of stain. When washing multiple stained clothes of the same material, the washing parameters in the washing program are the same each time, which results in the clothes not being cleaned properly, and may lead to energy waste and poor washing effect.

[0063] To address the aforementioned problems, the inventive concept of this application is as follows: In existing technologies, each washing function is pre-configured based on the characteristics of the clothing material, and the washing parameters for each function are fixed, making it impossible to automatically adjust for different types of stains. This can lead to situations where clothes are not thoroughly cleaned, resulting in poor washing performance. Based on this, the inventors discovered that different types of stains have different characteristics; for example, some stain types are directly proportional to the amount of laundry detergent used, while others are inversely proportional to the hardness of the water. Therefore, based on the type of stain on the clothes to be washed, the weight of the clothes, and the hardness of the water, the amount of laundry detergent, washing time, and washing temperature can be determined. By controlling the washing machine to wash the clothes according to the amount of laundry detergent, washing time, and washing temperature, targeted cleaning of the stains in the clothes can be achieved, solving the problem of ineffective cleaning and poor washing performance in existing technologies, thereby improving the user experience.

[0064] For example, the washing machine control method provided in this application embodiment can be applied to... Figure 1 The diagram shows one application scenario. Figure 1 This diagram illustrates an application scenario of the washing machine control method provided in this application, used to solve the aforementioned technical problems. Figure 1 As shown, the application scenario may include: a drum washing machine 11, a server 12, and a data storage device 13 connected to the server.

[0065] Among them, the drum washing machine 11 and the touch screen device ( Figure 1 (Not shown in the image) is connected. The touch screen device can be placed inside the drum washing machine 11 or it can be an external touch screen device relative to the drum washing machine 11. This embodiment does not limit this.

[0066] Taking a touch screen device placed in a drum washing machine 11 as an example, when a user clicks on the touch screen in the drum washing machine 11, the drum washing machine 11 responds to the user's click operation by generating a washing command, and obtains an image of the stains on the clothes to be washed through a camera device installed on the door of the drum washing machine 11, obtains the weight of the clothes to be washed through a gravity sensor, and obtains the hardness of the water used to wash the clothes through a hardness sensor installed at the water inlet valve, and sends the stain image, the weight of the clothes to be washed, and the hardness of the water to be washed to the server 12.

[0067] Server 12 receives a stain image, the weight of the clothes to be washed, and the hardness of the water sent by drum washing machine 11. It extracts stain features from the stain image and compares these stain features with the stain features of each stain type stored in data storage device 13 to determine the target stain type of the clothes to be washed. Server 12 then runs the program code of the washing machine's control method to obtain the amount of detergent added, the target washing temperature, and the target washing time, and sends these parameters to drum washing machine 11.

[0068] The drum washing machine 11 receives the amount of laundry detergent, target washing temperature, and target washing time sent by the server 12, and adds laundry detergent into the inner drum of the drum washing machine 11 according to the amount of laundry detergent, and washes the clothes according to the target washing temperature and target washing time.

[0069] It should be noted that the appendix Figure 1 This is merely a schematic diagram illustrating one application scenario provided by an embodiment of this application. This embodiment does not necessarily represent... Figure 1 The included equipment is not limited, nor is it restricted. Figure 1 The positional relationships between devices are defined, for example, in Figure 1 In this context, the data storage device 13 can be an external storage device relative to the server 12. In other cases, the data storage device 13 can also be placed inside the server 12.

[0070] In practical applications, since terminal devices and drum washing machines are also processing devices with data processing capabilities, therefore, the above... Figure 1 The server in the illustrated application scenario can also be implemented using a terminal device or a drum washing machine. In the embodiments of this application, the server, terminal device, and drum washing machine can be collectively referred to as electronic devices.

[0071] The technical solution of this application will now be described in detail through specific embodiments.

[0072] It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.

[0073] Figure 2 This is a flowchart illustrating an embodiment of the washing machine control method provided in this application. Figure 2 As shown, the control method of this washing machine may include the following steps:

[0074] S21: Obtain stain features from the stain image of the clothes to be washed.

[0075] In this embodiment, since the executing entity can be a server, a terminal device, or a washing machine, in order to facilitate the explanation of each step in the embodiment, each step in this embodiment will be described using the washing machine as an example.

[0076] In this step, since the types of stains on the clothes to be washed are different, the required amount of laundry detergent, washing temperature and washing time are different. Therefore, it is necessary to obtain stain images of the clothes to be washed and extract stain features from the stain images so as to determine the type of stain on the clothes to be washed based on the stain features.

[0077] Optionally, images of stains on the clothes to be washed can be obtained using a camera device installed on the washing machine door.

[0078] For example, when a user puts clothes to be washed into the washing machine, the camera device takes a picture of the stains on the clothes to be washed, thereby obtaining an image of the stains on the clothes to be washed, and sends it to the washing machine connected to the camera device.

[0079] The characteristics of a stain include its color and its shape.

[0080] In the example above, after the washing machine obtains an image of the stains on the clothes to be washed, it can extract the stain color and stain shape from the stain image.

[0081] Optionally, stain characteristics may also include stain viscosity, stain boundary clarity, etc., or other stain characteristics existing in the prior art. These can be limited according to the actual situation, and the embodiments of this application do not impose such limitations.

[0082] S22: Compare the stain features in the stain image with the pre-acquired stain features for each stain type to determine the target stain type of the garment to be washed.

[0083] In this step, after obtaining the stain features in the stain image, it is also necessary to determine the type of stain on the garment to be washed based on the stain features in the stain image, so that the stain type can be washed in a targeted manner in the future.

[0084] For example, the stain features for each stain type can be obtained from a user-pre-entered configuration file or from a networked database. The washing machine compares the stain features in the acquired stain image with the pre-acquired stain features for each stain type. When the stain features of any stain type match the stain features in the stain image, that stain type is determined as the target stain type for the clothes to be washed; that is, the stain type of the clothes to be washed is the target stain type.

[0085] For example, stain types include any one of the following: alcohol, cocoa, protein, carbon black, and sebum. For instance, if the stain characteristics in the stain image are: dark brown in color and without a fixed shape, the washing machine compares these stain characteristics with the stain characteristics of each stain type. If the stain characteristics of cocoa match the stain characteristics in the stain image, then the stain type on the garment to be washed is cocoa.

[0086] S23: Determine the amount of laundry detergent to be added based on the weight of the clothes to be washed in the washing machine.

[0087] In this step, since laundry detergent is one of the key factors in whether clothes can be washed clean, too much detergent may leave residue on the clothes that cannot be rinsed off, while too little detergent will result in the clothes not being washed clean. Therefore, it is necessary to determine the amount of laundry detergent to use based on the weight of the clothes to be washed.

[0088] For example, a gravity sensor can be pre-installed in the inner drum of the washing machine. When the clothes to be washed are put into the inner drum, the inner drum rotates to adjust the distribution of the clothes in the inner drum. At the same time, the clothes to be washed will also exert a resistance on the inner drum. The gravity sensor obtains the weight of the clothes to be washed through this resistance.

[0089] In one possible implementation, the amount of laundry detergent can be equal to the weight of the clothes to be washed, where the unit of laundry detergent is grams and the unit of weight of the clothes to be washed is kilograms. That is, 1 gram of laundry detergent is needed for 1 kilogram of clothes to be washed.

[0090] In another possible implementation, the electronic device pre-stores a mapping relationship between the amount of laundry detergent to be dispensed and the weight of the clothes to be washed. This mapping relationship can be achieved using the formula: Laundry detergent dosage = 1.5 × weight of clothes to be washed + 8. The electronic device can determine the amount of laundry detergent to be dispensed based on the weight of the clothes to be washed and the above mapping relationship; that is, 9.5 grams of laundry detergent are needed for 1 kilogram of clothes to be washed.

[0091] S24: Based on the amount of laundry detergent added, the hardness of the water used in the washing machine, and the type of stain on the clothes to be washed, obtain the target washing temperature and target washing time.

[0092] In this step, after obtaining the amount of laundry detergent, it is also necessary to obtain the target washing temperature and target washing time, so that the washing machine can be controlled to wash the clothes to be washed based on the amount of laundry detergent, the target washing temperature, and the target washing time.

[0093] For example, the following will elaborate on the methods for obtaining the target washing temperature and target washing time for different types of stains:

[0094] 1) For alcohol stains, the cleaning effect is inversely proportional to washing time and water hardness, but directly proportional to washing temperature and detergent dosage. Therefore, a shorter washing time, a larger detergent dosage, and a higher washing temperature are required. The target washing time and temperature can be obtained using the formula: 0.008t - 0.019T = 0.5 + 0.14m × 1.1 - 0.012ppm. The obtained target washing time and temperature are the minimum solution to the formula: f(t,T) = 0.4t + T.

[0095] 2) For cocoa stains, the cleaning effect is inversely proportional to the amount of laundry detergent used, the water hardness, and the washing temperature, but directly proportional to the washing time. Therefore, a smaller amount of laundry detergent, a lower washing temperature, and a longer washing time are needed. The target washing time and temperature can be obtained using the formula: 0.015t - 0.028T = -1.9 + 0.084m × 0.8 + 0.0005ppm. Furthermore, the obtained target washing time and temperature are the minimum solution to the formula: f(t,T) = 0.4t + T.

[0096] 3) For protein-based stains, the cleaning effect is directly proportional to the amount of laundry detergent used, the washing temperature, and the washing time, and inversely proportional to the water hardness. Therefore, the amount of laundry detergent used, the washing temperature, and the washing time should be adjusted accordingly. The target washing time and temperature can be obtained using the formula: 0.051t + 0.07T = 7.5 - 0.31m × 1.1 + 0.007ppm. The obtained target washing time and temperature are the minimum solution to the formula: f(t,T) = 0.4t + T.

[0097] 4) For carbon black stains, the cleaning effect is inversely proportional to the amount of laundry detergent used, inversely proportional to the water hardness, and directly proportional to the washing temperature and washing time. Therefore, a smaller amount of laundry detergent and a larger washing time and temperature are needed during the washing process. The target washing time and temperature can be obtained using the formula: 0.037t + 0.10T = 1.12 + 0.05m × 0.9 + 0.007ppm. The obtained target washing time and temperature are the minimum solution to the formula: f(t,T) = 0.4t + T.

[0098] 5) For sebum-based stains, the cleaning effect is inversely proportional to water hardness, directly proportional to washing temperature, directly proportional to washing time, and directly proportional to the amount of detergent used. Therefore, a longer washing time, a larger amount of detergent, and a higher washing temperature are required. The target washing time and temperature can be obtained using the formula: 0.024t + 0.12T = 4 - 0.04m × 1.1 + 0.011ppm. The obtained target washing time and temperature are the minimum solution to the formula: f(t,T) = 0.4t + T.

[0099] Among the five methods above, the solution that yields the minimum value is the target washing temperature and the target washing time. Here, t is the washing time (t > 5 and < 45), T is the washing temperature (T > 20 and < 60), m is the amount of laundry detergent added, and ppm is the hardness of the water used in the washing machine.

[0100] If the clothes to be washed contain multiple types of stains, or if there are multiple clothes to be washed in the washing machine, and each piece of clothing has different stains, the quantity of each type of stain can be obtained. The washing time and temperature corresponding to the stain with the largest quantity can be used as the target washing time and temperature. Alternatively, the average washing time and temperature corresponding to all types of stains in the clothes to be washed can be used as the target washing time and temperature. Furthermore, a weighting coefficient corresponding to each type of stain can be obtained based on the quantity of each type of stain. The washing time and temperature of each type of stain can be weighted according to the weighting coefficient to obtain the target washing time and temperature.

[0101] S25: Control the washing machine to wash the clothes to be washed based on the target washing temperature, target washing time and amount of laundry detergent.

[0102] The washing machine control method provided in this application embodiment acquires stain features from a stain image of the clothes to be washed, compares the stain features in the stain image with pre-acquired stain features for each stain type to determine the target stain type of the clothes to be washed, acquires the amount of detergent to be added based on the weight of the clothes to be washed in the washing machine, acquires the target washing temperature and target washing time based on the amount of detergent added, the hardness of the water used in the washing machine, and the target stain type of the clothes to be washed, and controls the washing machine to wash the clothes to be washed based on the target washing temperature, target washing time, and amount of detergent added. It can configure different washing coefficients for different types of stains, thereby ensuring that targeted washing can be performed according to the characteristics of different types of stains, effectively ensuring that the clothes are washed clean in the shortest time, improving the washing effect of the clothes, and reducing electricity costs and energy waste.

[0103] Optionally, in some embodiments, after S22, the control method of the washing machine may further include the following steps: obtaining the degree of turbidity of stains in the clothes to be washed through a turbidity sensor, and obtaining a washing coefficient based on the degree of turbidity.

[0104] Accordingly, S23 can be achieved through the following steps: obtaining the amount of laundry detergent to be added based on the weight of the clothes to be washed in the washing machine and the washing coefficient.

[0105] For example, taking a washing machine as the executing entity, the washing machine can pre-store a mapping relationship between the degree of stain turbidity and the washing coefficient. After obtaining the degree of stain turbidity, the washing machine can obtain the washing coefficient corresponding to the degree of stain turbidity in the clothes to be washed, based on the mapping relationship. For example, assuming the pre-stored mapping relationship between the amount of laundry detergent and the weight of the clothes to be washed is the formula: Laundry detergent amount = 1.5 × weight of clothes to be washed + 8, and the washing machine obtains that the degree of stain turbidity is level 2, according to the mapping relationship, the washing coefficient corresponding to level 2 turbidity is obtained as 1.1, then the amount of laundry detergent can be obtained using the formula: Laundry detergent amount = 1.1 × (1.5 × weight of clothes to be washed + 8).

[0106] The mapping relationship between the degree of turbidity and the washing coefficient can be obtained through experimental fitting results or other methods. This application does not impose specific limitations on this.

[0107] Optionally, in some embodiments, after S23, the control method of the washing machine may further include the following steps: obtaining the water inlet volume of the washing machine through a flow sensor, and obtaining the water inlet temperature of the washing machine through a temperature sensor.

[0108] Accordingly, S24 can be achieved through the following steps: obtaining the target washing temperature and target washing time based on the water inlet volume, water inlet temperature, specific heat capacity of water, heating power of the washing machine for water, amount of laundry detergent added, hardness of the water used in the washing machine, and the type of target stain on the clothes to be washed.

[0109] For example, the following will elaborate on the methods for obtaining the target washing temperature and target washing time for different types of stains:

[0110] 1) For alcohol stains, use the formula: 0.008t-0.019T=0.5+0.14m*1.1-0.012ppm and the formula: t 目标洗涤时长 =t+t 理论加热到目标洗涤温度所需要的时间 Obtain the target washing time and target washing temperature.

[0111] 2) For cocoa-based stains, use the formula: 0.015t - 0.028T = -1.9 + 0.084m * 0.8 + 0.0005ppm; and the formula: t 目标洗涤时长 =t+t 理论加热到目标洗涤温度所需要的时间 Obtain the target washing time and target washing temperature.

[0112] 3) For protein-based stains, use the formula: 0.051t + 0.07T = 7.5 - 0.31m * 1.1 + 0.007ppm and the formula: t 目标洗涤时长 =t+t 理论加热到目标洗涤温度所需要的时间 The target washing time and target washing temperature are obtained. Where t 理论加热到目标洗涤温度所需要的时间 Greater than 0 and less than 50.

[0113] 4) For carbon black stains, use the formula: 0.037t + 0.10T = 1.12 + 0.05m * 0.9 + 0.007ppm and the formula: t 目标洗涤时长 =t+t 理论加热到目标洗涤温度所需要的时间 The target washing time and target washing temperature are obtained. Where t 理论加热到目标洗涤温度所需要的时间 Greater than 0 and less than 50.

[0114] 5) For sebum-based stains, use the formula: 0.024t + 0.12T = 4 - 0.04m × 1.1 + 0.011ppm and the formula: t 目标洗涤时长 =t+t 理论加热到目标洗涤温度所需要的时间 The target washing time and target washing temperature are obtained. Where t 理论加热到目标洗涤温度所需要的时间 Greater than 0 and less than 50.

[0115] In the above five methods, t is the washing time, which is greater than 5 and less than 45; T is the washing temperature, which is greater than 20 and less than 60; m is the amount of laundry detergent added; and ppm is the hardness of the water used in the washing machine.

[0116] Wherein, the formula is: t 目标洗涤时长 =t+t 理论加热到目标洗涤温度所需要的时间 The formula is: Q = M × C × (TT) 进水温度 ), formula: Q=A*t 理论加热到目标洗涤温度所需要的时间 ,formula: The value is obtained, where M is the water intake of the washing machine, C is the specific heat capacity of water, A is the heating power of the washing machine on the water, and Q is the energy.

[0117] Optionally, in some embodiments, after S22, the control method of the washing machine may further include the following step: obtaining the hardness of the water used by the washing machine through a hardness sensor. Taking the washing machine as an example, the hardness of the water used by the washing machine is obtained through a hardness sensor installed at the water inlet valve of the washing machine. This hardness sensor is an electrode. When the calcium and magnesium ion content in the water is high, it is determined to be hard water; when the calcium and magnesium ion content in the water is low, it is determined to be soft water; when the value is in between, it is medium hardness water.

[0118] Figure 3 This is a flowchart illustrating a second embodiment of the washing machine control method provided in this application. Figure 3 As shown, the control method of this washing machine may include the following steps:

[0119] S31: Obtain the hardness of the water used in the washing machine;

[0120] S32: Obtain the weight of the clothes to be washed;

[0121] S33: Obtain the amount of laundry detergent dispensed;

[0122] S34: Identify the type of stain on the garment to be washed;

[0123] S35: Run the program code corresponding to this stain type for calculating washing parameters;

[0124] Washing parameters include washing temperature, washing time, and amount of laundry detergent;

[0125] S36: Obtain the target washing temperature, target washing time, and detergent dosage, and control the washing machine to wash the clothes to be washed.

[0126] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.

[0127] Figure 4 This is a schematic diagram of the control device for a washing machine provided in an embodiment of this application. Figure 4 As shown, the control device of the washing machine includes:

[0128] The acquisition module 41 is used to acquire stain features in the stain image of the clothes to be washed, the stain features including stain color and stain shape;

[0129] Processing module 42 is used to compare the stain features in the stain image with the stain features of each pre-acquired stain type to determine the target stain type of the clothes to be washed;

[0130] The processing module 42 is also used to obtain the amount of laundry detergent to be dispensed based on the weight of the clothes to be washed in the washing machine;

[0131] The processing module 42 is also used to obtain the target washing temperature and target washing time based on the amount of laundry detergent added, the hardness of the water used in the washing machine, and the type of target stain on the clothes to be washed.

[0132] The processing module 42 is also used to control the washing machine to wash the clothes to be washed based on the target washing temperature, target washing time and amount of laundry detergent.

[0133] In one possible design of this application embodiment, after determining the type of target stain on the clothes to be washed, the acquisition module 41 is further used to acquire the degree of turbidity of the stain on the clothes to be washed through a turbidity sensor.

[0134] Processing module 42 is also used to obtain the washing coefficient based on the degree of soiling;

[0135] Correspondingly, processing module 42 is specifically used for:

[0136] The amount of laundry detergent to be added is determined based on the weight of the clothes to be washed in the washing machine and the washing coefficient.

[0137] In another possible design of this application embodiment, after obtaining the amount of laundry detergent, the obtaining module 41 is further used for:

[0138] The water volume entering the washing machine is obtained through a flow sensor;

[0139] The water inlet temperature of the washing machine is obtained through a temperature sensor;

[0140] Correspondingly, processing module 42 is specifically used for:

[0141] Based on the water inlet volume, water inlet temperature, water specific heat capacity, washing machine heating power, detergent dosage, water hardness, and the type of stain on the clothes to be washed, the target washing temperature and target washing time are determined.

[0142] Optionally, the stain type includes any one of the following: alcohol, cocoa, protein, charcoal, and sebum.

[0143] In another possible design of this application embodiment, before acquiring the stain features in the stain image of the clothes to be washed, the acquisition module 41 is further configured to:

[0144] Retrieve stain characteristics for each stain type from the networked database.

[0145] In another possible design of this application embodiment, after determining the type of target stain on the clothes to be washed, the acquisition module 41 is further configured to:

[0146] The hardness of the water used in the washing machine is obtained through a hardness sensor.

[0147] The washing machine control device provided in this application embodiment can be used to execute the washing machine control method in any of the above embodiments. Its implementation principle and technical effect are similar, and will not be described again here.

[0148] It should be noted that the division of the various modules in the above device is merely a logical functional division. In actual implementation, they can be fully or partially integrated into a single physical entity, or they can be physically separated. Furthermore, these modules can be implemented entirely in software via processing element calls; they can be fully implemented in hardware; or some modules can be implemented by processing element calls to software, while others are implemented in hardware. Additionally, these modules can be fully or partially integrated together, or implemented independently. The processing element mentioned here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each of the above modules can be completed through the integrated logic circuits in the hardware of the processor element or through software instructions.

[0149] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 5 As shown, the electronic device may include: a processor 51, a memory 52, and computer program instructions stored in the memory 52 and executable on the processor 51. When the processor 51 executes the computer program instructions, it implements the washing machine control method provided in any of the foregoing embodiments.

[0150] Optionally, the electronic device may also include an interface for interacting with other devices.

[0151] Optionally, the various components of the electronic device can be connected via a system bus.

[0152] The memory 52 can be a separate memory unit or a memory unit integrated into the processor. The number of processors can be one or more.

[0153] It should be understood that processor 51 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this application can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.

[0154] The system bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The system bus can be divided into address bus, data bus, control bus, etc. For ease of representation, only one thick line is used in the diagram, but this does not indicate that there is only one bus or one type of bus. Memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.

[0155] All or part of the steps in the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a readable memory. When the program is executed, it performs the steps of the above-described method embodiments; and the aforementioned memory (storage medium) includes: read-only memory (ROM), RAM, flash memory, hard disk, solid-state drive, magnetic tape, floppy disk, optical disk, and any combination thereof.

[0156] The electronic device provided in this application embodiment can be used to execute the control method of the washing machine provided in any of the above method embodiments. Its implementation principle and technical effect are similar, and will not be described again here.

[0157] This application provides a computer-readable storage medium storing computer instructions that, when executed on a computer, cause the computer to perform the aforementioned control method for a washing machine.

[0158] The aforementioned computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory, electrically erasable programmable read-only memory, erasable programmable read-only memory, programmable read-only memory, read-only memory, magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.

[0159] Optionally, a readable storage medium can be coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Alternatively, the readable storage medium can be an integral part of the processor. Both the processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components within the device.

[0160] This application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. At least one processor can read the computer program from the computer-readable storage medium, and when the at least one processor executes the computer program, it can implement the above-described control method for a washing machine.

[0161] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A control method for a washing machine, characterized in that, include: Obtain stain features from an image of stains on clothing to be washed, the stain features including stain color and stain shape; The stain features in the stain image are compared with the stain features of each pre-acquired stain type to determine the target stain type of the garment to be washed; the target stain type is any one of alcohol, cocoa, protein, carbon black, or sebum. The amount of laundry detergent to be added is determined based on the weight of the clothes to be washed in the washing machine. Based on the amount of laundry detergent added, the hardness of the water used in the washing machine, and the type of target stain on the clothes to be washed, the target washing temperature and target washing time are obtained through the washing parameter calculation relationship corresponding to the target stain type. The obtained target washing time and target washing temperature are the solution to the minimum value of the formula: f(t,T)=0.4t+T, where t is the washing time, which is greater than 5 and less than 45, and T is the washing temperature, which is greater than 20 and less than 60. The washing parameter calculation relationship is used to characterize the linear relationship between the washing temperature and washing time required to clean the target stain type under the given amount of laundry detergent added and the hardness of the water. The washing machine is controlled to wash the clothes to be washed based on the target washing temperature, the target washing time, and the amount of laundry detergent added.

2. The method according to claim 1, characterized in that, After determining the type of target stain on the garment to be washed, the method further includes: The degree of turbidity of the stains in the clothes to be washed is obtained by a turbidity sensor; Based on the degree of soiling, obtain the washing coefficient; Accordingly, determining the amount of laundry detergent to be added based on the weight of the clothes to be washed in the washing machine includes: The amount of laundry detergent to be added is determined based on the weight of the clothes to be washed in the washing machine and the washing coefficient.

3. The method according to claim 1 or 2, characterized in that, After obtaining the amount of laundry detergent to be added, the method further includes: The water intake of the washing machine is obtained through a flow sensor; The inlet water temperature of the washing machine is obtained through a temperature sensor; Accordingly, obtaining the target washing temperature and target washing time based on the amount of laundry detergent added, the hardness of the water used in the washing machine, and the type of target stain on the clothes to be washed includes: Based on the inlet water volume, the inlet water temperature, the specific heat capacity of water, the heating power of the washing machine, the amount of laundry detergent added, the hardness of the water used in the washing machine, and the type of target stain on the clothes to be washed, the target washing temperature and the target washing time are obtained.

4. The method according to claim 1, characterized in that, Before acquiring stain features from the stain image of the clothes to be washed, the method further includes: Obtain the stain characteristics for each stain type from the networked database.

5. The method according to claim 1, characterized in that, After determining the type of target stain on the garment to be washed, the method further includes: The hardness of the water used in the washing machine is obtained using a hardness sensor.

6. A control device for a washing machine, characterized in that, The control device for the washing machine is used to implement the control method for the washing machine according to any one of claims 1-5, the device comprising: The acquisition module is used to acquire stain features in an image of stains on clothes to be washed, the stain features including stain color and stain shape; The processing module is used to compare the stain features in the stain image with the stain features of each pre-acquired stain type to determine the target stain type of the garment to be washed. The processing module is also used to obtain the amount of laundry detergent to be added based on the weight of the clothes to be washed in the washing machine; The processing module is also used to obtain the target washing temperature and target washing time based on the amount of laundry detergent added, the hardness of the water used in the washing machine, and the type of target stain on the clothes to be washed. The processing module is also used to control the washing machine to wash the clothes to be washed based on the target washing temperature, the target washing time and the amount of laundry detergent added.

7. An electronic device, comprising: A processor, a memory, and computer program instructions stored in the memory and executable on the processor, characterized in that the processor executes the computer program instructions to implement the control method of a washing machine as described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the control method of the washing machine as described in any one of claims 1 to 5.

9. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it is used to implement the control method of the washing machine as described in any one of claims 1 to 5.