WO2023131246A1 - Control method and apparatus for cleaning device, storage medium, and electronic apparatus - Google Patents
Control method and apparatus for cleaning device, storage medium, and electronic apparatus Download PDFInfo
- Publication number
- WO2023131246A1 WO2023131246A1 PCT/CN2023/070725 CN2023070725W WO2023131246A1 WO 2023131246 A1 WO2023131246 A1 WO 2023131246A1 CN 2023070725 W CN2023070725 W CN 2023070725W WO 2023131246 A1 WO2023131246 A1 WO 2023131246A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- cleaning device
- cleaning
- liquid
- moving direction
- area
- Prior art date
Links
- 238000004140 cleaning Methods 0.000 title claims abstract description 477
- 238000000034 method Methods 0.000 title claims abstract description 57
- 239000007788 liquid Substances 0.000 claims abstract description 198
- 238000005507 spraying Methods 0.000 claims abstract description 113
- 230000004044 response Effects 0.000 claims abstract description 20
- 239000007921 spray Substances 0.000 claims description 65
- 238000001514 detection method Methods 0.000 claims description 35
- 230000001276 controlling effect Effects 0.000 claims description 15
- 238000006073 displacement reaction Methods 0.000 claims description 14
- 230000004913 activation Effects 0.000 claims description 12
- 238000002347 injection Methods 0.000 claims description 11
- 239000007924 injection Substances 0.000 claims description 11
- 238000010191 image analysis Methods 0.000 claims description 10
- 230000000875 corresponding effect Effects 0.000 claims description 8
- 238000004590 computer program Methods 0.000 claims description 7
- 230000002596 correlated effect Effects 0.000 claims description 6
- 230000003213 activating effect Effects 0.000 claims 1
- 230000000694 effects Effects 0.000 abstract description 17
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 20
- 238000005406 washing Methods 0.000 description 12
- 230000008859 change Effects 0.000 description 9
- 230000008569 process Effects 0.000 description 9
- 238000004891 communication Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 7
- 238000011109 contamination Methods 0.000 description 6
- 239000000243 solution Substances 0.000 description 6
- 230000009471 action Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 239000010813 municipal solid waste Substances 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000010408 sweeping Methods 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 230000006698 induction Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000005096 rolling process Methods 0.000 description 1
- 238000007790 scraping Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000010998 test method Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- A—HUMAN NECESSITIES
- A47—FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
- A47L—DOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
- A47L11/00—Machines for cleaning floors, carpets, furniture, walls, or wall coverings
- A47L11/28—Floor-scrubbing machines, motor-driven
- A47L11/282—Floor-scrubbing machines, motor-driven having rotary tools
-
- A—HUMAN NECESSITIES
- A47—FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
- A47L—DOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
- A47L11/00—Machines for cleaning floors, carpets, furniture, walls, or wall coverings
- A47L11/24—Floor-sweeping machines, motor-driven
-
- A—HUMAN NECESSITIES
- A47—FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
- A47L—DOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
- A47L11/00—Machines for cleaning floors, carpets, furniture, walls, or wall coverings
- A47L11/29—Floor-scrubbing machines characterised by means for taking-up dirty liquid
- A47L11/30—Floor-scrubbing machines characterised by means for taking-up dirty liquid by suction
-
- A—HUMAN NECESSITIES
- A47—FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
- A47L—DOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
- A47L11/00—Machines for cleaning floors, carpets, furniture, walls, or wall coverings
- A47L11/40—Parts or details of machines not provided for in groups A47L11/02 - A47L11/38, or not restricted to one of these groups, e.g. handles, arrangements of switches, skirts, buffers, levers
-
- A—HUMAN NECESSITIES
- A47—FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
- A47L—DOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
- A47L11/00—Machines for cleaning floors, carpets, furniture, walls, or wall coverings
- A47L11/40—Parts or details of machines not provided for in groups A47L11/02 - A47L11/38, or not restricted to one of these groups, e.g. handles, arrangements of switches, skirts, buffers, levers
- A47L11/4002—Installations of electric equipment
- A47L11/4008—Arrangements of switches, indicators or the like
-
- A—HUMAN NECESSITIES
- A47—FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
- A47L—DOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
- A47L11/00—Machines for cleaning floors, carpets, furniture, walls, or wall coverings
- A47L11/40—Parts or details of machines not provided for in groups A47L11/02 - A47L11/38, or not restricted to one of these groups, e.g. handles, arrangements of switches, skirts, buffers, levers
- A47L11/4011—Regulation of the cleaning machine by electric means; Control systems and remote control systems therefor
-
- A—HUMAN NECESSITIES
- A47—FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
- A47L—DOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
- A47L11/00—Machines for cleaning floors, carpets, furniture, walls, or wall coverings
- A47L11/40—Parts or details of machines not provided for in groups A47L11/02 - A47L11/38, or not restricted to one of these groups, e.g. handles, arrangements of switches, skirts, buffers, levers
- A47L11/408—Means for supplying cleaning or surface treating agents
- A47L11/4088—Supply pumps; Spraying devices; Supply conduits
Definitions
- the present application relates to the field of smart home, in particular, to a cleaning device control method and device, a storage medium and an electronic device.
- liquid can be sprayed to the cleaning parts of the cleaning device, for example, water is automatically sprayed at a fixed frequency.
- control method of the cleaning equipment in the related art has the problem of poor cleaning effect because the sprayed liquid tends to remain on the ground.
- the purpose of the present application is to provide a control method and device for cleaning equipment, a storage medium and an electronic device, so as to at least solve the problem of poor cleaning effect caused by water stains remaining on the ground in the control method of cleaning equipment in the related art.
- a cleaning device control method including: starting the cleaning device in response to the acquired starting instruction; determining the current moving direction of the cleaning device; In the case of the backward direction, the liquid spraying part of the cleaning device is controlled to stop spraying liquid to the cleaning part of the cleaning device.
- the determining the current moving direction of the cleaning device includes: detecting the moving direction through a detection component on the cleaning device.
- the detection of the moving direction by the detection component on the cleaning device includes: detecting the rotation direction of the wheels of the cleaning device through a Hall sensor, and determining the rotation direction matching the rotation direction.
- the moving direction, and/or, detecting the displacement direction of the handle assembly of the cleaning device through a Hall sensor; according to the displacement direction of the handle assembly of the cleaning device, the moving direction is determined.
- the detection of the moving direction by the detection component on the cleaning device includes: collecting images through the first image acquisition device of the cleaning device to obtain multiple captured images; according to reference The position of the object in the plurality of captured images changes, and the moving direction is determined.
- the determining the current moving direction of the cleaning device includes: generating a cleaning instruction according to the area information of the target cleaning area, wherein the cleaning instruction is used to instruct the cleaning device to clean the A moving path of the target cleaning area; according to the cleaning instruction, the moving direction of the cleaning equipment moving along the moving path is determined.
- the method further includes: when the moving direction is the forward direction, controlling the liquid spraying member of the cleaning device to A liquid is sprayed to cleaning elements of the cleaning device at a target frequency.
- the controlling the liquid spraying part of the cleaning device to spray liquid to the cleaning part of the cleaning device according to the target frequency includes: in the current liquid spraying period, using the second image acquisition device to Image acquisition is performed on the area to be cleaned at the front end of the cleaning device to obtain a target acquisition image; image analysis is performed on the target acquisition image to obtain the dirt parameter corresponding to the area to be cleaned, wherein the image analysis result is used to represent The degree of dirtiness of the area to be cleaned; according to the dirt parameter, determine the liquid spraying volume of the liquid spraying member, wherein the liquid spraying volume is positively correlated with the dirtiness degree represented by the dirty parameter; The liquid spraying part is controlled to spray liquid to the cleaning part according to the liquid spraying amount.
- controlling the liquid spraying part of the cleaning device to spray liquid to the cleaning part of the cleaning device according to a target frequency includes: sending an on command to a travel switch of the cleaning device, wherein, The travel switch is a control switch of the liquid spraying part; in response to the on command, the travel switch is turned on to turn on the liquid spraying part, wherein the liquid spraying part is turned on according to The target frequency sprays liquid to the cleaning element.
- a cleaning device control device including: a start unit, configured to start the cleaning device in response to the acquired start instruction; a determination unit, configured to determine the The current moving direction of the cleaning device; a first control unit configured to control the liquid spraying part of the cleaning device to stop spraying liquid on the cleaning part of the cleaning device when the moving direction is a backward direction.
- the determination unit includes: a detection module, configured to detect the moving direction through a detection component on the cleaning device.
- the detection module includes: a first determination submodule, configured to detect the rotation direction of the wheels of the cleaning device through a Hall sensor, and determine the movement direction matching the rotation direction;
- the second determining submodule is used to detect the displacement direction of the handle assembly of the cleaning device through the Hall sensor;
- the third determining submodule is used to determine the moving direction according to the displacement direction of the handle assembly of the cleaning device.
- the detection module includes: an acquisition submodule, configured to acquire multiple images through the first image acquisition device of the cleaning device; a fourth determination submodule, configured to The moving direction is determined with reference to position changes of the object in the plurality of captured images.
- the determining unit includes: a generating module, configured to generate a cleaning instruction according to area information of a target cleaning area, wherein the cleaning instruction is used to instruct the cleaning device to clean the target cleaning area a moving path; a first determining module, configured to determine the moving direction of the cleaning device along the moving path according to the cleaning instruction.
- the apparatus further includes: a second control unit, configured to, after the determination of the current moving direction of the cleaning device, control the cleaning device if the moving direction is the forward direction.
- the liquid spraying part of the cleaning device sprays liquid to the cleaning part of the cleaning device at a target frequency.
- the second control unit includes: a collection module, configured to use the second image collection device to collect images of the area to be cleaned at the front end of the cleaning device during the current water spray cycle to obtain the target Collecting an image; an analysis module, configured to perform image analysis on the collected image of the target to obtain a dirt parameter corresponding to the area to be cleaned, wherein the image analysis result is used to indicate the degree of dirt of the area to be cleaned ;
- the second determination module is used to determine the liquid injection volume of the liquid injection device according to the dirt parameter, wherein the liquid injection volume is positively correlated with the degree of dirt indicated by the dirt parameter; the control module , for controlling the water spraying member to spray liquid to the cleaning member according to the liquid spraying amount.
- the second control unit includes: a sending module, configured to send an on command to a travel switch of the cleaning device, wherein the travel switch is a control switch of the liquid spraying element; A switch-on module, configured to switch on the travel switch in response to the switch-on command, so as to switch on the liquid spraying part, wherein the liquid spraying part is turned on to the cleaning device according to the target frequency parts sprayed with liquid.
- a computer-readable storage medium is also provided, and a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute the above-mentioned interface test when running method.
- an electronic device including a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the above-mentioned processor executes the above-mentioned The test method for the interface.
- the cleaning device is started by responding to the obtained startup command by stopping the liquid spray during the process of pulling the cleaning device back; the current moving direction of the cleaning device is determined; the moving direction is the backward direction
- the liquid spraying part of the cleaning device to stop spraying liquid to the cleaning part of the cleaning device
- due to the structural characteristics of the cleaning device, that is, the front end is not provided with a scraper, and the spraying of liquid is stopped during the pulling of the cleaning device can avoid the liquid remaining on the ground squeezed out between the cleaning part and the ground when pulling back, thereby achieving the purpose of reducing the liquid remaining on the ground, and can achieve the technical effect of improving the cleaning effect of the ground, and then solve the control of the cleaning equipment in the related technology
- the method has the problem of poor cleaning effect because the sprayed liquid tends to remain on the ground.
- FIG. 1 is a schematic diagram of a hardware environment of an optional cleaning device control method according to an embodiment of the present application
- FIG. 2 is a schematic flowchart of an optional control method for cleaning equipment according to an embodiment of the present application
- Fig. 3 is a front view of an optional washing machine according to an embodiment of the present application.
- Fig. 4 is a side view of an optional scrubber according to an embodiment of the present application.
- Fig. 5 is a structural block diagram of an optional control device for cleaning equipment according to an embodiment of the present application.
- Fig. 6 is a structural block diagram of an optional electronic device according to an embodiment of the present application.
- a method for controlling a cleaning device is provided.
- the above cleaning device control method may be applied to a hardware environment composed of a terminal device 102 , a cleaning device 104 and a server 106 as shown in FIG. 1 .
- the terminal device 102 can be connected to the cleaning device 104 and/or server 106 (for example, an Internet of Things platform or a cloud server) through a network to control the cleaning device 104, for example, to communicate with the cleaning device 104 Bind and configure the cleaning function of the cleaning device 104 .
- server 106 for example, an Internet of Things platform or a cloud server
- the cleaning device 104 can include a host and a base (for example, a sweeping machine and a base station, a washing machine and a base), and the host and the base can be connected through a network to determine the current state of the opposite end (for example, power status, working status, etc.) , location information, etc.).
- a host and a base for example, a sweeping machine and a base station, a washing machine and a base
- the host and the base can be connected through a network to determine the current state of the opposite end (for example, power status, working status, etc.) , location information, etc.).
- the foregoing network may include but not limited to at least one of the following: a wired network and a wireless network.
- the above-mentioned wired network may include but not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the above-mentioned wireless network may include but not limited to at least one of the following: WIFI (Wireless Fidelity, Wireless Fidelity), bluetooth, infrared.
- WIFI Wireless Fidelity, Wireless Fidelity
- the network used by the terminal device 102 to communicate with the cleaning device 104 and/or the server 106 and the network used by the cleaning device 104 to communicate with the server 106 may be the same or different.
- the terminal device 102 may not be limited to a PC, a mobile phone, a tablet computer, etc.
- the cleaning device 104 may include but not limited to: a self-cleaning robot, for example, an automatic mop washing robot, a sweeping robot, etc.
- the server 106 may be a server of an Internet of Things platform .
- the cleaning device control method in this embodiment of the present application may be executed solely by the terminal device 102 , the cleaning device 104 or the server 106 , or jointly executed by at least two of the terminal device 102 , the cleaning device 104 and the server 106 .
- the execution of the cleaning device control method of the embodiment of the present application by the terminal device 102 or the cleaning device 104 may also be performed by a client installed on it.
- FIG. 2 is a schematic flowchart of an optional cleaning device control method according to the embodiment of the present application. As shown in FIG. 2 , the The flow of the method may include the following steps:
- Step S202 starting the cleaning device in response to the acquired starting instruction.
- the cleaning device control method in this embodiment may be applied to a scene where the cleaning device is used for area cleaning, and the area cleaned by the cleaning device is a target cleaning area.
- the above-mentioned cleaning equipment can be a hand-push floor washing machine, an intelligent floor washing machine, an intelligent cleaning machine integrating washing and sweeping, or other cleaning equipment with an area cleaning function.
- the above-mentioned target cleaning area can be an indoor area in a family , it can also be other areas such as offices, factory workshops, or other areas that can be cleaned by cleaning equipment. This is not limited in this embodiment.
- the cleaning device can first be switched on.
- Starting the cleaning device may be triggered by a starting instruction, and the cleaning device may obtain the starting instruction, and in response to the starting instruction, start the cleaning function of the cleaning device.
- the power supply of the cleaning equipment (the power supply may be a battery pack of the cleaning equipment) may be switched on, and the cleaning element of the cleaning equipment is controlled to be in an open state.
- Above-mentioned cleaning piece can be rolling brush, mop head, also can be other parts that are used for area cleaning.
- the above startup instruction can be obtained in various ways.
- a user may perform a trigger operation for triggering an activation instruction on the cleaning device.
- the cleaning device may generate an activation instruction in response to the detected trigger operation.
- the user may perform a trigger operation on a specific area or a specific button in the device operation interface of the terminal device associated with the cleaning device to trigger the generation of the activation instruction, and send the generated activation instruction to the cleaning device through the network.
- the cleaning device may receive the activation instruction.
- the activation instruction can also be obtained in other ways.
- the user can also trigger the sending of the activation instruction to the cleaning device by operating a button or corresponding area on the remote control device, and the cleaning device can receive the activation instruction sent by the remote control device.
- the above-mentioned triggering operation may include but not limited to at least one of the following: a click operation, a double-tap operation, a long press operation, and a slide operation.
- a click operation a double-tap operation
- a long press operation a slide operation.
- a slide operation there is no limitation on the manner of acquiring the startup instruction.
- the structure of the washing machine can be shown in Figure 3 and Figure 4,
- Figure 3 is a front view of the washing machine
- Figure 4 is a side view of the washing machine.
- the user can directly click the start button on the handle of the scrubber, or click the start button on the touch screen to trigger and generate a start command to start the scrubber.
- the user can send an activation instruction to the scrubber by clicking the start button on the device operation interface of the mobile terminal associated with the scrubber to start the scrubber.
- Step S204 determining the current moving direction of the cleaning device.
- the cleaning equipment can adopt a structure in which the cover plate of the cleaning part is off the ground and no scraping strip is arranged at the front end of the cleaning part. Due to the above-mentioned structure, when the cleaning element is pulled back, the liquid squeezed out from the cleaning element and the ground will remain on the ground and cannot be sucked into the cleaning device, and the liquid remaining on the ground will affect the cleaning effect of the cleaning element.
- the liquid extruded from the cleaning element and the floor may be the liquid sprayed on the cleaning element by the liquid spraying element, for example, clear water, water added with cleaning liquid, etc., which is not limited in this embodiment.
- the cover plate of the roller brush is off the ground, and there is no scraper at the front end, so that the residual water stains squeezed out between the roller brush and the ground cannot be cleaned when the roller brush is pulled back, which affects the roller. Brush cleaning effect.
- the liquid spraying part of the cleaning device can be controlled to spray liquid according to the moving direction of the cleaning device. While the cleaning equipment is moving, the current moving direction of the cleaning equipment can be determined, and different spraying strategies can be used for different moving directions.
- the current moving direction of the cleaning device can be determined through the received moving information.
- the above-mentioned movement information may be movement information obtained by the cleaning device itself (for example, a detection component on the cleaning device), or may be movement information obtained by a device associated with the cleaning device (for example, an associated detection component), It can also be mobile information obtained by other means. In this embodiment, there is no limitation on the manner of acquiring the mobile information.
- Step S206 if the moving direction is the backward direction, control the liquid spraying part of the cleaning device to stop spraying liquid to the cleaning part of the cleaning device.
- the liquid spraying part of the cleaning device can be controlled to spray liquid to the cleaning part of the cleaning device, so that the target cleaning area can be cleaned.
- the above-mentioned liquid spraying part can be a water distributor, a liquid distributor or other parts with the function of spraying liquid, and the sprayed liquid can be clean water, clean water with cleaning liquid, etc.
- the liquid spraying part can be located on the top of the cleaning part, also can be located on the rear side or the front side of the cleaning part, and can also be located in other positions that can spray liquid to the cleaning part without affecting the movement of the cleaning part.
- the liquid spraying part can spray liquid to the top of the cleaning part, it can spray liquid to the front or rear side of the cleaning part, or it can spray liquid to the top of the cleaning part.
- the liquid is sprayed to the bottom of the cleaning piece, or sprayed to other positions of the cleaning piece.
- the position where the liquid spraying member sprays liquid to the cleaning member is not limited.
- the water spraying part can be controlled not to spray liquid on the cleaning part. If the moving direction of the cleaning device changes back and forth in a short time, in order to ensure the floor cleaning effect, the liquid spraying part can be controlled not to spray liquid to the cleaning part until the time the cleaning device moves forward exceeds the set time threshold (for example, 1s, 2s, etc.).
- the set time threshold for example, 1s, 2s, etc.
- controlling the water spraying of the ground brush by detecting the forward push and back pull action of the scrubber user can reduce the water content on the roller brush during back pulling, thereby improving the situation of water stains remaining on the ground during the back pulling process.
- determining the current moving direction of the cleaning device includes:
- one or more detection components may be arranged on the cleaning device, and the above one or more detection components may be used to detect the moving direction of the cleaning device. If there is only one detection component on the cleaning device, the moving direction detected by the detection component may be determined as the current moving direction of the cleaning device. If multiple detection components are arranged on the cleaning device, the multiple detection components can detect multiple moving directions, analyze the multiple moving directions, and determine the current moving direction of the cleaning device.
- the moving direction with the most occurrences may be determined as the current moving direction of the cleaning device.
- a plurality of detection components can adopt the setting mode of the main and standby components. If the main detection component detects the moving direction, the moving direction detected by the main detecting component can be determined as the current moving direction of the cleaning device; otherwise, the standby The moving direction detected by the detection component is determined as the current moving direction of the cleaning device. This is not limited in this embodiment.
- a detection component may be arranged at the front end of the cleaning device to detect movement information of the cleaning device, and judge whether the moving direction of the cleaning device is a forward direction or a backward direction based on the detected movement information.
- the movement information of the cleaning device is detected by the detection component on the cleaning device, so as to obtain the moving direction of the cleaning device, without linkage with other devices, and the convenience of determining the moving direction can be improved.
- detecting the moving direction through a detection component on the cleaning device includes:
- the moving direction of the cleaning device can be determined based on the rotation direction of the scroll wheel of the cleaning device. For example, when the scroll wheel rotates counterclockwise, the moving direction of the cleaning device is the forward direction, and the scroll wheel When the clockwise direction is turned, the moving direction of the cleaning device is the backward direction.
- the detection component may include a Hall sensor.
- the forward pushing and pulling back actions of the scrubber can be detected by an acceleration sensor or other forms of Hall sensors.
- the number of the Hall sensor can be one or more, and it can be arranged on at least one side of the scroll wheel of the cleaning device, and multiple trigger points can be set on the corresponding side of the scroll wheel.
- the change of the voltage can be calculated by detecting the change of the magnetic induction intensity, and the rotation direction of the scroll wheel can be detected by detecting the change of the output voltage. , and then determine the moving direction of the cleaning equipment.
- the rotation direction of the scroll wheel can be detected by the first Hall sensor and the second Hall sensor.
- the above-mentioned two Hall sensors can be arranged orthogonally on the same port on the cleaning device, then the phase difference between the voltage signal output by the first Hall sensor and the voltage signal of the second Hall sensor is 90 degrees. If the phase of the voltage signal output by the first Hall sensor is ahead of the phase of the voltage signal output by the second Hall sensor by 90 degrees, it can be determined that the rotation direction of the scroll wheel is clockwise. If the phase of the voltage signal output by the second Hall sensor is 90 degrees ahead of the phase of the voltage signal output by the first Hall sensor, it can be determined that the rotation direction of the scroll wheel is counterclockwise.
- a Hall sensor can be arranged on the handle assembly of the cleaning device, and the displacement direction of the handle assembly of the cleaning device can be detected by the Hall sensor, so as to determine the moving direction of the cleaning device.
- the displacement direction of the handle assembly is consistent with the moving direction of the cleaning equipment.
- the displacement direction of the handle assembly can be judged according to the Hall potential output by the Hall sensor, and then the moving direction of the cleaning equipment can be determined. .
- the hall sensor detects the rotation direction of the scroll wheel or the displacement direction of the handle assembly, and then determines the moving direction of the cleaning device, which can improve the accuracy of detecting the moving direction of the cleaning device.
- detecting the moving direction through a detection component on the cleaning device includes:
- the moving direction of the cleaning device can be determined based on the position change of the cleaning device.
- the image acquisition device in the room where the target cleaning area is located performs image acquisition to determine the direction of the position change of the cleaning device in the target cleaning area. If this direction is consistent with the direction from the front end of the cleaning device to the rear end, the movement of the cleaning device can be determined The direction is the backward direction, and if the direction is consistent with the direction from the rear end to the front end of the cleaning device, it can be determined that the moving direction of the cleaning device is the forward direction.
- the moving direction of the cleaning device may be determined through the captured image captured by the first image capturing device on the cleaning device.
- the above detection component may include the first image acquisition device.
- the first image acquisition device can be arranged at the front end, both sides, or other positions of the cleaning device, and it can be a camera, a motion camera or other devices capable of continuously collecting images. In this embodiment, there is no limitation on the type of the installation position of the first image acquisition device.
- the first image acquisition device can perform multiple image acquisitions to obtain multiple continuous acquisition images, and the frequency of image acquisition can be preconfigured, for example, 10 images are acquired per second, and multiple continuous acquisition images can be acquired within 1 second Image.
- the moving direction of the cleaning equipment is determined by analyzing multiple consecutive captured images. Determining the moving direction of the cleaning device may be determined based on position changes of the reference object in multiple consecutive captured images.
- the aforementioned reference object may be an object in a plurality of consecutive captured images, for example, an object in a static state such as a shoe rack, a trash can, a landmark object on a wall, and the like.
- the position information of the reference object in multiple consecutive captured images can be determined; based on the position changes of the reference object in multiple consecutive captured images (or, combined with the setting position) to determine the moving direction of the cleaning equipment.
- the position change of the reference object in the captured image may be a change of the position area occupied by the reference object in the captured image.
- the first image acquisition device is arranged at the front end of the cleaning device.
- the movement of the cleaning device can be determined.
- the direction is the forward direction, and if the area of the position area occupied by the reference object gradually shrinks, it can be determined that the moving direction of the cleaning device is the backward direction.
- the first image acquisition device is arranged on both sides of the cleaning device. In multiple consecutive captured images, if the position area occupied by the reference object moves from left to right, it can be determined that the cleaning device The moving direction of the cleaning device is the forward direction, and if the position area occupied by the reference object moves from right to left, it can be determined that the moving direction of the cleaning device is the backward direction.
- the first image acquisition device can be an image acquisition device that rotates following the reference object, and the moving direction of the cleaning device can be determined according to the relative position of the reference object and the cleaning device and the rotation direction of the first image acquisition device. If the reference object disappears from the acquired image after several consecutive image acquisitions, the reference object can be re-determined.
- the moving direction of the cleaning device is determined with reference to the position changes of the object in multiple captured images, which can improve the accuracy and convenience of determining the moving direction of the cleaning device.
- determining the current moving direction of the cleaning device includes:
- the cleaning device is a device for cleaning the target cleaning area.
- the moving path of the cleaning equipment can be planned in advance, and the cleaning equipment can be controlled to perform area cleaning along the moving path through cleaning instructions.
- the cleaning instruction may indicate the moving direction of the cleaning device, the cleaning operation to be performed, and the like. Therefore, the moving direction of the cleaning device can be determined based on the cleaning instruction.
- the area information of the target cleaning area can be stored in the cleaning device, which can be an area map of the target cleaning area, in which the range of the target cleaning area, the position of obstacles in the target cleaning area, and the virtual restricted area can be identified.
- a cleaning instruction can be generated, and the cleaning instruction can be used to instruct the cleaning equipment to clean the moving path of the target cleaning area, which can include the moving direction of the cleaning equipment, the cleaning operation to be performed, and the cleaning frequency (It can be the number of repeated cleaning along the cleaning path), etc.
- the manner in which the cleaning equipment cleans the area along the movement path may be determined, including the movement manner, so that the moving direction of the cleaning equipment may be determined according to the movement manner of the cleaning equipment.
- the cleaning device may be a device for automatically performing area cleaning, which may automatically perform area cleaning on the target cleaning area in response to the above cleaning instruction.
- the cleaning device can also be a device for manually cleaning the area.
- the cleaning instruction is generated according to the area information of the cleaning area, and the moving direction of the cleaning device is determined according to the cleaning instruction, which can improve the flexibility and convenience of determining the moving direction of the cleaning device.
- the above method further includes:
- the moving direction of the cleaning device is the forward direction, it can be controlled to allow the liquid spraying part of the cleaning device to spray liquid to the cleaning part of the cleaning device.
- the liquid spraying part may be one or more ways for the liquid spraying part to spray liquid to the cleaning part, for example, fixed-point spraying, that is, spraying liquid based on a liquid spraying instruction.
- the liquid spraying member may also spray liquid to the cleaning member according to a target frequency, and the target frequency may be a preset liquid spraying frequency, or a liquid spraying frequency set by a user.
- the user can set the liquid spraying rate of the liquid spraying member after the cleaning device is turned on.
- the current spraying frequency can be displayed on the touch screen of the cleaning device, and the user can set the spraying frequency by clicking on the touch screen, and set the spraying frequency as the target frequency.
- the cleaning device can spray liquid according to the target frequency.
- the washing machine can be controlled by the program to spray water at a reasonable frequency during the forward process.
- water can be sprayed to the roller brush at a frequency of 30 milliliters per minute. If the user thinks that the cleaning area is dirty, the water spray frequency can be set to 50 milliliters per minute on the touch screen of the scrubber, and the scrubber will spray water to the roller brush at a frequency of 50 milliliters per minute.
- controlling the liquid spraying part of the cleaning device to spray liquid to the cleaning part of the cleaning device according to a target frequency includes:
- the spraying volume of the liquid spraying part of the cleaning device may be fixed, that is, the liquid spraying volume of each spraying liquid is sprayed according to the fixed liquid spraying volume.
- the degree of dirt above can be obtained by analyzing the collected images collected by the second image collection device at the front end of the cleaning device.
- the above-mentioned second image acquisition device may be a camera, a motion camera or other devices with an image acquisition function arranged on the cover plate of the cleaning device or other front positions.
- the second image acquisition device may be the same acquisition device as the first image acquisition device, or may be a different acquisition device from the first image acquisition device. This is not limited in this embodiment.
- the second image acquisition device can be used to collect images of the area to be cleaned at the front end of the cleaning device to obtain the target image.
- the collected image of the target can be analyzed to determine the dirt parameter used to represent the dirt degree of the area to be cleaned.
- image analysis can be performed on the target acquisition image to obtain a binary image of the target acquisition image.
- the black pixels in the binary image represent the dirty positions of the area to be cleaned
- the white pixels represent the clean positions of the area to be cleaned.
- the dirt parameter of the area to be cleaned can be determined. The larger the ratio of white pixels to black pixels in the binary image, the greater the dirt parameter of the area to be cleaned , the more soiled the area to be cleaned is.
- the liquid spray volume of the liquid spray element can be determined according to the dirty parameters, and the liquid spray element can be controlled to spray liquid to the cleaning element in the current liquid spray cycle according to the determined liquid spray volume.
- the amount of liquid sprayed by the liquid spraying parts is positively correlated with the degree of dirt indicated by the dirt parameter, that is, when the dirt parameter is greater, the degree of dirt in the area to be cleaned is higher, and the amount of liquid sprayed by the liquid spraying parts is higher. big.
- the amount of liquid sprayed by the liquid spraying member is controlled according to the degree of dirt on the ground to be cleaned, so as to improve the cleaning effect of area cleaning and reduce liquid residue.
- controlling the liquid spraying part of the cleaning device to spray liquid to the cleaning part of the cleaning device according to a target frequency includes:
- the liquid spraying member in order to improve the cleaning flexibility of the cleaning device, can be controlled to spray liquid through the travel switch.
- the above-mentioned travel switch can be arranged at the liquid spraying port of the liquid spraying part, and can control the liquid spraying part to spray liquid or stop liquid spraying according to the moving direction of the cleaning equipment.
- the cleaning device can determine whether the liquid spraying part needs to spray liquid on the cleaning part according to the moving direction of the cleaning device, and if necessary, can send an on command to the travel switch.
- the limit switch can be opened in response to a turn-on command to turn on the liquid spraying part, so that the liquid spraying part sprays liquid according to a set spraying method (for example, spraying liquid according to a fixed frequency).
- a disconnection command can be sent to the travel switch.
- the travel switch can perform a disconnection operation in response to a disconnection command to disconnect the liquid spraying part and not spray liquid to the cleaning part.
- Fig. 5 is a structural block diagram of an optional cleaning device control device according to an embodiment of the present application. As shown in Fig. 5, the device may include:
- a determining unit 504 connected to the starting unit 502, for determining the current moving direction of the cleaning device
- the first control unit 506 is connected with the determination unit 504 and is used for controlling the liquid spraying part of the cleaning device to stop spraying liquid on the cleaning part of the cleaning device when the moving direction is the backward direction.
- the starting unit 502 in this embodiment can be used to perform the above step S202
- the determining unit 504 in this embodiment can be used to perform the above step S204
- the first control unit 506 in this embodiment can be used to Execute the above step S206.
- the invention solves the problem of poor cleaning effect caused by the sprayed liquid easily remaining on the ground in the control method of the cleaning equipment in the related art, and improves the ground cleaning effect.
- the determination unit includes:
- the detection module is used to detect the moving direction through the detection part on the cleaning device.
- the detection module includes:
- the first determination sub-module is used to detect the rotation direction of the scroll wheel of the cleaning device through the Hall sensor, and determine the moving direction matching the rotation direction;
- the second determination sub-module is used to detect the displacement direction of the handle of the cleaning device through the Hall sensor;
- the third determining submodule is used to determine the moving direction according to the displacement direction of the handle of the cleaning device.
- the detection module includes:
- the collection sub-module is used to collect images through the first image collection device of the cleaning device to obtain multiple collection images;
- the fourth determination sub-module is used to determine the moving direction according to the position changes of the reference object in the multiple captured images.
- the determination unit includes:
- a generation module configured to generate a cleaning instruction according to the area information of the target cleaning area, wherein the cleaning instruction is used to instruct the cleaning device to clean the moving path of the target cleaning area;
- the first determining module is configured to determine the moving direction of the cleaning device along the moving path according to the cleaning instruction.
- the above-mentioned device also includes:
- the second control unit is configured to control the water spraying part of the cleaning device to spray liquid to the cleaning part of the cleaning device according to a target frequency when the moving direction is the forward direction after determining the current moving direction of the cleaning device.
- the second control unit includes:
- the collection module is used to collect the image of the area to be cleaned at the front end of the cleaning device through the second image collection device in the current liquid spray cycle, so as to obtain the target collection image;
- the analysis module is used to perform image analysis on the target acquisition image to obtain the dirt parameters corresponding to the area to be cleaned, wherein the image analysis result is used to indicate the degree of dirt in the area to be cleaned;
- the second determination module is used to determine the liquid injection volume of the liquid injection part according to the contamination parameter, wherein the liquid injection volume is positively correlated with the degree of contamination indicated by the contamination parameter;
- the control module is used to control the liquid spraying part to spray liquid to the cleaning part according to the water spraying amount.
- the second control unit includes:
- a sending module configured to send an on command to a travel switch of the cleaning device, wherein the travel switch is a control switch of the liquid spraying member;
- a receiving module configured to respond to the switching command, and turn on the travel switch to turn on the liquid spraying element, wherein the liquid spraying element is turned on to the cleaning element according to the target frequency Spray liquid.
- the above modules can run in the hardware environment shown in FIG. 1 , and can be implemented by software or by hardware, wherein the hardware environment includes a network environment.
- a storage medium is also provided.
- the foregoing storage medium may be used to execute the program code of any one of the foregoing cleaning device control methods in the embodiments of the present application.
- the foregoing storage medium may be located on at least one network device among the plurality of network devices in the network shown in the foregoing embodiments.
- the storage medium is configured to store program codes for performing the following steps:
- the above-mentioned storage medium may include, but not limited to, various media capable of storing program codes such as USB flash drive, ROM, RAM, removable hard disk, magnetic disk, or optical disk.
- an electronic device for implementing the above cleaning device control method is also provided, and the electronic device may be a server, a terminal, or a combination thereof.
- Fig. 6 is a structural block diagram of an optional electronic device according to an embodiment of the present application. 604 and memory 606 complete mutual communication through communication bus 608, wherein,
- memory 606 for storing computer programs
- the communication bus may be a PCI (Peripheral Component Interconnect, Peripheral Component Interconnect Standard) bus, or an EISA (Extended Industry Standard Architecture, Extended Industry Standard Architecture) bus, etc.
- the communication bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is used in FIG. 6 , but it does not mean that there is only one bus or one type of bus.
- the communication interface is used for communication between the electronic device and other devices.
- the above-mentioned memory may include RAM, and may also include non-volatile memory (non-volatile memory), for example, at least one disk memory.
- non-volatile memory non-volatile memory
- the memory may also be at least one storage device located away from the aforementioned processor.
- the memory 606 may include, but is not limited to, the starting unit 502, the determining unit 504, and the first control unit 506 in the control device of the above-mentioned device. In addition, it may also include but not limited to other module units in the control device of the above equipment, which will not be described in detail in this example.
- processor can be general-purpose processor, can include but not limited to: CPU (Central Processing Unit, central processing unit), NP (Network Processor, network processor) etc.; Can also be DSP (Digital Signal Processing, digital signal processor ), ASIC (Application Specific Integrated Circuit, application specific integrated circuit), FPGA (Field-Programmable Gate Array, field programmable gate array) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
- CPU Central Processing Unit, central processing unit
- NP Network Processor, network processor
- DSP Digital Signal Processing, digital signal processor
- ASIC Application Specific Integrated Circuit
- FPGA Field-Programmable Gate Array, field programmable gate array
- other programmable logic devices discrete gate or transistor logic devices, discrete hardware components.
- the device implementing the control of the above-mentioned cleaning device can be a terminal device, and the terminal device can be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer , handheld computers and mobile Internet devices (Mobile Internet Devices, MID), PAD and other terminal equipment.
- FIG. 6 does not limit the structure of the above-mentioned electronic device.
- the electronic device may also include more or fewer components than those shown in FIG. 6 (such as a network interface, a display device, etc.), or have a different configuration from that shown in FIG. 6 .
- the integrated units in the above embodiments are realized in the form of software function units and sold or used as independent products, they can be stored in the above computer-readable storage medium.
- the technical solution of the present application is essentially or part of the contribution to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium.
- Several instructions are included to make one or more computer devices (which may be personal computers, servers or network devices, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
- the disclosed client can be implemented in other ways.
- the device embodiments described above are only illustrative, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or can be Integrate into another system, or some features may be ignored, or not implemented.
- the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of units or modules may be in electrical or other forms.
- 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 distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution provided in this embodiment.
- each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
- the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
Landscapes
- Electric Vacuum Cleaner (AREA)
Abstract
A control method and apparatus for a cleaning device (104), a storage medium, and an electronic apparatus. The control method for the cleaning device (104) comprises: starting up the cleaning device (104) in response to an obtained start-up instruction (S202); determining a current moving direction of the cleaning device (104) (S204); when the moving direction is a retreating direction, controlling a liquid spraying member of the cleaning device (104) to stop spraying a liquid on a cleaning member of the cleaning device (104) (S206). The problem of a poor cleaning effect due to a liquid sprayed by the cleaning device (104) being prone to being left on the ground is solved.
Description
本公开要求如下专利申请的优先权:于2022年1月10日提交中国专利局、申请号为202210022515.6、发明名称为“清洁设备的控制方法及装置、存储介质及电子装置”的中国专利申请,上述专利申请的全部内容通过引用结合在本公开中。This disclosure claims the priority of the following patent application: a Chinese patent application submitted to the China Patent Office on January 10, 2022, with the application number 202210022515.6, and the title of the invention is "Control method and device, storage medium and electronic device for cleaning equipment", The entire contents of the aforementioned patent applications are incorporated by reference in this disclosure.
本申请涉及智能家居领域,具体而言,涉及一种清洁设备的控制方法及装置、存储介质及电子装置。The present application relates to the field of smart home, in particular, to a cleaning device control method and device, a storage medium and an electronic device.
目前,在清洁设备(例如,洗地机)在进行区域清洁的过程中,为了有效地将区域清理干净,可以向清洁设备的清洁件进行喷洒液体,例如,以固定频率自动喷水。At present, in the process of cleaning an area by a cleaning device (for example, a floor scrubber), in order to effectively clean up the area, liquid can be sprayed to the cleaning parts of the cleaning device, for example, water is automatically sprayed at a fixed frequency.
然而,对于上述自动喷洒液体的方式,如果喷洒的液体无法被及时使用,则清洁件与地面发生挤压时会将液体残留在地面上,从而导致清洁不完全,区域清洁的效果较差。However, for the above-mentioned method of automatically spraying liquid, if the sprayed liquid cannot be used in time, the liquid will remain on the ground when the cleaning element is pressed against the ground, resulting in incomplete cleaning and poor area cleaning effect.
由此可见,相关技术中的清洁设备的控制方法,存在由于喷洒的液体易残留在地面导致的清洁效果差的问题。It can be seen that the control method of the cleaning equipment in the related art has the problem of poor cleaning effect because the sprayed liquid tends to remain on the ground.
【发明内容】【Content of invention】
本申请的目的在于提供一种清洁设备的控制方法及装置、存储介质及电子装置,以至少解决相关技术中的清洁设备的控制方法存在由于水渍易残留在地面导致的清洁效果差的问题。The purpose of the present application is to provide a control method and device for cleaning equipment, a storage medium and an electronic device, so as to at least solve the problem of poor cleaning effect caused by water stains remaining on the ground in the control method of cleaning equipment in the related art.
本申请的目的是通过以下技术方案实现:The purpose of this application is to realize through the following technical solutions:
根据本申请实施例的一个方面,提供了一种清洁设备的控制方法,包括:响应于获取到的启动指令,启动所述清洁设备;确定所述清洁设备当前的移动方向;在所述移动方向为后退方向的情况下,控制所述清洁设备 的喷液件停止向所述清洁设备的清洁件喷洒液体。According to an aspect of an embodiment of the present application, there is provided a cleaning device control method, including: starting the cleaning device in response to the acquired starting instruction; determining the current moving direction of the cleaning device; In the case of the backward direction, the liquid spraying part of the cleaning device is controlled to stop spraying liquid to the cleaning part of the cleaning device.
在一个示例性实施例中,所述确定所述清洁设备当前的移动方向,包括:通过所述清洁设备上的检测部件检测所述移动方向。In an exemplary embodiment, the determining the current moving direction of the cleaning device includes: detecting the moving direction through a detection component on the cleaning device.
在一个示例性实施例中所述通过所述清洁设备上的检测部件检测所述移动方向,包括:通过霍尔传感器检测所述清洁设备的车轮的转动方向,确定与所述转动方向匹配的所述移动方向,和/或,通过霍尔传感器检测所述清洁设备的手柄组件的位移方向;根据所述清洁设备的手柄组件的位移方向,确定所述移动方向。In an exemplary embodiment, the detection of the moving direction by the detection component on the cleaning device includes: detecting the rotation direction of the wheels of the cleaning device through a Hall sensor, and determining the rotation direction matching the rotation direction. The moving direction, and/or, detecting the displacement direction of the handle assembly of the cleaning device through a Hall sensor; according to the displacement direction of the handle assembly of the cleaning device, the moving direction is determined.
在一个示例性实施例中,所述通过所述清洁设备上的检测部件检测所述移动方向,包括:通过所述清洁设备的第一图像采集设备进行图像采集,得到多张采集图像;根据参考对象在所述多张采集图像中的位置变化,确定所述移动方向。In an exemplary embodiment, the detection of the moving direction by the detection component on the cleaning device includes: collecting images through the first image acquisition device of the cleaning device to obtain multiple captured images; according to reference The position of the object in the plurality of captured images changes, and the moving direction is determined.
在一个示例性实施例中,所述确定所述清洁设备当前的移动方向,包括:根据目标清洁区域的区域信息,生成清洁指令,其中,所述清洁指令用于指示所述清洁设备清洁所述目标清洁区域的移动路径;根据所述清洁指令,确定所述清洁设备沿着所述移动路径进行移动的所述移动方向。In an exemplary embodiment, the determining the current moving direction of the cleaning device includes: generating a cleaning instruction according to the area information of the target cleaning area, wherein the cleaning instruction is used to instruct the cleaning device to clean the A moving path of the target cleaning area; according to the cleaning instruction, the moving direction of the cleaning equipment moving along the moving path is determined.
在一个示例性实施例中,在所述确定所述清洁设备当前的移动方向之后,所述方法还包括:在所述移动方向为前进方向的情况下,控制所述清洁设备的喷液件按照目标频率向所述清洁设备的清洁件喷液。In an exemplary embodiment, after the determination of the current moving direction of the cleaning device, the method further includes: when the moving direction is the forward direction, controlling the liquid spraying member of the cleaning device to A liquid is sprayed to cleaning elements of the cleaning device at a target frequency.
在一个示例性实施例中,所述控制所述清洁设备的喷液件按照目标频率向所述清洁设备的清洁件喷液,包括:在当前喷液周期内,通过第二图像采集设备对所述清洁设备前端的待清洁区域进行图像采集,得到目标采集图像;对所述目标采集图像进行图像解析,得到与所述待清洁区域对应的脏污参数,其中,所述图像解析结果用于表示所述待清洁区域的脏污程度;根据所述脏污参数,确定所述喷液件的喷液量,其中,所述喷液量与所述脏污参数所表示的脏污程度正相关;控制所述喷液件按照所述喷液量向所述清洁件喷液。In an exemplary embodiment, the controlling the liquid spraying part of the cleaning device to spray liquid to the cleaning part of the cleaning device according to the target frequency includes: in the current liquid spraying period, using the second image acquisition device to Image acquisition is performed on the area to be cleaned at the front end of the cleaning device to obtain a target acquisition image; image analysis is performed on the target acquisition image to obtain the dirt parameter corresponding to the area to be cleaned, wherein the image analysis result is used to represent The degree of dirtiness of the area to be cleaned; according to the dirt parameter, determine the liquid spraying volume of the liquid spraying member, wherein the liquid spraying volume is positively correlated with the dirtiness degree represented by the dirty parameter; The liquid spraying part is controlled to spray liquid to the cleaning part according to the liquid spraying amount.
在一个示例性实施例中,所述控制所述清洁设备的喷液件按照目标频率向所述清洁设备的清洁件喷洒液体,包括:向所述清洁设备的行程开关 发送接通命令,其中,所述行程开关为所述喷液件的控制开关;响应于所述接通命令,接通所述行程开关,以接通所述喷液件,其中,接通后的所述喷液件按照所述目标频率向所述清洁件喷洒液体。In an exemplary embodiment, controlling the liquid spraying part of the cleaning device to spray liquid to the cleaning part of the cleaning device according to a target frequency includes: sending an on command to a travel switch of the cleaning device, wherein, The travel switch is a control switch of the liquid spraying part; in response to the on command, the travel switch is turned on to turn on the liquid spraying part, wherein the liquid spraying part is turned on according to The target frequency sprays liquid to the cleaning element.
根据本申请实施例的另一个方面,还提供了一种清洁设备的控制装置,包括:启动单元,用于响应于获取到的启动指令,启动所述清洁设备;确定单元,用于确定所述清洁设备当前的移动方向;第一控制单元,用于在所述移动方向为后退方向的情况下,控制所述清洁设备的喷液件停止向所述清洁设备的清洁件喷洒液体。According to another aspect of the embodiments of the present application, there is also provided a cleaning device control device, including: a start unit, configured to start the cleaning device in response to the acquired start instruction; a determination unit, configured to determine the The current moving direction of the cleaning device; a first control unit configured to control the liquid spraying part of the cleaning device to stop spraying liquid on the cleaning part of the cleaning device when the moving direction is a backward direction.
在一个示例性实施例中,所述确定单元包括:检测模块,用于通过所述清洁设备上的检测部件检测所述移动方向。In an exemplary embodiment, the determination unit includes: a detection module, configured to detect the moving direction through a detection component on the cleaning device.
在一个示例性实施例中,所述检测模块包括:第一确定子模块,用于通过霍尔传感器检测所述清洁设备的车轮的转动方向,确定与所述转动方向匹配的所述移动方向;第二确定子模块,用于通过霍尔传感器检测所述清洁设备的手柄组件的位移方向;第三确定子模块,用于根据所述清洁设备的手柄组件的位移方向,确定所述移动方向。In an exemplary embodiment, the detection module includes: a first determination submodule, configured to detect the rotation direction of the wheels of the cleaning device through a Hall sensor, and determine the movement direction matching the rotation direction; The second determining submodule is used to detect the displacement direction of the handle assembly of the cleaning device through the Hall sensor; the third determining submodule is used to determine the moving direction according to the displacement direction of the handle assembly of the cleaning device.
在一个示例性实施例中,所述检测模块包括:采集子模块,用于通过所述清洁设备的第一图像采集设备进行图像采集,得到多张采集图像;第四确定子模块,用于根据参考对象在所述多张采集图像中的位置变化,确定所述移动方向。In an exemplary embodiment, the detection module includes: an acquisition submodule, configured to acquire multiple images through the first image acquisition device of the cleaning device; a fourth determination submodule, configured to The moving direction is determined with reference to position changes of the object in the plurality of captured images.
在一个示例性实施例中,所述确定单元包括:生成模块,用于根据目标清洁区域的区域信息,生成清洁指令,其中,所述清洁指令用于指示所述清洁设备清洁所述目标清洁区域的移动路径;第一确定模块,用于根据所述清洁指令,确定所述清洁设备沿着所述移动路径进行移动的所述移动方向。In an exemplary embodiment, the determining unit includes: a generating module, configured to generate a cleaning instruction according to area information of a target cleaning area, wherein the cleaning instruction is used to instruct the cleaning device to clean the target cleaning area a moving path; a first determining module, configured to determine the moving direction of the cleaning device along the moving path according to the cleaning instruction.
在一个示例性实施例中,所述装置还包括:第二控制单元,用于在所述确定所述清洁设备当前的移动方向之后,在所述移动方向为前进方向的情况下,控制所述清洁设备的喷液件按照目标频率向所述清洁设备的清洁件喷液。In an exemplary embodiment, the apparatus further includes: a second control unit, configured to, after the determination of the current moving direction of the cleaning device, control the cleaning device if the moving direction is the forward direction. The liquid spraying part of the cleaning device sprays liquid to the cleaning part of the cleaning device at a target frequency.
在一个示例性实施例中,所述第二控制单元包括:采集模块,用于在 当前喷水周期内,通过第二图像采集设备对所述清洁设备前端的待清洁区域进行图像采集,得到目标采集图像;解析模块,用于对所述目标采集图像进行图像解析,得到与所述待清洁区域对应的脏污参数,其中,所述图像解析结果用于表示所述待清洁区域的脏污程度;第二确定模块,用于根据所述脏污参数,确定所述喷液件的喷液量,其中,所述喷液量与所述脏污参数所表示的脏污程度正相关;控制模块,用于控制所述喷水件按照所述喷液量向所述清洁件喷洒液体。In an exemplary embodiment, the second control unit includes: a collection module, configured to use the second image collection device to collect images of the area to be cleaned at the front end of the cleaning device during the current water spray cycle to obtain the target Collecting an image; an analysis module, configured to perform image analysis on the collected image of the target to obtain a dirt parameter corresponding to the area to be cleaned, wherein the image analysis result is used to indicate the degree of dirt of the area to be cleaned ; The second determination module is used to determine the liquid injection volume of the liquid injection device according to the dirt parameter, wherein the liquid injection volume is positively correlated with the degree of dirt indicated by the dirt parameter; the control module , for controlling the water spraying member to spray liquid to the cleaning member according to the liquid spraying amount.
在一个示例性实施例中,所述第二控制单元包括:发送模块,用于向所述清洁设备的行程开关发送接通命令,其中,所述行程开关为所述喷液件的控制开关;接通模块,用于响应于所述接通命令,接通所述行程开关,以接通所述喷液件,其中,接通后的所述喷液件按照所述目标频率向所述清洁件喷洒液体。In an exemplary embodiment, the second control unit includes: a sending module, configured to send an on command to a travel switch of the cleaning device, wherein the travel switch is a control switch of the liquid spraying element; A switch-on module, configured to switch on the travel switch in response to the switch-on command, so as to switch on the liquid spraying part, wherein the liquid spraying part is turned on to the cleaning device according to the target frequency parts sprayed with liquid.
根据本申请实施例的又一方面,还提供了一种计算机可读的存储介质,该计算机可读的存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述接口的测试方法。According to still another aspect of the embodiments of the present application, a computer-readable storage medium is also provided, and a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute the above-mentioned interface test when running method.
根据本申请实施例的又一方面,还提供了一种电子装置,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,上述处理器通过计算机程序执行上述的接口的测试方法。According to yet another aspect of the embodiments of the present application, there is also provided an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the above-mentioned processor executes the above-mentioned The test method for the interface.
在本申请实施例中,采用通过在清洁设备后拉的过程中停止喷液的方式,通过响应于获取到的启动指令,启动清洁设备;确定清洁设备当前的移动方向;在移动方向为后退方向的情况下,控制清洁设备的喷液件停止向所述清洁设备的清洁件喷洒液体,由于结合清洁设备的结构特点,即,前端不设置刮条,在清洁设备后拉的过程中停止喷洒液体,可以避免在后拉时清洁件与地面之间挤出的液体残留地面,从而实现减少地面液体残留的目的,可以达到提高地面清洁效果的技术效果,进而解决了相关技术中的清洁设备的控制方法存在由于喷洒的液体易残留在地面导致的清洁效果差的问题。In the embodiment of the present application, the cleaning device is started by responding to the obtained startup command by stopping the liquid spray during the process of pulling the cleaning device back; the current moving direction of the cleaning device is determined; the moving direction is the backward direction In the case of controlling the liquid spraying part of the cleaning device to stop spraying liquid to the cleaning part of the cleaning device, due to the structural characteristics of the cleaning device, that is, the front end is not provided with a scraper, and the spraying of liquid is stopped during the pulling of the cleaning device , can avoid the liquid remaining on the ground squeezed out between the cleaning part and the ground when pulling back, thereby achieving the purpose of reducing the liquid remaining on the ground, and can achieve the technical effect of improving the cleaning effect of the ground, and then solve the control of the cleaning equipment in the related technology The method has the problem of poor cleaning effect because the sprayed liquid tends to remain on the ground.
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description serve to explain the principles of the application.
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, In other words, other drawings can also be obtained from these drawings without paying creative labor.
图1是根据本申请实施例的一种可选的清洁设备的控制方法的硬件环境的示意图;FIG. 1 is a schematic diagram of a hardware environment of an optional cleaning device control method according to an embodiment of the present application;
图2是根据本申请实施例的一种可选的清洁设备的控制方法的流程示意图;FIG. 2 is a schematic flowchart of an optional control method for cleaning equipment according to an embodiment of the present application;
图3是根据本申请实施例的一种可选的洗地机的主视图;Fig. 3 is a front view of an optional washing machine according to an embodiment of the present application;
图4是根据本申请实施例的一种可选的洗地机的侧视图;Fig. 4 is a side view of an optional scrubber according to an embodiment of the present application;
图5是根据本申请实施例的一种可选的清洁设备的控制装置的结构框图;Fig. 5 is a structural block diagram of an optional control device for cleaning equipment according to an embodiment of the present application;
图6是根据本申请实施例的一种可选的电子装置的结构框图。Fig. 6 is a structural block diagram of an optional electronic device according to an embodiment of the present application.
下文中将参考附图并结合实施例来详细说明本申请。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Hereinafter, the present application will be described in detail with reference to the drawings and embodiments. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first" and "second" in the description and claims of the present application and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence.
根据本申请实施例的一个方面,提供了一种清洁设备的控制方法。可选地,在本实施例中,上述清洁设备的控制方法可以应用于如图1所示的由终端设备102、清洁设备104和服务器106所构成的硬件环境中。如图1所示,终端设备102可以通过网络与清洁设备104和/或服务器106(例如,物联网平台或者云端服务器)进行连接,以对清洁设备104的进行控制,例如,与清洁设备104进行绑定、配置清洁设备104的清洁功能。清洁设备104可以包括主机和基座(例如,扫地机和基站,洗地机和基座),主机和基站之间可 以通过网络进行连接,以确定对端的当前状态(例如,电量状态、工作状态、位置信息等)。According to one aspect of the embodiments of the present application, a method for controlling a cleaning device is provided. Optionally, in this embodiment, the above cleaning device control method may be applied to a hardware environment composed of a terminal device 102 , a cleaning device 104 and a server 106 as shown in FIG. 1 . As shown in FIG. 1 , the terminal device 102 can be connected to the cleaning device 104 and/or server 106 (for example, an Internet of Things platform or a cloud server) through a network to control the cleaning device 104, for example, to communicate with the cleaning device 104 Bind and configure the cleaning function of the cleaning device 104 . The cleaning device 104 can include a host and a base (for example, a sweeping machine and a base station, a washing machine and a base), and the host and the base can be connected through a network to determine the current state of the opposite end (for example, power status, working status, etc.) , location information, etc.).
上述网络可以包括但不限于以下至少之一:有线网络,无线网络。上述有线网络可以包括但不限于以下至少之一:广域网,城域网,局域网,上述无线网络可以包括但不限于以下至少之一:WIFI(Wireless Fidelity,无线保真),蓝牙,红外。终端设备102与清洁设备104和/或服务器106进行通信所使用的网络与清洁设备104与服务器106进行通信所使用的网络可以是相同的,也可以是不同的。终端设备102可以并不限定于为PC、手机、平板电脑等,清洁设备104可以包括但不限于:自清洁机器人,例如,自动洗拖布机器人、扫地机器人等,服务器106可以是物联网平台的服务器。The foregoing network may include but not limited to at least one of the following: a wired network and a wireless network. The above-mentioned wired network may include but not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the above-mentioned wireless network may include but not limited to at least one of the following: WIFI (Wireless Fidelity, Wireless Fidelity), bluetooth, infrared. The network used by the terminal device 102 to communicate with the cleaning device 104 and/or the server 106 and the network used by the cleaning device 104 to communicate with the server 106 may be the same or different. The terminal device 102 may not be limited to a PC, a mobile phone, a tablet computer, etc., and the cleaning device 104 may include but not limited to: a self-cleaning robot, for example, an automatic mop washing robot, a sweeping robot, etc., and the server 106 may be a server of an Internet of Things platform .
本申请实施例的清洁设备的控制方法可以由终端设备102、清洁设备104或服务器106单独来执行,也可以由终端设备102、清洁设备104和服务器106中的至少两个共同执行。其中,终端设备102或清洁设备104执行本申请实施例的清洁设备的控制方法也可以是由安装在其上的客户端来执行。The cleaning device control method in this embodiment of the present application may be executed solely by the terminal device 102 , the cleaning device 104 or the server 106 , or jointly executed by at least two of the terminal device 102 , the cleaning device 104 and the server 106 . Wherein, the execution of the cleaning device control method of the embodiment of the present application by the terminal device 102 or the cleaning device 104 may also be performed by a client installed on it.
以由清洁设备104来执行本实施例中的清洁设备的控制方法为例,图2是根据本申请实施例的一种可选的清洁设备的控制方法的流程示意图,如图2所示,该方法的流程可以包括以下步骤:Taking the cleaning device 104 to execute the cleaning device control method in this embodiment as an example, FIG. 2 is a schematic flowchart of an optional cleaning device control method according to the embodiment of the present application. As shown in FIG. 2 , the The flow of the method may include the following steps:
步骤S202,响应于获取到的启动指令,启动清洁设备。Step S202, starting the cleaning device in response to the acquired starting instruction.
本实施例中的清洁设备的控制方法可以应用到使用清洁设备进行区域清洁的场景中,使用清洁设备所清洁的区域为目标清洁区域。上述清洁设备可以为手推洗地机、智能洗地机,集洗、扫于一体的智能清扫机,还可以是其他具备区域清洁功能的清洁设备,上述目标清洁区域可以是家庭中的室内区域,也可以是其他如办公室、工厂车间内的区域,还可以是其他可以通过清洁设备进行区域清洁的区域。本实施例中对此不做限定。The cleaning device control method in this embodiment may be applied to a scene where the cleaning device is used for area cleaning, and the area cleaned by the cleaning device is a target cleaning area. The above-mentioned cleaning equipment can be a hand-push floor washing machine, an intelligent floor washing machine, an intelligent cleaning machine integrating washing and sweeping, or other cleaning equipment with an area cleaning function. The above-mentioned target cleaning area can be an indoor area in a family , it can also be other areas such as offices, factory workshops, or other areas that can be cleaned by cleaning equipment. This is not limited in this embodiment.
为使用清洁设备进行区域清洁,可以首先启动清洁设备。启动清洁设备可以是通过启动指令触发的,清洁设备可以获取启动指令,并响应于该启动指令,启动清洁设备的清洁功能。在启动清洁设备进行区域清洁时,可以是接通清洁设备的电源(该电源可以是清洁设备的电池包),并控制清洁设备的清洁件处于开启状态。上述清洁件可以是滚刷、拖把头,还可以 是其他用于进行区域清洁的部件。For area cleaning with the cleaning device, the cleaning device can first be switched on. Starting the cleaning device may be triggered by a starting instruction, and the cleaning device may obtain the starting instruction, and in response to the starting instruction, start the cleaning function of the cleaning device. When the cleaning equipment is started to clean the area, the power supply of the cleaning equipment (the power supply may be a battery pack of the cleaning equipment) may be switched on, and the cleaning element of the cleaning equipment is controlled to be in an open state. Above-mentioned cleaning piece can be rolling brush, mop head, also can be other parts that are used for area cleaning.
上述启动指令可以通过多种方式获取的。例如,用户可以对清洁设备执行用于触发启动指令的触发操作。清洁设备可以响应于检测到的触发操作,生成启动指令。又例如,用户可以通过对与清洁设备关联的终端设备的设备操作界面中的特定区域或者特定按钮执行触发操作,触发生成启动指令,并将生成的启动指令通过网络发送给清洁设备。清洁设备可以接收到该启动指令。启动指令还可以是通过其他方式获取的,例如,用户还可以通过操作遥控设备上的按钮或者对应区域,触发向清洁设备发送启动指令,清洁设备可以接收遥控设备发送的启动指令。可选地,上述触发操作可以包括但不限于以下至少之一:点击操作,双击操作,长按操作,滑动操作。本实施例中对获取启动指令的方式不做限定。The above startup instruction can be obtained in various ways. For example, a user may perform a trigger operation for triggering an activation instruction on the cleaning device. The cleaning device may generate an activation instruction in response to the detected trigger operation. For another example, the user may perform a trigger operation on a specific area or a specific button in the device operation interface of the terminal device associated with the cleaning device to trigger the generation of the activation instruction, and send the generated activation instruction to the cleaning device through the network. The cleaning device may receive the activation instruction. The activation instruction can also be obtained in other ways. For example, the user can also trigger the sending of the activation instruction to the cleaning device by operating a button or corresponding area on the remote control device, and the cleaning device can receive the activation instruction sent by the remote control device. Optionally, the above-mentioned triggering operation may include but not limited to at least one of the following: a click operation, a double-tap operation, a long press operation, and a slide operation. In this embodiment, there is no limitation on the manner of acquiring the startup instruction.
例如,洗地机的结构可以如图3和图4,图3为洗地机的主视图,图4为洗地机的侧视图。用户可以直接点击洗地机的手柄上的启动按钮、或者点击触控屏上的启动按钮,触发生成启动指令,以启动洗地机。又例如,用户可以通过点击与洗地机关联的手机终端的设备操作界面上的启动按钮,向洗地机发出启动指令,以启动洗地机。For example, the structure of the washing machine can be shown in Figure 3 and Figure 4, Figure 3 is a front view of the washing machine, Figure 4 is a side view of the washing machine. The user can directly click the start button on the handle of the scrubber, or click the start button on the touch screen to trigger and generate a start command to start the scrubber. For another example, the user can send an activation instruction to the scrubber by clicking the start button on the device operation interface of the mobile terminal associated with the scrubber to start the scrubber.
步骤S204,确定清洁设备当前的移动方向。Step S204, determining the current moving direction of the cleaning device.
为了便于清洁设备在清洁的过程中吸入垃圾,清洁设备可以采用清洁件盖板离地、不在清洁件前端设置刮条的结构。由于采用上述的结构,在清洁件后拉时,清洁件与地面挤出的液体会残留在地面上,无法被吸入到清洁设备内,液体残留在地面会影响清洁件的清洁效果。这里,清洁件与地面挤出的液体可以是喷液件向清洁件上所喷洒的液体,例如,清水,添加了清洁液的水等等,本实施例中对此不做限定。In order to make it easier for the cleaning equipment to suck in garbage during the cleaning process, the cleaning equipment can adopt a structure in which the cover plate of the cleaning part is off the ground and no scraping strip is arranged at the front end of the cleaning part. Due to the above-mentioned structure, when the cleaning element is pulled back, the liquid squeezed out from the cleaning element and the ground will remain on the ground and cannot be sucked into the cleaning device, and the liquid remaining on the ground will affect the cleaning effect of the cleaning element. Here, the liquid extruded from the cleaning element and the floor may be the liquid sprayed on the cleaning element by the liquid spraying element, for example, clear water, water added with cleaning liquid, etc., which is not limited in this embodiment.
例如,洗地机地刷为方便吸入垃圾,滚刷盖板离地,前端不设置刮条,导致滚刷后拉时滚刷与地面之间挤出的水渍残留地面无法被清理,影响滚刷的清洁效果。For example, in order to facilitate the inhalation of garbage by the floor brush of the floor washing machine, the cover plate of the roller brush is off the ground, and there is no scraper at the front end, so that the residual water stains squeezed out between the roller brush and the ground cannot be cleaned when the roller brush is pulled back, which affects the roller. Brush cleaning effect.
为了避免由于液体残留在地面,影响清洁件的清洁效果,可以根据清洁设备的移动方向控制清洁设备的喷液件进行喷液。在清洁设备进行移动的同时,可以确定清洁设备当前的移动方向,对于不同的移动方向,可以 采用不同的喷液策略。In order to avoid affecting the cleaning effect of the cleaning parts due to liquid remaining on the ground, the liquid spraying part of the cleaning device can be controlled to spray liquid according to the moving direction of the cleaning device. While the cleaning equipment is moving, the current moving direction of the cleaning equipment can be determined, and different spraying strategies can be used for different moving directions.
在本实施例中,可以通过接收到的移动信息来确定清洁设备当前的移动方向。上述的移动信息可以是通过清洁设备自身(例如,清洁设备上的检测部件)获取的移动信息,也可以是通过与清洁设备相关联的设备(例如,相关联的检测部件)获取的移动信息,还可以是通过其他方式获取的移动信息。本实施例中对获取移动信息的方式不做限定。In this embodiment, the current moving direction of the cleaning device can be determined through the received moving information. The above-mentioned movement information may be movement information obtained by the cleaning device itself (for example, a detection component on the cleaning device), or may be movement information obtained by a device associated with the cleaning device (for example, an associated detection component), It can also be mobile information obtained by other means. In this embodiment, there is no limitation on the manner of acquiring the mobile information.
步骤S206,在移动方向为后退方向的情况下,控制清洁设备的喷液件停止向清洁设备的清洁件喷洒液体。Step S206, if the moving direction is the backward direction, control the liquid spraying part of the cleaning device to stop spraying liquid to the cleaning part of the cleaning device.
在清洁设备的移动方向为前进方向时,可以控制清洁设备的喷液件向清洁设备的清洁件喷洒液体,从而可以对目标清洁区域进行清洁。上述喷液件可以是分水器、分液器或者其他具有喷洒液体功能的部件,喷洒的液体可以是清水,带有清洗液的清水等。喷液件可以位于清洁件的顶部,也可以位于清洁件的后侧或者前侧,还可以位于其他能够向清洁件进行喷液、且不影响清洁件移动的位置。When the moving direction of the cleaning device is the forward direction, the liquid spraying part of the cleaning device can be controlled to spray liquid to the cleaning part of the cleaning device, so that the target cleaning area can be cleaned. The above-mentioned liquid spraying part can be a water distributor, a liquid distributor or other parts with the function of spraying liquid, and the sprayed liquid can be clean water, clean water with cleaning liquid, etc. The liquid spraying part can be located on the top of the cleaning part, also can be located on the rear side or the front side of the cleaning part, and can also be located in other positions that can spray liquid to the cleaning part without affecting the movement of the cleaning part.
喷液件向清洁件进行喷液的方式可以有一种或多种,例如,喷液件可以向清洁件的顶部进行喷液,可以是向清洁件的前侧或者后侧进行喷液,也可以是向清洁件的底部进行喷液,还可以是向清洁件的其他位置进行喷液。本实施例中对喷液件向清洁件喷液的位置不做限定。There can be one or more ways for the liquid spraying part to spray liquid to the cleaning part. For example, the liquid spraying part can spray liquid to the top of the cleaning part, it can spray liquid to the front or rear side of the cleaning part, or it can spray liquid to the top of the cleaning part. The liquid is sprayed to the bottom of the cleaning piece, or sprayed to other positions of the cleaning piece. In this embodiment, the position where the liquid spraying member sprays liquid to the cleaning member is not limited.
在清洁设备的移动方向为后退方向,此时如果向清洁件进行喷液,则容易导致液体残留于地面,因此,可以控制喷水件不向清洁件进行喷液。如果清洁设备的移动方向在短时间内来回变换,为了保证地面清洁效果,可以控制喷液件不向清洁件喷液,直到清洁设备向前移动的时间超过设定的时间阈值(例如,1s、2s等)。When the moving direction of the cleaning device is the backward direction, if the liquid is sprayed on the cleaning part at this time, the liquid will easily remain on the ground. Therefore, the water spraying part can be controlled not to spray liquid on the cleaning part. If the moving direction of the cleaning device changes back and forth in a short time, in order to ensure the floor cleaning effect, the liquid spraying part can be controlled not to spray liquid to the cleaning part until the time the cleaning device moves forward exceeds the set time threshold (for example, 1s, 2s, etc.).
例如,通过洗地机使用者前推后拉动作的检测来控制地刷喷水情况,可以减少后拉时滚刷上含水量,从而改善后拉过程水渍残留地面的情况。For example, controlling the water spraying of the ground brush by detecting the forward push and back pull action of the scrubber user can reduce the water content on the roller brush during back pulling, thereby improving the situation of water stains remaining on the ground during the back pulling process.
通过上述步骤S202至步骤S206,响应于获取到的启动指令,启动清洁设备;确定清洁设备当前的移动方向;在移动方向为后退方向的情况下,控制清洁设备的喷液件停止向清洁设备的清洁件喷洒液体,解决了相关技术中的清洁设备的控制方法存在由于喷洒的液体易残留在地面导致的清洁 效果差的问题,提高了地面清洁效果。Through the above steps S202 to S206, start the cleaning device in response to the acquired starting instruction; determine the current moving direction of the cleaning device; The cleaning part sprays the liquid, which solves the problem of poor cleaning effect caused by the sprayed liquid remaining on the ground in the control method of the cleaning equipment in the related art, and improves the ground cleaning effect.
在一个示例性实施例中,确定清洁设备当前的移动方向,包括:In an exemplary embodiment, determining the current moving direction of the cleaning device includes:
S11,通过清洁设备上的检测部件检测移动方向。S11, detecting the moving direction through the detection component on the cleaning device.
在本实施例中,清洁设备上可以布设有一个或多个检测部件,上述一个或者多个检测部件均可用于检测清洁设备的移动方向。如果在清洁设备上仅有一个检测部件,可以将该检测部件检测到的移动方向确定为清洁设备当前的移动方向。如果在清洁设备上布设了多个检测部件,多个检测部件可以检测到多个移动方向,可以对多个移动方向进行分析,确定清洁设备当前的移动方向。In this embodiment, one or more detection components may be arranged on the cleaning device, and the above one or more detection components may be used to detect the moving direction of the cleaning device. If there is only one detection component on the cleaning device, the moving direction detected by the detection component may be determined as the current moving direction of the cleaning device. If multiple detection components are arranged on the cleaning device, the multiple detection components can detect multiple moving directions, analyze the multiple moving directions, and determine the current moving direction of the cleaning device.
根据多个检测部件检测到的多个移动方向确定清洁设备当前的移动方向的方式可以有多种,例如,可以将出现次数最多的移动方向确定为清洁设备当前的移动方向。又例如,多个检测部件可以采用主备部件的设置方式,如果主检测部件检测到移动方向时,可以将主检测部件检测到的移动方向确定为清洁设备当前的移动方向,否则,可以将备用检测部件检测到的移动方向确定为清洁设备当前的移动方向。本实施例中对此不做限定。There are many ways to determine the current moving direction of the cleaning device according to the multiple moving directions detected by the multiple detection components. For example, the moving direction with the most occurrences may be determined as the current moving direction of the cleaning device. For another example, a plurality of detection components can adopt the setting mode of the main and standby components. If the main detection component detects the moving direction, the moving direction detected by the main detecting component can be determined as the current moving direction of the cleaning device; otherwise, the standby The moving direction detected by the detection component is determined as the current moving direction of the cleaning device. This is not limited in this embodiment.
例如,清洁设备前端可以布设有检测部件,用于检测清洁设备的移动信息,通过检测到的移动信息,判断清洁设备的移动方向为前进方向或后退方向。For example, a detection component may be arranged at the front end of the cleaning device to detect movement information of the cleaning device, and judge whether the moving direction of the cleaning device is a forward direction or a backward direction based on the detected movement information.
通过本实施例,通过清洁设备上的检测部件对清洁设备的移动信息进行检测,从而得到清洁设备的移动方向,无需与其他设备进行联动,可以提高移动方向确定的便捷性。Through this embodiment, the movement information of the cleaning device is detected by the detection component on the cleaning device, so as to obtain the moving direction of the cleaning device, without linkage with other devices, and the convenience of determining the moving direction can be improved.
在一个示例性实施例中,通过清洁设备上的检测部件检测移动方向,包括:In an exemplary embodiment, detecting the moving direction through a detection component on the cleaning device includes:
S21,通过霍尔传感器检测清洁设备的滚动轮的转动方向,确定与转动方向匹配的移动方向,和/或,S21, detecting the rotation direction of the scroll wheel of the cleaning device through the Hall sensor, and determining the moving direction matching the rotation direction, and/or,
S22,通过霍尔传感器检测清洁设备的手柄组件的位移方向;根据清洁设备的手柄组件的位移方向,确定移动方向。S22. Detect the displacement direction of the handle assembly of the cleaning device through the Hall sensor; determine the moving direction according to the displacement direction of the handle assembly of the cleaning device.
作为一种可选的实施方式,清洁设备的移动方向可以是基于清洁设备的滚动轮的转动方向确定的,例如,滚动轮逆时针方向转动时,清洁设备 的移动方向为前进方向,滚动轮顺时针方向转动时,清洁设备的移动方向为后退方向。为了检测滚动轮的转动方向,上述检测部件可以包含霍尔传感器。例如,可以通过加速度传感器或者其他形式的霍尔传感器检测洗地机的前推和后拉动作。As an optional implementation, the moving direction of the cleaning device can be determined based on the rotation direction of the scroll wheel of the cleaning device. For example, when the scroll wheel rotates counterclockwise, the moving direction of the cleaning device is the forward direction, and the scroll wheel When the clockwise direction is turned, the moving direction of the cleaning device is the backward direction. In order to detect the rotation direction of the scroll wheel, the detection component may include a Hall sensor. For example, the forward pushing and pulling back actions of the scrubber can be detected by an acceleration sensor or other forms of Hall sensors.
该霍尔传感器的数量可以是一个或多个,其可以布设在清洁设备的滚动轮的至少一侧,在滚动轮上的对应侧可以设置多个触发点。在滚动轮进行移动的过程中,上述触发点经过霍尔传感器时会造成磁感应强度的变化,可以通过检测磁感应强度的变化计算得到电压的变化,通过检测输出电压的变化来检测滚动轮的转动方向,进而确定清洁设备的移动方向。The number of the Hall sensor can be one or more, and it can be arranged on at least one side of the scroll wheel of the cleaning device, and multiple trigger points can be set on the corresponding side of the scroll wheel. During the movement of the scroll wheel, when the above trigger points pass through the Hall sensor, the magnetic induction intensity will change. The change of the voltage can be calculated by detecting the change of the magnetic induction intensity, and the rotation direction of the scroll wheel can be detected by detecting the change of the output voltage. , and then determine the moving direction of the cleaning equipment.
例如,可以通过第一霍尔传感器和第二霍尔传感器检测滚动轮的转动方向。上述的两个霍尔传感器可以在清洁设备上的同一端口正交设置,则第一霍尔传感器输出的电压信号与第二霍尔传感器的电压信号的相位差为90度。如果第一霍尔传感器输出的电压信号的相位比第二霍尔传感器输出的电压信号的相位超前90度,则可以判断滚动轮的转动方向为顺时针方向。如果第二霍尔传感器输出的电压信号的相位比第一霍尔传感器输出的电压信号的相位超前90度,则可以判断滚动轮的转动方向为逆时针。For example, the rotation direction of the scroll wheel can be detected by the first Hall sensor and the second Hall sensor. The above-mentioned two Hall sensors can be arranged orthogonally on the same port on the cleaning device, then the phase difference between the voltage signal output by the first Hall sensor and the voltage signal of the second Hall sensor is 90 degrees. If the phase of the voltage signal output by the first Hall sensor is ahead of the phase of the voltage signal output by the second Hall sensor by 90 degrees, it can be determined that the rotation direction of the scroll wheel is clockwise. If the phase of the voltage signal output by the second Hall sensor is 90 degrees ahead of the phase of the voltage signal output by the first Hall sensor, it can be determined that the rotation direction of the scroll wheel is counterclockwise.
作为另一种可选的实施方式,可以将霍尔传感器设置在清洁设备的手柄组件上,通过霍尔传感器检测清洁设备的手柄组件的位移方向,进而确定清洁设备的移动方向。手柄组件的位移方向与清洁设备的移动方向是一致的,在手柄前拖或后拉时,可以根据霍尔传感器输出的霍尔电势的大小判断手柄组件的位移方向,进而确定清洁设备的移动方向。As another optional implementation manner, a Hall sensor can be arranged on the handle assembly of the cleaning device, and the displacement direction of the handle assembly of the cleaning device can be detected by the Hall sensor, so as to determine the moving direction of the cleaning device. The displacement direction of the handle assembly is consistent with the moving direction of the cleaning equipment. When the handle is pulled forward or backward, the displacement direction of the handle assembly can be judged according to the Hall potential output by the Hall sensor, and then the moving direction of the cleaning equipment can be determined. .
通过本实施例,通过霍尔传感器检测滚动轮的转动方向或者手柄组件的位移方向,进而确定清洁设备的移动方向,可以提高清洁设备移动方向检测的准确性。Through this embodiment, the hall sensor detects the rotation direction of the scroll wheel or the displacement direction of the handle assembly, and then determines the moving direction of the cleaning device, which can improve the accuracy of detecting the moving direction of the cleaning device.
在一个示例性实施例中,通过清洁设备上的检测部件检测移动方向,包括:In an exemplary embodiment, detecting the moving direction through a detection component on the cleaning device includes:
S31,通过清洁设备的第一图像采集设备进行图像采集,得到多张采集图像;S31, performing image acquisition by the first image acquisition device of the cleaning device, to obtain multiple acquired images;
S32,根据参考对象在多张采集图像中的位置变化,确定移动方向。S32. Determine the moving direction according to the position changes of the reference object in the multiple captured images.
清洁设备在移动的过程中,其在目标清洁区域内的位置会发生变化,可以基于清洁设备的位置变化,确定清洁设备的移动方向。例如,在目标清洁区域所在房间内的图像采集设备进行图像采集,确定清洁设备在目标清洁区域内位置变化的方向,如果该方向与清洁设备由前端向后端的方向一致,可以确定清洁设备的移动方向为后退方向,如果该方向与清洁设备由后端向前端的方向一致,可以确定清洁设备的移动方向为前进方向。During the moving process of the cleaning device, its position in the target cleaning area will change, and the moving direction of the cleaning device can be determined based on the position change of the cleaning device. For example, the image acquisition device in the room where the target cleaning area is located performs image acquisition to determine the direction of the position change of the cleaning device in the target cleaning area. If this direction is consistent with the direction from the front end of the cleaning device to the rear end, the movement of the cleaning device can be determined The direction is the backward direction, and if the direction is consistent with the direction from the rear end to the front end of the cleaning device, it can be determined that the moving direction of the cleaning device is the forward direction.
为了提高移动方向确定的效率,可以通过清洁设备上的第一图像采集设备所采集到的采集图像,确定清洁设备的移动方向。对应地,上述检测部件可以包含第一图像采集设备。第一图像采集设备可以设置在清洁设备的前端、两侧、或者其他位置,其可以是摄像头、运动相机或者其他具有连续采集图像功能的设备。本实施例中对于第一图像采集设备的设置位置类型不做限定。In order to improve the efficiency of determining the moving direction, the moving direction of the cleaning device may be determined through the captured image captured by the first image capturing device on the cleaning device. Correspondingly, the above detection component may include the first image acquisition device. The first image acquisition device can be arranged at the front end, both sides, or other positions of the cleaning device, and it can be a camera, a motion camera or other devices capable of continuously collecting images. In this embodiment, there is no limitation on the type of the installation position of the first image acquisition device.
第一图像采集设备可以进行多次图像采集,得到多张连续的采集图像,图像采集的频率可以预先配置,例如,每秒采集10张图像,多张连续的采集图像可以是1秒内采集到的图像。通过对多张连续的采集图像中进行分析,确定清洁设备的移动方向。确定清洁设备的移动方向可以是基于参考对象在多张连续的采集图像中的位置变化确定的。上述参考对象可以是多张连续的采集图像中的一个物体,例如,鞋架、垃圾桶、墙壁上的标志性物体等处于静止状态的物体。The first image acquisition device can perform multiple image acquisitions to obtain multiple continuous acquisition images, and the frequency of image acquisition can be preconfigured, for example, 10 images are acquired per second, and multiple continuous acquisition images can be acquired within 1 second Image. The moving direction of the cleaning equipment is determined by analyzing multiple consecutive captured images. Determining the moving direction of the cleaning device may be determined based on position changes of the reference object in multiple consecutive captured images. The aforementioned reference object may be an object in a plurality of consecutive captured images, for example, an object in a static state such as a shoe rack, a trash can, a landmark object on a wall, and the like.
在确定出的参考对象之后,可以确定该参考对象在多张连续的采集图像中的位置信息;基于该参考对象在多张连续的采集图像中的位置变化(或者,结合第一图像采集设备的设置位置),确定出清洁设备的移动方向。参考对象的在采集图像中的位置变化可以是参考对象在采集图像中的所占的位置区域的变化。After the reference object is determined, the position information of the reference object in multiple consecutive captured images can be determined; based on the position changes of the reference object in multiple consecutive captured images (or, combined with the setting position) to determine the moving direction of the cleaning equipment. The position change of the reference object in the captured image may be a change of the position area occupied by the reference object in the captured image.
作为一种可选的实施方式,第一图像采集设备设置在清洁设备的前端,在多张连续的采集图像中,如果参考对象所占的位置区域的面积逐渐增大,可以确定清洁设备的移动方向为前进方向,如果参考对象所占的位置区域的面积逐渐缩小,可以确定清洁设备的移动方向为后退方向。As an optional implementation, the first image acquisition device is arranged at the front end of the cleaning device. In multiple consecutive captured images, if the area of the position area occupied by the reference object gradually increases, the movement of the cleaning device can be determined. The direction is the forward direction, and if the area of the position area occupied by the reference object gradually shrinks, it can be determined that the moving direction of the cleaning device is the backward direction.
作为另一种可选的实施方式,第一图像采集设备设置在清洁设备的两 侧,在多张连续的采集图像中,如果参考对象所占的位置区域由左向右移动,可以确定清洁设备的移动方向为前进方向,如果参考对象所占的位置区域由右向左移动,可以确定清洁设备的移动方向为后退方向。As another optional implementation, the first image acquisition device is arranged on both sides of the cleaning device. In multiple consecutive captured images, if the position area occupied by the reference object moves from left to right, it can be determined that the cleaning device The moving direction of the cleaning device is the forward direction, and if the position area occupied by the reference object moves from right to left, it can be determined that the moving direction of the cleaning device is the backward direction.
需要说明的是,第一图像采集设备可以是跟随参考对象进行转动的图像采集设备,根据参考对象与清洁设备的相对位置,以及第一图像采集设备的转动方向,可以确定清洁设备的移动方向。如果在连续多次图像采集之后,参考对象从采集图像中消失,可以重新确定参考对象。It should be noted that the first image acquisition device can be an image acquisition device that rotates following the reference object, and the moving direction of the cleaning device can be determined according to the relative position of the reference object and the cleaning device and the rotation direction of the first image acquisition device. If the reference object disappears from the acquired image after several consecutive image acquisitions, the reference object can be re-determined.
通过本实施例,参考对象在多张采集图像中的位置变化确定清洁设备的移动方向,可以提高清洁设备移动方向确定的准确性和便捷性。Through this embodiment, the moving direction of the cleaning device is determined with reference to the position changes of the object in multiple captured images, which can improve the accuracy and convenience of determining the moving direction of the cleaning device.
在一个示例性实施例中,确定清洁设备当前的移动方向,包括:In an exemplary embodiment, determining the current moving direction of the cleaning device includes:
S41,根据目标清洁区域的区域信息,生成清洁指令,其中,清洁指令用于指示清洁设备清洁目标清洁区域的移动路径;S41. Generate a cleaning instruction according to the area information of the target cleaning area, where the cleaning instruction is used to instruct the cleaning device to clean the moving path of the target cleaning area;
S42,根据清洁指令,确定清洁设备沿着移动路径进行移动的移动方向。S42. Determine the moving direction of the cleaning device along the moving path according to the cleaning instruction.
在本实施例中,清洁设备是对目标清洁区域进行清洁的设备。在进行区域清洁时,可以预先规划清洁设备的移动路径,并通过清洁指令控制清洁设备沿着移动路径进行区域清洁。清洁指令可以指示清洁设备的移动方向、所需执行的清洁操作等。因此,可以基于清洁指令,确定清洁设备的移动方向。In this embodiment, the cleaning device is a device for cleaning the target cleaning area. During area cleaning, the moving path of the cleaning equipment can be planned in advance, and the cleaning equipment can be controlled to perform area cleaning along the moving path through cleaning instructions. The cleaning instruction may indicate the moving direction of the cleaning device, the cleaning operation to be performed, and the like. Therefore, the moving direction of the cleaning device can be determined based on the cleaning instruction.
清洁设备中可以保存目标清洁区域的区域信息,其可以是目标清洁区域的区域地图,在区域地图中可以标识出目标清洁区域的范围、目标清洁区域中的障碍物位置、虚拟禁区等。根据目标清洁区域的区域信息,可以生成清洁指令,该清洁指令可以用于指示清洁设备清洁目标清洁区域的移动路径,可以包括清洁设备的移动方向、所需执行的清洁操作,还可以包括清洁频率(可以是沿清洁路径进行反复清洁的次数)等。The area information of the target cleaning area can be stored in the cleaning device, which can be an area map of the target cleaning area, in which the range of the target cleaning area, the position of obstacles in the target cleaning area, and the virtual restricted area can be identified. According to the area information of the target cleaning area, a cleaning instruction can be generated, and the cleaning instruction can be used to instruct the cleaning equipment to clean the moving path of the target cleaning area, which can include the moving direction of the cleaning equipment, the cleaning operation to be performed, and the cleaning frequency (It can be the number of repeated cleaning along the cleaning path), etc.
根据清洁指令,可以确定清洁设备沿着移动路径进行区域清洁的方式,可以包括移动方式,从而可以根据清洁设备的移动方式,确定清洁设备的移动方向。According to the cleaning instruction, the manner in which the cleaning equipment cleans the area along the movement path may be determined, including the movement manner, so that the moving direction of the cleaning equipment may be determined according to the movement manner of the cleaning equipment.
可选地,清洁设备可以是自动进行区域清洁的设备,响应于上述清洁指令,其可以自动对目标清洁区域进行区域清洁。清洁设备也可以是手动 进行区域清洁的设备,通过生成上述移动路径,可以辅助用户进行区域清洁。如果清洁设备进行区域清洁的实际路径与上述移动路径存在较大偏差,可以通过提示信息提示用户上述规划的移动路径。Optionally, the cleaning device may be a device for automatically performing area cleaning, which may automatically perform area cleaning on the target cleaning area in response to the above cleaning instruction. The cleaning device can also be a device for manually cleaning the area. By generating the above-mentioned moving path, the user can be assisted in cleaning the area. If there is a large deviation between the actual path of the cleaning device for area cleaning and the above-mentioned moving path, the user may be reminded of the above-mentioned planned moving path through a prompt message.
通过本实施例,根据清洁区域的区域信息生成清洁指令,并根据清洁指令确定清洁设备的移动方向,可以提高清洁设备移动方向确定的灵活性和便捷性。Through this embodiment, the cleaning instruction is generated according to the area information of the cleaning area, and the moving direction of the cleaning device is determined according to the cleaning instruction, which can improve the flexibility and convenience of determining the moving direction of the cleaning device.
在一个示例性实施例中,在确定清洁设备当前的移动方向之后,上述方法还包括:In an exemplary embodiment, after determining the current moving direction of the cleaning device, the above method further includes:
S51,在移动方向为前进方向的情况下,控制清洁设备的喷液件按照目标频率向清洁设备的清洁件喷洒液体。S51, when the moving direction is the forward direction, control the liquid spraying part of the cleaning device to spray liquid to the cleaning part of the cleaning device according to the target frequency.
在本实施例中,如果清洁设备的移动方向为前进方向,则可以控制允许清洁设备的喷液件向清洁设备的清洁件喷液。喷液件向清洁件进行喷液的方式可以有一种或多种,例如,定点喷液,即,基于喷液指令进行喷液。可选地,喷液件也可以按照目标频率向清洁件喷液,目标频率可以是预设的喷液频率,也可以是用户自行设置的喷液频率。In this embodiment, if the moving direction of the cleaning device is the forward direction, it can be controlled to allow the liquid spraying part of the cleaning device to spray liquid to the cleaning part of the cleaning device. There may be one or more ways for the liquid spraying part to spray liquid to the cleaning part, for example, fixed-point spraying, that is, spraying liquid based on a liquid spraying instruction. Optionally, the liquid spraying member may also spray liquid to the cleaning member according to a target frequency, and the target frequency may be a preset liquid spraying frequency, or a liquid spraying frequency set by a user.
可选地,用户可以在清洁设备开启后,可以对喷液件的喷液喷率进行设置。例如,清洁设备的触控屏上可以显示当前的喷液频率,用户可以通过点击触控屏对喷液频率进行设置,将喷液频率设置为目标频率。在获取到设置的目标频率之后,清洁设备可以按照目标频率进行喷液。Optionally, the user can set the liquid spraying rate of the liquid spraying member after the cleaning device is turned on. For example, the current spraying frequency can be displayed on the touch screen of the cleaning device, and the user can set the spraying frequency by clicking on the touch screen, and set the spraying frequency as the target frequency. After obtaining the set target frequency, the cleaning device can spray liquid according to the target frequency.
例如,可以通过程序控制洗地机在前推过程进行合理频次的喷水。在洗地机前进的过程中,可以按照每分钟30毫升的频率向滚刷喷水。如果用户认为清洁区域较脏,可以在洗地机的触控屏上将喷水频率设置为每分钟50毫升,洗地机按照每分钟50毫升的频率向滚刷喷水。For example, the washing machine can be controlled by the program to spray water at a reasonable frequency during the forward process. During the forward process of the washing machine, water can be sprayed to the roller brush at a frequency of 30 milliliters per minute. If the user thinks that the cleaning area is dirty, the water spray frequency can be set to 50 milliliters per minute on the touch screen of the scrubber, and the scrubber will spray water to the roller brush at a frequency of 50 milliliters per minute.
通过本实施例,通过在清洁设备向前移动的过程中,控制喷液件按照目标频率向清洁件喷液,可以减少清洁过程中用户的操作,提高区域清洁的便捷性。Through this embodiment, by controlling the liquid spraying member to spray liquid to the cleaning member according to the target frequency during the forward movement of the cleaning device, the user's operations during the cleaning process can be reduced, and the convenience of area cleaning can be improved.
在一个示例性实施例中,控制清洁设备的喷液件按照目标频率向清洁设备的清洁件喷洒液体,包括:In an exemplary embodiment, controlling the liquid spraying part of the cleaning device to spray liquid to the cleaning part of the cleaning device according to a target frequency includes:
S61,在当前喷液周期内,通过第二图像采集设备对清洁设备前端的待 清洁区域进行图像采集,得到目标采集图像;S61, in the current liquid spray cycle, through the second image acquisition device, image acquisition is performed on the area to be cleaned at the front end of the cleaning device to obtain the target acquisition image;
S62,对目标采集图像进行图像解析,得到与待清洁区域对应的脏污参数,其中,脏污参数用于表示待清洁区域的脏污程度;S62, performing image analysis on the image collected by the target to obtain a dirt parameter corresponding to the area to be cleaned, wherein the dirt parameter is used to indicate the degree of dirt of the area to be cleaned;
S63,根据脏污参数,确定喷液件的喷液量,其中,喷液量与脏污参数所表示的脏污程度正相关;S63. Determine the liquid injection volume of the liquid spraying part according to the contamination parameter, wherein the liquid injection volume is positively correlated with the degree of contamination indicated by the contamination parameter;
S64,控制喷液件按照喷液量向清洁件喷洒液体。S64, controlling the liquid spraying part to spray liquid to the cleaning part according to the liquid spraying amount.
清洁设备的喷液件的喷量可以是固定的,即,每次喷液的喷液量按照固定的喷液量进行喷液。在本实施例中,为了提高区域清洁的灵活性以及清洁效果,可以通过对清洁设备当前喷液周期内待清洁的位置区域的脏污程度进行检测,并按照检测到的脏污程度设置喷液量。The spraying volume of the liquid spraying part of the cleaning device may be fixed, that is, the liquid spraying volume of each spraying liquid is sprayed according to the fixed liquid spraying volume. In this embodiment, in order to improve the flexibility and cleaning effect of area cleaning, it is possible to detect the degree of dirt in the area to be cleaned in the current spray cycle of the cleaning device, and set the spray liquid according to the detected degree of dirt. quantity.
上述脏污程度可以是通过对清洁设备前端的第二图像采集设备所采集的采集图像进行解析得到的。上述第二图像采集设备可以是设置在清洁设备盖板或者其他前端位置上的摄像头、运动相机或者其他具有图像采集功能的设备。第二图像采集设备可以是与第一图像采集设备相同的采集设备,也可以是与第一图像采集设备不同的采集设备。本实施例中对此不做限定。The degree of dirt above can be obtained by analyzing the collected images collected by the second image collection device at the front end of the cleaning device. The above-mentioned second image acquisition device may be a camera, a motion camera or other devices with an image acquisition function arranged on the cover plate of the cleaning device or other front positions. The second image acquisition device may be the same acquisition device as the first image acquisition device, or may be a different acquisition device from the first image acquisition device. This is not limited in this embodiment.
在当前喷液周期内,可以通过第二图像采集设备对清洁设备前端的待清洁区域进行图像采集,得到目标采集图像。可以对目标采集图像进行解析,确定出用于表示待清洁区域的脏污程度的脏污参数。In the current liquid spray cycle, the second image acquisition device can be used to collect images of the area to be cleaned at the front end of the cleaning device to obtain the target image. The collected image of the target can be analyzed to determine the dirt parameter used to represent the dirt degree of the area to be cleaned.
例如,可以对目标采集图像进行图像解析,得到目标采集图像的二值图,二值图中的黑色像素点表示待清洁区域的脏污位置,白色像素点为待清洁区域的干净位置。根据上述二值图中黑色像素点与白色像素点的比值,可以确定待清洁区域的脏污参数,二值图白色像素点与黑色像素点的比值越大,待清洁区域的脏污参数越大,待清洁区域的脏污程度越高。For example, image analysis can be performed on the target acquisition image to obtain a binary image of the target acquisition image. The black pixels in the binary image represent the dirty positions of the area to be cleaned, and the white pixels represent the clean positions of the area to be cleaned. According to the ratio of black pixels to white pixels in the above binary image, the dirt parameter of the area to be cleaned can be determined. The larger the ratio of white pixels to black pixels in the binary image, the greater the dirt parameter of the area to be cleaned , the more soiled the area to be cleaned is.
在得到上述脏污参数之后,可以根据脏污参数来确定喷液件的喷液量,并控制喷液件按照确定的喷液量在当前喷液周期内对清洁件进行喷液。喷液件的喷液量与脏污参数所表示的脏污程度正相关,即,当脏污参数越大,所表示待清洁区域的脏污程度越高,则喷液件的喷液量越大。After obtaining the above dirty parameters, the liquid spray volume of the liquid spray element can be determined according to the dirty parameters, and the liquid spray element can be controlled to spray liquid to the cleaning element in the current liquid spray cycle according to the determined liquid spray volume. The amount of liquid sprayed by the liquid spraying parts is positively correlated with the degree of dirt indicated by the dirt parameter, that is, when the dirt parameter is greater, the degree of dirt in the area to be cleaned is higher, and the amount of liquid sprayed by the liquid spraying parts is higher. big.
对于当前喷液周期之后的每一个喷液周期,可以采用类似的方式确定喷液件的喷液量,并控制喷液件按照确定的喷液量对清洁件进行喷液,已 经进行过说明的,在此不做赘述。For each spray cycle after the current spray cycle, a similar method can be used to determine the liquid spray volume of the liquid spray parts, and control the liquid spray parts to spray liquid to the cleaning parts according to the determined liquid spray volume, which has been explained , which will not be described here.
通过本实施例,通过对地面的脏污程度进行解析,按照待清洁地面的脏污程度控制喷液件的喷液量,可以提高区域清洁的清洁效果,同时减少液体残留。Through this embodiment, by analyzing the degree of dirt on the ground, the amount of liquid sprayed by the liquid spraying member is controlled according to the degree of dirt on the ground to be cleaned, so as to improve the cleaning effect of area cleaning and reduce liquid residue.
在一个示例性实施例中,控制清洁设备的喷液件按照目标频率向清洁设备的清洁件喷洒液体,包括:In an exemplary embodiment, controlling the liquid spraying part of the cleaning device to spray liquid to the cleaning part of the cleaning device according to a target frequency includes:
S71,向清洁设备的行程开关发送接通命令,其中,行程开关为喷液件的控制开关;S71, sending a connection command to the travel switch of the cleaning device, wherein the travel switch is a control switch of the liquid spraying part;
S72,响应于接通命令,接通行程开关,以接通喷液件,其中,接通后的喷液件按照目标频率向清洁件喷洒液体。S72, in response to the turn-on command, turn on the travel switch to turn on the liquid spraying element, wherein the turned-on liquid spraying element sprays liquid to the cleaning element according to the target frequency.
在本实施例中,为了提高清洁设备清洁的灵活性,可以通过行程开关控制喷液件进行喷液。上述行程开关可以设置在喷液件的喷液口处,可以根据清洁设备的移动方向控制喷液件进行喷液或停止喷液。In this embodiment, in order to improve the cleaning flexibility of the cleaning device, the liquid spraying member can be controlled to spray liquid through the travel switch. The above-mentioned travel switch can be arranged at the liquid spraying port of the liquid spraying part, and can control the liquid spraying part to spray liquid or stop liquid spraying according to the moving direction of the cleaning equipment.
在使用清洁设备进行清洁的过程中,清洁设备可以根据清洁设备的移动方向确定是否需要喷液件向清洁件上喷洒液体,如果需要,可以向行程开关发送接通指令。行程开关可以响应于接通指令,执行打开操作,接通喷液件,使得喷液件按照设定的喷液方式喷洒液体(例如,按照固定频率喷洒液体)。如果不需要,可以向行程开关发送断开指令。行程开关可以响应于断开指令,执行断开操作,断开喷液件,不向清洁件喷洒液体。During the cleaning process using the cleaning device, the cleaning device can determine whether the liquid spraying part needs to spray liquid on the cleaning part according to the moving direction of the cleaning device, and if necessary, can send an on command to the travel switch. The limit switch can be opened in response to a turn-on command to turn on the liquid spraying part, so that the liquid spraying part sprays liquid according to a set spraying method (for example, spraying liquid according to a fixed frequency). If not needed, a disconnection command can be sent to the travel switch. The travel switch can perform a disconnection operation in response to a disconnection command to disconnect the liquid spraying part and not spray liquid to the cleaning part.
通过本实施例,通过控制行程开关来控制喷液件在清洁设备向前移动的过程中进行喷液,在清洁设备向后移动的过程中停止喷液,可以提高区域清洁的便捷性。Through this embodiment, by controlling the travel switch to control the liquid spraying member to spray liquid during the forward movement of the cleaning device, and to stop spraying liquid during the backward movement of the cleaning device, the convenience of area cleaning can be improved.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence. Depending on the application, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by this application.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当 然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM(Read-Only Memory,只读存储器)/RAM(Random Access Memory,随机存取存储器)、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in other words, the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM (Read-Only Memory, Read-only memory)/RAM (Random Access Memory, random access memory), magnetic disk, optical disk), including several instructions to make a terminal device (which can be a mobile phone, computer, server, or network device, etc.) execute this Apply the method described in each example.
根据本申请实施例的又一个方面,还提供了还提供了一种用于实施上述清洁设备的控制方法的清洁设备的控制装置。图5是根据本申请实施例的一种可选的清洁设备的控制装置的结构框图,如图5所示,该装置可以包括:According to still another aspect of the embodiments of the present application, there is also provided a cleaning device control device for implementing the above cleaning device control method. Fig. 5 is a structural block diagram of an optional cleaning device control device according to an embodiment of the present application. As shown in Fig. 5, the device may include:
启动单元502,用于响应于获取到的启动指令,启动清洁设备;A starting unit 502, configured to start the cleaning device in response to the acquired starting instruction;
确定单元504,与启动单元502相连,用于确定清洁设备当前的移动方向;A determining unit 504, connected to the starting unit 502, for determining the current moving direction of the cleaning device;
第一控制单元506,与确定单元504相连,用于在移动方向为后退方向的情况下,控制清洁设备的喷液件停止向清洁设备的清洁件喷洒液体。The first control unit 506 is connected with the determination unit 504 and is used for controlling the liquid spraying part of the cleaning device to stop spraying liquid on the cleaning part of the cleaning device when the moving direction is the backward direction.
需要说明的是,该实施例中的启动单元502可以用于执行上述步骤S202,该实施例中的确定单元504可以用于执行上述步骤S204,该实施例中的第一控制单元506可以用于执行上述步骤S206。It should be noted that the starting unit 502 in this embodiment can be used to perform the above step S202, the determining unit 504 in this embodiment can be used to perform the above step S204, and the first control unit 506 in this embodiment can be used to Execute the above step S206.
通过上述模块,响应于获取到的启动指令,启动清洁设备;确定清洁设备当前的移动方向;在移动方向为后退方向的情况下,控制清洁设备的喷液件停止向清洁设备的清洁件喷洒液体,解决了相关技术中的清洁设备的控制方法存在由于喷洒的液体易残留在地面导致的清洁效果差的问题,提高了地面清洁效果。Through the above modules, start the cleaning device in response to the acquired startup instruction; determine the current moving direction of the cleaning device; and control the liquid spraying part of the cleaning device to stop spraying liquid to the cleaning part of the cleaning device when the moving direction is the backward direction The invention solves the problem of poor cleaning effect caused by the sprayed liquid easily remaining on the ground in the control method of the cleaning equipment in the related art, and improves the ground cleaning effect.
在一个示例性实施例中,确定单元包括:In an exemplary embodiment, the determination unit includes:
检测模块,用于通过清洁设备上的检测部件检测移动方向。The detection module is used to detect the moving direction through the detection part on the cleaning device.
在一个示例性实施例中,检测模块包括:In an exemplary embodiment, the detection module includes:
第一确定子模块,用于通过霍尔传感器检测清洁设备的滚动轮的转动方向,确定与转动方向匹配的移动方向;The first determination sub-module is used to detect the rotation direction of the scroll wheel of the cleaning device through the Hall sensor, and determine the moving direction matching the rotation direction;
第二确定子模块,用于通过霍尔传感器检测清洁设备的手柄的位移方向;The second determination sub-module is used to detect the displacement direction of the handle of the cleaning device through the Hall sensor;
第三确定子模块,用于根据清洁设备的手柄的位移方向,确定移动方向。The third determining submodule is used to determine the moving direction according to the displacement direction of the handle of the cleaning device.
在一个示例性实施例中,检测模块包括:In an exemplary embodiment, the detection module includes:
采集子模块,用于通过清洁设备的第一图像采集设备进行图像采集,得到多张采集图像;The collection sub-module is used to collect images through the first image collection device of the cleaning device to obtain multiple collection images;
第四确定子模块,用于根据参考对象在多张采集图像中的位置变化,确定移动方向。The fourth determination sub-module is used to determine the moving direction according to the position changes of the reference object in the multiple captured images.
在一个示例性实施例中,确定单元包括:In an exemplary embodiment, the determination unit includes:
生成模块,用于根据目标清洁区域的区域信息,生成清洁指令,其中,清洁指令用于指示清洁设备清洁目标清洁区域的移动路径;A generation module, configured to generate a cleaning instruction according to the area information of the target cleaning area, wherein the cleaning instruction is used to instruct the cleaning device to clean the moving path of the target cleaning area;
第一确定模块,用于根据清洁指令,确定清洁设备沿着移动路径进行移动的移动方向。The first determining module is configured to determine the moving direction of the cleaning device along the moving path according to the cleaning instruction.
在一个示例性实施例中,上述装置还包括:In an exemplary embodiment, the above-mentioned device also includes:
第二控制单元,用于在确定清洁设备当前的移动方向之后,在移动方向为前进方向的情况下,控制清洁设备的喷水件按照目标频率向清洁设备的清洁件喷液。The second control unit is configured to control the water spraying part of the cleaning device to spray liquid to the cleaning part of the cleaning device according to a target frequency when the moving direction is the forward direction after determining the current moving direction of the cleaning device.
在一个示例性实施例中,第二控制单元包括:In an exemplary embodiment, the second control unit includes:
采集模块,用于在当前喷液周期内,通过第二图像采集设备对清洁设备前端的待清洁区域进行图像采集,得到目标采集图像;The collection module is used to collect the image of the area to be cleaned at the front end of the cleaning device through the second image collection device in the current liquid spray cycle, so as to obtain the target collection image;
解析模块,用于对目标采集图像进行图像解析,得到与待清洁区域对应的脏污参数,其中,图像解析结果用于表示待清洁区域的脏污程度;The analysis module is used to perform image analysis on the target acquisition image to obtain the dirt parameters corresponding to the area to be cleaned, wherein the image analysis result is used to indicate the degree of dirt in the area to be cleaned;
第二确定模块,用于根据脏污参数,确定喷液件的喷液量,其中,喷液量与脏污参数所表示的脏污程度正相关;The second determination module is used to determine the liquid injection volume of the liquid injection part according to the contamination parameter, wherein the liquid injection volume is positively correlated with the degree of contamination indicated by the contamination parameter;
控制模块,用于控制喷液件按照喷水量向清洁件喷液。The control module is used to control the liquid spraying part to spray liquid to the cleaning part according to the water spraying amount.
在一个示例性实施例中,第二控制单元包括:In an exemplary embodiment, the second control unit includes:
发送模块,用于向所述清洁设备的行程开关发送接通命令,其中,所述行程开关为所述喷液件的控制开关;A sending module, configured to send an on command to a travel switch of the cleaning device, wherein the travel switch is a control switch of the liquid spraying member;
接收模块,用于响应于所述接通命令,接通所述行程开关,以接通所述喷液件,其中,接通后的所述喷液件按照所述目标频率向所述清洁件喷洒液体。a receiving module, configured to respond to the switching command, and turn on the travel switch to turn on the liquid spraying element, wherein the liquid spraying element is turned on to the cleaning element according to the target frequency Spray liquid.
此处需要说明的是,上述模块与对应的步骤所实现的示例和应用场景相同,但不限于上述实施例所公开的内容。It should be noted here that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the content disclosed in the above embodiments.
需要说明的是,上述模块作为装置的一部分可以运行在如图1所示的硬件环境中,可以通过软件实现,也可以通过硬件实现,其中,硬件环境包括网络环境。It should be noted that, as a part of the device, the above modules can run in the hardware environment shown in FIG. 1 , and can be implemented by software or by hardware, wherein the hardware environment includes a network environment.
根据本申请实施例的又一个方面,还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以用于执行本申请实施例中上述任一项清洁设备的控制方法的程序代码。According to still another aspect of the embodiments of the present application, a storage medium is also provided. Optionally, in this embodiment, the foregoing storage medium may be used to execute the program code of any one of the foregoing cleaning device control methods in the embodiments of the present application.
可选地,在本实施例中,上述存储介质可以位于上述实施例所示的网络中的多个网络设备中的至少一个网络设备上。Optionally, in this embodiment, the foregoing storage medium may be located on at least one network device among the plurality of network devices in the network shown in the foregoing embodiments.
可选地,在本实施例中,存储介质被设置为存储用于执行以下步骤的程序代码:Optionally, in this embodiment, the storage medium is configured to store program codes for performing the following steps:
S1,响应于获取到的启动指令,启动清洁设备;S1, start the cleaning device in response to the acquired starting instruction;
S2,确定清洁设备当前的移动方向;S2, determining the current moving direction of the cleaning device;
S3,在移动方向为后退方向的情况下,控制清洁设备的喷液件停止向清洁设备的清洁件喷洒液体。S3, when the moving direction is the backward direction, control the liquid spraying part of the cleaning device to stop spraying liquid to the cleaning part of the cleaning device.
可选地,本实施例中的具体示例可以参考上述实施例中所描述的示例,本实施例中对此不再赘述。Optionally, for specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments, which will not be repeated in this embodiment.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、ROM、RAM、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the above-mentioned storage medium may include, but not limited to, various media capable of storing program codes such as USB flash drive, ROM, RAM, removable hard disk, magnetic disk, or optical disk.
根据本申请实施例的又一个方面,还提供了一种用于实施上述清洁设备的控制方法的电子装置,该电子装置可以是服务器、终端、或者其组合。According to yet another aspect of the embodiments of the present application, an electronic device for implementing the above cleaning device control method is also provided, and the electronic device may be a server, a terminal, or a combination thereof.
图6是根据本申请实施例的一种可选的电子装置的结构框图,如图6所示,包括处理器602、通信接口604、存储器606和通信总线608,其中,处 理器602、通信接口604和存储器606通过通信总线608完成相互间的通信,其中,Fig. 6 is a structural block diagram of an optional electronic device according to an embodiment of the present application. 604 and memory 606 complete mutual communication through communication bus 608, wherein,
存储器606,用于存储计算机程序; memory 606, for storing computer programs;
处理器602,用于执行存储器606上所存放的计算机程序时,实现如下步骤:When the processor 602 is used to execute the computer program stored on the memory 606, the following steps are implemented:
S1,响应于获取到的启动指令,启动清洁设备;S1, start the cleaning device in response to the acquired starting instruction;
S2,确定清洁设备当前的移动方向;S2, determining the current moving direction of the cleaning device;
S3,在移动方向为后退方向的情况下,控制清洁设备的喷液件停止向清洁设备的清洁件喷洒液体。S3, when the moving direction is the backward direction, control the liquid spraying part of the cleaning device to stop spraying liquid to the cleaning part of the cleaning device.
可选地,在本实施例中,通信总线可以是PCI(Peripheral Component Interconnect,外设部件互连标准)总线、或EISA(Extended Industry Standard Architecture,扩展工业标准结构)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图6中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。通信接口用于上述电子装置与其他设备之间的通信。Optionally, in this embodiment, the communication bus may be a PCI (Peripheral Component Interconnect, Peripheral Component Interconnect Standard) bus, or an EISA (Extended Industry Standard Architecture, Extended Industry Standard Architecture) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is used in FIG. 6 , but it does not mean that there is only one bus or one type of bus. The communication interface is used for communication between the electronic device and other devices.
上述的存储器可以包括RAM,也可以包括非易失性存储器(non-volatile memory),例如,至少一个磁盘存储器。可选地,存储器还可以是至少一个位于远离前述处理器的存储装置。The above-mentioned memory may include RAM, and may also include non-volatile memory (non-volatile memory), for example, at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
作为一种示例,上述存储器606中可以但不限于包括上述设备的控制装置中的启动单元502、确定单元504、以及第一控制单元506。此外,还可以包括但不限于上述设备的控制装置中的其他模块单元,本示例中不再赘述。As an example, the memory 606 may include, but is not limited to, the starting unit 502, the determining unit 504, and the first control unit 506 in the control device of the above-mentioned device. In addition, it may also include but not limited to other module units in the control device of the above equipment, which will not be described in detail in this example.
上述处理器可以是通用处理器,可以包含但不限于:CPU(Central Processing Unit,中央处理器)、NP(Network Processor,网络处理器)等;还可以是DSP(Digital Signal Processing,数字信号处理器)、ASIC(Application Specific Integrated Circuit,专用集成电路)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。Above-mentioned processor can be general-purpose processor, can include but not limited to: CPU (Central Processing Unit, central processing unit), NP (Network Processor, network processor) etc.; Can also be DSP (Digital Signal Processing, digital signal processor ), ASIC (Application Specific Integrated Circuit, application specific integrated circuit), FPGA (Field-Programmable Gate Array, field programmable gate array) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
可选地,本实施例中的具体示例可以参考上述实施例中所描述的示例,本实施例在此不再赘述。Optionally, for specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments, and details are not repeated in this embodiment.
本领域普通技术人员可以理解,图6所示的结构仅为示意,实施上述清洁设备的控制的设备可以是终端设备,该终端设备可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌上电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。图6其并不对上述电子装置的结构造成限定。例如,电子装置还可包括比图6中所示更多或者更少的组件(如网络接口、显示装置等),或者具有与图6所示的不同的配置。Those of ordinary skill in the art can understand that the structure shown in Figure 6 is only for illustration, and the device implementing the control of the above-mentioned cleaning device can be a terminal device, and the terminal device can be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer , handheld computers and mobile Internet devices (Mobile Internet Devices, MID), PAD and other terminal equipment. FIG. 6 does not limit the structure of the above-mentioned electronic device. For example, the electronic device may also include more or fewer components than those shown in FIG. 6 (such as a network interface, a display device, etc.), or have a different configuration from that shown in FIG. 6 .
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令终端设备相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:闪存盘、ROM、RAM、磁盘或光盘等。Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can be Including: flash disk, ROM, RAM, magnetic disk or optical disk, etc.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present application are for description only, and do not represent the advantages and disadvantages of the embodiments.
上述实施例中的集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在上述计算机可读取的存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在存储介质中,包括若干指令用以使得一台或多台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。If the integrated units in the above embodiments are realized in the form of software function units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium. Several instructions are included to make one or more computer devices (which may be personal computers, servers or network devices, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
在本申请的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments of the present application, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的客户端,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed client can be implemented in other ways. Wherein, the device embodiments described above are only illustrative, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or can be Integrate into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of units or modules may be in electrical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地 方,也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例中所提供的方案的目的。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 distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution provided in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
以上所述仅是本申请的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。The above description is only the preferred embodiment of the present application. It should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present application, some improvements and modifications can also be made. These improvements and modifications are also It should be regarded as the protection scope of this application.
Claims (11)
- 一种清洁设备的控制方法,其特征在于,包括:A control method for cleaning equipment, characterized by comprising:响应于获取到的启动指令,启动所述清洁设备;activating the cleaning device in response to the acquired activation instruction;确定所述清洁设备当前的移动方向;determining the current moving direction of the cleaning device;在所述移动方向为后退方向的情况下,控制所述清洁设备的喷液件停止向所述清洁设备的清洁件喷洒液体。When the moving direction is the backward direction, the liquid spraying part of the cleaning device is controlled to stop spraying liquid to the cleaning part of the cleaning device.
- 根据权利要求1所述的方法,其特征在于,所述确定所述清洁设备当前的移动方向,包括:The method according to claim 1, wherein the determining the current moving direction of the cleaning device comprises:通过所述清洁设备上的检测部件检测所述移动方向。The moving direction is detected by a detection component on the cleaning device.
- 根据权利要求2所述的方法,其特征在于,所述通过所述清洁设备上的检测部件检测所述移动方向,包括:The method according to claim 2, wherein the detecting the moving direction through a detection component on the cleaning device comprises:通过霍尔传感器检测所述清洁设备的车轮的转动方向,确定与所述转动方向匹配的所述移动方向;和/或Detecting the direction of rotation of the wheels of the cleaning device through a Hall sensor, and determining the direction of movement that matches the direction of rotation; and/or通过霍尔传感器检测所述清洁设备的手柄的位移方向;根据所述清洁设备的手柄的位移方向,确定所述移动方向。The displacement direction of the handle of the cleaning device is detected by a Hall sensor; the moving direction is determined according to the displacement direction of the handle of the cleaning device.
- 根据权利要求2所述的方法,其特征在于,所述通过所述清洁设备上的检测部件检测所述移动方向,包括:The method according to claim 2, wherein the detecting the moving direction through a detection component on the cleaning device comprises:通过所述清洁设备的第一图像采集设备进行图像采集,得到多张采集图像;Image acquisition is performed by the first image acquisition device of the cleaning device to obtain a plurality of acquired images;根据参考对象在所述多张采集图像中的位置变化,确定所述移动方向。The moving direction is determined according to the position changes of the reference object in the plurality of captured images.
- 根据权利要求1所述的方法,其特征在于,所述确定所述清洁设备当前的移动方向,包括:The method according to claim 1, wherein the determining the current moving direction of the cleaning device comprises:根据目标清洁区域的区域信息,生成清洁指令,其中,所述清洁指令用于指示所述清洁设备清洁所述目标清洁区域的移动路径;Generating a cleaning instruction according to the area information of the target cleaning area, wherein the cleaning instruction is used to instruct the cleaning device to clean a movement path of the target cleaning area;根据所述清洁指令,确定所述清洁设备沿着所述移动路径进行移动的所述移动方向。The moving direction in which the cleaning device moves along the moving path is determined according to the cleaning instruction.
- 根据权利要求1至5中任一项所述的方法,其特征在于,在所述确定所述清洁设备当前的移动方向之后,所述方法还包括:The method according to any one of claims 1 to 5, wherein after the determination of the current moving direction of the cleaning device, the method further comprises:在所述移动方向为前进方向的情况下,控制所述清洁设备的喷液件按照目标频率向所述清洁设备的清洁件喷洒液体。When the moving direction is the forward direction, the liquid spraying part of the cleaning device is controlled to spray liquid to the cleaning part of the cleaning device according to a target frequency.
- 根据权利要求6所述的方法,其特征在于,所述控制所述清洁设备的喷液件按照目标频率向所述清洁设备的清洁件喷洒液体,包括:The method according to claim 6, wherein the controlling the liquid spraying part of the cleaning device to spray liquid to the cleaning part of the cleaning device according to a target frequency comprises:在当前喷液周期内,通过第二图像采集设备对所述清洁设备前端的待清洁区域进行图像采集,得到目标采集图像;In the current liquid spray cycle, the second image acquisition device is used to collect images of the area to be cleaned at the front end of the cleaning device to obtain a target acquisition image;对所述目标采集图像进行图像解析,得到与所述待清洁区域对应的脏污参数,其中,所述图像解析结果用于表示所述待清洁区域的脏污程度;Performing image analysis on the collected image of the target to obtain a dirt parameter corresponding to the area to be cleaned, wherein the image analysis result is used to indicate the degree of dirt of the area to be cleaned;根据所述脏污参数,确定所述喷液件的喷液量,其中,所述喷液量与所述脏污参数所表示的脏污程度正相关;determining the liquid injection volume of the liquid injection device according to the dirt parameter, wherein the liquid injection volume is positively correlated with the degree of dirt represented by the dirt parameter;控制所述喷液件按照所述喷液量向所述清洁件喷洒液体。The liquid spraying member is controlled to spray liquid to the cleaning member according to the liquid spraying amount.
- 根据权利要求6所述的方法,其特征在于,所述控制所述清洁设备的喷液件按照目标频率向所述清洁设备的清洁件喷洒液体,包括:The method according to claim 6, wherein the controlling the liquid spraying part of the cleaning device to spray liquid to the cleaning part of the cleaning device according to a target frequency comprises:向所述清洁设备的行程开关发送接通命令,其中,所述行程开关为所述喷液件的控制开关;sending an on command to the travel switch of the cleaning device, wherein the travel switch is a control switch of the liquid spraying member;响应于所述接通命令,接通所述行程开关,以接通所述喷液件,其中,接通后的所述喷液件按照所述目标频率向所述清洁件喷洒液体。In response to the turn-on command, the travel switch is turned on to turn on the liquid spraying element, wherein the turned-on liquid spraying element sprays liquid to the cleaning element according to the target frequency.
- 一种清洁设备的控制装置,其特征在于,包括:A control device for cleaning equipment, characterized in that it includes:启动单元,用于响应于获取到的启动指令,启动所述清洁设备;an activation unit, configured to activate the cleaning device in response to the acquired activation instruction;确定单元,用于确定所述清洁设备当前的移动方向;a determining unit, configured to determine the current moving direction of the cleaning device;第一控制单元,用于在所述移动方向为后退方向的情况下,控制所述清洁设备的喷液件停止向所述清洁设备的清洁件喷洒液体。The first control unit is configured to control the liquid spraying part of the cleaning device to stop spraying liquid to the cleaning part of the cleaning device when the moving direction is a backward direction.
- 一种计算机可读的存储介质,其特征在于,所述计算机可读的存储介质包括存储的程序,其中,所述程序运行时执行权利要求1至8中任一项所述的方法。A computer-readable storage medium, characterized in that the computer-readable storage medium includes a stored program, wherein, when the program runs, the method according to any one of claims 1 to 8 is executed.
- 一种电子装置,包括存储器和处理器,其特征在于,所述存储器中存储有计算机程序,所述处理器被设置为通过所述计算机程序执行权利要求1至8中任一项所述的方法。An electronic device, comprising a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 8 through the computer program .
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210022515.6A CN116439615A (en) | 2022-01-10 | 2022-01-10 | Control method and device of cleaning equipment, storage medium and electronic device |
CN202210022515.6 | 2022-01-10 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023131246A1 true WO2023131246A1 (en) | 2023-07-13 |
Family
ID=87073232
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2023/070725 WO2023131246A1 (en) | 2022-01-10 | 2023-01-05 | Control method and apparatus for cleaning device, storage medium, and electronic apparatus |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN116439615A (en) |
WO (1) | WO2023131246A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117478714B (en) * | 2023-11-09 | 2024-03-08 | 南京特沃斯清洁设备有限公司 | Cleaning equipment control method and device based on Internet of things |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20110069682A (en) * | 2009-12-17 | 2011-06-23 | 이정호 | A spoon washer |
KR20180093760A (en) * | 2017-02-13 | 2018-08-22 | 심종원 | Cleaning device for ceiling-type air conditioner |
CN109044197A (en) * | 2018-06-19 | 2018-12-21 | 江苏美的清洁电器股份有限公司 | A kind of self-induction system, scrubbing brush and the cleaning appliance of scrubbing brush |
CN110051287A (en) * | 2018-01-19 | 2019-07-26 | 添可电器有限公司 | Cleaning machine |
CN110786790A (en) * | 2018-08-03 | 2020-02-14 | 添可智能科技有限公司 | Cleaning apparatus and cleaning method |
CN111434301A (en) * | 2019-01-11 | 2020-07-21 | 添可智能科技有限公司 | Cleaning appliance and control method thereof |
CN111436863A (en) * | 2019-01-17 | 2020-07-24 | 添可智能科技有限公司 | Cleaning machine |
CN112515578A (en) * | 2020-11-25 | 2021-03-19 | 深圳拓邦股份有限公司 | Work control method and device of cleaning equipment and cleaning equipment |
-
2022
- 2022-01-10 CN CN202210022515.6A patent/CN116439615A/en active Pending
-
2023
- 2023-01-05 WO PCT/CN2023/070725 patent/WO2023131246A1/en unknown
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20110069682A (en) * | 2009-12-17 | 2011-06-23 | 이정호 | A spoon washer |
KR20180093760A (en) * | 2017-02-13 | 2018-08-22 | 심종원 | Cleaning device for ceiling-type air conditioner |
CN110051287A (en) * | 2018-01-19 | 2019-07-26 | 添可电器有限公司 | Cleaning machine |
CN109044197A (en) * | 2018-06-19 | 2018-12-21 | 江苏美的清洁电器股份有限公司 | A kind of self-induction system, scrubbing brush and the cleaning appliance of scrubbing brush |
CN110786790A (en) * | 2018-08-03 | 2020-02-14 | 添可智能科技有限公司 | Cleaning apparatus and cleaning method |
CN111434301A (en) * | 2019-01-11 | 2020-07-21 | 添可智能科技有限公司 | Cleaning appliance and control method thereof |
CN111436863A (en) * | 2019-01-17 | 2020-07-24 | 添可智能科技有限公司 | Cleaning machine |
CN112515578A (en) * | 2020-11-25 | 2021-03-19 | 深圳拓邦股份有限公司 | Work control method and device of cleaning equipment and cleaning equipment |
Also Published As
Publication number | Publication date |
---|---|
CN116439615A (en) | 2023-07-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11864700B2 (en) | Self-cleaning method for cleaning robot, cleaning robot, and cleaning system | |
WO2023051227A1 (en) | Control method and apparatus for cleaning device | |
WO2023131246A1 (en) | Control method and apparatus for cleaning device, storage medium, and electronic apparatus | |
WO2016090827A1 (en) | Garbage cleanup method and apparatus | |
US20190227566A1 (en) | Self-propelled vacuum cleaner | |
CN110297472A (en) | Apparatus control method, terminal, controlled plant, electronic equipment and storage medium | |
CN113467448A (en) | Fixed-point working method, self-moving robot and storage medium | |
CN106580193A (en) | Intelligent floor sweeping method and device and floor sweeping robot | |
CN111857136A (en) | Target map processing method and device | |
WO2023131161A1 (en) | Running control method and apparatus for cleaning device, and storage medium and electronic apparatus | |
CN112043206A (en) | Sweeping and mopping integrated machine and cleaning method thereof | |
US11819174B2 (en) | Cleaning control method and device, cleaning robot and storage medium | |
WO2023098455A1 (en) | Operation control method, apparatus, storage medium, and electronic apparatus for cleaning device | |
WO2023071773A1 (en) | Obstacle avoidance method and apparatus for sweeper, and storage medium and electronic apparatus | |
CN113995355B (en) | Robot management method, device, equipment and readable storage medium | |
CN113598652B (en) | Robot control method, robot control device, cleaning robot and storage medium | |
WO2023185247A1 (en) | Region cleaning control method and apparatus, and storage medium and electronic apparatus | |
WO2023082946A1 (en) | Control method for cleaning device, and device and storage medium | |
WO2024022360A1 (en) | Method, device, and system for controlling cleaning robot, and storage medium | |
CN212698736U (en) | Sweeping and mopping integrated machine | |
WO2023185574A1 (en) | Operation control method and apparatus for device, and storage medium and electronic apparatus | |
CN114617478A (en) | Cleaning control method and device, sweeping robot and storage medium | |
WO2023098225A1 (en) | Cleaning processing method and apparatus for cleaning device, and storage medium and electronic apparatus | |
WO2023142962A1 (en) | Liquid storage tank state detection method and apparatus, and storage medium and electronic apparatus | |
WO2023155732A1 (en) | Area information processing method and apparatus, storage medium, and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23737108 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |