Method, device, medium for optimizing detergent dosage, and laundry treatment apparatus

CN122959959APending Publication Date: 2026-10-23CHONGQING HAIER ROLLER WASHING MASCH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510487140.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-17
Publication Date
2026-10-23

AI Technical Summary

Technical Problem

[0005]本申请实施例提供洗涤剂投放量的优化方法、装置、介质及衣物处理设备,解决了依赖单一称重方式确定的洗涤剂投放量存在过多或过少的问题,提高了洗涤效果以及用户的洗涤体验

Benefits of technology

[0045]本申请实施例提供的洗涤剂投放量的优化方法、装置、介质及衣物处理设备,通过在衣物处理设备上设置拍摄装置,在检测到衣物处理设备中存在待处理衣物时,通过拍摄装置获取衣物处理设备的第一内筒图像,再根据第一内筒图像确定待处理衣物的软硬比例,并基于软硬比例对基于待处理衣物确定的洗涤剂投放量进行优化处理,解决了依赖单一称重方式确定的洗涤剂投放量存在过多或过少的问题,提高了洗涤效果以及用户的洗涤体验。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122959959A_ABST
    Figure CN122959959A_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a method, device, medium and laundry processing apparatus for optimizing detergent dosage. The laundry processing apparatus comprises a shooting device, which maintains a relative static state with an inner drum of the laundry processing apparatus, and is configured to shoot an inner drum image of the laundry processing apparatus. The method comprises: when detecting that there is laundry to be processed in the inner drum of the laundry processing apparatus, acquiring a first inner drum image by the shooting device; determining a soft-hard ratio of the laundry to be processed based on the first inner drum image, the soft-hard ratio being used to indicate a ratio of an area occupied by soft material laundry to an area occupied by hard material laundry in the inner drum; and optimizing the detergent dosage based on the soft-hard ratio, the detergent dosage being determined according to a weight of the laundry to be processed. The method solves the problem of excessive or insufficient detergent dosage determined by relying on a single weighing method, and improves the washing effect and the user's washing experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart home appliance technology, and in particular to a method, apparatus, medium, and clothing treatment equipment for optimizing detergent dosage. Background Technology

[0002] The rapid development and widespread application of garment processing equipment have brought convenience to users' lives. Garment processing equipment is also developing towards diversification and intelligence.

[0003] Currently, more and more garment processing equipment is equipped with weighing sensors to determine the weight of the garments, and then to determine the amount of detergent to be added based on the weight of the garments.

[0004] However, the washing needs and foam generation characteristics of different fabrics vary significantly. Relying solely on weighing to determine the amount of detergent can result in either too much detergent, leading to incomplete rinsing and wasted water, or too little detergent, resulting in incomplete washing and negatively impacting the user experience. Summary of the Invention

[0005] This application provides a method, apparatus, medium, and garment processing equipment for optimizing detergent dosage, which solves the problem of excessive or insufficient detergent dosage when relying on a single weighing method, thereby improving washing effect and user washing experience.

[0006] In a first aspect, embodiments of this application provide a method for optimizing detergent dosage, applied to a garment processing device. The garment processing device includes: a camera, which remains relatively stationary with the inner drum of the garment processing device, and is used to capture an image of the inner drum of the garment processing device. The method includes:

[0007] When it is detected that there are clothes to be processed in the inner drum of the clothing processing device, the first inner drum image is acquired by the imaging device.

[0008] Based on the first inner drum image, the softness-hardness ratio of the garment to be processed is determined. The softness-hardness ratio is used to indicate the ratio of the area occupied by soft material garments in the inner drum to the area occupied by stiff material garments in the inner drum.

[0009] Based on the aforementioned soft-hard ratio, the detergent dosage is optimized, and the detergent dosage is determined according to the weight of the garment to be treated.

[0010] In one possible implementation, determining the softness / hardness ratio of the garment to be processed based on the inner tube image includes:

[0011] Based on the first inner tube image, the light and dark features and texture features of the garment to be processed are determined, wherein the light and dark features are used to indicate the reflectivity of the garment to be processed.

[0012] The light and dark features and texture features are input into the soft and hard ratio analysis model to determine the soft and hard ratio of the garment to be processed. The soft and hard ratio analysis model is obtained based on multiple historical first inner tube images and the soft and hard ratio corresponding to each historical first inner tube image.

[0013] In one possible implementation, the detergent dosage is optimized based on the soft / hard ratio, including:

[0014] Based on the soft-hard ratio, determine the absolute difference in the area occupied by the soft material clothing and the stiff material clothing in the inner drum;

[0015] If the soft-hard ratio is less than the preset ratio, the amount of detergent added is increased according to the absolute difference.

[0016] If the soft-hard ratio is greater than the preset ratio, the amount of detergent added is reduced according to the absolute difference.

[0017] In one possible implementation, the garment processing equipment further includes a spraying device, and the method further includes:

[0018] According to the optimized detergent dosage, detergent is added to the clothing processing equipment, and the clothing washing program is started. After the clothing washing program has been running for a first preset time, the second inner drum image is acquired through the imaging device.

[0019] Based on the second inner cylinder image, the foam percentage is determined, and the foam percentage is compared with a first preset range to obtain a comparison result. The foam percentage is used to indicate the volume occupied by the foam in the inner cylinder.

[0020] If the comparison result indicates that the foam content is less than the lower limit of the first preset range, detergent is added;

[0021] If the comparison result indicates that the foam percentage is greater than the upper limit of the first preset range, the spray device is activated.

[0022] In one possible implementation, the method further includes:

[0023] When the comparison result indicates that the foam percentage is within the first preset range, multiple local foam images are acquired by the imaging device.

[0024] For any one of the multiple local image data, perform image processing on the local image data to determine the size of the foam in the local image data, and determine whether the size of the foam is within a second preset range;

[0025] If the foam size is not within the second preset range, a corresponding foam adjustment command is executed based on the foam size. The foam adjustment command is used to instruct the addition of detergent or to start the spray device.

[0026] In one possible implementation, after activating the spray unit, the method further includes:

[0027] The third inner cylinder image is acquired by the shooting device, and the third inner cylinder image is taken after the spray device has been activated for a second preset time.

[0028] Based on the third inner cylinder image, the foam percentage is determined, and it is then re-evaluated whether the foam percentage is within the first preset range.

[0029] In one possible implementation, the shooting device is mounted on the door seal module of the garment processing equipment via the rotating structure. The method further includes: obtaining the rotational speed of the inner drum of the garment processing equipment, and driving the rotating structure to rotate the shooting device according to the rotational speed of the inner drum, so that the shooting device and the inner drum of the garment processing equipment remain relatively stationary.

[0030] Secondly, embodiments of this application provide a detergent dosage optimization device applied to a garment processing equipment. The garment processing equipment includes: a camera, which remains relatively stationary with the inner drum of the garment processing equipment. The camera is used to capture images of the inner drum of the garment processing equipment. The device includes:

[0031] The acquisition module is used to acquire a first image of the inner drum through the imaging device when it is detected that there are clothes to be processed in the inner drum of the clothing processing device;

[0032] The determining module is used to determine the softness-hardness ratio of the garment to be processed based on the first inner drum image. The softness-hardness ratio is used to indicate the ratio of the area occupied by soft material garments in the inner drum to the area occupied by stiff material garments in the inner drum.

[0033] An optimization module is used to optimize the detergent dosage based on the soft-hard ratio, wherein the detergent dosage is determined according to the weight of the clothes to be treated.

[0034] In one possible implementation, the determining module is further configured to determine the light and dark features and texture features of the garment to be processed based on the first inner tube image, wherein the light and dark features are used to indicate the reflectivity of the garment to be processed; and input the light and dark features and texture features into a soft-hard ratio analysis model to determine the soft-hard ratio of the garment to be processed, wherein the soft-hard ratio analysis model is obtained based on multiple historical first inner tube images and the soft-hard ratio corresponding to each historical first inner tube image.

[0035] In one possible implementation, the optimization module is further configured to determine, based on the soft-hard ratio, the absolute difference in the area occupied by the soft material clothing and the stiff material clothing in the inner drum; if the soft-hard ratio is less than a preset ratio, adjust the amount of detergent added according to the absolute difference; if the soft-hard ratio is greater than the preset ratio, adjust the amount of detergent added according to the absolute difference.

[0036] In one possible implementation, the garment processing equipment further includes a spraying device, and the detergent dosage optimization device further includes a monitoring module;

[0037] The monitoring module is used to add detergent to the clothing processing equipment according to the optimized detergent dosage and start the clothing washing program. After the clothing washing program has been running for a first preset time, it acquires a second inner drum image through the imaging device. Based on the second inner drum image, it determines the foam percentage and compares the foam percentage with a first preset range to obtain a comparison result. The foam percentage is used to indicate the volume occupied by foam in the inner drum. If the comparison result indicates that the foam percentage is less than the lower limit of the first preset range, detergent is added. If the comparison result indicates that the foam percentage is greater than the upper limit of the first preset range, the spray device is activated.

[0038] In one possible implementation, the monitoring module is further configured to acquire multiple local foam images via the imaging device when the comparison result indicates that the foam percentage is within the first preset range; perform image processing on any one of the multiple local image data to determine the foam size in the local image data, and determine whether the foam size is within a second preset range; if the foam size is not within the second preset range, execute a corresponding foam adjustment command based on the foam size, the foam adjustment command being used to instruct the addition of detergent or the activation of the spray device.

[0039] In one possible implementation, the monitoring module is further configured to acquire a third inner cylinder image through the imaging device, the third inner cylinder image being captured after a second preset time period following the activation of the spray device; and to determine the foam percentage based on the third inner cylinder image, and to re-evaluate whether the foam percentage is within a first preset range.

[0040] Thirdly, embodiments of this application provide a garment processing device, including: a memory and a processor;

[0041] The memory stores computer-executed instructions;

[0042] The processor executes computer execution instructions stored in the memory, causing the processor to perform the first aspect and / or various possible implementations of the first aspect as described above.

[0043] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the first aspect and / or various possible implementations of the first aspect.

[0044] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the first aspect and / or various possible implementations of the first aspect.

[0045] The detergent dosage optimization method, apparatus, medium, and clothing processing equipment provided in this application embodiment solves the problem of excessive or insufficient detergent dosage when relying on a single weighing method, thereby improving the washing effect and the user's washing experience. By setting up a shooting device on the clothing processing equipment, when the presence of clothing to be processed is detected in the clothing processing equipment, the first inner drum image of the clothing processing equipment is acquired by the shooting device, and the softness-hardness ratio of the clothing to be processed is determined based on the first inner drum image. The detergent dosage determined based on the softness-hardness ratio is then optimized. Attached Figure Description

[0046] 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.

[0047] Figure 1 A flowchart illustrating a method for optimizing detergent dosage provided in this application embodiment. Figure 1 ;

[0048] Figure 2 A schematic diagram of the structure of a garment processing device provided in this application embodiment. Figure 1 ;

[0049] Figure 3 A flowchart illustrating a method for optimizing detergent dosage provided in this application embodiment. Figure 2 ;

[0050] Figure 4 A flowchart illustrating a method for optimizing detergent dosage provided in this application embodiment. Figure 3 ;

[0051] Figure 5 A schematic diagram of foam proportion provided for an embodiment of this application;

[0052] Figure 6 A schematic diagram of a detergent dosage optimization device provided in an embodiment of this application;

[0053] Figure 7 A schematic diagram of the structure of a garment processing device provided in this application embodiment. Figure 2 .

[0054] The accompanying drawings illustrate specific embodiments of this application, 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 concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0055] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0056] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a particular order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented, for example, in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, products, or apparatus.

[0057] "Multiple" refers to two or more, and other quantifiers are similar. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following objects have an "or" relationship.

[0058] It should be noted that, in the embodiments of this application, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design scheme described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0059] The rapid development and widespread application of garment processing equipment have brought convenience to users' lives. Garment processing equipment is also developing towards diversification and intelligence.

[0060] In existing technologies, due to the significant differences in washing requirements and foam generation characteristics of clothing made of different materials, determining the amount of detergent to add by a single weighing method can lead to problems such as adding too much detergent, resulting in incomplete rinsing and wasted water; or adding too little detergent, resulting in incomplete rinsing and affecting the user experience.

[0061] The detergent dosage optimization method provided in this application solves the problem of excessive or insufficient detergent dosage when relying on a single weighing method to determine the amount of detergent to be treated. By setting up a camera device on the garment processing equipment, when the presence of garments to be treated is detected in the garment processing equipment, the camera device acquires an image of the inner drum of the garment processing equipment and determines the softness-hardness ratio of the garments to be treated. The method then optimizes the detergent dosage based on the softness-hardness ratio of the garments to be treated.

[0062] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0063] Figure 1 A flowchart illustrating a method for optimizing detergent dosage provided in this application embodiment. Figure 1 This embodiment applies to a garment processing device, which includes: a camera, which remains relatively stationary with the inner drum of the garment processing device, and is used to capture images of the inner drum of the garment processing device, such as... Figure 1 As shown, the method includes:

[0064] S101. When it is detected that there are clothes to be processed in the inner drum of the clothing processing equipment, the first inner drum image is obtained by the imaging device.

[0065] The first inner cylinder image is a global image of the inner cylinder captured by the imaging device.

[0066] When clothing is detected in the inner drum of the garment processing equipment, the imaging device remains relatively stationary while the inner drum is being weighed by gently shaking it at a low speed. This allows the imaging device to capture images of the inner drum, resulting in a first image of the inner drum. As the inner drum rotates, the clothing continuously rolls and adjusts its position, ensuring that the imaging device captures sufficient images of the first inner drum during this process.

[0067] Clothing processing equipment can be, for example, a front-loading washing machine or a washer-dryer combo.

[0068] Figure 2 A schematic diagram of the structure of a garment processing device provided in this application embodiment. Figure 1 ,like Figure 2 As shown, the garment processing equipment 20 includes a camera module 202; the camera module 202 includes a rotating structure 2021 and a shooting device 2022.

[0069] In one possible implementation, the shooting device 2022 is mounted on the door seal module of the garment processing equipment 20 via a rotating structure 2021. The method further includes: obtaining the rotational speed of the inner drum of the garment processing equipment, and driving the rotating structure to rotate the shooting device according to the rotational speed of the inner drum, so that the shooting device and the inner drum of the garment processing equipment remain relatively stationary.

[0070] When the inner drum of the garment processing device 20 rotates, the rotation speed of the inner drum of the garment processing device 20 is obtained, and the rotating structure is controlled to drive the shooting device to rotate according to the rotation speed of the inner drum, so that the shooting device and the inner drum of the garment processing device remain relatively stationary.

[0071] For example: During the weighing process of the clothes inside the inner drum of the clothing processing equipment at a low rotation speed w, the rotating structure is controlled to drive the shooting device to rotate according to the inner drum rotation speed w.

[0072] The rotation speed of the rotating structure is adjusted in real time according to the rotation speed of the inner drum, so that the inner drum of the shooting device and the clothing processing equipment remain relatively stationary, reducing the impact of the inner drum rotation on the captured image and improving the image clarity.

[0073] S102. Based on the first inner tube image, determine the softness / hardness ratio of the clothing to be processed;

[0074] The soft-hard ratio is used to indicate the ratio of the area occupied by soft-material clothing in the inner drum to the area occupied by stiff-material clothing in the inner drum.

[0075] Because soft fabrics, such as cotton and silk, reflect light more diffusely and have lower reflectivity, while stiffer fabrics, such as denim, have smoother, flatter surfaces and reflect light more readily, the softness / hardness ratio of the garment to be treated can be determined by observing the reflectivity of different fabrics in the first inner drum image. Alternatively, the softness / hardness ratio can be determined based on the roughness of the soft and stiff fabrics.

[0076] S103. Based on the ratio of soft to hard detergents, the amount of detergent added is optimized.

[0077] The amount of detergent to be added is determined based on the weight of the clothes to be treated.

[0078] Because soft and stiff fabrics absorb detergent differently, and stiffer fabrics are generally used more for outdoor activities, they tend to get dirty more easily than softer fabrics. Even for the same weight of clothing, the required amount of detergent varies depending on the fabric's texture.

[0079] Based on the softness / hardness ratio of the clothes to be treated, the amount of detergent to be added, which is determined based on the weight of the clothes, is optimized.

[0080] This application provides a method for optimizing detergent dosage. By setting up a camera on the garment processing equipment, when the presence of garments to be processed is detected in the garment processing equipment, the camera acquires an image of the first inner drum of the garment processing equipment. Then, the softness-hardness ratio of the garments to be processed is determined based on the first inner drum image, and the detergent dosage determined based on the softness-hardness ratio is optimized. This solves the problem of excessive or insufficient detergent dosage when relying on a single weighing method, and improves the washing effect and the user's washing experience.

[0081] Figure 3 A flowchart illustrating a method for optimizing detergent dosage provided in this application embodiment. Figure 2 In this embodiment Figure 1 Based on the examples, the method for optimizing the detergent dosage is described in detail, such as... Figure 3 As shown, the method includes:

[0082] S301. When it is detected that there are clothes to be processed in the inner drum of the clothing processing equipment, the first inner drum image is acquired by the imaging device.

[0083] Step S301 is similar to step S101, and will not be described again here.

[0084] S302. Based on the first inner tube image, determine the light and dark features and texture features of the garment to be processed;

[0085] Among them, the light and dark features are used to indicate the reflectivity of the clothing to be treated; the texture features are used to indicate the surface texture of the clothing.

[0086] Soft fabrics reflect light more diffusely, while stiff fabrics reflect light more strongly, creating highlight areas. The brightness and darkness characteristics of the fabric to be processed are obtained by analyzing the highlight areas in the image; texture features can be extracted from the image using a gray-level co-occurrence matrix.

[0087] S303. Input the light and dark features and texture features into the soft and hard ratio analysis model to determine the soft and hard ratio of the clothing to be processed.

[0088] Among them, the soft-hard ratio analysis model is based on multiple historical first inner cylinder images and the soft-hard ratio corresponding to each historical first inner cylinder image;

[0089] The light and dark features and texture features are input into the soft and hard ratio analysis model obtained by using multiple historical first inner tube images and the soft and hard ratio corresponding to each historical first inner tube image, so as to obtain the soft and hard ratio of the clothing to be processed.

[0090] S304. Based on the soft-hard ratio, determine the absolute difference in the area occupied by soft and stiff clothing in the inner drum.

[0091] The absolute difference is used to indicate the difference between soft and stiff clothing.

[0092] Based on the soft-hard ratio, determine the proportion of soft and stiff clothing in the inner drum. Calculate the absolute value of the difference, which is the absolute difference in the area occupied by soft and stiff clothing in the inner drum.

[0093] For example, when the softness-to-hardness ratio is 2:3, the absolute difference between soft and stiff clothing can be determined to be 20%.

[0094] S305. If the soft-hard ratio is less than the preset ratio, the amount of detergent added shall be increased according to the absolute difference.

[0095] Because stiffer fabrics tend to attract dirt more easily than softer fabrics—for example, denim is usually worn on the outside while cotton is usually worn next to the skin—if the ratio of stiffness to softness is less than a preset ratio, the amount of detergent should be increased based on the absolute difference. The preset ratio could be, for example, 1.

[0096] For example: when the soft-hard ratio is less than the preset ratio, and the detergent dosage is D, with an absolute difference of 20%, the detergent dosage should be optimized to 1.2D based on the soft-hard ratio.

[0097] S306. If the soft-hard ratio is greater than the preset ratio, the amount of detergent added shall be reduced according to the absolute difference.

[0098] For example: when the soft-hard ratio is less than the preset ratio, and the detergent dosage is D, with an absolute difference of 20%, the detergent dosage should be optimized to 0.8D based on the soft-hard ratio.

[0099] This application provides a method for optimizing detergent dosage. By installing a camera on a garment processing device, when garments to be processed are detected in the device, an image of the first inner drum is acquired. Based on this image, the brightness and texture features of the garments are determined. These features are then input into a pre-trained soft-hardness ratio analysis model to determine the soft-hardness ratio of the garments. The absolute difference between the areas occupied by soft and stiff garments within the inner drum is determined based on this ratio. The detergent dosage is then optimized according to this absolute difference. This method solves the problem of excessive or insufficient detergent dosage when relying solely on a single weighing method. By considering the impact of different garment materials on foam generation and washing effect, and optimizing the detergent dosage based on the soft-hardness ratio of the garments, the washing effect and user washing experience are improved.

[0100] Figure 4 A flowchart illustrating a method for optimizing detergent dosage provided in this application embodiment. Figure 3 The garment processing equipment also includes a spraying device, which is described in this embodiment. Figure 1 Implementation examples or Figure 3 Based on the examples, a method for optimizing detergent dosage is further explained. After optimizing the detergent dosage based on the soft / hard ratio, as shown... Figure 4 As shown, the method includes:

[0101] S401. Add detergent to the clothing processing equipment according to the optimized detergent dosage, and start the clothing washing program. After the clothing washing program has been running for a first preset time, acquire the image of the second inner drum through the imaging device.

[0102] During the washing process, factors such as water quality and detergent type may result in excessive or insufficient foam, affecting the washing effect. Therefore, after starting the washing cycle, it is necessary to monitor foam changes during the actual washing process to improve the washing effect.

[0103] Based on the optimized detergent dosage, control the detergent dispensing device of the garment processing equipment to add detergent to the garment processing equipment. For example, it could be as follows: Figure 2 The detergent dispensing device 201 shown completes the detergent dispensing process before starting the laundry program. After the laundry program has been running for a first preset time, a second image of the inner drum is acquired via a camera. The second inner drum image can be acquired periodically, and the timing of acquisition can be adjusted based on actual monitoring results.

[0104] S402. Based on the second inner cylinder image, determine the foam ratio, and compare the foam ratio with the first preset interval to obtain the comparison result;

[0105] Among them, the foam percentage is used to indicate the volume occupied by the foam in the inner cylinder; the comparison result is used to indicate the membership relationship between the foam percentage and the first preset interval.

[0106] Figure 5 A schematic diagram of foam proportion provided for an embodiment of this application, such as Figure 5 As shown, the diameter of the dashed line represents the baseline. Left-1 to Right-1 is the upper limit of the first preset interval; Left-2 to Right-2 is the lower limit of the first preset interval; the area between Left-1 to Right-1 and Left-2 to Right-2 is the first preset interval. The horizontal distance of the foam's position is determined based on the second inner cylinder image. Then, the height of the foam in the inner cylinder is determined by combining the baseline and the radius r of the inner cylinder. The height of the foam in the inner cylinder is positively correlated with the volume occupied by the foam in the inner cylinder.

[0107] S403. If the comparison result indicates that the foam content is less than the lower limit of the first preset range, add detergent;

[0108] If the comparison result indicates that the foam percentage is less than the lower limit of the first preset range, it means that there is too little foam, which may lead to poor washing results, and detergent needs to be added. Therefore, detergent should be added to the drum at this time. A preset amount of detergent can be added, or detergent can be added based on the difference between the foam percentage and the ideal foam percentage.

[0109] S404. If the comparison result indicates that the foam ratio is greater than the upper limit of the first preset range, start the spray device.

[0110] If the comparison result indicates that the foam percentage is greater than the upper limit of the first preset range, it means that there is too much foam. To prevent excessive foam from overflowing and damaging the washing machine, the spray device needs to be activated to defoam the foam inside the drum. Therefore, the spray device is activated at this time.

[0111] In one possible implementation, after activating the spray unit, the method further includes:

[0112] A third inner cylinder image is acquired using a camera; based on the third inner cylinder image, the foam percentage is determined, and it is then reassessed whether the foam percentage is within the first preset range.

[0113] The third image of the inner cylinder was taken after the spray system had been activated for the second preset time.

[0114] After the spray device is started, in order to monitor the defoaming effect, after the second preset time of the spray device is started, the inner cylinder image is acquired again to determine the foam ratio and to re-determine whether the foam ratio is within the first preset range.

[0115] In one possible implementation, the method further includes: when the comparison result indicates that the foam proportion is within a first preset range, acquiring multiple local foam images through an imaging device; performing image processing on any one of the local foam images to determine the foam size in the local image data, and determining whether the foam size is within a second preset range; and executing a corresponding foam adjustment command based on the foam size if the foam size is not within the second preset range.

[0116] The foam adjustment command is used to indicate the addition of detergent or to activate the spray system.

[0117] While the comparison results indicate that the foam percentage is within the first preset range, this avoids issues such as excessive foam affecting washing machine operation, automatic detergent dispensing causing over-dispensing, and insufficient detergent affecting washing performance. However, this does not mean that the detergent dosage is appropriate at this point. When the recommended detergent dosage is appropriate, the foam size should be within the second preset range. When there is too much or too little detergent for the current load of clothes in the drum, the foam will appear dense / sparse.

[0118] When the comparison result indicates that the foam percentage is within the first preset range, the shooting mode of the imaging device is switched to high-magnification shooting mode to acquire multiple local foam images. Image processing is performed on the multiple local foam images. Through methods such as noise reduction, edge detection, and contour detection, the foam is separated from the local foam images, and the size of the separated multiple foams is determined. The foam size parameters can be determined by calculating the mean, median, etc., and the foam size parameters are compared with the second preset range.

[0119] In the case where the foam size is within the second preset interval, it indicates that the dosage of the detergent at this time is appropriate. In the case where the foam size is not within the second preset interval, it indicates that the dosage of the detergent at this time is not appropriate. Based on the foam size, if the foam size parameter is less than the lower limit of the second preset interval, it indicates that the foam is in a dense state at this time, and the spraying device is started to perform defoaming treatment on the foam in the drum; if the foam size parameter is greater than the upper limit of the second preset interval, it indicates that the foam is in a sparse state at this time, and detergent is added. A preset amount of detergent may be added, or detergent may be added according to the difference between the foam proportion and the ideal foam proportion.

[0120] The multiple local foam images may, for example, be multiple local foam images of different regions, such as multiple local foam images of the left-biased region, the middle region, and the right-biased region.

[0121] For example: when the comparison result indicates that the foam proportion is within the first preset interval, the shooting mode of the shooting device is switched to the high-magnification shooting mode, the shooting area is reduced to 3cm*3cm, and multiple local foam images of the left-biased region, the middle region and the right-biased region are captured, with 3 frames shot in each region, totaling nine photos for the three regions; the size d0 of the foam in the drum is characterized by the contour of the foam in the captured frames, and is compared with the second preset interval (d1, d2) obtained from the empirical values learned by the washing machine. If d0<d1, the spraying device is started to perform defoaming treatment on the foam in the drum; if d0>d2, detergent is added.

[0122] A method for optimizing the detergent dosage provided in the embodiments of the present application adds detergent to the laundry treatment device according to the optimized detergent dosage. After the laundry washing program is started, the shooting device acquires a second inner drum image to monitor the foam during the washing process, and determines to perform a corresponding operation according to the proportion of the foam in the inner drum. When the foam proportion is too low, detergent is added; when the foam proportion is too high, defoaming treatment is performed. During the washing process, the shooting device monitors the foam condition in the drum in real time to prevent excessive foam from overflowing and damaging the washing machine, and to prevent too little foam from affecting the washing effect. During the washing process, both excessive foam and too little foam will affect the user's laundry washing experience.

[0123] Figure 6 is a schematic structural diagram of an apparatus for optimizing the detergent dosage provided in the embodiments of the present application, as Figure 6 shown, the apparatus 60 for optimizing the detergent dosage provided in this embodiment is applied to a laundry treatment device. The laundry treatment device comprises a shooting device, which keeps a relatively static state with the inner drum of the laundry treatment device and is configured to capture images of the inner drum of the laundry treatment device. The apparatus comprises:

[0124] The acquisition module 601 is used to acquire a first image of the inner drum through an imaging device when it detects that there are clothes to be processed in the inner drum of the clothing processing device.

[0125] The determining module 602 is used to determine the soft-hard ratio of the garment to be processed based on the first inner drum image. The soft-hard ratio is used to indicate the ratio of the area occupied by soft material garments in the inner drum to the area occupied by stiff material garments in the inner drum.

[0126] The optimization module 603 is used to optimize the amount of detergent to be added based on the ratio of soft to hard detergent. The amount of detergent to be added is determined according to the weight of the clothes to be treated.

[0127] In one possible implementation, the determining module 602 is further configured to determine the light and dark features and texture features of the garment to be processed based on the first inner tube image, wherein the light and dark features are used to indicate the reflectivity of the garment to be processed; and input the light and dark features and texture features into the soft-hard ratio analysis model to determine the soft-hard ratio of the garment to be processed, wherein the soft-hard ratio analysis model is obtained based on multiple historical first inner tube images and the soft-hard ratio corresponding to each historical first inner tube image.

[0128] In one possible implementation, the optimization module 603 is further configured to determine the absolute difference in the area occupied by soft and stiff clothing in the inner drum based on the soft-hard ratio; if the soft-hard ratio is less than a preset ratio, the amount of detergent added is increased according to the absolute difference; if the soft-hard ratio is greater than the preset ratio, the amount of detergent added is decreased according to the absolute difference.

[0129] In one possible implementation, the garment processing equipment also includes a spraying device, and the detergent dosage optimization device also includes a monitoring module;

[0130] This monitoring module is used to add detergent to the laundry treatment equipment according to the optimized detergent dosage and start the laundry program. After the laundry program has been running for a first preset time, it acquires a second inner drum image through an imaging device. Based on the second inner drum image, it determines the foam percentage and compares the foam percentage with a first preset range to obtain a comparison result. The foam percentage is used to indicate the volume occupied by foam in the inner drum. If the comparison result indicates that the foam percentage is less than the lower limit of the first preset range, detergent is added. If the comparison result indicates that the foam percentage is greater than the upper limit of the first preset range, the spray device is activated.

[0131] In one possible implementation, the monitoring module is further configured to acquire multiple local foam images via an imaging device when the comparison result indicates that the foam percentage is within a first preset range; for any one of the multiple local image data, perform image processing on the local image data to determine the foam size in the local image data, and determine whether the foam size is within a second preset range; if the foam size is not within the second preset range, execute the corresponding foam adjustment command based on the foam size, the foam adjustment command being used to instruct the addition of detergent or the activation of the spray device.

[0132] In one possible implementation, the monitoring module is also used to acquire a third inner cylinder image via an imaging device, the third inner cylinder image being captured after a second preset time period following the activation of the spray device; based on the third inner cylinder image, the foam percentage is determined, and it is re-evaluated whether the foam percentage is within a first preset range.

[0133] This embodiment provides a detergent dosage optimization device that can execute the method provided in the above-described method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.

[0134] Figure 7 A schematic diagram of the structure of a garment processing device provided in this application embodiment. Figure 2 .like Figure 7 As shown, the garment processing device 70 provided in this embodiment includes at least one processor 701 and a memory 702. Optionally, the device 70 further includes a communication component 703. The processor 701, memory 702, and communication component 703 are connected via a bus 704.

[0135] In a specific implementation, at least one processor 701 executes computer execution instructions stored in memory 702, causing at least one processor 701 to perform the above-described method.

[0136] The specific implementation process of processor 701 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.

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

[0138] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.

[0139] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0140] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.

[0141] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.

[0142] The aforementioned 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 (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), 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.

[0143] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. 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 in the device.

[0144] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

[0145] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0146] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0147] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0148] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0149] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and 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 the invention is limited only by the appended claims.

Claims

1. A method for optimizing detergent dosage, characterized in that, A method for capturing images of the inner drum of a garment processing device is applied to such a device. The garment processing device is stationary relative to the inner drum of the garment processing device. The method includes: When it is detected that there are clothes to be processed in the inner drum of the clothing processing device, the first inner drum image is acquired by the imaging device. Based on the first inner drum image, the softness-hardness ratio of the garment to be processed is determined. The softness-hardness ratio is used to indicate the ratio of the area occupied by soft material garments in the inner drum to the area occupied by stiff material garments in the inner drum. Based on the aforementioned soft-hard ratio, the detergent dosage is optimized, and the detergent dosage is determined according to the weight of the garment to be treated.

2. The method according to claim 1, characterized in that, Determining the softness / hardness ratio of the garment to be processed based on the inner tube image includes: Based on the first inner tube image, the light and dark features and texture features of the garment to be processed are determined, wherein the light and dark features are used to indicate the reflectivity of the garment to be processed. The light and dark features and texture features are input into the soft and hard ratio analysis model to determine the soft and hard ratio of the garment to be processed. The soft and hard ratio analysis model is obtained based on multiple historical first inner tube images and the soft and hard ratio corresponding to each historical first inner tube image.

3. The method according to claim 1, characterized in that, The process of optimizing the detergent dosage based on the soft-hard ratio includes: Based on the soft-hard ratio, determine the absolute difference in the area occupied by the soft material clothing and the stiff material clothing in the inner drum; If the soft-hard ratio is less than the preset ratio, the amount of detergent added is increased according to the absolute difference. If the soft-hard ratio is greater than the preset ratio, the amount of detergent added is reduced according to the absolute difference.

4. The method according to claim 1, characterized in that, The garment processing equipment further includes a spraying device, and the method further includes: According to the optimized detergent dosage, detergent is added to the clothing processing equipment, and the clothing washing program is started. After the clothing washing program has been running for a first preset time, the second inner drum image is acquired through the imaging device. Based on the second inner cylinder image, the foam percentage is determined, and the foam percentage is compared with a first preset range to obtain a comparison result. The foam percentage is used to indicate the volume occupied by the foam in the inner cylinder. If the comparison result indicates that the foam content is less than the lower limit of the first preset range, detergent is added; If the comparison result indicates that the foam percentage is greater than the upper limit of the first preset range, the spray device is activated.

5. The method according to claim 4, characterized in that, The method further includes: When the comparison result indicates that the foam percentage is within the first preset range, multiple local foam images are acquired by the imaging device. For any one of the multiple local image data, perform image processing on the local image data to determine the size of the foam in the local image data, and determine whether the size of the foam is within a second preset range; If the foam size is not within the second preset range, a corresponding foam adjustment command is executed based on the foam size. The foam adjustment command is used to instruct the addition of detergent or to start the spray device.

6. The method according to claim 4, characterized in that, After the spray unit is activated, the method further includes: The third inner cylinder image is acquired by the shooting device, and the third inner cylinder image is taken after the spray device has been activated for a second preset time. Based on the third inner cylinder image, the foam percentage is determined, and it is then re-evaluated whether the foam percentage is within the first preset range.

7. The method according to any one of claims 1-6, characterized in that, The shooting device is mounted on the door seal module of the garment processing equipment via a rotating structure. The method further includes: obtaining the rotational speed of the inner drum of the garment processing equipment, and driving the rotating structure to rotate the shooting device according to the rotational speed of the inner drum, so that the shooting device and the inner drum of the garment processing equipment remain relatively stationary.

8. A device for optimizing detergent dosage, characterized in that, An image capture device is used in garment processing equipment, the garment processing equipment including: a camera device that remains relatively stationary with the inner drum of the garment processing equipment, the camera device being used to capture an image of the inner drum of the garment processing equipment, the device comprising: The acquisition module is used to acquire a first image of the inner drum through the shooting device when it is detected that there are clothes to be processed in the inner drum of the clothing processing device; The determining module is used to determine the softness-hardness ratio of the garment to be processed based on the first inner drum image. The softness-hardness ratio is used to indicate the ratio of the area occupied by soft material garments in the inner drum to the area occupied by stiff material garments in the inner drum. An optimization module is used to optimize the detergent dosage based on the soft-hard ratio, wherein the detergent dosage is determined according to the weight of the clothes to be treated.

9. A garment processing device, characterized in that, include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 1-7.

10. 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 method as described in any one of claims 1-7.