Cleaning machine control method and device, medium and equipment
By analyzing the pet's body shape and behavior in the cleaning machine and dynamically adjusting cleaning parameters, the problem of pet cleaning machines neglecting comfort in the existing technology is solved, achieving both efficient cleaning and pet comfort.
Patent Information
- Application Number
- CN202410937131.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-07-12
AI Technical Summary
Existing cleaning machines ignore the pet's feelings and status when cleaning pets, which may cause discomfort or panic to the pet, or even cause injury. It is difficult to find a balance between efficient cleaning and comfort.
Through the built-in acquisition device in the cleaning machine, videos and images of the cleaning process are acquired, body shape parameters and behavioral postures are analyzed, and cleaning parameters are dynamically adjusted, including flushing angle, water output, and blowing speed, to identify the pet's cleaning status and control the cleaning machine in real time.
While improving the cleaning effect, it ensures the comfort of pets and reduces accidents and potential injuries during the cleaning process.
Smart Images

Figure CN118844355A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of cleaning machine control, and in particular to a cleaning machine control method, device, medium and equipment. Background Art
[0002] With the continuous development and improvement of living standards, pets have become important members of the family, and the demand for pet cleaning has also continued to increase. Since manual cleaning of pets is cumbersome, and some pets may cause injuries to cleaning personnel during the cleaning process, automatic cleaning machines are gradually playing an increasingly important role in cleaning pets.
[0003] The cleaning machines in the prior art set the cleaning parameters of the entire cleaning process according to the type of pet and the degree of dirtiness. They only focus on the cleanliness or automation of the cleaning machine, but ignore the feelings and status of the pet. This may cause discomfort or panic to the pet during the cleaning process, making the cleaning process prone to accidents and even causing harm to the pet.
[0004] Therefore, in the pet washing scenario, how to achieve efficient washing effects while ensuring the comfort of the pet becomes an urgent problem to be solved. Summary of the invention
[0005] In view of the above technical problems, the technical solution adopted by the present invention is a cleaning machine control method, which includes the following steps:
[0006] S100, according to the acquisition device built in the cleaning machine, obtain a cleaning process video of the object to be cleaned within a first preset time period and N cleaning process images of the object to be cleaned within a second preset time period, wherein N is an integer greater than 0, the first preset time period refers to the time period corresponding to P preset unit times before the current time point to the current time point, and P is an integer greater than 0, and the second preset time period refers to the time period corresponding to Q preset unit times from the initial time point to the initial time point, and the initial time point refers to the time point when the cleaning machine door is closed after the object to be cleaned enters the cleaning machine, and Q is an integer greater than 0.
[0007] S200, acquiring the size parameter data of the object to be cleaned according to N cleaning process images.
[0008] S300, obtaining first cleaning parameter data of the cleaning machine according to the body shape parameter data and a preset parameter comparison table, wherein the preset parameter comparison table includes a comparison relationship between the body shape parameters and the first cleaning parameters, and the first cleaning parameters include a flushing angle range, a flushing height, a blowing angle range and a blowing height.
[0009] S400: Input the cleaning process video into a preset behavior recognition model to obtain the moving speed and behavior posture of the object to be cleaned.
[0010] S500: Acquire the cleaning state type of the object to be cleaned according to the moving speed and the behavior posture, wherein the cleaning state type includes a stationary state, a normal state, an abnormal state, and a violent state.
[0011] S600, setting second cleaning parameter data of the cleaning machine according to the cleaning state type, wherein the second cleaning parameter includes water output volume, water output speed, blowing volume and blowing speed.
[0012] S700, controlling a cleaning machine according to the first cleaning parameter data and the second cleaning parameter data.
[0013] The present invention also provides a cleaning machine control device, the cleaning machine control device comprising:
[0014] The data acquisition module is used to acquire, according to the acquisition device built into the cleaning machine, a cleaning process video of the object to be cleaned within a first preset time period and N cleaning process images of the object to be cleaned within a second preset time period, wherein N is an integer greater than 0, the first preset time period refers to the time period corresponding to P preset unit times before the current time point to the current time point, and P is an integer greater than 0, and the second preset time period refers to the time period corresponding to Q preset unit times from the initial time point to the initial time point, and the initial time point refers to the time point when the cleaning machine door is closed after the object to be cleaned enters the cleaning machine, and Q is an integer greater than 0.
[0015] The body shape analysis module is used to obtain body shape parameter data of the object to be cleaned based on N cleaning process images.
[0016] The first parameter acquisition module is used to obtain the first cleaning parameter data of the cleaning machine according to the body parameter data and a preset parameter comparison table, wherein the preset parameter comparison table includes the comparison relationship between the body parameter and the first cleaning parameter, and the first cleaning parameter includes the flushing angle range, flushing height, blowing angle range and blowing height.
[0017] The behavior recognition module is used to input the cleaning process video into a preset behavior recognition model to obtain the moving speed and behavior posture of the object to be cleaned.
[0018] The state analysis module is used to obtain the cleaning state type of the object to be cleaned according to the moving speed and the behavior posture, wherein the cleaning state type includes a stationary state, a normal state, an abnormal state and a violent state.
[0019] The second parameter acquisition module is used to set the second cleaning parameter data of the cleaning machine according to the cleaning state type, wherein the second cleaning parameter includes water output volume, water output speed, blowing volume and blowing speed.
[0020] The cleaning machine control module is used to control the cleaning machine according to the first cleaning parameter data and the second cleaning parameter data.
[0021] The present invention also provides a non-transitory computer-readable storage medium, in which at least one instruction or at least one program is stored, and the at least one instruction or at least one program is loaded and executed by a processor to implement the above-mentioned cleaning machine control method.
[0022] The present invention also provides an electronic device, comprising a processor and the above-mentioned non-transitory computer-readable storage medium.
[0023] The present invention has at least the following beneficial effects: according to the acquisition device built in the cleaning machine, a cleaning process video of the object to be cleaned within a first preset time period and N cleaning process images of the object to be cleaned within a second preset time period are obtained; according to the N cleaning process images, the body parameter data of the object to be cleaned is obtained; according to the body parameter data and a preset parameter comparison table, the first cleaning parameter data of the cleaning machine is obtained; the body shape of the object to be cleaned is analyzed through the cleaning process images of a period of time when the object to be cleaned just enters the cleaning machine, so as to improve the accuracy of the first cleaning parameter data, thereby improving the cleaning effect of the object to be cleaned; the cleaning process video is input into a preset behavior recognition model to obtain the moving speed and behavior posture of the object to be cleaned; according to the moving speed and behavior posture, the cleaning state type of the object to be cleaned is obtained; according to the cleaning state type, the second cleaning parameter data of the cleaning machine is set; the cleaning machine is controlled according to the first cleaning parameter data and the second cleaning parameter data; according to the cleaning process video of a period of time before the current time point, the moving speed and behavior posture of the object to be cleaned at the current time are analyzed, so as to improve the accuracy of the second cleaning parameter data, thereby achieving an efficient cleaning effect while ensuring the comfort of the object to be cleaned. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0025] Figure 1 A flowchart of a cleaning machine control method provided in Embodiment 1 of the present invention;
[0026] Figure 2This is a structural schematic diagram of a cleaning machine control device provided in Embodiment 2 of the present invention. DETAILED DESCRIPTION
[0027] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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 those skilled in the art without creative work are within the scope of protection of the present invention.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] Embodiment 1
[0030] This embodiment 1 provides a cleaning machine control method, the cleaning machine control method includes the following steps: Figure 1 As shown:
[0031] S100, according to the acquisition device built in the cleaning machine, obtain a cleaning process video of the object to be cleaned within a first preset time period and N cleaning process images of the object to be cleaned within a second preset time period, wherein N is an integer greater than 0, the first preset time period refers to the time period corresponding to P preset unit times before the current time point to the current time point, and P is an integer greater than 0, and the second preset time period refers to the time period corresponding to Q preset unit times from the initial time point to the initial time point, and the initial time point refers to the time point when the cleaning machine door is closed after the object to be cleaned enters the cleaning machine, and Q is an integer greater than 0.
[0032] Among them, the objects to be cleaned may refer to animals such as cats and dogs, and the cleaning machine is used to clean and dry the objects to be cleaned placed in the cleaning machine. By controlling the flushing angle range, flushing height, water output and water output speed of the cleaning machine, different degrees of cleaning of the objects to be cleaned can be achieved. By controlling the blowing angle range, blowing height, blowing volume and blowing speed of the cleaning machine, different degrees of drying of the objects to be cleaned can be achieved.
[0033] The cleaning machine is equipped with a collection device, which may be a camera, for collecting videos of the objects to be cleaned during the cleaning process to analyze the cleaning status of the objects to be cleaned, and then timely control the parameters of the cleaning machine during the cleaning process, thereby improving the comfort of the objects to be cleaned.
[0034] The first preset time period refers to the time period corresponding to the P preset unit time before the current time point to the current time point, that is, the first preset time period is a period of time before the current time point, which serves as a data basis for analyzing the current state of the object to be cleaned. The parameters of the cleaning machine can be adjusted in time according to the current state of the object to be cleaned, thereby improving the comfort of the object to be cleaned during the entire cleaning process.
[0035] The second preset time period refers to the time period corresponding to Q preset unit times from the initial time point to the time point after the initial time point. The initial time point refers to the time point when the door of the cleaning machine is closed after the object to be cleaned enters the cleaning machine. That is, the second preset time period is a period of time when the object to be cleaned has just entered the cleaning machine. At this time, the object to be cleaned has not yet gone through the cleaning and drying stages, and the state of the object to be cleaned is relatively stable. As a basis for measuring the size of the object to be cleaned, the accuracy of obtaining the size can be improved, thereby improving the control accuracy of the parameters of the cleaning machine, and further improving the cleaning effect and comfort of the object to be cleaned.
[0036] Among them, the specific values of the preset unit time, P and Q can be set by the implementer according to actual conditions.
[0037] In a specific implementation, S100 further includes the following steps:
[0038] S110: acquiring, according to a collection device, an initial cleaning video of the object to be cleaned within a second preset time period.
[0039] S120, performing frame processing on the initial cleaning video according to the frame rate corresponding to the acquisition device, and obtaining M initial cleaning images corresponding to the initial cleaning video, where M≥N.
[0040] S130: For any initial cleaning image, a first bounding box corresponding to the object to be cleaned in the current initial cleaning image is obtained.
[0041] S140: If the position of the first enclosing frame is within a preset position range of the current initial cleaning image, the current initial cleaning image is determined as a cleaning process image.
[0042] S150, traversing M initial cleaning images to obtain N cleaning process images.
[0043] Among them, since the objects to be cleaned may walk, run, jump, etc. in the cleaning machine, the positions of the objects to be cleaned may be different in different initial cleaning images. In order to improve the accuracy of the analysis of the size of the objects to be cleaned, this embodiment screens M initial cleaning images and selects images in which the objects to be cleaned appear in a preset position range as the cleaning process images to analyze the size information of the objects to be cleaned.
[0044] Specifically, a first bounding box corresponding to the object to be cleaned in each initial cleaning image is obtained based on a minimum bounding box algorithm, and the initial cleaning images are screened based on a comparison between a position of the first bounding box and a preset position range.
[0045] Among them, those skilled in the art know that any minimum bounding box algorithm in the prior art falls within the protection scope of the present invention, and will not be described in detail here.
[0046] In the above, based on the comparison between the first bounding box corresponding to the object to be cleaned in each initial cleaning image and the preset position range, N cleaning process images are screened out from M initial cleaning images as a basis for analyzing the size information of the object to be cleaned, thereby improving the accuracy of obtaining the size parameter data of the object to be cleaned.
[0047] In a specific implementation, the number of pixel columns of the current initial cleaning image is w, the number of pixel rows of the current initial cleaning image is h, and a coordinate system in pixels is established with the upper left corner of the current initial cleaning image as the origin. S140 further includes the following steps:
[0048] S141. According to the coordinate system, the first preset point A, the second preset point B, the third preset point C and the fourth preset point D corresponding to the current initial cleaning image are obtained, wherein the coordinates of the first preset point A are (β×w, α×h), the coordinates of the second preset point B are ((1-β)×w, α×h), the coordinates of the third preset point C are ((1-β)×w, (1-α)×h), and the coordinates of the fourth preset point D are (β×w, (1-α)×h), β refers to the preset column reduction coefficient, and α refers to the preset row reduction coefficient.
[0049] S142, in the current initial cleaning image, a rectangular range formed by enclosing the first preset point A, the second preset point B, the third preset point C and the fourth preset point D in sequence is determined as a preset position range of the current initial cleaning image.
[0050] The preset position range is the position range of a partial area in the middle of the initial cleaning image, and the objects to be cleaned in the cleaning process image selected thereby are not blocked, and the complete size information of the objects to be cleaned can be analyzed and obtained.
[0051] The specific values of β and α can be set by the implementer according to actual conditions.
[0052] As described above, the preset position range is obtained according to A, B, C and D, so that the object to be cleaned in the screened cleaning process image is not blocked, and the complete body shape information of the object to be cleaned can be analyzed, thereby improving the accuracy of obtaining the body shape parameter data of the object to be cleaned.
[0053] S200, acquiring the size parameter data of the object to be cleaned according to N cleaning process images.
[0054] In a specific implementation, S200 further includes the following steps:
[0055] S210, obtaining the distance between each cleaning process image and the acquisition device according to the acquisition device.
[0056] S220: For any cleaning process image, obtain the area of a first bounding box in the current cleaning process image.
[0057] S230, obtaining the size score corresponding to the object to be cleaned in the current cleaning process image according to the area and the distance.
[0058] S240, traversing N cleaning process images to obtain N body type scores corresponding to the objects to be cleaned.
[0059] S250, determining the average value of the N body shape scores as body shape parameter data of the object to be cleaned.
[0060] The larger the distance between the cleaning process image and the acquisition device and the area of the first bounding box are, the larger the size of the object to be cleaned is.
[0061] In a specific implementation, the size score corresponding to the object to be cleaned in the i-th cleaning process image meets the following conditions:
[0062] F i =(D i / D 0 )×((2 / (e^(-S i )))-1), where F i It refers to the size score of the object to be cleaned in the i-th cleaning process image, D i It refers to the distance between the i-th cleaning process image and the acquisition device, D 0 It refers to the maximum distance between the collection equipment and the cleaning machine, S i It refers to the area of the first bounding box in the i-th cleaning process image, e refers to a natural constant, i = 1, 2, ..., N, and N refers to the total number of cleaning process images.
[0063] In the above, the size score corresponding to the object to be cleaned in the current cleaning process image is obtained according to the area and the distance, and then the size parameter data of the object to be cleaned is obtained, thereby improving the accuracy of the size parameter data.
[0064] S300, obtaining first cleaning parameter data of the cleaning machine according to the body shape parameter data and a preset parameter comparison table, wherein the preset parameter comparison table includes a comparison relationship between the body shape parameters and the first cleaning parameters, and the first cleaning parameters include a flushing angle range, a flushing height, a blowing angle range and a blowing height.
[0065] Among them, in the preset parameter comparison table, the larger the body size parameter, the larger the corresponding flushing angle range, flushing height, blowing angle range and blowing height.
[0066] In the above, based on the size parameter data of the object to be cleaned, the first cleaning parameter data of the cleaning machine is obtained by querying from a preset parameter comparison table, which improves the accuracy of the first cleaning parameter data and improves the cleaning and drying effects of the object to be cleaned.
[0067] S400: Input the cleaning process video into a preset behavior recognition model to obtain the moving speed and behavior posture of the object to be cleaned.
[0068] Among them, the preset behavior recognition model includes an encoder and a decoder. The encoder is used to extract features from the cleaning process video, and the decoder is used to analyze the extracted features and output the moving speed and behavior posture of the object to be cleaned, which is used to characterize the behavior information of the object to be cleaned for a period of time before the current time point, and is used to analyze the current state of the object to be cleaned.
[0069] In order to improve the accuracy of obtaining the moving speed and behavior posture, the behavior recognition model can be trained in advance, and the cleaning process video can be processed based on the trained behavior recognition model. The training process of the behavior recognition model will not be described in detail here.
[0070] As described above, feature extraction and feature analysis are performed on the cleaning process video according to the preset behavior recognition model, and the moving speed and behavior posture of the object to be cleaned are obtained to characterize the behavior information of the object to be cleaned for a period of time before the current time point, and the current state of the object to be cleaned is analyzed, so that the parameters of the cleaning machine can be adjusted in time according to the current state of the object to be cleaned, thereby improving the comfort of the object to be cleaned during the entire cleaning process.
[0071] S500: Acquire the cleaning state type of the object to be cleaned according to the moving speed and the behavior posture, wherein the cleaning state type includes a stationary state, a normal state, an abnormal state, and a violent state.
[0072] In a specific implementation, the behavior posture includes a stable posture and an unstable posture, and S500 further includes the following steps:
[0073] S510: If the moving speed is equal to the first preset speed threshold, it is determined that the cleaning state type of the object to be cleaned is a stationary state.
[0074] S520: If the moving speed is greater than the first preset speed threshold and less than or equal to the second preset speed threshold, and the behavior posture is a stable posture, it is determined that the cleaning state type of the object to be cleaned is a normal state.
[0075] S530: If the moving speed is greater than the first preset speed threshold and less than or equal to the second preset speed threshold, and the behavior posture is an unstable posture, it is determined that the cleaning state type of the object to be cleaned is an abnormal state.
[0076] S540: If the moving speed is greater than the second preset speed threshold and the behavior posture is a stable posture, it is determined that the cleaning state type of the object to be cleaned is an abnormal state.
[0077] S550: If the moving speed is greater than the second preset speed threshold and the behavior posture is an unstable posture, it is determined that the cleaning state type of the object to be cleaned is a violent state.
[0078] The specific values of the first preset speed threshold and the second preset speed threshold can be set by the implementer according to actual conditions. For example, the first preset speed threshold can be zero.
[0079] The stable posture may refer to the object to be cleaned being in a posture such as sitting, standing, or lying down, and the unstable posture may refer to the object to be cleaned being in a posture such as running or jumping.
[0080] As described above, the cleaning state type of the object to be cleaned is obtained according to the moving speed and the behavior posture, and the cleaning parameters of the cleaning machine can be controlled in time based on the current state of the object to be cleaned, thereby improving the comfort of the object to be cleaned during the entire cleaning process.
[0081] S600, setting second cleaning parameter data of the cleaning machine according to the cleaning state type, wherein the second cleaning parameter includes water output volume, water output speed, blowing volume and blowing speed.
[0082] In a specific implementation, S600 further includes the following steps:
[0083] S610: If the cleaning state type of the object to be cleaned is a static state or a violent state, the second cleaning parameter data of the cleaning machine is set to zero.
[0084] S620: If the cleaning state type of the object to be cleaned is a normal state, the second cleaning parameter data of the cleaning machine is set to remain unchanged.
[0085] S630: If the cleaning state type of the object to be cleaned is an abnormal state, the water output volume, water output speed, air blowing volume and air blowing speed of the cleaning machine are reduced according to a preset ratio.
[0086] The specific value of the preset ratio can be set by the implementer according to the actual situation. For example, the preset ratio can be 20%, 50%, 80%, etc.
[0087] When the cleaning state type of the object to be cleaned is an abnormal state, the water output, water output speed, air volume and air speed of the cleaning machine are reduced according to a preset ratio to reduce the stimulation of water and wind in the cleaning machine on the object to be cleaned.
[0088] As described above, the second cleaning parameter data of the cleaning machine is set according to the cleaning state type, thereby improving the comfort of the object being cleaned during the entire cleaning process.
[0089] S700, controlling a cleaning machine according to the first cleaning parameter data and the second cleaning parameter data.
[0090] In a specific implementation, S700 further includes the following steps:
[0091] S710: If the second cleaning parameter data of the cleaning machine is equal to zero, the cleaning machine is turned off.
[0092] S720, if the second cleaning parameter data of the cleaning machine is greater than zero, the flushing angle range, flushing height, blowing angle range and blowing height of the cleaning machine are controlled according to the first cleaning parameter data, and the water output, water output speed, blowing volume and blowing speed of the cleaning machine are controlled according to the second cleaning parameter data.
[0093] If the second cleaning parameter data of the cleaning machine is equal to zero, that is, the cleaning state type of the object to be cleaned is static or violent, the cleaning machine is turned off so that the cleaning machine staff or related personnel can check the state of the object to be cleaned.
[0094] In the above, according to the acquisition device built into the cleaning machine, a cleaning process video of the object to be cleaned within a first preset time period and N cleaning process images of the object to be cleaned within a second preset time period are obtained, and the body parameter data of the object to be cleaned is obtained according to the N cleaning process images, and the first cleaning parameter data of the cleaning machine is obtained according to the body parameter data and a preset parameter comparison table, and the body shape of the object to be cleaned is analyzed by the cleaning process images of a period of time when the object to be cleaned just enters the cleaning machine, so as to improve the accuracy of the first cleaning parameter data, thereby improving the cleaning effect of the object to be cleaned, and the cleaning process video is input into a preset behavior recognition model to obtain the moving speed and behavior posture of the object to be cleaned, and the cleaning state type of the object to be cleaned is obtained according to the moving speed and the behavior posture, and the second cleaning parameter data of the cleaning machine is set according to the cleaning state type, and the cleaning machine is controlled according to the first cleaning parameter data and the second cleaning parameter data, and the moving speed and behavior posture of the object to be cleaned at the current time are analyzed according to the cleaning process video of a period of time before the current time point, so as to improve the accuracy of the second cleaning parameter data, thereby achieving an efficient cleaning effect while ensuring the comfort of the object to be cleaned.
[0095] Embodiment 2
[0096] The second embodiment provides a cleaning machine control device, the cleaning machine control device includes: Figure 2 As shown:
[0097] The data acquisition module 21 is used to acquire, according to the acquisition device built into the cleaning machine, a cleaning process video of the object to be cleaned within a first preset time period and N cleaning process images of the object to be cleaned within a second preset time period, wherein N is an integer greater than 0, the first preset time period refers to the time period corresponding to P preset unit times before the current time point to the current time point, and P is an integer greater than 0, and the second preset time period refers to the time period corresponding to Q preset unit times from the initial time point to the initial time point, and the initial time point refers to the time point when the cleaning machine door is closed after the object to be cleaned enters the cleaning machine, and Q is an integer greater than 0.
[0098] The body shape analysis module 22 is used to obtain body shape parameter data of the object to be cleaned according to N cleaning process images.
[0099] The first parameter acquisition module 23 is used to obtain the first cleaning parameter data of the cleaning machine according to the body shape parameter data and a preset parameter comparison table, wherein the preset parameter comparison table includes the comparison relationship between the body shape parameters and the first cleaning parameters, and the first cleaning parameters include the flushing angle range, flushing height, blowing angle range and blowing height.
[0100] The behavior recognition module 24 is used to input the cleaning process video into a preset behavior recognition model to obtain the moving speed and behavior posture of the object to be cleaned.
[0101] The state analysis module 25 is used to obtain the cleaning state type of the object to be cleaned according to the moving speed and the behavior posture, wherein the cleaning state type includes a stationary state, a normal state, an abnormal state and a violent state.
[0102] The second parameter acquisition module 26 is used to set the second cleaning parameter data of the cleaning machine according to the cleaning state type, wherein the second cleaning parameter includes water output volume, water output speed, blowing volume and blowing speed.
[0103] The cleaning machine control module 27 is used to control the cleaning machine according to the first cleaning parameter data and the second cleaning parameter data.
[0104] In a specific implementation, the data acquisition module 21 further includes:
[0105] The video acquisition submodule is used to acquire, according to the acquisition device, an initial cleaning video of the object to be cleaned within a second preset time period.
[0106] The image acquisition submodule is used to perform frame processing on the initial cleaning video according to the frame rate corresponding to the acquisition device, and obtain M initial cleaning images corresponding to the initial cleaning video, where M≥N.
[0107] The bounding box acquisition submodule is used to acquire, for any initial cleaning image, a first bounding box corresponding to the object to be cleaned in the current initial cleaning image.
[0108] The image screening submodule is used to determine the current initial cleaning image as a cleaning process image if the position of the first enclosing frame is within a preset position range of the current initial cleaning image.
[0109] The image traversal submodule is used to traverse M initial cleaning images and obtain N cleaning process images.
[0110] In a specific implementation, the number of pixel columns of the current initial cleaning image is w, the number of pixel rows of the current initial cleaning image is h, and a coordinate system in pixels is established with the upper left corner of the current initial cleaning image as the origin. The image screening submodule further includes:
[0111] The preset point acquisition unit is used to acquire the first preset point A, the second preset point B, the third preset point C and the fourth preset point D corresponding to the current initial cleaning image according to the coordinate system, wherein the coordinates of the first preset point A are (β×w, α×h), the coordinates of the second preset point B are ((1-β)×w, α×h), the coordinates of the third preset point C are ((1-β)×w, (1-α)×h), and the coordinates of the fourth preset point D are (β×w, (1-α)×h), β refers to a preset column reduction coefficient, and α refers to a preset row reduction coefficient.
[0112] The preset position range acquisition unit is used to determine, in the current initial cleaning image, a rectangular range formed by the first preset point A, the second preset point B, the third preset point C and the fourth preset point D in sequence as the preset position range of the current initial cleaning image.
[0113] In a specific embodiment, the body shape analysis module 22 further includes:
[0114] The distance acquisition submodule is used to acquire the distance between each cleaning process image and the acquisition device according to the acquisition device.
[0115] The area acquisition submodule is used to acquire the area of the first bounding box in the current cleaning process image for any cleaning process image.
[0116] The first size score submodule is used to obtain the size score corresponding to the object to be cleaned in the current cleaning process image according to the area and distance.
[0117] The second body size score submodule is used to traverse N cleaning process images to obtain N body size scores corresponding to the objects to be cleaned.
[0118] The body shape parameter data acquisition submodule is used to determine the average value of N body shape scores as the body shape parameter data of the object to be cleaned.
[0119] In a specific implementation, the behavior posture includes a stable posture and an unstable posture, and the state analysis module 25 further includes:
[0120] The first state analysis submodule is used to determine that the cleaning state type of the object to be cleaned is a static state if the moving speed is equal to a first preset speed threshold.
[0121] The second state analysis submodule is used to determine that the cleaning state type of the object to be cleaned is a normal state if the moving speed is greater than the first preset speed threshold and less than or equal to the second preset speed threshold, and the behavior posture is a stable posture.
[0122] The third state analysis submodule is used to determine that the cleaning state type of the object to be cleaned is an abnormal state if the moving speed is greater than the first preset speed threshold and less than or equal to the second preset speed threshold, and the behavior posture is an unstable posture.
[0123] The fourth state analysis submodule is used to determine that the cleaning state type of the object to be cleaned is an abnormal state if the moving speed is greater than a second preset speed threshold and the behavior posture is a stable posture.
[0124] The fifth state analysis submodule is used to determine that the cleaning state type of the object to be cleaned is a violent state if the moving speed is greater than a second preset speed threshold and the behavior posture is an unstable posture.
[0125] In a specific implementation, the second parameter acquisition module 26 further includes:
[0126] The first parameter acquisition submodule is used to set the second cleaning parameter data of the cleaning machine to zero if the cleaning state type of the object to be cleaned is a static state or a violent state.
[0127] The second parameter acquisition submodule is used to set the second cleaning parameter data of the cleaning machine to remain unchanged if the cleaning state type of the object to be cleaned is a normal state.
[0128] The third parameter acquisition submodule is used to reduce the water output, water output speed, air blowing volume and air blowing speed of the cleaning machine according to a preset ratio if the cleaning state type of the object to be cleaned is an abnormal state.
[0129] In a specific embodiment, the cleaning machine control module 27 further includes:
[0130] The first control submodule is used to shut down the cleaning machine if the second cleaning parameter data of the cleaning machine is equal to zero.
[0131] The second control submodule is used to control the flushing angle range, flushing height, blowing angle range and blowing height of the cleaning machine according to the first cleaning parameter data if the second cleaning parameter data of the cleaning machine is greater than zero, and to control the water output, water output speed, blowing volume and blowing speed of the cleaning machine according to the second cleaning parameter data.
[0132] It should be noted that the information interaction, execution process and other contents between the above modules are based on the same concept as the embodiment of the method of the present invention. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0133] Embodiment 3
[0134] Embodiment 3 of the present invention provides a non-transitory computer-readable storage medium, wherein at least one instruction or at least one program is stored in the non-transitory computer-readable storage medium, and the at least one instruction or at least one program is loaded and executed by a processor to implement the steps:
[0135] S100, according to the acquisition device built in the cleaning machine, obtain a cleaning process video of the object to be cleaned within a first preset time period and N cleaning process images of the object to be cleaned within a second preset time period, wherein N is an integer greater than 0, the first preset time period refers to the time period corresponding to P preset unit times before the current time point to the current time point, and P is an integer greater than 0, and the second preset time period refers to the time period corresponding to Q preset unit times from the initial time point to the initial time point, and the initial time point refers to the time point when the cleaning machine door is closed after the object to be cleaned enters the cleaning machine, and Q is an integer greater than 0.
[0136] S200, acquiring the size parameter data of the object to be cleaned according to N cleaning process images.
[0137] S300, obtaining first cleaning parameter data of the cleaning machine according to the body shape parameter data and a preset parameter comparison table, wherein the preset parameter comparison table includes a comparison relationship between the body shape parameters and the first cleaning parameters, and the first cleaning parameters include a flushing angle range, a flushing height, a blowing angle range and a blowing height.
[0138] S400: Input the cleaning process video into a preset behavior recognition model to obtain the moving speed and behavior posture of the object to be cleaned.
[0139] S500: Acquire the cleaning state type of the object to be cleaned according to the moving speed and the behavior posture, wherein the cleaning state type includes a stationary state, a normal state, an abnormal state, and a violent state.
[0140] S600, setting second cleaning parameter data of the cleaning machine according to the cleaning state type, wherein the second cleaning parameter includes water output volume, water output speed, blowing volume and blowing speed.
[0141] S700, controlling the cleaning machine according to the first cleaning parameter data and the second cleaning parameter data.
[0142] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0143] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0144] Embodiment 4
[0145] A fourth embodiment of the present invention provides an electronic device, which includes a processor and the non-transitory computer-readable storage medium in the third embodiment of the present invention.
[0146] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technician familiar with this profession can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present invention. However, any simple modification, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention are still within the scope of the technical solution of the present invention.
Claims
1. A cleaning machine control method, characterized in that: The cleaning machine control method comprises the following steps: S100, according to the acquisition device built in the cleaning machine, obtain a cleaning process video of the object to be cleaned within a first preset time period, and N cleaning process images of the object to be cleaned within a second preset time period, wherein N is an integer greater than 0, the first preset time period refers to the time period corresponding to P preset unit times before the current time point to the current time point, and P is an integer greater than 0, and the second preset time period refers to the time period corresponding to Q preset unit times from the initial time point to the initial time point, and the initial time point refers to the time point when the cleaning machine door is closed after the object to be cleaned enters the cleaning machine, and Q is an integer greater than 0; S200, acquiring the body parameter data of the object to be cleaned according to the N cleaning process images; S300, acquiring first cleaning parameter data of the cleaning machine according to the body shape parameter data and a preset parameter comparison table, wherein the preset parameter comparison table includes a comparison relationship between the body shape parameter and the first cleaning parameter, and the first cleaning parameter includes a washing angle range, a washing height, a blowing angle range, and a blowing height; S400, inputting the cleaning process video into a preset behavior recognition model to obtain the moving speed and behavior posture of the object to be cleaned; S500, acquiring a cleaning state type of the object to be cleaned according to the moving speed and the behavior posture, wherein the cleaning state type includes a stationary state, a normal state, an abnormal state, and a violent state; S600, setting second cleaning parameter data of the cleaning machine according to the cleaning state type, wherein the second cleaning parameter includes water output volume, water output speed, air blowing volume and air blowing speed; S700: Control the cleaning machine according to the first cleaning parameter data and the second cleaning parameter data.
2. The cleaning machine control method according to claim 1, characterized in that: S100 also includes the following steps: S110, acquiring, according to the acquisition device, an initial cleaning video of the object to be cleaned within a second preset time period; S120, performing frame processing on the initial cleaning video according to the frame rate corresponding to the acquisition device, and obtaining M initial cleaning images corresponding to the initial cleaning video, where M≥N; S130, for any initial cleaning image, obtaining a first bounding box corresponding to the object to be cleaned in the current initial cleaning image; S140, if the position of the first enclosing frame is within the preset position range of the current initial cleaning image, determining the current initial cleaning image as a cleaning process image; S150, traversing M initial cleaning images to obtain N cleaning process images.
3. The cleaning machine control method according to claim 2, characterized in that: The number of pixel columns of the current initial cleaning image is w, the number of pixel rows of the current initial cleaning image is h, and a coordinate system in pixels is established with the upper left corner of the current initial cleaning image as the origin. S140 further includes the following steps: S141, according to the coordinate system, obtain a first preset point A, a second preset point B, a third preset point C, and a fourth preset point D corresponding to the current initial cleaning image, wherein the coordinates of the first preset point A are (β×w, α×h), the coordinates of the second preset point B are ((1-β)×w, α×h), the coordinates of the third preset point C are ((1-β)×w, (1-α)×h), and the coordinates of the fourth preset point D are (β×w, (1-α)×h), β refers to a preset column reduction coefficient, and α refers to a preset row reduction coefficient; S142, in the current initial cleaning image, determining a rectangular range formed by the first preset point A, the second preset point B, the third preset point C and the fourth preset point D in order as a preset position range of the current initial cleaning image.
4. The cleaning machine control method according to claim 2, characterized in that: S200 also includes the following steps: S210, acquiring the distance between each cleaning process image and the acquisition device according to the acquisition device; S220, for any cleaning process image, obtaining the area of a first bounding box in the current cleaning process image; S230, acquiring a size score corresponding to the object to be cleaned in the current cleaning process image according to the area and the distance; S240, traversing N cleaning process images to obtain N body type scores corresponding to the object to be cleaned; S250, determining an average value of the N body shape scores as body shape parameter data of the object to be cleaned.
5. The cleaning machine control method according to claim 1, characterized in that: The behavior posture includes a stable posture and an unstable posture, and S500 further includes the following steps: S510, if the moving speed is equal to a first preset speed threshold, determining that the cleaning state type of the object to be cleaned is a stationary state; S520, if the moving speed is greater than the first preset speed threshold and less than or equal to the second preset speed threshold, and the behavior posture is a stable posture, determining that the cleaning state type of the object to be cleaned is a normal state; S530, if the moving speed is greater than the first preset speed threshold and less than or equal to the second preset speed threshold, and the behavior posture is an unstable posture, determining that the cleaning state type of the object to be cleaned is an abnormal state; S540, if the moving speed is greater than the second preset speed threshold, and the behavior posture is a stable posture, determining that the cleaning state type of the object to be cleaned is an abnormal state; S550: If the moving speed is greater than the second preset speed threshold, and the behavior posture is an unstable posture, determining that the cleaning state type of the object to be cleaned is a violent state.
6. The cleaning machine control method according to claim 5, characterized in that: S600 also includes the following steps: S610, if the cleaning state type of the object to be cleaned is a static state or a violent state, setting the second cleaning parameter data of the cleaning machine to zero; S620, if the cleaning state type of the object to be cleaned is a normal state, setting the second cleaning parameter data of the cleaning machine to remain unchanged; S630: If the cleaning state type of the object to be cleaned is an abnormal state, the water output volume, water output speed, air blowing volume and air blowing speed of the cleaning machine are reduced according to a preset ratio.
7. The cleaning machine control method according to claim 6, characterized in that: S700 also includes the following steps: S710, if the second cleaning parameter data of the cleaning machine is equal to zero, shutting down the cleaning machine; S720, if the second cleaning parameter data of the cleaning machine is greater than zero, the flushing angle range, flushing height, blowing angle range and blowing height of the cleaning machine are controlled according to the first cleaning parameter data, and the water output, water output speed, blowing volume and blowing speed of the cleaning machine are controlled according to the second cleaning parameter data.
8. A cleaning machine control device, characterized in that: The cleaning machine control device comprises: A data acquisition module, for acquiring, according to a collection device built into the cleaning machine, a cleaning process video of the object to be cleaned within a first preset time period, and N cleaning process images of the object to be cleaned within a second preset time period, wherein N is an integer greater than 0, the first preset time period refers to a time period corresponding to P preset unit times before a current time point to the current time point, and P is an integer greater than 0, and the second preset time period refers to a time period corresponding to Q preset unit times from an initial time point to after the initial time point, and the initial time point refers to a time point when the cleaning machine door is closed after the object to be cleaned enters the cleaning machine, and Q is an integer greater than 0; A body shape analysis module, used for acquiring body shape parameter data of the object to be cleaned according to the N cleaning process images; a first parameter acquisition module, configured to acquire first cleaning parameter data of the cleaning machine according to the body shape parameter data and a preset parameter comparison table, wherein the preset parameter comparison table includes a comparison relationship between the body shape parameter and the first cleaning parameter, and the first cleaning parameter includes a flushing angle range, a flushing height, a blowing angle range, and a blowing height; A behavior recognition module is used to input the cleaning process video into a preset behavior recognition model to obtain the moving speed and behavior posture of the object to be cleaned; A state analysis module, used for acquiring the cleaning state type of the object to be cleaned according to the moving speed and the behavior posture, wherein the cleaning state type includes a stationary state, a normal state, an abnormal state and a violent state; A second parameter acquisition module, used to set second cleaning parameter data of the cleaning machine according to the cleaning state type, wherein the second cleaning parameter includes water output, water output speed, air blowing volume and air blowing speed; A cleaning machine control module is used to control the cleaning machine according to the first cleaning parameter data and the second cleaning parameter data.
9. A non-transitory computer-readable storage medium, wherein at least one instruction or at least one program is stored in the non-transitory computer-readable storage medium, characterized in that: The at least one instruction or the at least one program is loaded and executed by the processor to implement the cleaning machine control method as described in any one of claims 1-7.
10. An electronic device, characterized in that: The invention comprises a processor and the non-transitory computer-readable storage medium as claimed in claim 9.
Citation Information
Patent Citations
Multi-pig motion trail extraction and behavior analysis method in group environment
CN112288771A
Cleaning device for pigs
CN113100107A
Cleaning method and device for pet cleaning machine and pet cleaning machine
CN114946691A
Abnormality detection apparatus, abnormality detection method and program
JP2023107099A
