Detergent determination method and device

By collecting images in the washing equipment and using the target detection model to determine the amount of detergent, the problem of difficulty in accurately determining the amount of detergent in the existing technology is solved, automatic and accurate detergent use is achieved, and the user experience and washing effect are improved.

CN113925435BActive Publication Date: 2024-08-23QINGDAO HAIER TECH +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111120818.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-24
Publication Date
2024-08-23
Estimated Expiration
2041-09-24

AI Technical Summary

Technical Problem

In the prior art, it is difficult to accurately determine the amount of detergent, leading to problems such as waste or incomplete washing.

Method used

By collecting the images to be tested in the washing area of ​​the washing equipment, target detection is performed based on the target detection model, the category information of the objects to be washed is obtained, and the corresponding detergent type and amount are searched in the pre-built database to automatically determine the washing requirements. Type and amount of detergent.

Benefits of technology

It achieves automatic and accurate determination of detergent dosage, avoids interference from manual experience, improves user experience, and reduces detergent waste and unnecessary cleaning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113925435B
    Figure CN113925435B
Patent Text Reader

Abstract

The present invention provides a method and device for determining detergents, the method comprising: performing target detection on an image to be tested based on a target detection model, and obtaining target detection results of each object to be washed in the image to be tested; wherein the image to be tested is collected and obtained in the washing area of ​​a washing device; according to the category information in the target detection results of each object to be washed, respectively searching for the type of detergent and / or the amount of detergent corresponding to the category information of each object to be washed in a pre-constructed database; according to the type of detergent and / or the amount of detergent corresponding to the category information of each object to be washed in the washing device, determining the type of detergent and / or the amount of each detergent required for washing. The present invention realizes automatic determination of the type of detergent and / or the amount of each detergent required for washing, and can avoid interference from human experience, so that the determined type of detergent and / or the amount of each detergent required for washing are more accurate, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of control technology, and in particular to a detergent determination method and device. Background Art

[0002] A dishwasher is a common washing device currently used for automatically cleaning dishes, cutlery, baking tools, etc. During use, detergent needs to be added to the dishwasher in order to effectively clean dirt such as grease.

[0003] In the process of adding detergent, if too much is added, it will result in a waste of detergent and the risk of detergent residue; if too little is added, it may lead to incomplete washing and even cause secondary cleaning.

[0004] In the prior art, the amount of detergent to be added is usually determined by manual experience, and there are many parameters to consider when determining the amount of detergent, such as the number, material and cleanliness of the tableware, etc. Therefore, it is difficult to accurately determine the amount of detergent by manual experience alone. Summary of the invention

[0005] The present invention provides a detergent determination method and device, which are used to solve the defect that it is difficult to accurately determine the detergent dosage by manual experience in the prior art, and realize automatic and accurate determination of the detergent dosage.

[0006] The present invention provides a method for determining a detergent, comprising:

[0007] Performing target detection on the image to be tested based on the target detection model, and obtaining target detection results of each object to be washed in the image to be tested; wherein the image to be tested is collected and obtained in the washing area of ​​the washing equipment;

[0008] According to the category information in the target detection results of each object to be washed, respectively searching for the type of detergent and / or the amount of detergent corresponding to the category information of each object to be washed in a pre-built database;

[0009] The types of detergents and / or the amounts of each detergent required for washing are determined according to the types of detergents and / or the amounts of detergents corresponding to the category information of each object to be washed in the washing device.

[0010] According to a method for determining a detergent provided by the present invention, the method of searching for the type of detergent and / or the amount of detergent corresponding to the category information of each object to be washed in a pre-constructed database according to the category information in the target detection result of each object to be washed, comprises:

[0011] The objects to be washed whose confidence in the target detection results is greater than the target value are taken as target objects;

[0012] According to the category information of each target object, the type of detergent and / or the amount of detergent corresponding to the category information of each target object is searched in the database respectively.

[0013] A detergent determination method provided by the present invention further comprises:

[0014] Displaying the target detection result and the type of detergent and / or the amount of detergent corresponding to the category information of each object to be washed, as well as the type of detergent and / or the amount of each detergent required for washing, so that the user can determine whether to redetermine the type of detergent and / or the amount of each detergent required for washing according to the displayed result;

[0015] Upon receiving a first instruction to redetermine the type of detergent and / or the amount of each detergent required for washing, re-collecting a new image to be tested in the washing device;

[0016] The target detection is performed on the new image to be tested based on the target detection model, and the type of detergent and / or the amount of each detergent required for washing are re-determined according to the target detection result of each object to be washed in the new image to be tested.

[0017] According to a method for determining a detergent provided by the present invention, the method of searching for the type of detergent and / or the amount of detergent corresponding to the category information of each object to be washed in a pre-constructed database according to the category information in the target detection result of each object to be washed, comprises:

[0018] When receiving a second instruction for updating the database, updating one or more of the category information, detergent type and detergent usage in the database according to the second instruction;

[0019] Wherein, the updating includes adding, deleting or modifying;

[0020] According to the category information of each object to be washed, the type of detergent and / or the amount of detergent corresponding to the category information of each object to be washed are searched in the updated database.

[0021] A detergent determination method provided by the present invention further comprises:

[0022] The types of detergents and / or the amounts of each detergent required for washing are sent to the washing device, so that the washing device adds the types of detergents and / or the amounts of each detergent required for washing to the washing area.

[0023] According to a detergent determination method provided by the present invention, target detection is performed on the image to be tested based on the target detection model to obtain the target detection result of each object to be washed in the image to be tested, including:

[0024] Preprocessing the image to be tested; wherein the preprocessing includes one or more of size adjustment, noise reduction and normalization;

[0025] Based on the target detection model, target detection is performed on the preprocessed image to be tested, and target detection results of each object to be washed in the preprocessed image to be tested are obtained.

[0026] The present invention also provides a detergent determination device, comprising:

[0027] A detection module, used to perform target detection on the image to be tested based on the target detection model, and obtain target detection results of each object to be washed in the image to be tested; wherein the image to be tested is collected and obtained in the washing area of ​​the washing equipment;

[0028] A search module, for searching for the type of detergent and / or the amount of detergent corresponding to the category information of each object to be washed in a pre-built database according to the category information in the target detection result of each object to be washed;

[0029] The determination module is used to determine the type of detergent and / or the amount of each detergent required for washing according to the type of detergent and / or the amount of detergent corresponding to the category information of each object to be washed in the washing device.

[0030] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any of the above-mentioned detergent determination methods are implemented.

[0031] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the above-described detergent determination methods.

[0032] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the steps of any of the above-mentioned detergent determination methods are implemented.

[0033] The detergent determination method and device provided by the present invention collect images to be tested in the washing area of ​​the washing equipment, obtain target detection results of each object to be washed in the image to be tested based on the target detection model, and search the database for the detergent amount and / or detergent type corresponding to the category information in the target detection results of each object to be washed. According to the detergent type and / or detergent amount corresponding to the category information of each object to be washed in the washing equipment, the detergent type and / or the amount of each detergent required for the final washing are obtained. Not only can the detergent type and / or the amount of each detergent required for washing be automatically determined, but also interference from human experience can be avoided, so that the determined detergent type and / or the amount of each detergent is more accurate, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0035] Figure 1 It is one of the flow diagrams of the detergent determination method provided by the present invention;

[0036] Figure 2 This is the second flow chart of the method for determining a detergent provided by the present invention;

[0037] Figure 3 is a schematic structural diagram of a detergent determination device provided by the present invention;

[0038] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0040] Combine the following Figure 1 The detergent determination method of the present invention is described, the method comprising:

[0041] Step 101, performing target detection on the image to be tested based on the target detection model, and obtaining target detection results of each object to be washed in the image to be tested; wherein the image to be tested is collected and obtained in the washing area of ​​the washing equipment;

[0042] Among them, the execution subject in this embodiment is a terminal that can be used for image acquisition and data processing, such as a mobile phone and a tablet computer, etc., and this implementation does not make any specific limitation on this.

[0043] Since cameras are installed in washing equipment to collect images to be tested, the first thing to do is to solve the problem of cameras. The specific problems include: problem 1, the built-in camera of washing equipment needs to consider whether the installation position is appropriate; problem 2, the impact of high temperature on the camera needs to be considered; problem 3, the impact of water vapor on the camera needs to be considered; problem 4, the user must be around the washing equipment to view the images to be tested collected by the camera and / or the results of processing the images to be tested, which has poor interactivity with the user.

[0044] Therefore, considering the above problems, preferably, the execution subject in this embodiment is a mobile terminal, which is deployed independently from the washing device. The mobile terminal collects the image to be tested, processes the image to be tested, and determines the amount of detergent, which effectively avoids the difficulties caused by the built-in camera in the washing device.

[0045] At the same time, the method of determining the amount of detergent used by a mobile terminal has the following advantages:

[0046] 1. Separate the washing equipment and mobile terminal to facilitate their separate design and adjustment;

[0047] 2. Capture the images to be tested and / or process them through mobile terminals, avoiding the need to modify user usage habits, redesign washing equipment or purchase new equipment;

[0048] 3. When the target detection model needs to be updated, only the software controlling the washing equipment of the mobile terminal needs to be updated. There is no need to update or upgrade the entire washing equipment or replace the washing equipment. The target detection model can be updated separately.

[0049] 4. The user can view the image to be tested and / or the result of the image processing on the mobile terminal anytime and anywhere, and can also view or modify the parameters related to the determination of the detergent dosage in the mobile terminal anytime and anywhere, which can better interact with the user.

[0050] In summary, compared with the method for determining the amount of detergent in which a camera built into the washing device is used to capture the image to be tested, this embodiment uses a mobile terminal to determine the amount of detergent, which has the characteristics of being portable, interactive, adjustable, and easy for users to operate.

[0051] The washing equipment is used to clean the objects to be washed in the washing area, and may be a dishwasher or industrial product washing equipment, etc., which is not specifically limited in this embodiment.

[0052] The objects to be washed are objects that need to be washed, including but not limited to bowls, cutlery, and baking tools, which are not specifically limited in this embodiment.

[0053] The target detection model can be a neural network model, such as a convolutional neural network, Faster RCNN (Faster Regional Convolutional Neural Network), RFCN (Regional Full Convolutional Neural Network), and SSD (Single Shot MultiBox Detector), etc. This embodiment does not specifically limit this. The structure of the neural network model can be set according to actual needs, such as the number of hidden layers in the neural network model, the number of nodes in each layer, and the initial parameters.

[0054] Optionally, when the object to be washed needs to be washed, the user places the object to be washed in the washing area of ​​the washing device;

[0055] In order to achieve better washing results, when the user places the objects to be washed, the washing device can prompt the user through voice not to stack the objects to be washed.

[0056] After the washing objects are placed, the washing area is kept in a state where it is not pushed into the washing device. The washing device prompts the user to add detergent, and the user clicks the camera of the terminal to shoot the objects to be washed in the washing area of ​​the washing device, so as to collect the image to be tested in the washing area of ​​the washing device; wherein the image to be tested includes all the objects to be washed in the washing area. This embodiment is not limited to the type of objects to be washed in the image to be tested, nor is it limited to the number of objects to be washed.

[0057] Then, the terminal performs target detection on the image to be tested based on the target detection model. The specific steps are: input the image to be tested into the pre-trained neural network model, and after the image to be tested is processed by the neural network model, the target detection results of each object to be washed in the image to be tested are output. The specific formula is:

[0058] D = M (I);

[0059] Wherein, D is the target detection result of each object to be washed in the image to be tested, M(·) is the target detection model function; and I is the image to be tested.

[0060] The target detection result includes but is not limited to the bounding box position, category information and confidence level of each object to be washed, which is not specifically limited in this embodiment.

[0061] The category information may be the main attributes of the object to be washed, including material, purpose and size, etc., which are not specifically limited in this embodiment. For example, the objects to be washed may be divided into stainless steel pots, frying spoons and plastic spoons, etc.

[0062] It should be noted that the neural network model is based on historically collected sample images and labels of the sample images. The labels of the sample images include pre-annotated bounding box positions, pre-acquired category information and confidence levels, etc.

[0063] Step 102, according to the category information in the target detection result of each object to be washed, respectively search for the type of detergent and / or the amount of detergent corresponding to the category information of each object to be washed in a pre-built database;

[0064] The database pre-stores the correspondence between the category information and the detergent type, and / or the category information and the detergent dosage. The database stores multiple sets of correspondence, and the specific number can be set according to actual needs.

[0065] It should be noted that the database can be pre-set by the washing equipment manufacturer based on the equipment characteristics and usage experience, and the user can pre-set it according to actual needs during use. Due to different users' different dining habits, the amount and type of detergent required are also different, and different models of washing equipment have different requirements for detergent. Therefore, the database and user information are closely related, that is, each user and each device corresponds to a database, which can recommend detergent dosage to users more accurately and intelligently.

[0066] In addition, after the database is successfully constructed, the user can also adjust the database according to his or her actual needs to adapt to the user's own usage habits, so that the terminal can determine the type of detergent and / or the amount of detergent based on the updated database.

[0067] Optionally, after obtaining the target detection results of each object to be washed, the type of detergent and / or the amount of detergent corresponding to the category information of each object to be washed is searched in the database according to the category information in the target detection results of each object to be washed.

[0068] Step 103, determining the types of detergents and / or the amounts of each detergent required for washing according to the types of detergents and / or the amounts of detergents corresponding to the category information of each object to be washed in the washing device.

[0069] Optionally, after obtaining the detergent dosage and / or detergent type corresponding to the category information of each object to be washed in the washing device, the objects to be washed using the same type of detergent are classified into one category, and then the detergent dosage corresponding to the category information of the objects to be washed in each category is added together to obtain the dosage of various detergents required for washing. The specific formula is:

[0070]

[0071] Among them, v i is the amount of detergent corresponding to the category information of the i-th object to be washed using any type of detergent, n is the number of objects to be washed using this type of detergent; and V is the amount of detergent required for washing.

[0072] It should be noted that the types of detergents and / or amounts of each detergent required for washing finally obtained can be used as the types of detergents and / or amounts of each detergent actually added to the washing device for washing; it can also be provided as a reference for the user. After the user makes appropriate adjustments based on actual needs, the types of detergents and / or amounts of each detergent actually added to the washing device can be used as the types of detergents and / or amounts of each detergent required for washing finally obtained. If the user feels that the recommended detergent amount needs to be adjusted, it can be modified manually.

[0073] In the prior art, an effective method for automatically determining the type of detergent and / or the amount of each detergent required for washing has not yet been developed. When using washing equipment, users often encounter situations where they cannot determine the amount and type of detergent to be used, and mainly rely on the user's experience to determine the type of detergent and / or the amount of each detergent required for washing. In the process of using the washing equipment, if the user is allowed to judge the type of detergent and / or the amount of each detergent required for washing by himself, there will be problems with inaccurate judgment, which affects the user's experience. However, this implementation directly performs target detection on the image to be tested collected in the washing area of ​​the washing equipment, and automatically and accurately determines the type of detergent and / or the amount of each detergent required for washing based on the target detection results, effectively reducing the user's learning cost, improving the user's experience, and avoiding unnecessary waste.

[0074] This embodiment collects images to be tested in the washing area of ​​the washing device, obtains target detection results of each object to be washed in the images to be tested based on the target detection model, and searches the database for detergent amounts and / or types of detergents corresponding to the category information in the target detection results of each object to be washed. According to the detergent types and / or detergent amounts corresponding to the category information of each object to be washed in the washing device, the types of detergents and / or amounts of each detergent required for final washing are obtained. This can not only automatically determine the types of detergents and / or amounts of each detergent required for washing, but also avoid interference from manual experience, so that the determined types of detergents and / or amounts of each detergent are more accurate, thereby improving the user experience.

[0075] On the basis of the above-mentioned embodiments, the present embodiment describes searching for the type of detergent and / or the amount of detergent corresponding to the category information of each object to be washed in a pre-constructed database according to the category information in the target detection results of each object to be washed, including: taking the objects to be washed whose confidence in the target detection results is greater than the target value as target objects; and searching for the type of detergent and / or the amount of detergent corresponding to the category information of each target object in the database according to the category information of each target object.

[0076] Optionally, the confidence level is used to characterize the credibility of the target detection result. Therefore, it is possible to determine whether the target detection result of each object to be washed is correct based on the confidence level in the target detection result of each object to be washed.

[0077] The determination method may be to compare the confidence level with the target value and make a determination based on the comparison result.

[0078] The target value may be set according to actual needs, such as 0.5, and this implementation does not make any specific limitation on this.

[0079] The greater the confidence, the more reliable the target detection result is.

[0080] Optionally, the confidence of each object to be washed is compared with the target value respectively; if the comparison result of any object to be washed is that the confidence is less than or equal to the target value, it is determined that the target detection result of the object to be washed is inaccurate, and the detection result of the object to be washed is deleted;

[0081] If the comparison result of any object to be washed shows that the confidence level is greater than the target value, it is determined that the target detection result of the object to be washed is accurate, and the object to be washed is taken as the target object.

[0082] In this embodiment, according to the confidence level of each object to be washed, it can be accurately determined that the target detection results of each object to be washed are correct, so as to accurately wash the required detergent type and / or the amount of each detergent.

[0083] When it is determined that the target detection result of any object to be washed is incorrect, the object to be washed is filtered out, and only the object to be washed with a correct target detection result is retained as the target object.

[0084] Then, the database is searched for the type of detergent and / or the amount of detergent corresponding to the category information of each target object;

[0085] Finally, the types of detergents and / or the amounts of each detergent required for washing are determined according to the types of detergents and / or the amounts of detergents corresponding to the category information of each object to be washed in the washing device.

[0086] This embodiment filters out the objects to be washed with incorrect target detection results through the confidence level of each object to be washed, so as to accurately determine the type of detergent and / or the amount of each detergent required for washing.

[0087] On the basis of the above embodiments, the present embodiment also includes: displaying the type and / or amount of detergent corresponding to the target detection result and category information of each object to be washed, and the type and / or amount of detergent required for the washing, so that the user can determine whether to redetermine the type and / or amount of detergent required for the washing according to the displayed result; upon receiving a first instruction to redetermine the type and / or amount of detergent required for the washing, re-acquiring a new image to be tested in the washing device; performing target detection on the new image to be tested based on the target detection model, and redetermining the type and / or amount of detergent required for the washing according to the target detection result of each object to be washed in the new image to be tested.

[0088] Optionally, when the target detection results and category information of each object to be washed and the types and / or amounts of detergents corresponding to the category information, as well as the types and / or amounts of detergents required for washing are obtained, the target detection results and category information of each object to be washed and the types and / or amounts of detergents corresponding to the category information, as well as the types and / or amounts of detergents required for washing are displayed on the front-end page of the terminal.

[0089] The display method may be in the form of text or table, etc., which is not specifically limited in this embodiment.

[0090] The user can determine whether the type of detergent required for washing and / or the amount of each detergent needs to be re-determined based on the displayed results. If re-determination is required, a first instruction for re-determining the type of detergent required for washing and / or the amount of each detergent is sent to the terminal.

[0091] The method of issuing the first instruction includes but is not limited to text, voice and physical buttons, and this implementation does not make specific limitations on this.

[0092] like Figure 2 As shown, when the terminal receives the first instruction to redetermine the type of detergent and / or the amount of each detergent required for washing, it repeats Figure 1 Method for determining detergent in the washing area. The specific process will not be repeated here. The main steps include: re-collecting a new image to be tested in the washing area of ​​the washing equipment, performing target detection on the new image to be tested based on the target detection model, obtaining the target detection result of each object to be washed in the new image to be tested, and obtaining the type of detergent required for washing and / or the amount of each detergent according to the target detection result of each object to be washed in the new image to be tested.

[0093] Alternatively, if the user believes that there are certain errors in the target detection results of some objects to be washed, that is, some objects to be washed are not actually existing objects to be washed in the washing area, the user can input corresponding instructions to delete the target detection results of some objects to be washed and then re-determine the type of detergent and / or the amount of each detergent required for washing.

[0094] After receiving the instruction input by the user to redetermine the type of detergent and / or the amount of each detergent required for washing, this embodiment can automatically and accurately redetermine the type of detergent and / or the amount of each detergent required for washing, and the operation is convenient and flexible.

[0095] On the basis of the above embodiments, the present embodiment describes searching for the type of detergent and / or the amount of detergent corresponding to the category information of each object to be washed in a pre-constructed database according to the category information in the target detection results of each object to be washed, including: when receiving a second instruction to update the database, updating one or more of the category information, the type of detergent and the amount of detergent in the database according to the second instruction; wherein the updating includes adding, deleting or modifying; searching for the type of detergent and / or the amount of detergent corresponding to the category information of each object to be washed in the updated database according to the category information of each object to be washed.

[0096] Optionally, the user can update the database according to actual needs. The specific steps include:

[0097] When the user needs to update the database, the user inputs a second instruction for updating the database to the terminal in the form of text or voice.

[0098] When the terminal receives the second instruction to update the database, it searches the database for the category information in the instruction;

[0099] If found, the detergent type and / or detergent amount corresponding to the category information found in the database is updated according to the detergent type and / or detergent amount corresponding to the category information in the instruction; wherein, the update includes but is not limited to addition, deletion or modification, and this embodiment does not specifically limit this.

[0100] If not found, the correspondence between the category information and the amount of detergent used and / or the correspondence between the category information and the type of detergent in the instruction is added to the database to expand the database.

[0101] Then, according to the category information of each object to be washed, the type of detergent and / or the amount of detergent corresponding to the category information of each object to be washed are searched in the updated database.

[0102] In this embodiment, after receiving the instruction input by the user to update the database, the database can be updated in real time. The operation is convenient and flexible, and it can better meet the different needs of users. It has strong scalability, thereby effectively improving the user experience.

[0103] Based on the above embodiments, this embodiment also includes: sending the types of detergents and / or the amounts of detergents required for washing to the washing equipment, so that the washing equipment adds the types of detergents and / or the amounts of detergents required for washing to the washing area.

[0104] Optionally, after obtaining the types of detergents and / or the amounts of each detergent required for washing, the types of detergents and / or the amounts of each detergent required for washing can be reported to the user for confirmation and submission, or they can be sent directly to the washing equipment, which is not specifically limited in this embodiment.

[0105] When the washing device includes an intelligent control module, the types of detergents and / or the amounts of each detergent required for washing can be sent directly to the washing device, so that the washing device can add the types of detergents and / or the amounts of each detergent required for washing to the washing area and then start the washing operation to clean the objects to be washed in the washing area.

[0106] After determining the types of detergents and / or amounts of detergents required for washing the object to be washed, this embodiment can send the types of detergents and / or amounts of detergents required for washing to the washing device if the washing device is a smart device, so that the washing device can automatically add the types of detergents and / or amounts of detergents required for washing to the washing area, thereby improving the user experience.

[0107] In addition, the types of detergents and / or the amounts of detergents required for washing may be displayed so that the user can add the types of detergents and / or the amounts of detergents required for washing to the washing area.

[0108] Optionally, when the washing device is a semi-automatic device, the types of detergents and / or the amounts of each detergent required for washing can be displayed. The user adds the types of detergents and / or the amounts of each detergent required for washing to the washing area and then starts the washing operation of the washing device. The washing device cleans the objects to be washed in the washing area.

[0109] In this embodiment, detergents of the types and / or amounts of detergents required for washing can be manually added to the washing area. The operation is flexible and convenient, and there is no need to redesign and update the washing equipment. It has a wide range of applications and can be applied to both intelligent washing equipment and semi-intelligent washing equipment.

[0110] On the basis of the above embodiments, the target detection is performed on the image to be tested based on the target detection model in this embodiment to obtain the target detection result of each object to be washed in the image to be tested, including: preprocessing the image to be tested; wherein the preprocessing includes one or more of size adjustment, noise reduction and normalization; based on the target detection model, target detection is performed on the preprocessed image to be tested to obtain the target detection result of each object to be washed in the preprocessed image to be tested.

[0111] Optionally, the target detection result is poor because the size of the image to be tested collected by the camera of the terminal is different or too large. In order to avoid the influence of the size of the image to be tested on the target detection result, the size of the image to be tested is unified or adjusted to an acceptable range.

[0112] In addition, since there is a certain amount of noise interference in the original image to be tested collected by the camera of the terminal, in order to reduce the noise interference in the image to be tested, noise reduction processing may be performed on the image to be tested.

[0113] The noise reduction process includes performing noise reduction process on the image to be measured using a smoothing algorithm or a filtering algorithm, etc., which is not specifically limited in this embodiment.

[0114] The image to be tested can also be normalized to avoid the impact of data with different physical meanings and dimensions in the image to be tested on the target detection result.

[0115] One or more of the above preprocessings may be performed on the image to be tested at the same time, and this embodiment does not specifically limit this.

[0116] After the image to be tested is preprocessed, target detection is performed on the preprocessed image to be tested based on the target detection model to obtain target detection results of each object to be washed in the preprocessed image to be tested.

[0117] This embodiment can effectively avoid the influence of noise, size or dimensional data in the original image to be tested on the target detection result by preprocessing the image to be tested, thereby improving the accuracy of the target detection result, and further improving the accuracy of determining the detergent dosage and / or detergent type.

[0118] The detergent determination device provided by the present invention is described below. The detergent determination device described below and the detergent determination method described above can be referred to each other.

[0119] like Figure 3 As shown, this embodiment provides a detergent determination device, which includes a detection module 301, a search module 302 and a determination module 303, wherein:

[0120] The detection module 301 is used to perform target detection on the image to be tested based on the target detection model, and obtain the target detection result of each object to be washed in the image to be tested; wherein the image to be tested is collected and obtained in the washing area of ​​the washing equipment;

[0121] Among them, the execution subject in this embodiment is a terminal that can be used for image acquisition and data processing, such as a mobile phone and a tablet computer, etc., and this implementation does not make any specific limitation on this.

[0122] Since cameras are installed in washing equipment to collect images to be tested, the first thing to do is to solve the problem of cameras. The specific problems include: problem 1, the built-in camera of washing equipment needs to consider whether the installation position is appropriate; problem 2, the impact of high temperature on the camera needs to be considered; problem 3, the impact of water vapor on the camera needs to be considered; problem 4, the user must be around the washing equipment to view the images to be tested collected by the camera and / or the results of processing the images to be tested, which has poor interactivity with the user.

[0123] Therefore, considering the above problems, preferably, the execution subject in this embodiment is a mobile terminal, which is deployed independently from the washing device. The mobile terminal collects the image to be tested, processes the image to be tested, and determines the amount of detergent, which effectively avoids the difficulties caused by the built-in camera in the washing device.

[0124] At the same time, the method of determining the amount of detergent used by a mobile terminal has the following advantages:

[0125] 1. Separate the washing equipment and mobile terminal to facilitate their separate design and adjustment;

[0126] 2. Capture the images to be tested and / or process them through mobile terminals, avoiding the need to modify user usage habits, redesign washing equipment or purchase new equipment;

[0127] 3. When the target detection model needs to be updated, only the software controlling the washing equipment of the mobile terminal needs to be updated. There is no need to update or upgrade the entire washing equipment or replace the washing equipment. The target detection model can be updated separately.

[0128] 4. The user can view the image to be tested and / or the result of the image processing on the mobile terminal anytime and anywhere, and can also view or modify the parameters related to the determination of the detergent dosage in the mobile terminal anytime and anywhere, which can better interact with the user.

[0129] In summary, compared with the method for determining the amount of detergent in which a camera built into the washing device is used to capture the image to be tested, this embodiment uses a mobile terminal to determine the amount of detergent, which has the characteristics of being portable, interactive, adjustable, and easy for users to operate.

[0130] The washing equipment is used to clean the objects to be washed in the washing area, and may be a dishwasher or industrial product washing equipment, etc., which is not specifically limited in this embodiment.

[0131] The objects to be washed are objects that need to be washed, including but not limited to bowls, cutlery, and baking tools, which are not specifically limited in this embodiment.

[0132] The target detection model may be a neural network model, which is not specifically limited in this embodiment. The structure of the neural network model may be set according to actual needs, such as the number of hidden layers in the neural network model, the number of nodes in each layer, and initial parameters.

[0133] Optionally, when the object to be washed needs to be washed, the user places the object to be washed in the washing area of ​​the washing device;

[0134] In order to achieve better washing results, when the user places the objects to be washed, the washing device can prompt the user through voice not to stack the objects to be washed.

[0135] After the washing objects are placed, the washing area is kept in a state where it is not pushed into the washing device. The washing device prompts the user to add detergent, and the user clicks the camera of the terminal to shoot the objects to be washed in the washing area of ​​the washing device, so as to collect the image to be tested in the washing area of ​​the washing device; wherein the image to be tested includes all the objects to be washed in the washing area. This embodiment is not limited to the type of objects to be washed in the image to be tested, nor is it limited to the number of objects to be washed.

[0136] Then, the terminal performs target detection on the image to be tested based on the target detection model. The specific steps are: input the image to be tested into the pre-trained neural network model, and after the image to be tested is processed by the neural network model, the target detection results of each object to be washed in the image to be tested are output. The specific formula is:

[0137] D = M (I);

[0138] Wherein, D is the target detection result of each object to be washed in the image to be tested, M(·) is the target detection model function; and I is the image to be tested.

[0139] The target detection result includes but is not limited to the bounding box position, category information and confidence level of each object to be washed, which is not specifically limited in this embodiment.

[0140] The category information may be the main attributes of the object to be washed, including material, purpose and size, etc., which are not specifically limited in this embodiment. For example, the objects to be washed may be divided into stainless steel pots, frying spoons and plastic spoons, etc.

[0141] It should be noted that the neural network model is based on historically collected sample images and labels of the sample images. The labels of the sample images include pre-annotated bounding box positions, pre-acquired category information and confidence levels, etc.

[0142] The search module 302 is used to search for the type of detergent and / or the amount of detergent corresponding to the category information of each object to be washed in a pre-built database according to the category information in the target detection result of each object to be washed;

[0143] The database pre-stores the correspondence between the category information and the detergent type, and / or the category information and the detergent dosage. The database stores multiple sets of correspondence, and the specific number can be set according to actual needs.

[0144] It should be noted that the database can be pre-set by the washing equipment manufacturer based on the equipment characteristics and usage experience, and the user can pre-set it according to actual needs during use. Due to different users' different dining habits, the amount and type of detergent required are also different, and different models of washing equipment have different requirements for detergent. Therefore, the database and user information are closely related, that is, each user and each device corresponds to a database, which can recommend detergent dosage to users more accurately and intelligently.

[0145] In addition, after the database is successfully constructed, the user can also adjust the database according to his or her actual needs to adapt to the user's own usage habits, so that the terminal can determine the type of detergent and / or the amount of detergent based on the updated database.

[0146] Optionally, after obtaining the target detection results of each object to be washed, the type of detergent and / or the amount of detergent corresponding to the category information of each object to be washed is searched in the database according to the category information in the target detection results of each object to be washed.

[0147] The determination module 303 is used to determine the type of detergent and / or the amount of each detergent required for washing according to the type of detergent and / or the amount of detergent corresponding to the category information of each object to be washed in the washing device.

[0148] Optionally, after obtaining the detergent dosage and / or detergent type corresponding to the category information of each object to be washed in the washing device, the objects to be washed using the same type of detergent are classified into one category, and then the detergent dosage corresponding to the category information of the objects to be washed in each category is added together to obtain the dosage of various detergents required for washing. The specific formula is:

[0149]

[0150] Among them, v i is the amount of detergent corresponding to the category information of the i-th object to be washed using any type of detergent, n is the number of objects to be washed using this type of detergent; and V is the amount of detergent required for washing.

[0151] It should be noted that the types of detergents and / or amounts of each detergent required for washing finally obtained can be used as the types of detergents and / or amounts of each detergent actually added to the washing device for washing; it can also be provided as a reference for the user. After the user makes appropriate adjustments based on actual needs, the types of detergents and / or amounts of each detergent actually added to the washing device can be used as the types of detergents and / or amounts of each detergent required for washing finally obtained. If the user feels that the recommended detergent amount needs to be adjusted, it can be modified manually.

[0152] In the prior art, an effective method for automatically determining the type of detergent and / or the amount of each detergent required for washing has not yet been developed. When using washing equipment, users often encounter situations where they cannot determine the amount and type of detergent to be used, and mainly rely on the user's experience to determine the type of detergent and / or the amount of each detergent required for washing. In the process of using the washing equipment, if the user is allowed to judge the type of detergent and / or the amount of each detergent required for washing by himself, there will be problems with inaccurate judgment, which affects the user's experience. However, this implementation directly performs target detection on the image to be tested collected in the washing area of ​​the washing equipment, and automatically and accurately determines the type of detergent and / or the amount of each detergent required for washing based on the target detection results, effectively reducing the user's learning cost, improving the user's experience, and avoiding unnecessary waste.

[0153] This embodiment collects images to be tested in the washing area of ​​the washing device, obtains target detection results of each object to be washed in the images to be tested based on the target detection model, and searches the database for detergent amounts and / or types of detergents corresponding to the category information in the target detection results of each object to be washed. According to the detergent types and / or detergent amounts corresponding to the category information of each object to be washed in the washing device, the types of detergents and / or amounts of each detergent required for final washing are obtained. This can not only automatically determine the types of detergents and / or amounts of each detergent required for washing, but also avoid interference from manual experience, so that the determined types of detergents and / or amounts of each detergent are more accurate, thereby improving the user experience.

[0154] Based on the above embodiments, the search module in this embodiment is specifically used to: take the objects to be washed whose confidence in the target detection results is greater than the target value as target objects; according to the category information of each target object, search the database for the type of detergent and / or the amount of detergent corresponding to the category information of each target object.

[0155] On the basis of the above embodiments, the present embodiment also includes a display module, which is specifically used to: display the type and / or amount of detergent corresponding to the target detection results and category information of each object to be washed, as well as the type and / or amount of detergent required for the washing, so that the user can determine whether to redetermine the type and / or amount of detergent required for the washing according to the display results; upon receiving a first instruction to redetermine the type and / or amount of detergent required for the washing, re-acquire a new image to be tested in the washing device; perform target detection on the new image to be tested based on the target detection model, and redetermine the type and / or amount of detergent required for washing according to the target detection results of each object to be washed in the new image to be tested.

[0156] On the basis of the above embodiments, the search module in this embodiment is also used for: when receiving a second instruction to update the database, updating one or more of the category information, detergent type and detergent dosage in the database according to the second instruction; wherein the update includes adding, deleting or modifying; according to the category information of each object to be washed, searching for the detergent type and / or detergent dosage corresponding to the category information of each object to be washed in the updated database.

[0157] Based on the above embodiments, this embodiment also includes an adding module, which is used to: send the types of detergents and / or the amounts of each detergent required for washing to the washing device, so that the washing device adds the types of detergents and / or the amounts of each detergent required for washing to the washing area.

[0158] On the basis of the above embodiments, the detection module in this embodiment is also used to: preprocess the image to be tested; wherein the preprocessing includes one or more of size adjustment, noise reduction and normalization; based on the target detection model, perform target detection on the preprocessed image to be tested, and obtain the target detection results of each object to be washed in the preprocessed image to be tested.

[0159] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4As shown, the electronic device may include: a processor 401, a communication interface 402, a memory 403 and a communication bus 404, wherein the processor 401, the communication interface 402 and the memory 403 communicate with each other through the communication bus 404. The processor 401 may call the logic instructions in the memory 403 to execute the detergent determination method, which includes: performing target detection on the image to be tested based on the target detection model, and obtaining the target detection results of each object to be washed in the image to be tested; wherein the image to be tested is collected and obtained in the washing area of ​​the washing device; according to the category information in the target detection results of each object to be washed, respectively searching for the type of detergent and / or the amount of detergent corresponding to the category information of each object to be washed in the pre-constructed database; according to the type of detergent and / or the amount of detergent corresponding to the category information of each object to be washed in the washing device, determining the type of detergent and / or the amount of each detergent required for washing.

[0160] In addition, the logic instructions in the above-mentioned memory 403 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0161] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the detergent determination method provided by the above-mentioned methods, which method includes: performing target detection on the image to be tested based on a target detection model, and obtaining target detection results of each object to be washed in the image to be tested; wherein the image to be tested is collected and obtained in the washing area of ​​the washing device; according to the category information in the target detection results of each object to be washed, searching for the type of detergent and / or the amount of detergent corresponding to the category information of each object to be washed in a pre-constructed database; and determining the type of detergent and / or the amount of each detergent required for washing according to the type of detergent and / or the amount of detergent corresponding to the category information of each object to be washed in the washing device.

[0162] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the detergent determination method provided by the above-mentioned methods, the method comprising: performing target detection on the image to be tested based on a target detection model, and obtaining target detection results of each object to be washed in the image to be tested; wherein the image to be tested is collected and acquired in the washing area of ​​the washing device; according to the category information in the target detection results of each object to be washed, searching for the type of detergent and / or the amount of detergent corresponding to the category information of each object to be washed in a pre-constructed database; and determining the type of detergent and / or the amount of each detergent required for washing according to the type of detergent and / or the amount of detergent corresponding to the category information of each object to be washed in the washing device.

[0163] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0164] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0165] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for determining a detergent, characterized in that: The method is applied to a mobile terminal, and the mobile terminal is independently deployed from a washing device. The method includes: Performing target detection on the image to be tested based on the target detection model, and obtaining target detection results of each object to be washed in the image to be tested; wherein the image to be tested is collected and obtained in the washing area of ​​the washing equipment, and the image to be tested is collected by the mobile terminal, wherein the target detection results include the bounding box position, category information and confidence of each object to be washed; According to the category information in the target detection results of each object to be washed, respectively searching for the type of detergent and / or the amount of detergent corresponding to the category information of each object to be washed in a pre-constructed database, wherein, according to the category information in the target detection results of each object to be washed, respectively searching for the type of detergent and / or the amount of detergent corresponding to the category information of each object to be washed in a pre-constructed database, comprises: The objects to be washed whose confidence in the target detection results is greater than the target value are taken as target objects; According to the category information of each target object, searching the database for the type of detergent and / or the amount of detergent corresponding to the category information of each target object; The database is updated in the following manner: Upon receiving a second instruction to update the database, searching the database for category information in the second instruction; If found, the detergent type and / or detergent amount corresponding to the category information found in the database is updated according to the detergent type and / or detergent amount corresponding to the category information in the second instruction, wherein the update includes but is not limited to adding, deleting or modifying; If not found, adding the correspondence between the category information and the amount of detergent used and / or the correspondence between the category information and the type of detergent in the second instruction to the database to expand the database; Determining the types of detergents and / or the amounts of each detergent required for washing according to the types of detergents and / or the amounts of detergents corresponding to the category information of each object to be washed in the washing device, wherein the method further comprises: After obtaining the detergent dosage and / or detergent type corresponding to the category information of each object to be washed in the washing device, classifying the objects to be washed using the same type of detergent; The detergent dosage corresponding to the category information of the objects to be washed under each category after classification is added together to obtain the various detergent dosages required for washing, wherein the detergent dosage of any one of the various detergent dosages required for washing is implemented using the following formula: Among them, v i is the amount of detergent corresponding to the category information of the i-th object to be washed using the detergent, n is the number of objects to be washed using the detergent; and V is the amount of detergent required for washing.

2. The detergent determination method according to claim 1, characterized in that: Also includes: Displaying the target detection result and the type of detergent and / or the amount of detergent corresponding to the category information of each object to be washed, as well as the type of detergent and / or the amount of each detergent required for washing, so that the user can determine whether to redetermine the type of detergent and / or the amount of each detergent required for washing according to the displayed result; Upon receiving a first instruction to redetermine the type of detergent and / or the amount of each detergent required for washing, re-collecting a new image to be tested in the washing device; The target detection is performed on the new image to be tested based on the target detection model, and the type of detergent and / or the amount of each detergent required for washing are re-determined according to the target detection result of each object to be washed in the new image to be tested.

3. The detergent determination method according to claim 1, characterized in that: The method of searching for the type of detergent and / or the amount of detergent corresponding to the category information of each object to be washed in a pre-built database according to the category information in the target detection result of each object to be washed includes: According to the category information of each object to be washed, the type of detergent and / or the amount of detergent corresponding to the category information of each object to be washed are searched in the updated database.

4. The detergent determination method according to any one of claims 1-2, characterized in that: Also includes: The types of detergents and / or the amounts of each detergent required for washing are sent to the washing device, so that the washing device adds the types of detergents and / or the amounts of each detergent required for washing to the washing area.

5. The detergent determination method according to any one of claims 1-2, characterized in that: The target detection is performed on the image to be tested based on the target detection model to obtain the target detection result of each object to be washed in the image to be tested, including: Preprocessing the image to be tested; wherein the preprocessing includes one or more of size adjustment, noise reduction and normalization; Based on the target detection model, target detection is performed on the preprocessed image to be tested, and target detection results of each object to be washed in the preprocessed image to be tested are obtained.

6. A detergent determination device, characterized in that: The device is applied to a mobile terminal, the mobile terminal is independently deployed from a washing device, and the device comprises: A detection module, configured to perform target detection on the image to be tested based on the target detection model, and obtain target detection results of each object to be washed in the image to be tested; wherein the image to be tested is collected and obtained in the washing area of ​​the washing device, and the image to be tested is collected by the mobile terminal, wherein the target detection results include the bounding box position, category information and confidence of each object to be washed; A search module is used to search for the type of detergent and / or the amount of detergent corresponding to the category information of each object to be washed in a pre-constructed database according to the category information in the target detection result of each object to be washed, wherein the search module is specifically used to: take the object to be washed whose confidence in the target detection result is greater than the target value as the target object; and search for the type of detergent and / or the amount of detergent corresponding to the category information of each target object in the database according to the category information of each target object; wherein the database is updated in the following manner: Upon receiving a second instruction to update the database, searching the database for category information in the second instruction; If found, the detergent type and / or detergent amount corresponding to the category information found in the database is updated according to the detergent type and / or detergent amount corresponding to the category information in the second instruction, wherein the update includes but is not limited to adding, deleting or modifying; If not found, adding the correspondence between the category information and the amount of detergent used and / or the correspondence between the category information and the type of detergent in the second instruction to the database to expand the database; A determination module is used to determine the type of detergent and / or the amount of each detergent required for washing according to the type of detergent and / or the amount of detergent corresponding to the category information of each object to be washed in the washing device, wherein the determination module is also used to: After obtaining the detergent dosage and / or detergent type corresponding to the category information of each object to be washed in the washing device, classifying the objects to be washed using the same type of detergent; The detergent dosage corresponding to the category information of the objects to be washed under each category after classification is added together to obtain the various detergent dosages required for washing, wherein the detergent dosage of any one of the various detergent dosages required for washing is implemented using the following formula: Among them, v i is the amount of detergent corresponding to the category information of the i-th object to be washed using the detergent, n is the number of objects to be washed using the detergent; and V is the amount of detergent required for washing.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the detergent determination method according to any one of claims 1 to 5 are implemented.

8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the detergent determination method according to any one of claims 1 to 5 are implemented.

9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the detergent determination method according to any one of claims 1 to 5 are implemented.