WO2023155732A1 - 区域信息的处理方法及装置、存储介质及电子装置 - Google Patents

区域信息的处理方法及装置、存储介质及电子装置 Download PDF

Info

Publication number
WO2023155732A1
WO2023155732A1 PCT/CN2023/075216 CN2023075216W WO2023155732A1 WO 2023155732 A1 WO2023155732 A1 WO 2023155732A1 CN 2023075216 W CN2023075216 W CN 2023075216W WO 2023155732 A1 WO2023155732 A1 WO 2023155732A1
Authority
WO
WIPO (PCT)
Prior art keywords
partitions
target
boundary
area map
target area
Prior art date
Application number
PCT/CN2023/075216
Other languages
English (en)
French (fr)
Inventor
蔡洲
张新静
曹蒙
Original Assignee
追觅创新科技(苏州)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 追觅创新科技(苏州)有限公司 filed Critical 追觅创新科技(苏州)有限公司
Publication of WO2023155732A1 publication Critical patent/WO2023155732A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/235Update request formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4038Image mosaicing, e.g. composing plane images from plane sub-images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2200/00Indexing scheme for image data processing or generation, in general
    • G06T2200/32Indexing scheme for image data processing or generation, in general involving image mosaicing

Definitions

  • the present application relates to the field of smart home, in particular, to a method and device for processing area information, a storage medium and an electronic device.
  • an area map and a group of partitions in the area map can be configured for cleaning devices (for example, sweeping robots).
  • Different partitions can be represented by area boundaries (or dividing lines). By selecting all or part of the partitions, you can Control cleaning equipment for area cleaning (eg, sweeping).
  • the cleaning equipment can be used to identify area boundaries (for example, obstacles such as walls, grill doors, and sliding doors) during the process of area cleaning, and perform divisions based on the identified area boundaries.
  • area boundaries for example, obstacles such as walls, grill doors, and sliding doors
  • the partition division will be unreasonable, causing the cleaning equipment to spend a lot of time cleaning the area with a small partition area, which increases the cleaning time of the cleaning equipment.
  • the purpose of this application is to provide a method and device for processing area information, a storage medium, and an electronic device, so as to at least solve the problem of low cleaning efficiency due to unreasonable partition settings in the area information processing method in the related art.
  • a method for processing area information including: displaying a target area map on the target configuration interface of the target application, wherein the target area map includes a set of first boundaries, and A group of first partitions into which the group of first boundaries are divided; in the case of detecting a region combining operation performed on the target area map, determining at least two of the regions to be merged in the group of first partitions The first partition: removing a first boundary between adjacent first partitions in the at least two first partitions to obtain a merged partition.
  • the determining at least two first subregions to be merged in the group of first subregions in the case of detecting a region combining operation performed on the target area map includes: When the selection operation and the first trigger operation respectively performed on the at least two first partitions are detected, the at least two partitions are determined as waiting areas partitions, wherein the first trigger operation is used to trigger merging of the partitions selected by the selection operation; or, when a frame selection operation performed on the target area map and a second trigger operation are detected, Determining the at least two first partitions selected by the frame selection operation as partitions to be merged, wherein the second trigger operation is used to trigger the merging of the partitions selected by the frame selection operation .
  • the displaying the target area map on the target configuration interface of the target application includes: receiving a target indication message sent by a cleaning device corresponding to the target area map, wherein the target indication message It is used to indicate the cleaned partitions in the target area map; in response to the target indication message, determine the partitions to be cleaned in the target area map to obtain the group of first partitions; in the target application
  • the target configuration interface displays the target area map, wherein other area boundaries in the target area map except for the set of first boundaries are not displayed on the target area map.
  • the method further includes: The cleaning device sends an update instruction message, where the update instruction message is used to instruct to update the at least two first partitions as the merged partitions, so that the cleaning device can clean the merged partitions.
  • the method further includes: in the case of detecting an adding operation performed on the target area map, determining the target A group of second partitions matching the target boundary in the area map, wherein the adding operation is used to add the target boundary in the target area map; according to the target boundary and corresponding to the group of second partitions A group of second boundaries of , performing a split operation on the group of second partitions to obtain a group of third partitions.
  • said method before said determining a group of second partitions in said target area map that match said target boundary, said method further includes: detecting The matching boundary corresponding to each vertex, wherein, the matching boundary corresponding to each vertex is that the target area map intersects with the target boundary, and the distance between each vertex is less than or equal to the preset Set the area boundary of the distance threshold; in the case that the area boundary corresponding to the target vertex in the two vertices is not detected, use the target vertex as the starting point to perform an extension operation on the target boundary to obtain the extended The target boundary, wherein the extended target vertex has a corresponding matching boundary.
  • the method before performing the split operation on the set of second partitions according to the target boundary and a set of second boundaries corresponding to the set of second partitions, the method further Including: determining a group of boundaries to be split in the target area map, wherein each boundary to be split in the group of boundaries to be split has an intersection point with the target boundary; The intersection point of the split boundary and the target boundary is a split point and a split operation is performed on each boundary to be split to obtain a set of split boundaries, wherein the set of second boundaries includes the one Group has split boundaries.
  • an apparatus for processing area information including: a display unit, It is used to display the target area map on the target configuration interface of the target application, wherein the target area map includes a group of first boundaries and a group of first partitions divided by the group of first boundaries; the first A determining unit, configured to determine at least two first partitions to be merged in the set of first partitions in the case of detecting a region combining operation performed on the target area map; a removing unit, configured to remove A first boundary between adjacent first partitions in the at least two first partitions results in a merged partition.
  • the first determining unit includes: a first determining module, configured to, in a case where a selection operation and a first trigger operation performed on the at least two first partitions respectively are detected, Determining the at least two partitions as partitions to be merged, wherein the first trigger operation is used to trigger the merge of the partitions selected by the selection operation; or, the second determination module is used to detect the In the case of the frame selection operation performed by the target area map and the second trigger operation, the at least two first partitions selected by the frame selection operation are determined as partitions to be merged, wherein the first The second trigger operation is used to trigger the merging of the partitions selected by the frame selection operation.
  • the display unit includes: a receiving module, configured to receive a target indication message sent by a cleaning device corresponding to the target area map, wherein the target indication message is used to indicate the Cleaned partitions in the target area map; a third determination module, configured to determine the partitions to be cleaned in the target area map in response to the target indication message, and obtain the group of first partitions; a display module, configured to The target area map is displayed on the target configuration interface of the target application, wherein other area boundaries in the target area map except for the set of first boundaries are not displayed on the target area map.
  • the apparatus further includes: a sending unit, configured to obtain a merged partition after removing a first boundary between adjacent first partitions in the at least two first partitions Afterwards, an update indication message is sent to the cleaning device, wherein the update indication message is used to indicate that the at least two first partitions are updated as the merged partitions, so that the merged partitions are updated by the cleaning device. Partitions are cleaned.
  • the device further includes: a second determining unit, configured to detect an addition operation performed on the target area map after the target area map is displayed on the target configuration interface of the target application In this case, a group of second partitions matching the target boundary in the target area map is determined, wherein the adding operation is used to add the target boundary in the target area map; the first execution unit is configured to: The target boundary and a group of second boundaries corresponding to the group of second partitions, and performing a split operation on the group of second partitions to obtain a group of third partitions.
  • a second determining unit configured to detect an addition operation performed on the target area map after the target area map is displayed on the target configuration interface of the target application In this case, a group of second partitions matching the target boundary in the target area map is determined, wherein the adding operation is used to add the target boundary in the target area map
  • the first execution unit is configured to: The target boundary and a group of second boundaries corresponding to the group of second partitions, and performing a split operation on the group of second partitions to obtain
  • the apparatus further includes: a detection unit, configured to, before determining a group of second partitions in the target area map that match the target boundary, detect A matching boundary corresponding to each vertex in the two vertices, wherein, the matching boundary corresponding to each vertex is an intersection between the target area map and the target boundary and each vertex A region boundary whose distance is less than or equal to a preset distance threshold; the second execution unit is configured to, if no region boundary corresponding to the target vertex among the two vertices is detected, execute the The target vertex is used as the starting point to perform an extension operation on the target boundary to obtain the extended target boundary, wherein the extended target vertex has a corresponding matching boundary.
  • a detection unit configured to, before determining a group of second partitions in the target area map that match the target boundary, detect A matching boundary corresponding to each vertex in the two vertices, wherein, the matching boundary corresponding to each vertex is an intersection between the target area map and the target boundary and each vertex A region boundary whose distance
  • the apparatus further includes: a third determining unit, configured to, according to the target boundary and a set of second boundaries corresponding to the set of second partitions, perform a Before performing the segmentation operation on the second partition, determine a set of boundaries to be split in the target area map, wherein each boundary to be split in the set of boundaries to be split has an intersection point with the target boundary ;
  • a third execution unit configured to use the intersection point of each boundary to be split and the target boundary as a split point to perform a split operation on each boundary to be split to obtain a set of split boundaries , wherein the set of second boundaries includes the set of split boundaries.
  • 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 method of merging the existing partitions in the area map through the configuration interface in the application is adopted, and the target area map is displayed on the target configuration interface of the target application, wherein the target area map contains a set of The first boundary, and a group of first partitions divided by a group of first boundaries; in the case of detection of a combined region operation performed on the target area map, determine at least two of the to-be-combined regions in the group of first partitions
  • the first partition remove the first boundary between the adjacent first partitions in at least two first partitions, and obtain the merged partitions.
  • the existing partitions in the area map are displayed through the configuration interface in the application, it is convenient for users Knowing the partition situation in the area map is convenient for users to determine the rationality of the partition, and if the merge operation is detected, the border of the adjacent area in the partition to be merged is removed to perform regional merging, which can quickly implement unreasonable partitions.
  • the purpose of merging can achieve the technical effect of improving the rationality of partitions and further improving the cleaning efficiency of cleaning equipment, thereby solving the problem of low cleaning efficiency caused by unreasonable partition settings in the processing method of regional information in related technologies.
  • FIG. 1 is a schematic diagram of a hardware environment of an optional region information processing method according to an embodiment of the present application
  • FIG. 2 is a schematic flowchart of an optional method for processing area information according to an embodiment of the present application
  • FIG. 3 is a schematic diagram of an optional selection of partitions to be merged according to an embodiment of the present application
  • FIG. 4 is a schematic diagram of an optional display area information according to an embodiment of the present application.
  • FIG. 5 is a schematic diagram of an optional merged partition according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of an optional border addition according to an embodiment of the present application.
  • FIG. 7 is a schematic diagram of an optional split boundary according to an embodiment of the present application.
  • Fig. 8 is a structural block diagram of an optional device for processing area information according to an embodiment of the present application.
  • Fig. 9 is a structural block diagram of an optional electronic device according to an embodiment of the present application.
  • a method for processing area information is provided.
  • the above method for processing area information 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 method for processing area information 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 method for processing area information in the embodiment of the present application performed 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 method for processing area information according to an embodiment of the present application. As shown in FIG. 2 , the The flow of the method may include the following steps:
  • Step S202 displaying the target area map on the target configuration interface of the target application, wherein the target area map includes a set of first boundaries and a set of first partitions divided by the set of first boundaries.
  • the method for processing area information in this embodiment can be applied to the scene where the map operation is performed based on the area boundary collected by the cleaning equipment.
  • the above-mentioned area boundary can be the area boundary in the target area map of the cleaning equipment, which can correspond to
  • the detected obstacles such as grid doors, moving doors, walls, and large pieces of furniture can also be other area boundaries that can be used as dividing lines for partitions.
  • the above map operation may be performing a partition operation, a merge operation of partitions, an addition operation of partitions, etc. on the target area map.
  • the above-mentioned cleaning equipment can be a floor-washing robot, a floor-sweeping robot, or other area-cleaning equipment with an area-cleaning function.
  • the area-cleaning method of the above-mentioned cleaning equipment can be integrated washing and mopping, or cleaning.
  • the target area cleaned by the cleaning device may be an indoor area in the user's home, or other areas such as a factory workshop or a company's office, or other areas that can be cleaned by the cleaning device. This is not limited in this embodiment.
  • the cleaning device can be equipped with detection components such as laser sensors, infrared sensors, and image acquisition devices (such as cameras).
  • detection components such as laser sensors, infrared sensors, and image acquisition devices (such as cameras).
  • the cleaning device can use one or more detection components.
  • Collect regional information for example, identify regional information such as grid doors and sliding doors, obtain a map of the target area, and save the map information of the target area, for example, save it in the cleaning equipment, save it on the server, and save it in the corresponding on the terminal device.
  • the cleaning device may update the target area map.
  • partition processing can be performed based on the collected area information to obtain each partition and the area boundary (that is, the dividing line) of each partition, and save the target area map and all area boundaries .
  • the sweeping robot returns to the charging base for partition processing.
  • the grid door, sliding door and other information are processed and used for partitioning, and the target area map and all dividing line information are saved.
  • the sweeping robot cleans again, can reuse the previous map, and can also identify the door like the first cleaning. After returning to the charging stand, the map of the target area will be updated.
  • the target area map of the cleaning device can be configured through the target application on the terminal device.
  • a target application can be run on the terminal device.
  • the target application can be an application program installed on the terminal device.
  • the user can associate with the cleaning device through the target application, and the partition configuration in the target area map can be performed through the target configuration interface of the target application .
  • the target area map can be displayed on the target configuration interface, and the target area map can display obstacle information in the target area, partition information, and area boundary information of the partition, etc.
  • the terminal device can also detect the map configuration operation performed by the user on the target configuration interface of the target application, and generate a map configuration command to update the obstacle information, partition information, and zone boundary information on the target area map. Make adjustments.
  • a group of first boundaries and a group of first partitions divided by the group of first boundaries may be displayed in the map of the target area.
  • a set of first partitions can be all partitions in the target area map, or all partitions that need to be cleaned when performing an area cleaning, or the remaining partitions to be cleaned (that is, the partitions that have been cleaned are not displayed) , which can also be one or more partitions selected from the target area map.
  • the aforementioned set of first boundaries may be a set of dividing lines that divide the target area map into multiple first partitions.
  • Step S204 in the case of detecting the area combining operation performed on the target area map, determining at least two first subregions to be combined in a group of first subregions.
  • the user may perform a region-merging operation on at least two first partitions in the target configuration interface, so as to trigger the target application to merge the at least two first partitions into one partition.
  • the above merge operation may be a combination of one or more operations.
  • the above merge operation may include selection operations performed on at least two partitions (for example, separate selection, simultaneous selection, etc.), and may also include triggering the generation of a merge command trigger action.
  • the above-mentioned zone combining operation may include but not limited to at least one of the following: click operation, double-tap operation, long press operation, and slide operation. In this embodiment, there is no limitation on the area merge operation.
  • the terminal device may detect the above operation of combining regions, and generate a region combining instruction, where the region combining instruction is used to instruct the target application to merge at least two first partitions into one partition.
  • the target application can determine at least two first partitions to be merged.
  • the terminal device may mark at least two first subregions of the area to be merged on the map of the target area.
  • Step S206 removing a first boundary between adjacent first partitions in at least two first partitions to obtain a merged partition.
  • the user can merge two or more partitions, delete the dividing line originally used to divide the two areas, and save the updated dividing line information.
  • the terminal device may merge the at least two first partitions.
  • region merging is performed, the region information of each of the at least two first partitions may be merged to obtain region information of the merged partitions. Because a set of first boundaries includes first boundaries for distinguishing adjacent partitions in at least two first partitions. In order to ensure the accuracy of the boundary information, at least two first partitions can be removed The first boundary between adjacent first partitions in .
  • any two adjacent first partitions in the two first partitions can be respectively determined The first partition, and remove the first boundary line between any two adjacent first partitions.
  • the first boundary corresponding to at least two first partitions can be determined according to the area information of the merged partitions , belong to the first boundaries in the merged partition, and remove the determined first boundaries, so as to obtain an updated set of first boundaries.
  • the terminal device may update the target area map, the updated area map includes the merged partitions, and also includes an updated set of first border.
  • the terminal device may send the updated target area map to the server, or may send the updated target area map to the cleaning device through the server.
  • the cleaning device may receive the updated target area map, and perform subsequent operations according to the updated target area map, for example, clean all or part of the target area.
  • the target area map is displayed on the target configuration interface of the target application, wherein the target area map includes a set of first boundaries and a set of first partitions divided by the set of first boundaries;
  • the target area map includes a set of first boundaries and a set of first partitions divided by the set of first boundaries;
  • the first boundary of the merged partition is obtained, which solves the problem of low cleaning efficiency due to unreasonable partition settings in the processing method of the regional information in the related technology, improves the rationality of the partition, and then improves the cleaning efficiency of the cleaning equipment.
  • determining at least two first partitions to be merged in a group of first partitions includes:
  • the above-mentioned merging operation may include one or more types, and may include an operation of selecting at least two partitions, and a triggering operation of triggering the generation of a merge instruction.
  • the terminal device may detect selection operations performed on at least two first partitions respectively. In response to the selection operation, the terminal device may mark the selected first subregion in the target area map. After the selected at least two first subregions are marked on the target area map, the terminal device may also detect a first trigger operation, which is used to trigger the merging of the subregions selected by the selection operation. In response to the first trigger operation, the terminal sets The device may determine the marked at least two first partitions as partitions to be merged.
  • the above selection operation may be directly performed on the first subregion displayed in the target area map, or may be a selection operation performed on the subregion identifier corresponding to the first subregion in the target area map.
  • a merging window for merging partitions is included on the target configuration interface, and a group of first partitions is displayed in the merging window.
  • a selection operation performed on the check boxes corresponding to at least two first partitions for example, partition 4 and partition 5
  • a trigger operation for example, a click operation
  • the partitions to be merged are at least two first partitions.
  • at least two first subregions may also be marked in the target area map (for example, subregion 4 and subregion 5 are marked).
  • the terminal device may detect a frame selection operation performed on at least two first partitions, where the frame selection operation is used to simultaneously select multiple partitions.
  • the shape of the marquee box corresponding to the above-mentioned marquee selection operation can be fixed, for example, a quadrilateral, a circle, etc., or it can be unfixed, that is, the shape of the marquee box can be manually set, and the first position in the marquee box A partition is the first selected partition.
  • the terminal device may draw a corresponding marquee frame in the map of the target area, and mark all the first subregions completely contained in the marquee frame. After the at least two selected first subregions are marked on the target area map, the terminal device may also detect a second trigger operation, which is used to trigger merging the subregions selected by the frame selection operation. In response to the second trigger operation, the terminal device may determine the marked at least two first partitions as partitions to be merged.
  • displaying a target area map on the target configuration interface of the target application includes:
  • S21 Receive a target indication message sent by the cleaning device corresponding to the target area map, where the target indication message is used to indicate the cleaned subarea in the target area map;
  • the target area map displayed on the terminal device may include all subregions in the target area map, that is, a group of first subregions is all subregions in the target area map.
  • the target area map displayed on the terminal device may include the partitions cleaned by the cleaning equipment during the current area cleaning process. All partitions cleaned in the process.
  • the partitions that have not been cleaned by the cleaning equipment during one cleaning process can be displayed on the target area map, that is, the partitions to be cleaned, and a group of first partitions are the cleaning equipment to be cleaned. partition.
  • the partition to be cleaned can be updated as the cleaning progresses.
  • the cleaning device may send a target indication message to the terminal device, which indicates the cleaned partitions in the target area map, and the cleaned partitions may be sent in real time, that is, the indication information may be sent once every time a partition is cleaned, or It is sent based on the acquisition request sent by the terminal device, and the acquisition request is used to acquire the cleaned partitions of the cleaning device.
  • the terminal device may receive the target indication information sent by the cleaning device, and determine at least one of the partitions in the target area map that have not been cleaned by the cleaning device according to the cleaned subareas indicated by the target indication information, that is, a A set of first partitions is set, and a set of first boundaries corresponding to the set of first partitions is determined.
  • the terminal device can display a group of first partitions and a group of first boundaries on the map of the target area. For other partitions, different region attributes can be used to identify the corresponding The partition is not a partition to be cleaned.
  • other area boundaries in the target area map except a group of first boundaries may not be displayed, and other divisions except a group of first divisions may also not be displayed.
  • the terminal device may mark the first subregions that are currently being cleaned on the target area map, and may also mark the number of the first subregions to be cleaned.
  • multiple first partitions can be displayed on the cleaning configuration interface (an example of the target configuration interface) of the smart phone associated with the sweeping robot, for example, partition 1 can be displayed on the cleaning configuration page , Partition 2, Partition 3, Partition 4, Partition 5, and Partition 6.
  • the smart phone can receive the prompt information sent by the sweeping robot, and the prompt information can remind that the sweeping robot has completed the cleaning of zone 1.
  • the cleaning configuration interface may not display the boundaries of partition 1 that are not adjacent to other partitions, so that only the partitions to be cleaned are displayed on the cleaning configuration interface.
  • the above method further includes:
  • the terminal device may send update instruction information to the cleaning device.
  • the above instruction information is used to instruct to update at least two first partitions in the target area map as merged partitions.
  • the cleaning device may receive the update instruction information sent by the terminal device, and in response to the update instruction information, update at least two first partitions in the target area map as merged partitions.
  • the cleaning device can adjust the cleaning route to clean the merged partitions according to the area information of the merged partitions.
  • the terminal device may also send the merged partition information to the cleaning device to update the target region map each time there is partition merger, which is not limited in this embodiment.
  • the user can determine Partition 4 and Partition 5 as the partitions to be merged on the sweeping configuration interface, merge Partition 4 and Partition 5, and remove the dividing line between Partition 4 and Partition 5 , obtain the partition 4', and send the obtained partition 4' to the sweeping robot, so that the sweeping robot can clean the partition 4'.
  • the cleaning accuracy of the cleaning equipment can be improved, and the flexibility of area cleaning can be improved.
  • the above method further includes:
  • the region boundaries may be dividing lines corresponding to actual objects, such as walls and large pieces of furniture, or virtual dividing lines, which are not limited in this embodiment.
  • the terminal device may detect the above adding operation, and generate an adding instruction in response to the detected adding operation, and the added target boundary may be displayed on the target area map.
  • the above-mentioned adding operation can be an editing operation performed on the existing boundary template on the target configuration interface, by selecting, stretching, moving, rotating, etc. the boundary template, or by other operation methods. In this embodiment, the adding operation No limit.
  • the terminal device may obtain the above adding instruction, and in response to the adding instruction, determine a group of second partitions matching the target boundary on the target area map, and each second partition in a group of second partitions may contain the At least part of, and including, the target boundary has a length greater than or equal to the target length threshold.
  • the relationship between a group of second partitions and a group of first partitions can be an inclusive relationship, or an overlapping relationship (that is, there are overlapping partial partitions), or an independent relationship (that is, there is no intersection between the two). In this embodiment There is no restriction on this.
  • the terminal device may determine all partitions containing the target boundary, and determine these partitions as a group of candidate partitions. After determining a group of candidate partitions, the terminal device may determine a group of second partitions in the group of candidate partitions.
  • the number of partitions included in a group of candidate partitions may be one or more, and the number of partitions included in a group of second partitions may also be one or more.
  • the second partition may be determined according to whether the length of the included target boundary is greater than or equal to the preset length threshold, that is, the second partition is greater than or equal to the preset length threshold, Otherwise, it is not the second partition.
  • the second partition may be determined according to whether the ratio of the length of the included target boundary to the total length of the target boundary is greater than or equal to a preset ratio threshold, that is, the second partition is greater than or equal to the preset ratio threshold. Two partitions, otherwise, it is not the second partition, but other ways of determining the second partition may also be used, and the method of determining the second partition is not limited in this embodiment.
  • the terminal device may send a prompt message on the map of the target area to prompt confirmation of a group of second partitions to be divided.
  • a split operation is performed on a set of second partitions.
  • the division operation may also be directly performed on the determined group of second partitions.
  • the terminal device may obtain area boundaries of a group of second partitions to obtain a group of second boundaries.
  • a group of second partitions can be split to obtain a group of third partitions, each third partition can belong to a second partition, and each second partition can be divided into at least Two third divisions.
  • the above method before determining a group of second partitions in the target area map that match the target boundary, the above method further includes:
  • preprocessing can be performed on the target boundary, and the above preprocessing can include normalization of the target boundary.
  • a target boundary can have two vertices. For each vertex, a matching boundary in the target area map that matches each vertex can be determined.
  • a matching boundary of a vertex refers to an area boundary that intersects with a target boundary and whose distance from the vertex is less than or equal to a preset distance threshold.
  • the intersection with the target boundary is for the convenience of region segmentation, and the distance to the vertex is less than or equal to the preset distance threshold to avoid misidentification of the matching boundary.
  • the terminal device can perform an extension operation on the target boundary, and the extended target boundary corresponds to an area of the target map area The boundaries intersect, that is, the extended target vertex has a corresponding matching boundary.
  • the above-mentioned extension operation can be performed on the target vertex according to the preset extension length (the extension length can be less than or equal to the preset distance threshold, for example, 2mm), to obtain the extended target boundary, or it can be performed on the target boundary in other ways
  • the extension operation to obtain the extended target boundary which is not limited in this embodiment.
  • the user can add a dividing line on the sweeping configuration page, and the vertices of the added dividing line include vertex 1 and vertex 2 .
  • Smartphones can display dividing lines added by the user.
  • the extension operation can be performed on the vertex 2 according to the preset extension length (that is, the distance 1), to obtain the extended vertex 2' and the extended dividing line.
  • boundary 1 intersecting with the extended dividing line can be used as a region boundary matching vertex 2' (that is, vertex 2).
  • region segmentation based on the added boundaries can be facilitated and the accuracy of region segmentation can be improved.
  • the above method before performing a split operation on a set of second partitions according to the target boundary and a set of second boundaries corresponding to the set of second partitions, the above method further includes:
  • a group of region boundaries to be split among all region boundaries of a group of second partitions may be obtained before performing the segmentation operation, that is, a group of region boundaries to be split , each to-be-split boundary is a region boundary that intersects with the target boundary.
  • a vertex of the target boundary can be used as the starting point, and the preset distance threshold can be used as the step size to determine whether there are intersecting area boundaries in turn until finding To another vertex, for another example, it is also possible to determine whether each area boundary of a group of second partitions intersects with the target boundary, until all area boundaries have been confirmed, or other ways of determining the boundary to be split, this implementation This is not limited in the example.
  • a group of second boundaries may include a group of split boundaries, and may also include other area boundaries in all boundaries of a group of second partitions except for a group of boundaries to be split.
  • a dividing line can be added, which will be processed together with the existing dividing line information, for example, to determine whether there is an intersection, etc., divide the partition, and save the updated dividing line information
  • partition 2 includes four boundaries, namely boundary 1 , boundary 2 , boundary 3 and boundary 4 .
  • the partition boundary that has an intersection point in Partition 2 can be based on the partition line, that is, the The secant line intersects boundary 1 at intersection point 1, and boundary 2 intersects with the dividing line at intersection point 2 to obtain boundary 1' and 1" after dividing boundary 1, and boundary 2' after dividing boundary 2 and border 2".
  • Partition 2' and Partition 2" can be obtained, wherein the boundaries of Partition 2' are Boundary 1', Boundary 3, Boundary 2' and the dividing line, and the boundary of Partition 2" is the division Line, Border 1", Border 2", and Border 4.
  • the existing boundary is split according to the intersection of the added boundary and the existing boundary, which can avoid partition errors caused by boundary mismatch, improve partition accuracy, and improve user experience.
  • FIG. 8 is a structural block diagram of an optional device for processing area information according to an embodiment of the present application. As shown in Fig. 8, the device may include:
  • a display unit 802 configured to display a target area map on the target configuration interface of the target application, wherein the target area map includes a set of first boundaries and a set of first partitions divided by the set of first boundaries;
  • the first determining unit 804 is connected to the display unit 802, and is configured to determine at least two first subregions to be combined in a group of first subregions in the case of detecting a region combining operation performed on the target area map;
  • the removing unit 806 is connected to the first determining unit 804, and is configured to remove a first boundary between adjacent first partitions in at least two first partitions to obtain a merged partition.
  • the display unit 802 in this embodiment can be used to perform the above step S202
  • the first determination unit 804 in this embodiment can be used to perform the above step S204
  • the removal unit 806 in this embodiment can be used Then execute the above step S206.
  • the target area map is displayed on the target configuration interface of the target application, wherein, in the target area map Including a group of first boundaries and a group of first partitions divided by a group of first boundaries; in the case of detecting the operation of combining regions performed on the target area map, determining the number of regions to be combined in the group of first partitions At least two first partitions; remove the first boundary between the adjacent first partitions in the at least two first partitions to obtain the merged partitions, which solves the problem of the processing method of the area information in the related art because the partition settings are not Reasonably leads to the problem of low cleaning efficiency, improves the rationality of the partition, and then improves the cleaning efficiency of the cleaning equipment.
  • the first determination unit includes:
  • the first determination module is configured to determine at least two partitions as partitions to be merged in the case of detecting a selection operation performed on at least two first partitions and a first trigger operation, wherein the first trigger operation Used to trigger the merge pick operation selected partitions; or,
  • the second determination module is configured to determine at least two first partitions selected by the frame selection operation as the regions to be merged when the frame selection operation performed on the target area map and the second trigger operation are detected. Partitions, wherein the second trigger operation is used to trigger the merging of the partitions selected by the frame selection operation.
  • the display unit includes:
  • the receiving module is configured to receive a target indication message sent by a cleaning device corresponding to the target area map, wherein the target indication message is used to indicate the cleaned partition in the target area map;
  • the third determination module is configured to determine the partitions to be cleaned in the target area map in response to the target indication message, and obtain a group of first partitions;
  • the display module is used for displaying the target area map on the target configuration interface of the target application, wherein other area boundaries in the target area map except a set of first boundaries are not displayed on the target area map.
  • the above-mentioned device also includes:
  • a sending unit configured to send an update instruction message to the cleaning device after removing the first boundary between adjacent first partitions in the at least two first partitions to obtain the merged partitions, wherein the update instruction message is used to indicate Update at least two first partitions to be merged partitions to clean the merged partitions by a cleaning device.
  • the above-mentioned device also includes:
  • the second determining unit is configured to determine a group of second objects in the target area map that match the target boundary when an adding operation is detected on the target area map after the target area map is displayed on the target configuration interface of the target application. partition, where the add operation is used to add the target boundary in the target area map;
  • the first execution unit is configured to perform a division operation on a group of second partitions according to the target boundary and a group of second boundaries corresponding to the group of second partitions to obtain a group of third partitions.
  • the above-mentioned device also includes:
  • a detection unit for detecting a set of second partitions matching the target boundary in the target area map
  • the matching boundary corresponding to each vertex of the two vertices of the marked boundary wherein, the matching boundary corresponding to each vertex has an intersection with the target boundary in the target area map, and the distance between each vertex is less than or equal to the preset Set the area boundary of the distance threshold;
  • the second execution unit is configured to perform an extension operation on the target boundary with the target vertex as a starting point when no region boundary corresponding to the target vertex among the two vertices is detected, to obtain an extended target boundary, wherein, after the extension The target vertex of has a corresponding matching boundary.
  • the above-mentioned device also includes:
  • a third determining unit configured to determine a group of boundaries to be split in the target area map before performing a segmentation operation on a group of second partitions according to the target boundary and a group of second boundaries corresponding to a group of second partitions, Wherein, each boundary to be split in a set of boundaries to be split has an intersection with the target boundary;
  • the third execution unit is configured to use the intersection of each boundary to be split and the target boundary as a split point to perform a split operation on each boundary to be split to obtain a set of split boundaries, wherein a set of second Boundaries includes a set of split boundaries.
  • 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 program codes of any one of the foregoing region information processing 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 method for processing area information is also provided, and the electronic device may be a server, a terminal, or a combination thereof.
  • Fig. 9 is a structural block diagram of an optional electronic device according to an embodiment of the present application.
  • 904 and memory 906 complete mutual communication through communication bus 908, wherein,
  • memory 906 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. 9 , 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 906 may include, but is not limited to, the display unit 802, the first determination unit 804, and the removal unit 806 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.
  • FIG. 9 is only for illustration, and the device implementing the above-mentioned method for processing area information may be a terminal device, and the terminal device may be a smart phone (such as an Android phone, an iOS phone, etc.), Tablet PCs, PDAs, and mobile Internet devices (Mobile Internet Devices, MID), PAD and other terminal equipment.
  • FIG. 9 does not limit the structure of the above-mentioned electronic device.
  • the electronic device may also include more or fewer components (such as a network interface, a display device, etc.) than those shown in FIG. 9 , or have a different configuration from that shown in FIG. 9 .
  • 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

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Remote Sensing (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Human Computer Interaction (AREA)
  • Mathematical Physics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Navigation (AREA)

Abstract

本申请提供了一种区域信息的处理方法及装置、存储介质及电子装置,上述方法包括:在目标应用的目标配置界面显示目标区域地图,其中,所述目标区域地图中包含一组第一边界、以及通过所述一组第一边界所划分成的一组第一分区;在检测到对所述目标区域地图执行的合区操作的情况下,确定所述一组第一分区中待合区的至少两个第一分区;移除所述至少两个第一分区中的相邻第一分区之间的第一边界,得到已合并分区。采用上述技术方案,解决了相关技术中的区域信息的处理方法存在由于分区设置不合理导致清洁效率低下的问题。

Description

区域信息的处理方法及装置、存储介质及电子装置
本公开要求如下专利申请的优先权:于2022年02月21日提交中国专利局、申请号为202210159245.3、发明名称为“区域信息的处理方法及装置、存储介质及电子装置”的中国专利申请;上述专利申请的全部内容通过引用结合在本公开中。
技术领域
本申请涉及智能家居领域,具体而言,涉及一种区域信息的处理方法及装置、存储介质及电子装置。
背景技术
目前,可以为清洁设备(例如,扫地机器人)配置区域地图、以及区域地图内的一组分区,不同的分区可以通过区域边界(或者说,分割线)进行表示,通过选取全部或者部分分区,可以控制清洁设备进行区域清洁(例如,清扫)。
为了建立分区,可以在进行区域清洁的过程中,通过清洁设备进行区域边界(例如,墙壁、栅格门、移门等障碍物)识别,并基于识别到的区域边界进行分区。然而,当区域内存在较多大件障碍物时,会出现分区的划分不合理,导致清洁设备需要花费大量时间对分区面积小的区域进行清洁,增加了清洁设备的清洁时间。
由此可见,相关技术中的区域信息的处理方法,存在由于分区设置不合理导致清洁效率低下的问题。
发明内容
本申请的目的在于提供一种区域信息的处理方法及装置、存储介质及电子装置,以至少解决相关技术中的区域信息的处理方法存在由于分区设置不合理导致清洁效率低下的问题。
本申请的目的是通过以下技术方案实现:
根据本申请实施例的一个方面,提供了一种区域信息的处理方法,包括:在目标应用的目标配置界面显示目标区域地图,其中,所述目标区域地图中包含一组第一边界、以及通过所述一组第一边界所划分成的一组第一分区;在检测到对所述目标区域地图执行的合区操作的情况下,确定所述一组第一分区中待合区的至少两个第一分区;移除所述至少两个第一分区中的相邻第一分区之间的第一边界,得到已合并分区。
在一个示例性实施例中,所述在检测到对所述目标区域地图执行的合区操作的情况下,确定所述一组第一分区中待合区的至少两个第一分区,包括:在检测到对所述至少两个第一分区分别执行的选取操作、以及第一触发操作的情况下,将所述至少两个分区确定为待合区 的分区,其中,所述第一触发操作用于触发合并所述选取操作所选中的分区;或者,在检测到对所述目标区域地图执行的框选操作、以及第二触发操作的情况下,将所述框选操作所框选出的所述至少两个第一分区,确定为待合区的分区,其中,所述第二触发操作用于触发合并所述框选操作所框选出的分区。
在一个示例性实施例中,所述在目标应用的目标配置界面显示目标区域地图,包括:接收到与所述目标区域地图对应的清洁设备所发送的目标指示消息,其中,所述目标指示消息用于指示所述目标区域地图中已清洁的分区;响应于所述目标指示消息,确定所述目标区域地图中的待清洁分区,得到所述一组第一分区;在所述目标应用的所述目标配置界面显示所述目标区域地图,其中,所述目标区域地图中除了所述一组第一边界以外的其他区域边界未被显示在所述目标区域地图上。
在一个示例性实施例中,在所述移除所述至少两个第一分区中的相邻第一分区之间的第一边界,得到已合并分区之后,所述方法还包括:向所述清洁设备发送更新指示消息,其中,所述更新指示消息用于指示将所述至少两个第一分区更新为所述已合并分区,以通过所述清洁设备对所述已合并分区进行清洁。
在一个示例性实施例中,在所述目标应用的目标配置界面显示目标区域地图之后,所述方法还包括:在检测到对所述目标区域地图执行的添加操作的情况下,确定所述目标区域地图中与目标边界匹配的一组第二分区,其中,所述添加操作用于在所述目标区域地图中添加所述目标边界;按照所述目标边界和与所述一组第二分区对应的一组第二边界,对所述一组第二分区执行分割操作,得到一组第三分区。
在一个示例性实施例中,在所述确定所述目标区域地图中与所述目标边界匹配的一组第二分区之前,所述方法还包括:检测与所述目标边界的两个顶点中的每个顶点对应的匹配边界,其中,与所述每个顶点对应的匹配边界为所述目标区域地图中与所述目标边界有交叉、且与所述每个顶点之间的距离小于或者等于预设距离阈值的区域边界;在未检测到与所述两个顶点中的目标顶点对应的区域边界的情况下,以所述目标顶点为起点对所述目标边界执行延长操作,得到延长后的所述目标边界,其中,延长后的所述目标顶点具有对应的匹配边界。
在一个示例性实施例中,在所述按照所述目标边界和与所述一组第二分区对应的一组第二边界,对所述一组第二分区执行分割操作之前,所述方法还包括:确定所述目标区域地图中的一组待拆分边界,其中,所述一组待拆分边界中的每个待拆分边界与所述目标边界具有交叉点;以所述每个待拆分边界与所述目标边界的交叉点为拆分点对所述每个待拆分边界执行拆分操作,得到一组已拆分边界,其中,所述一组第二边界包括所述一组已拆分边界。
根据本申请实施例的另一个方面,还提供了一种区域信息的处理装置,包括:显示单元, 用于在目标应用的目标配置界面显示目标区域地图,其中,所述目标区域地图中包含一组第一边界、以及通过所述一组第一边界所划分成的一组第一分区;第一确定单元,用于在检测到对所述目标区域地图执行的合区操作的情况下,确定所述一组第一分区中待合区的至少两个第一分区;移除单元,用于移除所述至少两个第一分区中的相邻第一分区之间的第一边界,得到已合并分区。
在一个示例性实施例中,所述第一确定单元包括:第一确定模块,用于在检测到对所述至少两个第一分区分别执行的选取操作、以及第一触发操作的情况下,将所述至少两个分区确定为待合区的分区,其中,所述第一触发操作用于触发合并所述选取操作所选中的分区;或者,第二确定模块,用于在检测到对所述目标区域地图执行的框选操作、以及第二触发操作的情况下,将所述框选操作所框选出的所述至少两个第一分区,确定为待合区的分区,其中,所述第二触发操作用于触发合并所述框选操作所框选出的分区。
在一个示例性实施例中,所述显示单元包括:接收模块,用于接收到与所述目标区域地图对应的清洁设备所发送的目标指示消息,其中,所述目标指示消息用于指示所述目标区域地图中已清洁的分区;第三确定模块,用于响应于所述目标指示消息,确定所述目标区域地图中的待清洁分区,得到所述一组第一分区;显示模块,用于在所述目标应用的所述目标配置界面显示所述目标区域地图,其中,所述目标区域地图中除了所述一组第一边界以外的其他区域边界未被显示在所述目标区域地图上。
在一个示例性实施例中,所述装置还包括:发送单元,用于在所述移除所述至少两个第一分区中的相邻第一分区之间的第一边界,得到已合并分区之后,向所述清洁设备发送更新指示消息,其中,所述更新指示消息用于指示将所述至少两个第一分区更新为所述已合并分区,以通过所述清洁设备对所述已合并分区进行清洁。
在一个示例性实施例中,所述装置还包括:第二确定单元,用于在所述目标应用的目标配置界面显示目标区域地图之后,在检测到对所述目标区域地图执行的添加操作的情况下,确定所述目标区域地图中与目标边界匹配的一组第二分区,其中,所述添加操作用于在所述目标区域地图中添加所述目标边界;第一执行单元,用于按照所述目标边界和与所述一组第二分区对应的一组第二边界,对所述一组第二分区执行分割操作,得到一组第三分区。
在一个示例性实施例中,所述装置还包括:检测单元,用于在所述确定所述目标区域地图中与所述目标边界匹配的一组第二分区之前,检测与所述目标边界的两个顶点中的每个顶点对应的匹配边界,其中,与所述每个顶点对应的匹配边界为所述目标区域地图中与所述目标边界有交叉、且与所述每个顶点之间的距离小于或者等于预设距离阈值的区域边界;第二执行单元,用于在未检测到与所述两个顶点中的目标顶点对应的区域边界的情况下,以所述 目标顶点为起点对所述目标边界执行延长操作,得到延长后的所述目标边界,其中,延长后的所述目标顶点具有对应的匹配边界。
在一个示例性实施例中,所述装置还包括:第三确定单元,用于在所述按照所述目标边界和与所述一组第二分区对应的一组第二边界,对所述一组第二分区执行分割操作之前,确定所述目标区域地图中的一组待拆分边界,其中,所述一组待拆分边界中的每个待拆分边界与所述目标边界具有交叉点;第三执行单元,用于以所述每个待拆分边界与所述目标边界的交叉点为拆分点对所述每个待拆分边界执行拆分操作,得到一组已拆分边界,其中,所述一组第二边界包括所述一组已拆分边界。
根据本申请实施例的又一方面,还提供了一种计算机可读的存储介质,该计算机可读的存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述接口的测试方法。
根据本申请实施例的又一方面,还提供了一种电子装置,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,上述处理器通过计算机程序执行上述的接口的测试方法。
在本申请实施例中,采用通过应用中的配置界面对区域地图中的已有分区执行合并操作的方式,通过在目标应用的目标配置界面显示目标区域地图,其中,目标区域地图中包含一组第一边界、以及通过一组第一边界所划分成的一组第一分区;在检测到对目标区域地图执行的合区操作的情况下,确定一组第一分区中待合区的至少两个第一分区;移除至少两个第一分区中的相邻第一分区之间的第一边界,得到已合并分区,由于通过应用中的配置界面显示区域地图中的已有分区,可以方便用户获知区域地图内的分区情况,方便用户确定分区的合理性,并且,如果检测到合区操作,移除待合并分区中的相邻区域边界,以进行区域合并,可以实现快速对不合理分区进行合并的目的,可以达到提高分区的合理性、进而提高清洁设备的清洁效率的技术效果,进而解决了相关技术中的区域信息的处理方法存在由于分区设置不合理导致清洁效率低下的问题。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1是根据本申请实施例的一种可选的区域信息的处理方法的硬件环境的示意图;
图2是根据本申请实施例的一种可选的区域信息的处理方法的流程示意图;
图3是根据本申请实施例的一种可选的选择待合并分区的示意图;
图4是根据本申请实施例的一种可选的显示区域信息的示意图;
图5是根据本申请实施例的一种可选的合并分区的示意图;
图6是根据本申请实施例的一种可选的添加边界的示意图;
图7是根据本申请实施例的一种可选的拆分边界的示意图;
图8是根据本申请实施例的一种可选的区域信息的处理装置的结构框图;
图9是根据本申请实施例的一种可选的电子装置的结构框图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本申请。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
根据本申请实施例的一个方面,提供了一种区域信息的处理方法。可选地,在本实施例中,上述区域信息的处理方法可以应用于如图1所示的由终端设备102、清洁设备104和服务器106所构成的硬件环境中。如图1所示,终端设备102可以通过网络与清洁设备104和/或服务器106(例如,物联网平台或者云端服务器)进行连接,以对清洁设备104的进行控制,例如,与清洁设备104进行绑定、配置清洁设备104的清洁功能。清洁设备104可以包括主机和基座(例如,扫地机和基站,洗地机和基座),主机和基站之间可以通过网络进行连接,以确定对端的当前状态(例如,电量状态、工作状态、位置信息等)。
上述网络可以包括但不限于以下至少之一:有线网络,无线网络。上述有线网络可以包括但不限于以下至少之一:广域网,城域网,局域网,上述无线网络可以包括但不限于以下至少之一:WIFI(Wireless Fidelity,无线保真),蓝牙,红外。终端设备102与清洁设备104和/或服务器106进行通信所使用的网络与清洁设备104与服务器106进行通信所使用的网络可以是相同的,也可以是不同的。终端设备102可以并不限定于为PC、手机、平板电脑等,清洁设备104可以包括但不限于:自清洁机器人,例如,自动洗拖布机器人、扫地机器人等,服务器106可以是物联网平台的服务器。
本申请实施例的区域信息的处理方法可以由终端设备102、清洁设备104或服务器106单独来执行,也可以由终端设备102、清洁设备104和服务器106中的至少两个共同执行。其中,终端设备102或清洁设备104执行本申请实施例的区域信息的处理方法也可以是由安装在其上的客户端来执行。
以由终端设备102来执行本实施例中的区域信息的处理方法为例,图2是根据本申请实施例的一种可选的区域信息的处理方法的流程示意图,如图2所示,该方法的流程可以包括以下步骤:
步骤S202,在目标应用的目标配置界面显示目标区域地图,其中,目标区域地图中包含一组第一边界、以及通过一组第一边界所划分成的一组第一分区。
本实施例中的区域信息的处理方法可以应用到基于清洁设备采集到的区域边界进行地图操作的场景中,上述区域边界可以是与清洁设备目标区域地图内的区域边界,其可以对应于清洁设备检测到的栅格门、移动门、墙壁、大件家具等障碍物,还可以是其他能够作为分区的分割线的区域边界。上述地图操作可以是在目标区域地图执行分区操作、分区的合并操作,分区的增加操作等。本实施例中对于区域边界的类型和地图操作的类型不不做限定。
上述清洁设备可以为洗地机器人,扫地机器人,还可以是其他具有区域清洁功能的区域清扫设备,上述清洁设备进行区域清洁的方式可以是洗拖一体,也可以是清扫。清洁设备所清洁的目标区域可以是用户家庭中的室内区域,也可以是其他比如工厂车间、公司的办公室内的区域,还可以是其他可以通过清洁设备进行区域清洁的区域。本实施例中对此不做限定。
清洁设备上可以设置有激光传感器、红外传感器、图像采集设备(例如,摄像头)等检测部件,在清洁设备对目标区域进行清洁的过程中,清洁设备可以通过一个或多个检测部件对目标区域内的区域信息进行采集,例如,对栅格门移门等区域信息进行识别,得到目标区域地图,并将目标区域地图信息进行保存,例如,保存到清洁设备内,保存到服务器上,保存到对应的终端设备上。在清洁设备每次对目标区域或者目标区域内的部分区域进行清洁时,清洁设备可以更新目标区域地图。
可选地,在构建或者更新目标区域地图时,可以基于采集到的区域信息进行分区处理,得到各个分区以及各个分区的区域边界(即,分割线),并保存目标区域地图以及所有的区域边界。
例如,扫地机器人在首次清扫完成之后,回到充电基座,进行分区处理。对栅格门、移门等信息做处理后用于分区,保存目标区域地图和所有分割线信息。
扫地机器人再次清扫,可以重复使用之前的地图,也可以与首次清扫一样做门的识别,回到充电座后会对目标区域地图进行更新。更新时可以利用之前保存的分割线信息和此次清扫识别的门的信息,例如,是否是相似的分割线等,结合目标区域地图的增加或减少对地图进行更新,同时可能会移动调整整合分割线的信息并保存。
相关技术中,在使用清洁设备对目标区域的全部或者部分区域进行区域清洁时,可能会存在由于所清洁的区域内存在较多大件障碍物,使得目标区域地图的分区划分不合理,进而 造成清洁设备的清洁效率低下。
在本实施例中,为了解决上述问题,可以通过终端设备上的目标应用对清洁设备的目标区域地图进行配置。终端设备上可以运行有目标应用,该目标应用可以是终端设备上已安装的应用程序,用户可以通过目标应用与清洁设备进行关联,通过目标应用的目标配置界面可以进行目标区域地图中的分区配置。
目标配置界面上可以显示有目标区域地图,目标区域地图上可以显示有目标区域内上的障碍物信息、分区信息以及分区的区域边界信息等。可选地,终端设备也可以检测到用户在目标应用的目标配置界面上执行的地图配置操作,生成地图配置指令,以对目标区域地图上的障碍物信息、分区信息以及分区的区域边界信息等进行调整。
可选地,目标区域地图内可以显示有一组第一边界、以及通过一组第一边界所划分成的一组第一分区。一组第一分区可以是目标区域地图内的所有分区,也可以是在进行一次区域清洁时所需清洁的所有分区,或者,剩余的待清洁分区(即,已清洁完成的分区不进行显示),还可以是从目标区域地图上选取的一个或多个分区。上述的一组第一边界可以是将目标区域地图划分成多个第一分区的一组分割线。
步骤S204,在检测到对目标区域地图执行的合区操作的情况下,确定一组第一分区中待合区的至少两个第一分区。
为了提高清洁设备的清洁效率,用户可以对目标配置界面中的至少两个第一分区的执行合区操作,以触发目标应用将至少两个第一分区合并成一个分区。上述合区操作可以是一个或多个操作的组合,例如,上述合区操作可以包括对至少两个分区执行的选取操作(比如,分别选取、同时选取等),还可以包括触发生成合区指令的触发操作。可选地,上述合区操作可以包括但不限于以下至少之一:点击操作,双击操作,长按操作,滑动操作。本实施例中对于合区操作不做限定。
终端设备可以检测到上述合区操作,生成合区指令,合区指令用于指示目标应用将至少两个第一分区合并成一个分区。响应于合区指令,目标应用可以确定出待合区的至少两个第一分区。可选地,终端设备可以在目标区域地图上标注出待合区的至少两个第一分区。
步骤S206,移除至少两个第一分区中的相邻第一分区之间的第一边界,得到已合并分区。
用户在合并分区时,可以合并两个或多个分区,并删除原本用于分割两区域的分割线,保存更新后分割线信息。比如,在确定出待合区的至少两个第一分区之后,终端设备可以合并至少两个第一分区。在进行区域合并时,可以将至少两个第一分区中的每个第一分区的区域信息进行合并,得到已合并分区的区域信息。由于一组第一边界中包含了区分至少两个第一分区中的相邻分区的第一边界。为了保证边界信息的准确性,可以移除至少两个第一分区 中的相邻第一分区之间的第一边界。
在本实施例中,可以采用多种方式移除至少两个第一分区中的相邻第一分区之间的第一边界,例如,可以分别确定两个第一分区中相邻的任意两个第一分区,并将相邻的任意两个第一分区之间的第一边界线移除,又例如,可以根据已合并分区的区域信息,确定与至少两个第一分区对应的第一边界中,属于已合并分区内的第一边界,并将确定出的第一边界移除,从而得到更新后的一组第一边界。
在移除至少两个第一分区中的相邻第一分区之间的第一边界之后,终端设备可以更新目标区域地图,更新后的区域地图包含了已合并分区,还包含更新后的一组第一边界。终端设备可以将更新后的目标区域地图发送给服务器,也可以将更新后的目标区域地图通过服务器发送给清洁设备。清洁设备可以接收到上述更新后的目标区域地图,并按照更新后的目标区域地图执行后续操作,例如,对目标区域的全部或者部分进行清洁。
通过上述步骤S202至步骤S206,在目标应用的目标配置界面显示目标区域地图,其中,目标区域地图中包含一组第一边界、以及通过一组第一边界所划分成的一组第一分区;在检测到对目标区域地图执行的合区操作的情况下,确定一组第一分区中待合区的至少两个第一分区;移除至少两个第一分区中的相邻第一分区之间的第一边界,得到已合并分区,解决了相关技术中的区域信息的处理方法存在由于分区设置不合理导致清洁效率低下的问题,提高了分区的合理性,进而提高了清洁设备的清洁效率。
在一个示例性实施例中,在检测到对目标区域地图执行的合区操作的情况下,确定一组第一分区中待合区的至少两个第一分区,包括:
S11,在检测到对至少两个第一分区分别执行的选取操作、以及第一触发操作的情况下,将至少两个分区确定为待合区的分区,其中,第一触发操作用于触发合并选取操作所选中的分区;或者,
S12,在检测到对目标区域地图执行的框选操作、以及第二触发操作的情况下,将框选操作所框选出的至少两个第一分区,确定为待合区的分区,其中,第二触发操作用于触发合并框选操作所框选出的分区。
在本实施例中,上述合并操作可以包括一种或者多种,可以包括对于至少两个分区的选取操作,以及触发生成合区指令的触发操作。
作为一种可选的实施方式,终端设备可以检测到分别对至少两个第一分区执行的选取操作。响应于该选取操作,终端设备可以在目标区域地图中标注出已被选取的第一分区。在目标区域地图中标注出已被选取的至少两个第一分区之后,终端设备还可以检测到第一触发操作,该第一触发操作用于触发合并选取操作所选中的分区。响应于该第一触发操作,终端设 备可以将标注出的至少两个第一分区确定为待合区分区。
可选地,上述选取操作可以是对目标区域地图中显示的第一分区直接执行的选取操作,也可以是对目标区域地图中与第一分区对应的分区标识所执行的选取操作。
示例性地,如图3所示,在目标配置界面上包含有用于进行分区合并的合并窗口,在合并窗口内显示有一组第一分区。在检测到对合并窗口内与至少两个第一分区(比如,分区4和分区5)对应的复选框执行的选取操作,以及对合并按钮执行的触发操作(例如,点击操作),可以确定待合并的分区为至少两个第一分区。此外,还可以在目标区域地图中标注出至少两个第一分区(比如,分区4和分区5被标注出来)。
作为另一种可选的实施方式,终端设备可以检测到对至少两个第一分区执行的框选操作,该框选操作用于同时选取多个分区。上述框选操作所对应的选取框的形状可以是固定的,例如,四边形、圆形等,也可以是不固定的,即,用于可以手动设定选取框的形状,位于选取框内的第一分区,即为选取出的第一分区。
响应于该框选操作,终端设备可以在目标区域地图中绘制对应的选取框,并标注出完全包含在该选取框内的所有第一分区。在目标区域地图中标注出已被选取的至少两个第一分区之后,终端设备还可以检测到第二触发操作,该第二触发操作用于触发合并框选操作所框选出的分区。响应于该第二触发操作,终端设备可以将标注出的至少两个第一分区确定为待合区分区。
通过本实施例,基于检测到的选取操作、框选操作等并结合触发操作触发进行区域合并,可以提高分区合并的便捷性和灵活性,提高了用户的使用体验。
在一个示例性实施例中,在目标应用的目标配置界面显示目标区域地图,包括:
S21,接收到与目标区域地图对应的清洁设备所发送的目标指示消息,其中,目标指示消息用于指示目标区域地图中已清洁的分区;
S22,响应于目标指示消息,确定目标区域地图中的待清洁分区,得到一组第一分区;
S23,在目标应用的目标配置界面显示目标区域地图,其中,目标区域地图中除了一组第一边界以外的其他区域边界未被显示在目标区域地图上。
终端设备上显示的目标区域地图中可以包含该目标区域地图中的所有分区,即,一组第一分区为目标区域地图中的所有分区。为了便于进行区域清洁,终端设备上显示的目标区域地图中可以包含清洁设备在本次进行区域清洁的过程中所清洁的分区,例如,一组第一分区为清洁设备在本次进行区域清洁的过程中所清洁的所有分区。
在本实施例中,为了方便用户获知清洁进度,可以在目标区域地图中显示清洁设备在一次清洁过程中还未清洁的分区,即,待清洁分区,一组第一分区为清洁设备的待清洁分区。
可选地,待清洁分区可以随着清洁的进展进行更新。例如,清洁设备可以向终端设备发送目标指示消息,该指示目标区域地图中已清洁的分区,上述已清洁的分区可以是实时发送的,即,每清洁完一个分区,发送一次指示信息,也可以是基于终端设备发送的获取请求发送的,该获取请求用于获取清洁设备已清洁的分区。
在本实施例中,终端设备可以接收到清洁设备发送的目标指示信息,并根据目标指示信息所指示的已清洁的分区,确定出目标区域地图中清洁设备未清洁至少一个的分区,即,一组第一分区,并确定与一组第一分区对应的一组第一边界。
在确定出一组第一分区和一组第一边界之后,终端设备可以在目标区域地图上显示一组第一分区和一组第一边界,对于其他分区,可以通过不同的区域属性标识对应的分区不是待清洁分区。可选地,为了提高信息获取的便捷性,可以不显示目标区域地图中除了一组第一边界以外的其他区域边界,而除了一组第一分区以外的其他分区也可以不进行显示。可选地,终端设备可以在目标区域地图上标注出当前正在进行清洁的第一分区,还可以标注出待清洁的第一分区的数量。
例如,如图4所示,在与扫地机器人关联的智能手机的清扫配置界面(目标配置界面的一种示例)上可以显示有多个第一分区,比如,清扫配置页面上可以显示有分区1、分区2,分区3、分区4、分区5和分区6。智能手机可以接收到扫地机器人发送的提示信息,该提示信息可以提示扫地机器人已完成分区1的清洁。在接收到该提示信息之后,清扫配置界面上可以不显示分区1中没有与其他分区相邻的边界,从而在清扫配置界面上仅显示待清扫的分区。
通过本实施例,在目标配置界面上只显示与待清洁区域相关的分区信息和边界信息,可以提高信息获取的便捷性,减少用户的误操作,从而提高用户的使用体验。
在一个示例性实施例中,在移除至少两个第一分区中的相邻第一分区之间的第一边界,得到已合并分区之后,上述方法还包括:
S31,向清洁设备发送更新指示消息,其中,更新指示消息用于指示将至少两个第一分区更新为已合并分区,以通过清洁设备对已合并分区进行清洁。
在本实施例中,在得到已合并分区之后,终端设备可以向清洁设备发送更新指示信息。上述指示信息用于指示将目标区域地图中的至少两个第一分区更新为已合并分区。清洁设备可以接收终端设备发送的更新指示信息,并响应于该更新指示信息,将目标区域地图中的至少两个第一分区更新为已合并分区。
由于至少两个第一分区均为待清洁分区,因此,清洁设备可以调整清洁路线,按照已合并分区的区域信息对已合并分区进行清洁。这里,对于不是在清洁设备进行区域清洁的过程 中进行区域合并的场景,终端设备也可以每次在有分区合并时,将合并后的分区信息发送给清洁设备进行目标区域地图更新,本实施例中对此不做限定。
例如,如图5所示,用户可以在扫地配置界面上将分区4和分区5确定为待合并的分区,将分区4和分区5进行合并,并移除分区4和分区5之间的分割线,得到分区4’,并将得到的分区4’发送给扫地机器人,以便扫地机器人对分区4’进行区域清扫。
通过本实施例,通过将已合并分区更新到清洁设备的目标区域地图中,可以提高清洁设备清洁的准确性,提高区域清洁的灵活性。
在一个示例性实施例中,在目标应用的目标配置界面显示目标区域地图之后,上述方法还包括:
S41,在检测到对目标区域地图执行的添加操作的情况下,确定目标区域地图中与目标边界匹配的一组第二分区,其中,添加操作用于在目标区域地图中添加目标边界;
S42,按照目标边界和与一组第二分区对应的一组第二边界,对一组第二分区执行分割操作,得到一组第三分区。
在有分区分割需求时,例如,分区过大,需要拆分分区,以便进行区域清洁,又例如,分区内包含的大件障碍物较多,清洁设备容易被卡,可以在目标区域地图中通过添加区域边界的方式进行分区分割,上述区域边界可以是与实际的物体对应的分割线,例如,墙壁、大件家具,也可以是虚拟的分割线,本实施例中对此不做限定。
用户可以对目标区域地图执行的添加操作,以在目标区域地图中添加目标边界。终端设备可以检测到上述添加操作,并响应于检测到的添加操作,生成添加指令,添加的目标边界可以显示在目标区域地图上。上述添加操作可以是对目标配置界面上已有的边界模板执行的编辑操作,通过对边界模板进行选取、拉伸、移动、旋转等操作,也可以通过其他的操作方式,本实施例中添加操作不做限定。
终端设备可以获取到上述添加指令,并响应该添加指令,在目标区域地图上确定出与目标边界匹配的一组第二分区,一组第二分区中的每个第二分区可以包含目标边界的至少部分、且包含的目标边界的长度大于或者等于目标长度阈值。一组第二分区与一组第一分区的关系可以是包含关系,也可以是重叠关系(即,有重合的部分分区),还可以是独立关系(即,两者没有交集),本实施例中对此不做限定。
例如,终端终端设备可以确定出所有包含目标边界的分区,并将这些分区确定为一组候选分区。在确定出一组候选分区后,终端设备可以在一组候选分区中确定出一组第二分区。这里,一组候选分区包含的分区数量可以为一个或多个,一组第二分区包含的分区数量也可以为一个或多个。
确定第二分区的方式可以有一种或者多种,例如,可以根据包含的目标边界的长度是否大于或者等于预设长度阈值确定第二分区,即,大于或者等于预设长度阈值为第二分区,否则,不是第二分区,又例如,可以根据包含的目标边界的长度占目标边界的总长度的比例是否大于或者等于预设比例阈值确定第二分区,即,大于或者等于预设比例阈值为第二分区,否则,不是第二分区,还可以是其他确定第二分区的方式,本实施例中对于确定第二分区的方式不做限定。
在确定出一组第二分区之后,终端设备可以在目标区域地图上发出提示信息,以提示对待分割的一组第二分区进行确认。在接收到确认分割指令的情况下,对一组第二分区执行分割操作。或者,也可以直接对确定的一组第二分区执行分割操作。
在分割一组第二分区时,终端设备可以获取一组第二分区的区域边界,得到一组第二边界。按照目标边界和一组第二边界,可以对一组第二分区执行分割操作,得到一组第三分区,每个第三分区可以属于一个第二分区,每个第二分区可以被分割为至少两个第三分区。
通过本实施例,通过对添加分割线来对区域地图上的分区进行分割操作,可以提高分区配置的灵活性,提高清洁设备的清洁效率。
在一个示例性实施例中,在确定目标区域地图中与目标边界匹配的一组第二分区之前,上述方法还包括:
S51,检测与目标边界的两个顶点中的每个顶点对应的匹配边界,其中,与每个顶点对应的匹配边界为目标区域地图中与目标边界有交叉、且与每个顶点之间的距离小于或者等于预设距离阈值的区域边界;
S52,在未检测到与两个顶点中的目标顶点对应的区域边界的情况下,以目标顶点为起点对目标边界执行延长操作,得到延长后的目标边界,其中,延长后的目标顶点具有对应的匹配边界。
在本实施例中,考虑到用户添加的目标边界不一定标准,直接基于添加的目标边界执行分区的分割操作存在无法进行区域分割或者区域分割不合理的问题。为了提高区域分割的准确性,可以对目标边界进行预处理,上述预处理可以包括目标边界的标准化操作。
目标边界可以具有两个顶点。对于每个顶点,可以确定目标区域地图中与每个顶点匹配的匹配边界。一个顶点的匹配边界是指:与目标边界有交叉、且与该顶点之间的距离小于或者等于预设距离阈值的区域边界。这里,与目标边界有交叉是为了方便进行区域分割,与该顶点之间的距离小于或者等于预设距离阈值是为了避免匹配边界误识别。
如果未检测到与两个顶点中的目标顶点(可以是两个顶点中的任意一个)对应的区域边界,终端设备可以对目标边界执行延长操作,延长后的目标边界与目标地图区域的一个区域 边界相交,即,延长后的目标顶点具有对应的匹配边界。
上述延长操作可以是根据预设的延长长度(延长长度可以小于或者等于预设距离阈值,例如,2mm)对目标顶点执行延长操作,得到延长后的目标边界,也可以通过其他方式对目标边界执行的延长操作,得到延长后的目标边界,本实施例中对此不做限定。
例如,如图6所示,用户可以在扫地配置页面上添加分割线,添加的分割线的顶点包括顶点1和顶点2。智能手机可以显示出用户添加的分割线。此时,只能检测到与顶点1匹配的区域边界,即边界1,而未检测到与顶点2匹配的区域边界。可以按预设的延长长度(即,间距1)对顶点2执行延长操作,得到延长后的顶点2’以及延长后的分割线。此时,可以将与延长后的分割线相交的边界1作为与顶点2’(即,顶点2)匹配的区域边界。
通过本实施例,可以通过对添加边界的顶点执行延长操作,可以便于基于添加的边界进行区域分割,提高区域分割的准确性。
在一个示例性实施例中,在按照目标边界和与一组第二分区对应的一组第二边界,对一组第二分区执行分割操作之前,上述方法还包括:
S61,确定目标区域地图中的一组待拆分边界,其中,一组待拆分边界中的每个待拆分边界与目标边界具有交叉点;
S62,以每个待拆分边界与目标边界的交叉点为拆分点对每个待拆分边界执行拆分操作,得到一组已拆分边界,其中,一组第二边界包括一组已拆分边界。
在本实施例中,为了保证区域分割的准确性,可以在执行分割操作之前,获取一组第二分区的所有区域边界中的一组待拆分的区域边界,即,一组待拆分边界,每个待拆分边界均是与目标边界具有交叉点的区域边界。获取到一组待拆分边界的方式可以有一种或多种,例如,可以是以目标边界的一个顶点为起点,以预设距离阈值为步长,依次确定是否有相交的区域边界,直到查找到另一个顶点,又例如,也可以分别确定一组第二分区的各个区域边界与目标边界是否有交点,直到所有区域边界均已确认,还可以是其他确定待拆分边界的方式,本实施例中对此不做限定。
对于各个待拆分边界,可以以待拆分边界与目标边界的交叉点为拆分点,对待拆分边界执行拆分操作,得到一组已拆分边界。一组第二边界可以包括一组已拆分边界,还可以包括一组第二分区的所有边界中除了一组待拆分边界以外的其他区域边界。
例如,用户手动分割分区时,可以添加分割线,会与已有分割线信息一起处理,比如,判断是否有交叉等情况,对分区进行分割,并保存分割更新后的分割线信息
示例性地,如图7所示,分区2包括4个边界,分别为边界1、边界2、边界3和边界4。在对分区2执行分割操作之前,可以根据分割线与分区2中具有交点的分区边界,即,与分 割线交于交点1的边界1,和与分割线交于交点2的边界2,得到对边界1进行拆分后的边界1’和1”,与对边界2进行拆分后的边界2’和边界2”。然后,在对分区2执行分割操作后,可以得到分区2’与分区2”,其中,分区2’的边界为边界1’、边界3、边界2’和分割线,分区2”的边界为分割线、边界1”、边界2”以及边界4。
通过本实施例,根据添加边界与已有边界的交叉点对已有边界进行拆分,可以避免由于边界不匹配导致的分区错误,提高分区的准确性,提升用户的使用体验。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM(Read-Only Memory,只读存储器)/RAM(Random Access Memory,随机存取存储器)、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
根据本申请实施例的又一个方面,还提供了一种用于实施上述区域信息的处理方法的区域信息的处理装置。图8是根据本申请实施例的一种可选的区域信息的处理装置的结构框图,如图8所示,该装置可以包括:
显示单元802,用于在目标应用的目标配置界面显示目标区域地图,其中,目标区域地图中包含一组第一边界、以及通过一组第一边界所划分成的一组第一分区;
第一确定单元804,与显示单元802相连,用于在检测到对目标区域地图执行的合区操作的情况下,确定一组第一分区中待合区的至少两个第一分区;
移除单元806,与第一确定单元804相连,用于移除至少两个第一分区中的相邻第一分区之间的第一边界,得到已合并分区。
需要说明的是,该实施例中的显示单元802可以用于执行上述步骤S202,该实施例中的第一确定单元804可以用于执行上述步骤S204,该实施例中的移除单元806可以用于执行上述步骤S206。
通过上述模块,在目标应用的目标配置界面显示目标区域地图,其中,目标区域地图中 包含一组第一边界、以及通过一组第一边界所划分成的一组第一分区;在检测到对目标区域地图执行的合区操作的情况下,确定一组第一分区中待合区的至少两个第一分区;移除至少两个第一分区中的相邻第一分区之间的第一边界,得到已合并分区,解决了相关技术中的区域信息的处理方法存在由于分区设置不合理导致清洁效率低下的问题,提高了分区的合理性,进而提高了清洁设备的清洁效率。
在一个示例性实施例中,第一确定单元包括:
第一确定模块,用于在检测到对至少两个第一分区分别执行的选取操作、以及第一触发操作的情况下,将至少两个分区确定为待合区的分区,其中,第一触发操作用于触发合并选取操作所选中的分区;或者,
第二确定模块,用于在检测到对目标区域地图执行的框选操作、以及第二触发操作的情况下,将框选操作所框选出的至少两个第一分区,确定为待合区的分区,其中,第二触发操作用于触发合并框选操作所框选出的分区。
在一个示例性实施例中,显示单元包括:
接收模块,用于接收到与目标区域地图对应的清洁设备所发送的目标指示消息,其中,目标指示消息用于指示目标区域地图中已清洁的分区;
第三确定模块,用于响应于目标指示消息,确定目标区域地图中的待清洁分区,得到一组第一分区;
显示模块,用于在目标应用的目标配置界面显示目标区域地图,其中,目标区域地图中除了一组第一边界以外的其他区域边界未被显示在目标区域地图上。
在一个示例性实施例中,上述装置还包括:
发送单元,用于在移除至少两个第一分区中的相邻第一分区之间的第一边界,得到已合并分区之后,向清洁设备发送更新指示消息,其中,更新指示消息用于指示将至少两个第一分区更新为已合并分区,以通过清洁设备对已合并分区进行清洁。
在一个示例性实施例中,上述装置还包括:
第二确定单元,用于在在目标应用的目标配置界面显示目标区域地图之后,在检测到对目标区域地图执行的添加操作的情况下,确定目标区域地图中与目标边界匹配的一组第二分区,其中,添加操作用于在目标区域地图中添加目标边界;
第一执行单元,用于按照目标边界和与一组第二分区对应的一组第二边界,对一组第二分区执行分割操作,得到一组第三分区。
在一个示例性实施例中,上述装置还包括:
检测单元,用于在确定目标区域地图中与目标边界匹配的一组第二分区之前,检测与目 标边界的两个顶点中的每个顶点对应的匹配边界,其中,与每个顶点对应的匹配边界为目标区域地图中与目标边界有交叉、且与每个顶点之间的距离小于或者等于预设距离阈值的区域边界;
第二执行单元,用于在未检测到与两个顶点中的目标顶点对应的区域边界的情况下,以目标顶点为起点对目标边界执行延长操作,得到延长后的目标边界,其中,延长后的目标顶点具有对应的匹配边界。
在一个示例性实施例中,上述装置还包括:
第三确定单元,用于在按照目标边界和与一组第二分区对应的一组第二边界,对一组第二分区执行分割操作之前,确定目标区域地图中的一组待拆分边界,其中,一组待拆分边界中的每个待拆分边界与目标边界具有交叉点;
第三执行单元,用于以每个待拆分边界与目标边界的交叉点为拆分点对每个待拆分边界执行拆分操作,得到一组已拆分边界,其中,一组第二边界包括一组已拆分边界。
此处需要说明的是,上述模块与对应的步骤所实现的示例和应用场景相同,但不限于上述实施例所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在如图1所示的硬件环境中,可以通过软件实现,也可以通过硬件实现,其中,硬件环境包括网络环境。
根据本申请实施例的又一个方面,还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以用于执行本申请实施例中上述任一项区域信息的处理方法的程序代码。
可选地,在本实施例中,上述存储介质可以位于上述实施例所示的网络中的多个网络设备中的至少一个网络设备上。
可选地,在本实施例中,存储介质被设置为存储用于执行以下步骤的程序代码:
S1,在目标应用的目标配置界面显示目标区域地图,其中,目标区域地图中包含一组第一边界、以及通过一组第一边界所划分成的一组第一分区;
S2,在检测到对目标区域地图执行的合区操作的情况下,确定一组第一分区中待合区的至少两个第一分区;
S3,移除至少两个第一分区中的相邻第一分区之间的第一边界,得到已合并分区。
可选地,本实施例中的具体示例可以参考上述实施例中所描述的示例,本实施例中对此不再赘述。
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、ROM、RAM、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
根据本申请实施例的又一个方面,还提供了一种用于实施上述区域信息的处理方法的电子装置,该电子装置可以是服务器、终端、或者其组合。
图9是根据本申请实施例的一种可选的电子装置的结构框图,如图9所示,包括处理器902、通信接口904、存储器906和通信总线908,其中,处理器902、通信接口904和存储器906通过通信总线908完成相互间的通信,其中,
存储器906,用于存储计算机程序;
处理器902,用于执行存储器906上所存放的计算机程序时,实现如下步骤:
S1,在目标应用的目标配置界面显示目标区域地图,其中,目标区域地图中包含一组第一边界、以及通过一组第一边界所划分成的一组第一分区;
S2,在检测到对目标区域地图执行的合区操作的情况下,确定一组第一分区中待合区的至少两个第一分区;
S3,移除至少两个第一分区中的相邻第一分区之间的第一边界,得到已合并分区。
可选地,在本实施例中,通信总线可以是PCI(Peripheral Component Interconnect,外设部件互连标准)总线、或EISA(Extended Industry Standard Architecture,扩展工业标准结构)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图9中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。通信接口用于上述电子装置与其他设备之间的通信。
上述的存储器可以包括RAM,也可以包括非易失性存储器(non-volatile memory),例如,至少一个磁盘存储器。可选地,存储器还可以是至少一个位于远离前述处理器的存储装置。
作为一种示例,上述存储器906中可以但不限于包括上述设备的控制装置中的显示单元802、第一确定单元804、以及移除单元806。此外,还可以包括但不限于上述设备的控制装置中的其他模块单元,本示例中不再赘述。
上述处理器可以是通用处理器,可以包含但不限于:CPU(Central Processing Unit,中央处理器)、NP(Network Processor,网络处理器)等;还可以是DSP(Digital Signal Processing,数字信号处理器)、ASIC(Application Specific Integrated Circuit,专用集成电路)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。
可选地,本实施例中的具体示例可以参考上述实施例中所描述的示例,本实施例在此不再赘述。
本领域普通技术人员可以理解,图9所示的结构仅为示意,实施上述区域信息的处理方法的设备可以是终端设备,该终端设备可以是智能手机(如Android手机、iOS手机等)、 平板电脑、掌上电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。图9其并不对上述电子装置的结构造成限定。例如,电子装置还可包括比图9中所示更多或者更少的组件(如网络接口、显示装置等),或者具有与图9所示的不同的配置。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令终端设备相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:闪存盘、ROM、RAM、磁盘或光盘等。
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。
上述实施例中的集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在上述计算机可读取的存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在存储介质中,包括若干指令用以使得一台或多台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。
在本申请的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的客户端,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例中所提供的方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
以上所述仅是本申请的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。

Claims (15)

  1. 一种区域信息的处理方法,其特征在于,包括:
    在目标应用的目标配置界面显示目标区域地图,其中,所述目标区域地图中包含一组第一边界、以及通过所述一组第一边界所划分成的一组第一分区;
    在检测到对所述目标区域地图执行的合区操作的情况下,确定所述一组第一分区中待合区的至少两个第一分区;
    移除所述至少两个第一分区中的相邻第一分区之间的第一边界,得到已合并分区。
  2. 根据权利要求1所述的方法,其特征在于,所述目标区域地图根据以下方式得到:
    通过一个或多个检测部件对目标区域内的区域信息进行采集;
    基于采集到的区域信息进行分区处理,得到各个分区以及各个分区的区域边界并保存目标区域地图。
  3. 根据权利要求1所述的方法,其特征在于,所述合区操作包括以下至少之一:点击操作,双击操作,长按操作,滑动操作。
  4. 根据权利要求1所述的方法,其特征在于,所述合区操作包括一个或多个操作的组合,或者触发生成合区指令的触发操作。
  5. 根据权利要求1所述的方法,其特征在于,所述在检测到对所述目标区域地图执行的合区操作的情况下,确定所述一组第一分区中待合区的至少两个第一分区,包括:
    在检测到对所述至少两个第一分区分别执行的选取操作、以及第一触发操作的情况下,将所述至少两个分区确定为待合区的分区,其中,所述第一触发操作用于触发合并所述选取操作所选中的分区。
  6. 根据权利要求1所述的方法,其特征在于,所述在检测到对所述目标区域地图执行的合区操作的情况下,确定所述一组第一分区中待合区的至少两个第一分区,包括:
    在检测到对所述目标区域地图执行的框选操作、以及第二触发操作的情况下,将所述框选操作所框选出的所述至少两个第一分区,确定为待合区的分区,其中,所述第二触发操作用于触发合并所述框选操作所框选出的分区。
  7. 根据权利要求1所述的方法,其特征在于,所述在目标应用的目标配置界面显示目标区域地图,包括:
    接收到与所述目标区域地图对应的清洁设备所发送的目标指示消息,其中,所述目标指示消息用于指示所述目标区域地图中已清洁的分区;
    响应于所述目标指示消息,确定所述目标区域地图中的待清洁分区,得到所述一组第一分区;
    在所述目标应用的所述目标配置界面显示所述目标区域地图,其中,所述目标区域地图 中除了所述一组第一边界以外的其他区域边界未被显示在所述目标区域地图上。
  8. 根据权利要求7所述的方法,其特征在于,在所述移除所述至少两个第一分区中的相邻第一分区之间的第一边界,得到已合并分区之后,所述方法还包括:
    向所述清洁设备发送更新指示消息,其中,所述更新指示消息用于指示将所述至少两个第一分区更新为所述已合并分区,以通过所述清洁设备对所述已合并分区进行清洁。
  9. 根据权利要求1至8中任一项所述的方法,其特征在于,在所述目标应用的目标配置界面显示目标区域地图之后,所述方法还包括:
    在检测到对所述目标区域地图执行的添加操作的情况下,确定所述目标区域地图中与目标边界匹配的一组第二分区,其中,所述添加操作用于在所述目标区域地图中添加所述目标边界;
    按照所述目标边界和与所述一组第二分区对应的一组第二边界,对所述一组第二分区执行分割操作,得到一组第三分区。
  10. 根据权利要求9所述的方法,其特征在于,在所述确定所述目标区域地图中与所述目标边界匹配的一组第二分区之前,所述方法还包括:
    检测与所述目标边界的两个顶点中的每个顶点对应的匹配边界,其中,与所述每个顶点对应的匹配边界为所述目标区域地图中与所述目标边界有交叉、且与所述每个顶点之间的距离小于或者等于预设距离阈值的区域边界;
    在未检测到与所述两个顶点中的目标顶点对应的区域边界的情况下,以所述目标顶点为起点对所述目标边界执行延长操作,得到延长后的所述目标边界,其中,延长后的所述目标顶点具有对应的匹配边界。
  11. 根据权利要求9所述的方法,其特征在于,在所述按照所述目标边界和与所述一组第二分区对应的一组第二边界,对所述一组第二分区执行分割操作之前,所述方法还包括:
    确定所述目标区域地图中的一组待拆分边界,其中,所述一组待拆分边界中的每个待拆分边界与所述目标边界具有交叉点;
    以所述每个待拆分边界与所述目标边界的交叉点为拆分点对所述每个待拆分边界执行拆分操作,得到一组已拆分边界,其中,所述一组第二边界包括所述一组已拆分边界。
  12. 根据权利要求1至8中任一项所述的方法,其特征在于,移除所述至少两个第一分区中的相邻第一分区之间的第一边界,得到已合并分区包括:
    分别确定两个第一分区中相邻的任意两个第一分区,并将相邻的任意两个第一分区之间的第一边界线移除,或者,根据已合并分区的区域信息,确定与所述至少两个第一分区对应的第一边界中,属于已合并分区内的第一边界,并将确定出的第一边界移除,从而得到更新 后的一组第一边界。
  13. 一种区域信息的处理装置,其特征在于,包括:
    显示单元,用于在目标应用的目标配置界面显示目标区域地图,其中,所述目标区域地图中包含一组第一边界、以及通过所述一组第一边界所划分成的一组第一分区;
    第一确定单元,用于在检测到对所述目标区域地图执行的合区操作的情况下,确定所述一组第一分区中待合区的至少两个第一分区;
    移除单元,用于移除所述至少两个第一分区中的相邻第一分区之间的第一边界,得到已合并分区。
  14. 一种计算机可读的存储介质,其特征在于,所述计算机可读的存储介质包括存储的程序,其中,所述程序运行时执行权利要求1至12中任一项所述的方法。
  15. 一种电子装置,包括存储器和处理器,其特征在于,所述存储器中存储有计算机程序,所述处理器被设置为通过所述计算机程序执行权利要求1至12中任一项所述的方法。
PCT/CN2023/075216 2022-02-21 2023-02-09 区域信息的处理方法及装置、存储介质及电子装置 WO2023155732A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210159245.3 2022-02-21
CN202210159245.3A CN116662462A (zh) 2022-02-21 2022-02-21 区域信息的处理方法及装置、存储介质及电子装置

Publications (1)

Publication Number Publication Date
WO2023155732A1 true WO2023155732A1 (zh) 2023-08-24

Family

ID=87577590

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/075216 WO2023155732A1 (zh) 2022-02-21 2023-02-09 区域信息的处理方法及装置、存储介质及电子装置

Country Status (2)

Country Link
CN (1) CN116662462A (zh)
WO (1) WO2023155732A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110428423A (zh) * 2019-06-25 2019-11-08 深圳乐动机器人有限公司 一种区域编辑方法、编辑设备及编辑系统
CN111123278A (zh) * 2019-12-30 2020-05-08 科沃斯机器人股份有限公司 分区方法、设备及存储介质
CN111722630A (zh) * 2020-06-30 2020-09-29 深圳市银星智能科技股份有限公司 清洁机器人的分区边界扩展方法、装置、设备及存储介质
US20200319640A1 (en) * 2017-04-28 2020-10-08 RobArt GmbH Method for navigation of a robot

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200319640A1 (en) * 2017-04-28 2020-10-08 RobArt GmbH Method for navigation of a robot
CN110428423A (zh) * 2019-06-25 2019-11-08 深圳乐动机器人有限公司 一种区域编辑方法、编辑设备及编辑系统
CN111123278A (zh) * 2019-12-30 2020-05-08 科沃斯机器人股份有限公司 分区方法、设备及存储介质
CN111722630A (zh) * 2020-06-30 2020-09-29 深圳市银星智能科技股份有限公司 清洁机器人的分区边界扩展方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN116662462A (zh) 2023-08-29

Similar Documents

Publication Publication Date Title
WO2023051227A1 (zh) 清洁设备的控制方法及装置
CN110703966A (zh) 文件共享方法、装置、系统、相应设备及存储介质
CN105511936B (zh) 测试系统、方法和装置
WO2022267795A1 (zh) 区域地图的处理方法及装置、存储介质及电子装置
CN111488088B (zh) 设备状态标识方法、装置及智能终端
CN106713042B (zh) 一种确定网络拓扑方法及装置
CN105225212A (zh) 一种图片处理方法和装置
CN105094534A (zh) 一种智能手持设备的窗口显示切换方法及装置
CN106502760B (zh) 一种虚拟机亲和性策略可视化的方法及装置
CN111857136A (zh) 一种目标地图的处理方法和装置
CN107463391B (zh) 任务处理方法、装置及设备
CN105760458A (zh) 一种图片处理方法及电子设备
CN113095227A (zh) 一种机器人定位方法、装置、电子设备及存储介质
US10582388B2 (en) Electronic apparatus and method of executing application program
CN104079717A (zh) 一种显示设备界面的方法及服务器
CN109542320B (zh) 一种显示方法、终端及计算机存储介质
WO2023155732A1 (zh) 区域信息的处理方法及装置、存储介质及电子装置
CN112413826A (zh) 设备配置方法、装置、电子设备及存储介质
CN106375551B (zh) 一种信息交互方法、装置及终端
WO2023155681A1 (zh) 区域信息的处理方法和装置、存储介质及电子装置
US11169656B2 (en) User interface method, information processing system, and user interface program medium
CN114224232B (zh) 地图更新方法、装置、扫地机器人及存储介质
CN113064531B (zh) 虚拟资源交互方法和装置、存储介质及电子设备
CN110858175A (zh) 测试控制方法、主控设备、被控设备及测试系统
WO2019047423A1 (zh) 一种图标显示方法及装置

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: 23755735

Country of ref document: EP

Kind code of ref document: A1