WO2023207610A1 - Mapping method and apparatus, and storage medium and electronic apparatus - Google Patents

Mapping method and apparatus, and storage medium and electronic apparatus Download PDF

Info

Publication number
WO2023207610A1
WO2023207610A1 PCT/CN2023/088027 CN2023088027W WO2023207610A1 WO 2023207610 A1 WO2023207610 A1 WO 2023207610A1 CN 2023088027 W CN2023088027 W CN 2023088027W WO 2023207610 A1 WO2023207610 A1 WO 2023207610A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
information
area
sub
obstacle
Prior art date
Application number
PCT/CN2023/088027
Other languages
French (fr)
Chinese (zh)
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 WO2023207610A1 publication Critical patent/WO2023207610A1/en

Links

Classifications

    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47LDOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
    • A47L11/00Machines for cleaning floors, carpets, furniture, walls, or wall coverings
    • A47L11/40Parts 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/4011Regulation of the cleaning machine by electric means; Control systems and remote control systems therefor
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47LDOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
    • A47L11/00Machines for cleaning floors, carpets, furniture, walls, or wall coverings
    • A47L11/24Floor-sweeping machines, motor-driven
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47LDOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
    • A47L11/00Machines for cleaning floors, carpets, furniture, walls, or wall coverings
    • A47L11/28Floor-scrubbing machines, motor-driven
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47LDOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
    • A47L11/00Machines for cleaning floors, carpets, furniture, walls, or wall coverings
    • A47L11/40Parts 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
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47LDOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
    • A47L11/00Machines for cleaning floors, carpets, furniture, walls, or wall coverings
    • A47L11/40Parts 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/4002Installations of electric equipment
    • A47L11/4008Arrangements of switches, indicators or the like
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47LDOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
    • A47L11/00Machines for cleaning floors, carpets, furniture, walls, or wall coverings
    • A47L11/40Parts 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/4061Steering means; Means for avoiding obstacles; Details related to the place where the driver is accommodated
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47LDOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
    • A47L2201/00Robotic cleaning machines, i.e. with automatic control of the travelling movement or the cleaning operation
    • A47L2201/04Automatic control of the travelling movement; Automatic obstacle detection

Definitions

  • the present invention relates to the field of artificial intelligence, and specifically, to a mapping method, device, storage medium and electronic device.
  • cleaning equipment usually only relies on its own installed sensors to achieve obstacle sensing and simultaneous positioning and mapping (SLAM).
  • SLAM simultaneous positioning and mapping
  • the sensors that come with the cleaning equipment have blind spots that lead to the acquisition of work.
  • the information in the area is incomplete, and the obstacle information in the work area cannot be accurately obtained, resulting in a map constructed that is not accurate enough, and therefore the cleaning operation cannot be accurately performed on the work area. That is, there is a problem in the related technology that the cleaning equipment cannot accurately obtain the information of the work area, resulting in cleaning The problem of low efficiency.
  • Embodiments of the present invention provide a mapping method, device, storage medium and electronic device to at least solve the problem in related technologies that cleaning equipment cannot accurately obtain information about the work area, resulting in low cleaning efficiency.
  • a mapping method is provided, which is applied to a target cleaning device and a target camera device.
  • the target camera device is set in a cleaning environment and is communicatively connected with the target cleaning device, including: obtaining a target image obtained by photographing a target area by the target imaging device, wherein the target image contains the target cleaning device; and determining first area information of the target area based on the target image, wherein the The first area information includes the first location information of the target cleaning equipment and the second location information of the first obstacle contained in the target area; the first area information and the second area information are fused to Obtaining target area information, wherein the second area information is area information of a first area included in the target area detected by the target cleaning device; constructing a target of the target area based on the target area information map.
  • obtaining the target image obtained by photographing the target area by the target camera device includes: sending a first acquisition instruction to the target camera device to instruct the target camera device to capture the entire target area. the first image; obtain the first image sent by the target camera device, and determine the first image as the target image.
  • obtaining the target image obtained by shooting the target area by the target camera device includes: sending a second collection instruction to the target camera device to instruct the target camera device to collect the image of the target area.
  • determining the first area information of the target area based on the target image includes identifying the target image to determine the first target information of the target cleaning device in the target area. and second target information of the first obstacle, wherein the first target information at least includes the first position information, and the second target information at least includes the second position information, the first obstacle Type information and size information of the object; determine the first area information based on the first target information and the second target information.
  • fusing the first area information and the second area information to obtain the target area information includes: obtaining the first sub-area corresponding to the first area in the first area information. information; compare the first sub-area information with the second area information to obtain a comparison result, wherein the comparison result is used to indicate where the first sub-obstacle information in the first sub-area information Whether the corresponding first sub-obstacle matches the second sub-obstacle corresponding to the second sub-obstacle information in the second area information; update the first area information based on the comparison result to obtain The target area information.
  • updating the first area information based on the comparison result to obtain the target area information includes: when the comparison result indicates that the first sub-obstacle and the second When the sub-obstacles do not match, the first sub-obstacle information in the first area information is updated to the second sub-obstacle information to obtain the updated first area information; the updated The first area information is determined as the target area information.
  • comparing the first sub-region information with the second sub-region information to obtain a comparison result includes: comparing the first sub-obstacle information with the second sub-obstacle information. Compare; when it is determined that the first sub-obstacle information is inconsistent with the second sub-obstacle information, obtain a first comparison result; after determining that the first sub-obstacle information and the second sub-obstacle information are inconsistent When the object information is consistent, the second comparison result is obtained.
  • comparing the first sub-region information with the second sub-region information to obtain a comparison result includes: comparing the first feature of the first sub-obstacle with the second sub-region information.
  • the second feature of the obstacle is compared, wherein the first feature is the feature data of the first sub-obstacle extracted using the target convolutional neural network, and the second feature is extracted using the target convolutional neural network.
  • the extracted feature data of the second sub-obstacle when it is determined that the first similarity between the first feature and the second feature is less than the first similarity threshold, obtain a third comparison result; in When it is determined that the first similarity between the first feature and the second feature is greater than or equal to the first similarity threshold, a fourth comparison result is obtained.
  • comparing the first sub-region information with the second region information to obtain a comparison result includes: segmenting a region corresponding to the first sub-region information to obtain a comparison result containing The first block of the first sub-obstacle, and segmenting the area corresponding to the second area information to obtain the second block containing the second sub-obstacle; based on the center of the first block coordinates and the center coordinate of the second block to calculate a second similarity between the first sub-obstacle and the second sub-obstacle; after determining that the second similarity is less than a second similarity threshold In this case, a fifth comparison result is obtained; in a case where it is determined that the second similarity is greater than or equal to the second similarity threshold, a sixth comparison result is obtained.
  • the method further includes: planning a target path based on the target map, and performing a cleaning operation according to the target path.
  • the method before acquiring the target image obtained by photographing the target area by the target camera device, the method further includes: acquiring information on the local area network where the target cleaning device is located; and determining, based on the local area network information, All smart terminals that enter the network at the same time; obtain the network identifier of each smart terminal; and determine the target camera device based on the network identifier.
  • fusing the first area information with the second area information to obtain target area information includes: updating the second area information according to predetermined rules to obtain updated second area information. ; Fusion of the first area information and the updated second area information to obtain the target area information.
  • a mapping device located in the target cleaning equipment and the target camera equipment.
  • the target camera equipment is arranged in a cleaning environment and is communicatively connected with the target cleaning equipment, including:
  • the first acquisition module is used to acquire the target image obtained by photographing the target area by the target camera device, wherein the target image contains the target cleaning device;
  • the first determination module is used to obtain the target image based on the target image.
  • the image determines first area information of the target area, wherein the first area information includes first position information of the target cleaning equipment and second position information of the first obstacle contained in the target area; a fusion module, configured to fuse the first area information with the second area information to obtain target area information, wherein the second area information is included in the target area detected by the target cleaning device regional information of the first region; a construction module configured to construct a target map of the target region based on the target region information.
  • a computer-readable storage medium includes a stored program, wherein when the program is run, it executes any of the above-mentioned embodiments. method described.
  • an electronic device including a memory and a processor.
  • a computer program is stored in the memory, and the processor is configured to execute any of the above implementations through the computer program. method described in the example.
  • the target image obtained by shooting the target area by the target camera device is obtained, and the first area information of the target area is determined based on the target image, and then the first area information is combined with the results of the first area detection by the target cleaning equipment.
  • the obtained second area information is fused to obtain the target area information, so that a target map of the target area can be constructed based on the target area information. Since the first area information determined based on the target image is fused, the obtained target area information is more It is accurate and avoids the problem in related technologies that the working area information obtained by detecting the working area only by relying on the target cleaning equipment itself is inaccurate or incomplete.
  • the purpose of improving the accuracy of determining the target area information can be achieved, thereby
  • the purpose of improving the accuracy of building a target map is achieved, effectively solving the problem in related technologies that cleaning equipment cannot accurately obtain information about the work area, resulting in low cleaning efficiency, and achieving the effect of improving the cleaning efficiency of cleaning equipment.
  • Figure 1 is a hardware structural block diagram of a mapping method according to an embodiment of the present invention
  • Figure 2 is a flow chart of a mapping method according to an embodiment of the present invention.
  • Figure 3 is an example flow chart according to an embodiment of the present invention.
  • Figure 4 is a structural block diagram of a mapping device according to an embodiment of the present invention.
  • FIG. 1 is a hardware structure block diagram of a mapping method according to an embodiment of the present invention.
  • the mobile device may include one or more (only one is shown in Figure 1) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data.
  • the above-mentioned mobile device may also include a transmission device 106 for communication functions and an input and output device 108.
  • a transmission device 106 for communication functions
  • an input and output device 108 Persons of ordinary skill in the art can understand that the structure shown in FIG.
  • a mobile device may also include more or fewer components than shown in FIG. 1 , or be configured differently with equivalent functionality or more functionality than that shown in FIG. 1 .
  • the memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the mapping method in the embodiment of the present invention.
  • the processor 102 executes various tasks by running the computer program stored in the memory 104.
  • a functional application and data processing that is, to implement the above method.
  • Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
  • memory 104 may further include memory located remotely from processor 102, and these remote memories may be connected to the mobile device through a network. Examples of the above-mentioned networks include but are not limited to the Internet, intranets, local area networks, mobile communication networks and combinations thereof.
  • the transmission device 106 is used to receive or send data via a network.
  • Specific examples of the above-mentioned network may include a wireless network provided by a communication provider of the mobile device.
  • the transmission device 106 includes a network adapter (Network Interface Controller, NIC for short), which can be connected to other network devices through a base station to communicate with the Internet.
  • the transmission device 106 may be a radio frequency (Radio Frequency, RF for short) module, which is used to communicate with the Internet wirelessly.
  • NIC Network Interface Controller
  • a mapping method is provided, which is applied to a target cleaning device and a target camera device.
  • the target camera device is set in a cleaning environment and is communicatively connected with the target cleaning device, as shown in Figure 2.
  • the method includes the following steps:
  • Step S202 Obtain a target image obtained by photographing the target area by the target imaging device, wherein the target image includes the target cleaning device;
  • Step S204 Determine first area information of the target area based on the target image, where the first area information includes first position information of the target cleaning equipment and first obstacles contained in the target area.
  • Step S206 Fusion of the first area information and second area information to obtain target area information, wherein the second area information is the first area included in the target area detected by the target cleaning device.
  • Regional information of a region
  • Step S208 Construct a target map of the target area based on the target area information.
  • the device that performs the above operations may be a device, such as the above-mentioned target cleaning device, or a processor or controller included in the device, or a device with control capabilities, or other processing devices or processing devices with similar processing capabilities. Unit, etc., wherein the above-mentioned controller or other execution subject may exist alone, or may be integrated into the target cleaning equipment.
  • the following takes the controller included in the target cleaning equipment (hereinafter referred to as the "controller") as an example to perform the above operations (this is only an illustrative explanation, in actual operation, other devices or modules can also be used to perform the above operations). illustrate:
  • the controller obtains a target image obtained by photographing a target area by a target camera device.
  • the target area may be an area in a home or office waiting to be cleaned.
  • the target area may be a living room area, where the target image includes images of the target cleaning equipment.
  • the target cleaning equipment and the target camera equipment can be connected to the same local area network.
  • the target camera equipment can be connected through methods including but not limited to wired, WIFI, etc., and the target cleaning equipment can also be connected through Including but not limited to WIFI, Bluetooth and other methods to access the same LAN, so that when the target cleaning equipment appears in the shooting screen of the target camera equipment, the image of the target area can be captured.
  • the target camera equipment can capture images including The image of the entire target area can be understood as a panoramic image of the target area.
  • the target camera device can be installed on the ceiling of the target area (such as the living room), or the target camera device can be a camera device that can move in all directions.
  • the target camera device can capture The target image of the target area is then sent to the target cleaning equipment through the network; in practical applications, the target cleaning equipment can also send instructions to the target camera equipment to instruct the target camera equipment to collect the target image of the target area; control
  • the device determines first area information of the target area based on the target image.
  • the first area information includes first position information of the target cleaning equipment and second position information of the first obstacles contained in the target area.
  • the first obstacles may include multiple obstacle.
  • the controller can obtain the first area information by identifying the target image.
  • the first area information can also include type information and/or size information of the first obstacle; and then the first area information can be obtained by identifying the target image.
  • the information is fused with the second area information to obtain the target area information, where the second area information is the area information of the first area included in the target area detected by the target cleaning equipment.
  • the target cleaning equipment can The regional information of the first area is obtained through its own sensor. Since the sensor carried by the cleaning equipment itself is generally located directly in front of the cleaning equipment, there are blind areas on both sides and rear.
  • the target obtained by fusing the first area information with the second area information The area information will be more accurate; therefore, the target map of the target area constructed based on the target area information is also more accurate. Furthermore, the cleaning path of the target cleaning equipment can be planned based on the target map, which can effectively solve the problems of cleaning equipment in related technologies. The inability to accurately obtain information about the work area leads to the problem of low cleaning efficiency, which achieves the effect of improving the cleaning efficiency of the cleaning equipment.
  • obtaining the target image obtained by photographing the target area by the target camera device includes: sending a first acquisition instruction to the target camera device to instruct the target camera device to capture the entire target area. the first image; obtain the first image sent by the target camera device, and determine the first image as the target image.
  • a first collection instruction can be sent to the target camera device to instruct the target camera device to collect the first image of the entire target area. It can be understood that the first image is a panoramic image of the entire target area, and then the target camera device is acquired. The camera device sends the first image and determines the first image as the target image.
  • obtaining the target image obtained by shooting the target area by the target camera device includes: sending a second collection instruction to the target camera device to instruct the target camera device to collect the image of the target area.
  • a second collection instruction can also be sent to the target camera device to instruct the target camera device to collect a second image of a designated area included in the target area.
  • the designated area is a preset range centered on the target cleaning device.
  • the designated area can be a circular area or a square area centered on the target cleaning equipment, or it can also be an area of other graphics. This specification does not limit it. In practical applications, it may only be necessary to specify Clean the area, then acquire the second image sent by the target camera device, and determine the second image as the target image, thus improving the efficiency and accuracy of cleaning and improving the user experience.
  • the purpose of obtaining the target image of the target area through different methods is achieved.
  • determining the first area information of the target area based on the target image includes identifying the target image to determine the first area information of the target cleaning device included in the target area.
  • a target information and second target information of the first obstacle wherein the first target information at least includes the first position information, and the second target information at least includes the second position information, the Type information and size information of the first obstacle; determining the first area information based on the first target information and the second target information.
  • the first target information of the target cleaning equipment and the second target information of the first obstacle included in the target area are determined by identifying the target image.
  • the first target information includes at least the third target information of the target cleaning equipment.
  • a position information, the second target information at least includes the second position information of the first obstacle, the type information of the first obstacle and the size information of the first obstacle.
  • it can be through image recognition (such as OCR Technology) and/or AI image processing to identify the target cleaning equipment itself, the ground area and various obstacles in the target area included in the target image, and also calculate the positional relationship between the target cleaning equipment itself and all obstacles. , and then determine the first area information based on the first target information and the second target information.
  • the purpose of the first area information is determined by identifying the target image.
  • fusing the first area information and the second area information to obtain the target area information includes: obtaining the first sub-area corresponding to the first area in the first area information. information; compare the first sub-area information with the second area information to obtain a comparison result, wherein the comparison result is used to indicate where the first sub-obstacle information in the first sub-area information Whether the corresponding first sub-obstacle matches the second sub-obstacle corresponding to the second sub-obstacle information in the second area information; update the first area information based on the comparison result to obtain The target area information.
  • the comparison result is obtained by comparing the first sub-area information corresponding to the first area and the second area information included in the first area information, because the first area information includes the entire target area.
  • the matching process may include matching the location, size, etc. of obstacles; then the first area information may be updated based on the comparison results to obtain the final target area information. For example, if the above first sub-area information is consistent with When the second area information is inconsistent, that is, when the first sub-obstacle included in the first sub-area information does not match the second sub-obstacle included in the second area information, the second area information may be based on the second area information.
  • the information of one sub-region is updated, that is, the information of the first region is updated, thereby obtaining the target region information, thereby achieving the effect of further improving the accuracy of determining the target region information.
  • the purpose of further improving the accuracy of determining the target area information is by fusing the first area information with the second area information.
  • updating the first area information based on the comparison result to obtain the target area information includes: when the comparison result indicates that the first sub-obstacle and the second When the sub-obstacles do not match, the first sub-obstacle information in the first area information is updated to the second sub-obstacle information to obtain the updated first area information; the updated The first area information is determined as the target area information.
  • the first sub-obstacle information included in the first area information may be updated with the second sub-obstacle information, so that Obtain the updated first area information.
  • comparing the first sub-region information with the second sub-region information to obtain a comparison result includes: comparing the first sub-obstacle information with the second sub-obstacle information. Compare; when it is determined that the first sub-obstacle information is inconsistent with the second sub-obstacle information, obtain a first comparison result; after determining that the first sub-obstacle information and the second sub-obstacle information are inconsistent When the object information is consistent, the second comparison result is obtained.
  • the comparison result can be obtained by comparing the first sub-obstacle information with the second sub-obstacle information.
  • first sub-obstacle information and the second sub-obstacle information are inconsistent, then It is considered that the first sub-obstacle and the second sub-obstacle do not match, and when the first sub-obstacle information is consistent with the second sub-obstacle information, the first sub-obstacle and the second sub-obstacle are considered to match.
  • comparing the first sub-region information with the second sub-region information to obtain a comparison result includes: comparing the first feature of the first sub-obstacle with the second sub-region information.
  • the second feature of the obstacle is compared, wherein the first feature is the feature data of the first sub-obstacle extracted using the target convolutional neural network, and the second feature is extracted using the target convolutional neural network.
  • the extracted feature data of the second sub-obstacle when it is determined that the first similarity between the first feature and the second feature is less than the first similarity threshold, obtain a third comparison result; in When it is determined that the first similarity between the first feature and the second feature is greater than or equal to the first similarity threshold, a fourth comparison result is obtained.
  • the comparison result can be obtained by comparing the first feature of the first sub-obstacle with the second feature of the second sub-obstacle, where the first feature and the second feature are respectively obtained by convolution Feature data obtained by extracting features of the first sub-obstacle and the second sub-obstacle by the neural network, for example, calculating the first similarity value between the first feature and the second feature.
  • the similarity value between the two is less than When the first similarity threshold (such as 90%, or 85%, or other values) is reached, it is considered that the first sub-obstacle and the second sub-obstacle do not match, and when the similarity value between the two is greater than or equal to the first similarity When the degree threshold is reached, the first sub-obstacle and the second sub-obstacle are considered to match.
  • the first similarity threshold such as 90%, or 85%, or other values
  • comparing the first sub-region information with the second region information to obtain a comparison result includes: segmenting a region corresponding to the first sub-region information to obtain a comparison result containing The first block of the first sub-obstacle, and segmenting the area corresponding to the second area information to obtain the second block containing the second sub-obstacle; based on the center of the first block coordinates and the center coordinate of the second block to calculate a second similarity between the first sub-obstacle and the second sub-obstacle; after determining that the second similarity is less than a second similarity threshold In this case, a fifth comparison result is obtained; in a case where it is determined that the second similarity is greater than or equal to the second similarity threshold, a sixth comparison result is obtained.
  • the first block and the second block can also be obtained by dividing the areas corresponding to the first sub-area information and the second area information respectively, and then based on the first block
  • the center coordinate and the center coordinate of the second block calculate the second similarity value between the first sub-obstacle and the second sub-obstacle.
  • the similarity value between the two is less than the second similarity threshold (such as 95%, or 90%, or other values)
  • the similarity value between the two is greater than or equal to the second similarity threshold
  • the above-mentioned first sub-obstacle may include one or more obstacles, and similarly, the above-mentioned second sub-obstacle may also include one or more obstacles; through the above embodiments, the first sub-obstacle can be determined in a variety of different ways. Whether the first sub-obstacle corresponding to the first sub-obstacle information included in the area information matches the second sub-obstacle corresponding to the second sub-obstacle information included in the second area information, thereby achieving the purpose of matching the first sub-obstacle information included in the area information. The purpose of updating a region information and determining the target region information.
  • the method further includes: planning a target path based on the target map, and performing a cleaning operation according to the target path.
  • the target cleaning device or the controller can plan the target path based on the target map, and control the target cleaning device to perform cleaning operations according to the target path.
  • the method before acquiring the target image obtained by photographing the target area by the target camera device, the method further includes: acquiring information on the local area network where the target cleaning device is located; and determining, based on the local area network information, All smart terminals that enter the network at the same time; obtain the network identifier of each smart terminal; and determine the target camera device based on the network identifier.
  • all the smart terminals in the same local area network as the target cleaning device can be determined by obtaining the local area network information where the target cleaning device is located.
  • the network identifier of each smart terminal can also be obtained, for example Terminal ID, a unique identifier, can identify the type of smart terminal device, and then determine the target camera device based on the network identifier.
  • fusing the first area information with the second area information to obtain target area information includes: updating the second area information according to predetermined rules to obtain updated second area information. ; Fusion of the first area information and the updated second area information to obtain the target area information.
  • the second area information can be updated according to predetermined rules. For example, in practical applications, as the target cleaning equipment rotates or moves, the scanning angle of its own sensor may also change, and it can be updated regularly or in real time. The second area information obtained by the target cleaning equipment is then integrated with the first area information to update the target area information regularly or in real time, thereby further improving the accuracy of determining the target area information. The purpose is to achieve the effect of improving the cleaning efficiency of cleaning equipment.
  • FIG 3 is an example flow chart according to an embodiment of the present invention. As shown in Figure 3, the process includes the following steps:
  • the camera (corresponding to the aforementioned target camera equipment) and the sweeper (corresponding to the aforementioned target cleaning equipment) are connected to the same local area network.
  • the surveillance camera accesses the same local area network through methods including but not limited to wired and wifi
  • the sweeping robot accesses the same local area network through methods including but not limited to wifi and Bluetooth.
  • the sweeper can obtain device information connected to the same local area network.
  • the device information may include device type, identification, identification code, etc., and then determine the image collection device (such as a home camera) based on the device information, thereby excluding mobile phone washing machines. Refrigerator and other equipment.
  • the router can be used as the signal and data transmission intermediary, or the sweeper can establish a direct connection with the image acquisition device by establishing a second local area network (such as Bluetooth, WiFi, etc.), thereby realizing direct transmission of signals and data.
  • a second local area network such as Bluetooth, WiFi, etc.
  • S304 The camera collects images and transmits the image (corresponding to the aforementioned target image) to the sweeper.
  • the sweeping robot appears in the surveillance camera screen, the pictures taken by the camera are transmitted to the sweeping robot through the network.
  • the sweeper sends a first image collection instruction (which can be understood as a panoramic image) to the image collection device.
  • the camera can move in all directions. This is to determine which image collection devices the sweeper is within the field of view of. For example, the sweeper is in the living room. The panoramic image of the camera in the bedroom does not have a sweeper).
  • the first image acquisition instruction corresponds to the aforementioned first acquisition instruction.
  • the sweeper can determine the target image acquisition device based on the obtained first image; the sweeper can determine the target image acquisition device. Panoramic images for image analysis.
  • the sweeper sends a second image acquisition instruction (corresponding to the aforementioned second acquisition instruction) to the target image device, collects the second image centered on the sweeper and within a preset range, and analyzes the second image.
  • a second image acquisition instruction corresponding to the aforementioned second acquisition instruction
  • the effect is: Avoiding the large performance consumption caused by analyzing panoramic images, analyzing partial images can reduce software and hardware requirements.
  • S306 Recognize the image to determine the positional relationship between the sweeper itself and obstacles. Through image recognition or AI image processing, it identifies the sweeper itself, the ground and other passable areas in the camera picture, and various obstacles within the camera's field of view, and calculates the relative position of itself and all obstacles.
  • step S306 identify the picture collected by the camera (corresponding to the aforementioned target image), and determine the type, size (such as outline, length, width, height, etc.) and relative position relationship (distance and angle with the sweeper) of the obstacles in the picture. ), for example, identify the type in the picture through the image recognition model, determine the size and relative position of each obstacle through the position of the camera in the room (such as the relationship between the height of the camera and the image ratio, etc.), and generate the first obstacle based on the recognition result. object map.
  • the type, size such as outline, length, width, height, etc.
  • relative position relationship distance and angle with the sweeper
  • S308 fuse the above positional relationship with the positioning information calculated or stored by the sweeper through the local sensor to obtain an updated obstacle map; obtain the relative relationship between the sweeper and reference obstacles (such as walls, furniture) in the picture.
  • the position relationship is fused with the positioning information calculated by the sweeper through the local sensor or stored to improve the accuracy of positioning.
  • the sweeper obtains the second obstacle map through its own sensor, fuses the first obstacle map and the second obstacle map (equivalent to the aforementioned fusion of the first area information and the second area information), and obtains the final obstacle map (corresponding to the aforementioned target map);
  • the fusion process can be:
  • the scope of the second obstacle map (which may include a sector-shaped area centered on the sweeper, determine the angle, boundary, and information about the obstacles contained in the sector-shaped area);
  • the matching process may include matching in terms of obstacle location, size, etc.;
  • the areas with consistent matching i.e. obstacles
  • the inconsistent parts can be replaced with obstacles in the first obstacle map with obstacles in the second obstacle map, thereby obtaining the updated first obstacle map, which is the final obstacle information.
  • the above matching process can also be:
  • Extract the characteristic data of the first obstacle and the second obstacle (for example, it can be extracted through a convolutional neural network); calculate the similarity of the two characteristic data; if the similarity is greater than the threshold (corresponding to the aforementioned first similarity threshold), then It means the match is consistent, otherwise it is inconsistent.
  • each group of obstacles segmentation is performed according to the same rules to obtain different blocks.
  • Different obstacle types can correspond to different segmentation rules, which can achieve segmentation accuracy; each group of obstacles is calculated through the center of each block The similarity between them (refer to Euclidean distance and Mann distance calculation method); if the similarity is greater than the threshold (corresponding to the aforementioned second similarity threshold), it means that the matching is consistent, otherwise it is inconsistent.
  • S310 Perform path planning based on the updated obstacle map.
  • the obstacle sensing sensor (Tof, line laser, camera) of the sweeper is usually located directly in front of the machine, with blind areas on both sides and rear, and the relationship between the position of the sweeper itself and the obstacles in the above step S306 is integrated.
  • AI classification of obstacles, and passable areas on the ground it can make up for the obstacle information in its own blind spot, improve the perception range and accuracy of surrounding obstacles, and establish a more accurate and complete obstacle map.
  • the problem in the related art that the sweeper only relies on the sensor it carries to sense obstacles and SLAM positioning is avoided.
  • the problem of incomplete information on obstacles and errors in positioning due to the blind area of the sensor itself is avoided.
  • the sweeping machine obtains the panoramic image collected by the camera through the network and analyzes the image to generate a first obstacle map, and then fuses the first obstacle map with the second obstacle map obtained by the sweeping machine through its own sensor to obtain The final target obstacle map can achieve the purpose of improving the integrity and reliability of sweeping machine mapping.
  • the method according to the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is Better implementation.
  • the technical solution of the present invention can be embodied in the form of a software product in essence or that contributes to the existing technology.
  • the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD), including several instructions to cause a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present invention.
  • a mapping device is also provided, which is located in the target cleaning equipment and the target camera equipment.
  • the target camera equipment is set in a cleaning environment and is communicatively connected with the target cleaning equipment.
  • the device is used to implement The above-mentioned embodiments and preferred implementation modes have been described and will not be described again.
  • the term "module” may be a combination of software and/or hardware that implements a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
  • Figure 4 is a structural block diagram of a mapping device according to an embodiment of the present invention. As shown in Figure 4, the device includes:
  • the first acquisition module 402 is used to acquire a target image obtained by photographing a target area by the target imaging device, wherein the target image includes the target cleaning device;
  • the first determination module 404 is configured to determine the first area information of the target area based on the target image, wherein the first area information includes the first position information of the target cleaning equipment and the first location information of the target area. Contains the second position information of the first obstacle;
  • Fusion module 406 configured to fuse the first area information with the second area information to obtain target area information, wherein the second area information is in the target area detected by the target cleaning device. Included area information for the first area;
  • a construction module 408 is used to construct a target map of the target area based on the target area information.
  • the above-mentioned acquisition module 402 includes:
  • the first acquisition unit is used to send a first acquisition instruction to the target camera device to instruct the target camera device to collect the first image of the entire target area; the first acquisition unit is used to acquire the first image captured by the target camera. The first image sent by the device and determines the first image as the target image.
  • the above-mentioned acquisition module 402 includes:
  • a second collection unit configured to send a second collection instruction to the target camera device to instruct the target camera device to collect a second image of a designated area of the target area, wherein the designated area includes the target Cleaning device; a second acquisition unit, configured to acquire the second image sent by the target imaging device and determine the second image as the target image.
  • the above-mentioned determining module 404 includes:
  • An identification unit configured to identify the target image to determine the first target information of the target cleaning equipment and the second target information of the first obstacle in the target area, wherein the first target The information at least includes the first position information, and the second target information at least includes the second position information, the type information and the size information of the first obstacle;
  • a first determining unit configured to determine the first area information based on the first target information and the second target information.
  • the above-mentioned fusion module 406 includes:
  • a third acquisition unit configured to acquire the first sub-region information corresponding to the first region in the first region information
  • a comparison unit configured to compare the first sub-area information with the second area information to obtain a comparison result, wherein the comparison result is used to indicate the first sub-obstacle in the first sub-area information. Whether the first sub-obstacle corresponding to the object information matches the second sub-obstacle corresponding to the second sub-obstacle information in the second area information;
  • a first update unit is configured to update the first area information based on the comparison result to obtain the target area information.
  • the above-mentioned first update unit includes:
  • Update subunit configured to update the first sub-obstacle information in the first area information to when the comparison result indicates that the first sub-obstacle does not match the second sub-obstacle. the second sub-obstacle information to obtain updated first area information;
  • a determining subunit configured to determine the updated first area information as the target area information.
  • the above comparison unit includes:
  • a first comparison subunit is used to compare the first sub-obstacle information with the second sub-obstacle information; a first obtaining sub-unit is used to determine whether the first sub-obstacle information is the same as the second sub-obstacle information. When the second sub-obstacle information is inconsistent, the first comparison result is obtained; the second acquisition sub-unit is used to obtain the first comparison result when it is determined that the first sub-obstacle information is consistent with the second sub-obstacle information. Second comparison result.
  • the above comparison unit includes:
  • the second comparison subunit is used to compare the first feature of the first sub-obstacle with the second feature of the second sub-obstacle, wherein the first feature is extracted using a target convolutional neural network
  • the characteristic data of the first sub-obstacle, the second characteristic is the characteristic data of the second sub-obstacle extracted using the target convolutional neural network
  • the third acquisition sub-unit is used to determine the When the first similarity between the first feature and the second feature is less than the first similarity threshold, a third comparison result is obtained
  • a fourth acquisition subunit is used to determine whether the first feature is the same as the first similarity threshold. When the first similarity between the second features is greater than or equal to the first similarity threshold, a fourth comparison result is obtained.
  • the above comparison unit includes:
  • a segmentation subunit used to segment the area corresponding to the first sub-area information to obtain the first block containing the first sub-obstacle, and to segment the area corresponding to the second area information.
  • the calculation subunit is used to calculate the first sub-obstacle and the second sub-obstacle based on the center coordinates of the first block and the center coordinates of the second block.
  • the above device further includes:
  • a planning module configured to plan a target path based on the target map after constructing a target map of the target area based on the target area information, and perform cleaning operations according to the target path.
  • the above device further includes:
  • the second acquisition module is used to acquire the local area network information of the target cleaning device before acquiring the target image obtained by shooting the target area by the target camera device;
  • the second determination module is used to determine all intelligent terminals that enter the network at the same time based on the local area network information
  • the third acquisition module is used to obtain the network identifier of each smart terminal
  • a third determination module configured to determine the target camera device based on the network identifier.
  • the above-mentioned fusion module 406 also includes:
  • a second update unit configured to update the second area information according to predetermined rules to obtain updated second area information
  • a fusion unit configured to fuse the first area information with the updated second area information to obtain the target area information.
  • each of the above modules can be implemented through software or hardware.
  • it can be implemented in the following ways, but is not limited to this: the above modules are all located in the same processor; or the above modules can be implemented in any combination.
  • the forms are located in different processors.
  • Embodiments of the present invention also provide a computer-readable storage medium that stores a computer program, wherein the computer program is configured to execute the steps in any of the above method embodiments when running.
  • the above-mentioned computer-readable storage medium may be configured to store a computer program for performing the following steps:
  • S3 Fusion of the first area information and the second area information to obtain target area information, wherein the second area information is the first area included in the target area detected by the target cleaning device.
  • S4 Construct a target map of the target area based on the target area information.
  • the computer-readable storage medium may include but is not limited to: USB flash drive, read-only memory (ROM), random access memory (Random Access Memory, RAM) , mobile hard disk, magnetic disk or optical disk and other media that can store computer programs.
  • ROM read-only memory
  • RAM random access memory
  • mobile hard disk magnetic disk or optical disk and other media that can store computer programs.
  • An embodiment of the present invention also provides an electronic device, including a memory and a processor.
  • a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
  • the above-mentioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor.
  • the above-mentioned processor may be configured to perform the following steps through a computer program:
  • S3 Fusion of the first area information and the second area information to obtain target area information, wherein the second area information is the first area included in the target area detected by the target cleaning device.
  • S4 Construct a target map of the target area based on the target area information.
  • the obstacle information in its own blind spot can be compensated, and the perception range and accuracy of surrounding obstacles can be improved to achieve the purpose of establishing a more accurate and complete obstacle map and solve the problems in related technologies. Due to the limited number of sensors in the cleaning equipment itself and the existence of blind spots, there are problems with errors in sensing obstacles and SLAM positioning.
  • modules or steps of the present invention can be implemented using general-purpose computing devices. They can be concentrated on a single computing device, or distributed across a network composed of multiple computing devices. They may be implemented in program code executable by a computing device, such that they may be stored in a storage device for execution by the computing device, and in some cases may be executed in a sequence different from that shown herein. Or the described steps can be implemented by making them into individual integrated circuit modules respectively, or by making multiple modules or steps among them into a single integrated circuit module. As such, the invention is not limited to any specific combination of hardware and software.

Abstract

A mapping method and apparatus, and a storage medium and an electronic apparatus. The mapping method comprises: acquiring a target image, which is obtained by means of a target photographing device photographing a target area, wherein the target image contains a target cleaning device (S202); determining first area information of the target area on the basis of the target image, wherein the first area information comprises first position information of the target cleaning device and second position information of a first obstacle (S204); fusing the first area information and second area information, so as to obtain target area information, wherein the second area information is area information of a first area that is comprised in the target area, which area information is detected by the target cleaning device (S206); and constructing a target map of the target area on the basis of the target area information (S208). The problem of low cleaning efficiency due to a cleaning device not being capable of accurately acquiring information of an operation area is effectively solved, thereby achieving the effect of improving the cleaning efficiency of the cleaning device.

Description

建图方法、装置、存储介质及电子装置Mapping method, device, storage medium and electronic device
本发明要求如下专利申请的优先权:于2022年04月25日提交中国专利局、申请号为202210441631.1、发明名称为“建图方法、装置、存储介质及电子装置”的中国专利申请,上述专利申请的全部内容通过引用结合在本发明中。This invention requires the priority of the following patent application: a Chinese patent application submitted to the China Patent Office on April 25, 2022, with the application number 202210441631.1, and the invention name is "Mapping method, device, storage medium and electronic device", the above patent The entire contents of this application are incorporated herein by reference.
技术领域Technical field
本发明涉及人工智能领域,具体而言,涉及一种建图方法、装置、存储介质及电子装置。The present invention relates to the field of artificial intelligence, and specifically, to a mapping method, device, storage medium and electronic device.
背景技术Background technique
随着人工智能技术的快速发展,越来越多的智能清洁设备(例如,扫地机、洗地机等等)进入人们的生活,使得人们的生活越来越便利。With the rapid development of artificial intelligence technology, more and more intelligent cleaning equipment (such as sweepers, floor washers, etc.) have entered people's lives, making people's lives more and more convenient.
随着清洁设备的普及,人们在使用清洁设备的过程中所遇到的问题也越来越多。例如,相关技术中清洁设备通常只依赖于自身安装的传感器来实现障碍物感知和同步定位与建图SLAM(Simultaneous Localization And Mapping),而清洁设备自带的传感器因存在盲区而导致所获取的工作区域的信息不全,无法准确获取工作区域的障碍物信息,导致构建的地图不够准确,因而无法准确对工作区域执行清扫操作,即相关技术中存在着清洁设备无法准确获取工作区域的信息从而导致清洁效率低的问题。With the popularity of cleaning equipment, people are encountering more and more problems when using cleaning equipment. For example, in related technologies, cleaning equipment usually only relies on its own installed sensors to achieve obstacle sensing and simultaneous positioning and mapping (SLAM). However, the sensors that come with the cleaning equipment have blind spots that lead to the acquisition of work. The information in the area is incomplete, and the obstacle information in the work area cannot be accurately obtained, resulting in a map constructed that is not accurate enough, and therefore the cleaning operation cannot be accurately performed on the work area. That is, there is a problem in the related technology that the cleaning equipment cannot accurately obtain the information of the work area, resulting in cleaning The problem of low efficiency.
针对相关技术中存在的上述问题,目前尚未提出有效的解决方案。No effective solution has yet been proposed for the above-mentioned problems existing in related technologies.
发明内容Contents of the invention
本发明实施例提供了一种建图方法、装置、存储介质及电子装置,以至少解决相关技术中存在的清洁设备无法准确获取工作区域的信息从而导致清洁效率低的问题。Embodiments of the present invention provide a mapping method, device, storage medium and electronic device to at least solve the problem in related technologies that cleaning equipment cannot accurately obtain information about the work area, resulting in low cleaning efficiency.
根据本发明的一个方面,提供了一种建图方法,应用于目标清洁设备和目标摄像设备,所述目标摄像设备设置在清洁环境中,并与所述目标清洁设备通信连接,包括:获取由所述目标摄像设备对目标区域进行拍摄所获得的目标图像,其中,所述目标图像中包含所述目标清洁设备;基于所述目标图像确定所述目标区域的第一区域信息,其中,所述第一区域信息包括所述目标清洁设备的第一位置信息及所述目标区域内所包含的第一障碍物的第二位置信息;将所述第一区域信息与第二区域信息进行融合,以获得目标区域信息,其中,所述第二区域信息是由所述目标清洁设备检测到的所述目标区域中包括的第一区域的区域信息;基于所述目标区域信息构建所述目标区域的目标地图。According to one aspect of the present invention, a mapping method is provided, which is applied to a target cleaning device and a target camera device. The target camera device is set in a cleaning environment and is communicatively connected with the target cleaning device, including: obtaining a target image obtained by photographing a target area by the target imaging device, wherein the target image contains the target cleaning device; and determining first area information of the target area based on the target image, wherein the The first area information includes the first location information of the target cleaning equipment and the second location information of the first obstacle contained in the target area; the first area information and the second area information are fused to Obtaining target area information, wherein the second area information is area information of a first area included in the target area detected by the target cleaning device; constructing a target of the target area based on the target area information map.
在一个示例性实施例中,获取由目标摄像设备对目标区域进行拍摄所获得的目标图像包括:向所述目标摄像设备发送第一采集指令,以指示所述目标摄像设备采集整个所述目标区域的第一图像;获取由所述目标摄像设备发送的所述第一图像,并将所述第一图像确定为所述目标图像。In an exemplary embodiment, obtaining the target image obtained by photographing the target area by the target camera device includes: sending a first acquisition instruction to the target camera device to instruct the target camera device to capture the entire target area. the first image; obtain the first image sent by the target camera device, and determine the first image as the target image.
在一个示例性实施例中,获取由目标摄像设备对目标区域进行拍摄所获得的目标图像包括:向所述目标摄像设备发送第二采集指令,以指示所述目标摄像设备采集所述目标区域的指定区域的第二图像,其中,所述指定区域中包括所述目标清洁设备;获取由所述目标摄像设备发送的所述第二图像,并将所述第二图像确定为所述目标图像。In an exemplary embodiment, obtaining the target image obtained by shooting the target area by the target camera device includes: sending a second collection instruction to the target camera device to instruct the target camera device to collect the image of the target area. A second image of a designated area, wherein the target cleaning device is included in the designated area; the second image sent by the target camera device is obtained, and the second image is determined as the target image.
在一个示例性实施例中,基于所述目标图像确定所述目标区域的第一区域信息包括:对所述目标图像进行识别,以确定所述目标区域中所述目标清洁设备的第一目标信息及所述第一障碍物的第二目标信息,其中,所述第一目标信息至少包括所述第一位置信息,所述第二目标信息至少包括所述第二位置信息、所述第一障碍物的类型信息及尺寸信息;基于所述第一目标信息和所述第二目标信息确定所述第一区域信息。In an exemplary embodiment, determining the first area information of the target area based on the target image includes identifying the target image to determine the first target information of the target cleaning device in the target area. and second target information of the first obstacle, wherein the first target information at least includes the first position information, and the second target information at least includes the second position information, the first obstacle Type information and size information of the object; determine the first area information based on the first target information and the second target information.
在一个示例性实施例中,将所述第一区域信息与第二区域信息进行融合,以获得目标区域信息包括:获取所述第一区域信息中与所述第一区域对应的第一子区域信息;将所述第一子区域信息与所述第二区域信息进行对比,以得到对比结果,其中,所述对比结果用于指示所述第一子区域信息中的第一子障碍物信息所对应的第一子障碍物与所述第二区域信息中的第二子障碍物信息所对应的第二子障碍物是否匹配;基于所述对比结果对所述第一区域信息进行更新,以获得所述目标区域信息。In an exemplary embodiment, fusing the first area information and the second area information to obtain the target area information includes: obtaining the first sub-area corresponding to the first area in the first area information. information; compare the first sub-area information with the second area information to obtain a comparison result, wherein the comparison result is used to indicate where the first sub-obstacle information in the first sub-area information Whether the corresponding first sub-obstacle matches the second sub-obstacle corresponding to the second sub-obstacle information in the second area information; update the first area information based on the comparison result to obtain The target area information.
在一个示例性实施例中,基于所述对比结果对所述第一区域信息进行更新,以获得所述目标区域信息包括:当所述对比结果指示所述第一子障碍物与所述第二子障碍物不匹配时,将所述第一区域信息中的所述第一子障碍物信息更新为所述第二子障碍物信息,以得到更新后的第一区域信息;将所述更新后的第一区域信息确定为所述目标区域信息。In an exemplary embodiment, updating the first area information based on the comparison result to obtain the target area information includes: when the comparison result indicates that the first sub-obstacle and the second When the sub-obstacles do not match, the first sub-obstacle information in the first area information is updated to the second sub-obstacle information to obtain the updated first area information; the updated The first area information is determined as the target area information.
在一个示例性实施例中,将所述第一子区域信息与所述第二区域信息进行对比,以得到对比结果包括:将所述第一子障碍物信息与所述第二子障碍物信息进行对比;在确定所述第一子障碍物信息与所述第二子障碍物信息不一致的情况下,得到第一对比结果;在确定所述第一子障碍物信息与所述第二子障碍物信息一致的情况下,得到第二对比结果。In an exemplary embodiment, comparing the first sub-region information with the second sub-region information to obtain a comparison result includes: comparing the first sub-obstacle information with the second sub-obstacle information. Compare; when it is determined that the first sub-obstacle information is inconsistent with the second sub-obstacle information, obtain a first comparison result; after determining that the first sub-obstacle information and the second sub-obstacle information are inconsistent When the object information is consistent, the second comparison result is obtained.
在一个示例性实施例中,将所述第一子区域信息与所述第二区域信息进行对比,以得到对比结果包括:将所述第一子障碍物的第一特征与所述第二子障碍物的第二特征进行对比,其中,所述第一特征是利用目标卷积神经网络提取的所述第一子障碍物的特征数据,所述第二特征是利用所述目标卷积神经网络提取的所述第二子障碍物的特征数据;在确定所述第一特征与所述第二特征之间的第一相似度小于第一相似度阈值的情况下,得到第三对比结果;在确定所述第一特征与所述第二特征之间的所述第一相似度大于或等于所述第一相似度阈值的情况下,得到第四对比结果。In an exemplary embodiment, comparing the first sub-region information with the second sub-region information to obtain a comparison result includes: comparing the first feature of the first sub-obstacle with the second sub-region information. The second feature of the obstacle is compared, wherein the first feature is the feature data of the first sub-obstacle extracted using the target convolutional neural network, and the second feature is extracted using the target convolutional neural network. The extracted feature data of the second sub-obstacle; when it is determined that the first similarity between the first feature and the second feature is less than the first similarity threshold, obtain a third comparison result; in When it is determined that the first similarity between the first feature and the second feature is greater than or equal to the first similarity threshold, a fourth comparison result is obtained.
在一个示例性实施例中,将所述第一子区域信息与所述第二区域信息进行对比,以得到对比结果包括:对所述第一子区域信息所对应的区域进行分割,以得到包含第一子障碍物的第一区块,以及,对所述第二区域信息所对应的区域进行分割,以得到包含第二子障碍物的第二区块;基于所述第一区块的中心坐标与所述第二区块的中心坐标计算所述第一子障碍物与所述第二子障碍物之间的第二相似度;在确定所述第二相似度小于第二相似度阈值的情况下,得到第五对比结果;在确定所述第二相似度大于或等于所述第二相似度阈值的情况下,得到第六对比结果。In an exemplary embodiment, comparing the first sub-region information with the second region information to obtain a comparison result includes: segmenting a region corresponding to the first sub-region information to obtain a comparison result containing The first block of the first sub-obstacle, and segmenting the area corresponding to the second area information to obtain the second block containing the second sub-obstacle; based on the center of the first block coordinates and the center coordinate of the second block to calculate a second similarity between the first sub-obstacle and the second sub-obstacle; after determining that the second similarity is less than a second similarity threshold In this case, a fifth comparison result is obtained; in a case where it is determined that the second similarity is greater than or equal to the second similarity threshold, a sixth comparison result is obtained.
在一个示例性实施例中,在基于所述目标区域信息构建所述目标区域的目标地图之后,所述方法还包括:基于所述目标地图规划目标路径,并按照所述目标路径执行清扫操作。In an exemplary embodiment, after constructing a target map of the target area based on the target area information, the method further includes: planning a target path based on the target map, and performing a cleaning operation according to the target path.
在一个示例性实施例中,在获取由目标摄像设备对目标区域进行拍摄所获得的目标图像之前,所述方法还包括:获取所述目标清洁设备所处局域网信息;基于所述局域网信息,确定同时进入网络的全部智能终端;获取每个智能终端的网络标识符;基于所述网络标识符,确定所述目标摄像设备。In an exemplary embodiment, before acquiring the target image obtained by photographing the target area by the target camera device, the method further includes: acquiring information on the local area network where the target cleaning device is located; and determining, based on the local area network information, All smart terminals that enter the network at the same time; obtain the network identifier of each smart terminal; and determine the target camera device based on the network identifier.
在一个示例性实施例中,将所述第一区域信息与第二区域信息进行融合,以获得目标区域信息包括:按照预定规则更新所述第二区域信息,以得到更新后的第二区域信息;将所述第一区域信息与所述更新后的第二区域信息进行融合,以获得所述目标区域信息。In an exemplary embodiment, fusing the first area information with the second area information to obtain target area information includes: updating the second area information according to predetermined rules to obtain updated second area information. ; Fusion of the first area information and the updated second area information to obtain the target area information.
根据本发明的另一个方面,还提供了一种建图装置,位于目标清洁设备和目标摄像设备中,所述目标摄像设备设置在清洁环境中,并与所述目标清洁设备通信连接,包括:第一获取模块,用于获取由所述目标摄像设备对目标区域进行拍摄所获得的目标图像,其中,所述目标图像中包含所述目标清洁设备;第一确定模块,用于基于所述目标图像确定所述目标区域的第一区域信息,其中,所述第一区域信息包括所述目标清洁设备的第一位置信息及所述目标区域内所包含的第一障碍物的第二位置信息;融合模块,用于将所述第一区域信息与第二区域信息进行融合,以获得目标区域信息,其中,所述第二区域信息是由所述目标清洁设备检测到的所述目标区域中包括的第一区域的区域信息;构建模块,用于基于所述目标区域信息构建所述目标区域的目标地图。According to another aspect of the present invention, a mapping device is also provided, located in the target cleaning equipment and the target camera equipment. The target camera equipment is arranged in a cleaning environment and is communicatively connected with the target cleaning equipment, including: The first acquisition module is used to acquire the target image obtained by photographing the target area by the target camera device, wherein the target image contains the target cleaning device; the first determination module is used to obtain the target image based on the target image. The image determines first area information of the target area, wherein the first area information includes first position information of the target cleaning equipment and second position information of the first obstacle contained in the target area; a fusion module, configured to fuse the first area information with the second area information to obtain target area information, wherein the second area information is included in the target area detected by the target cleaning device regional information of the first region; a construction module configured to construct a target map of the target region based on the target region information.
根据本发明的另一个实施例,还提供了一种计算机可读的存储介质,所述计算机可读的存储介质包括存储的程序,其中,所述程序运行时执行上述任一项实施例中所述的方法。According to another embodiment of the present invention, a computer-readable storage medium is also provided. The computer-readable storage medium includes a stored program, wherein when the program is run, it executes any of the above-mentioned embodiments. method described.
根据本发明的另一个实施例,还提供了一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为通过所述计算机程序执行上述任一项实施例中所述的方法。According to another embodiment of the present invention, an electronic device is also provided, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to execute any of the above implementations through the computer program. method described in the example.
通过本发明,通过获取由目标摄像设备对目标区域进行拍摄所获得的目标图像,并基于目标图像确定目标区域的第一区域信息,再将第一区域信息与目标清洁设备对第一区域检测所得到的第二区域信息进行融合,以获得目标区域信息,从而可以基于目标区域信息构建目标区域的目标地图,由于融合了基于目标图像所确定的第一区域信息,因此,获得的目标区域信息更准确,避免了相关技术中仅依靠目标清洁设备自身对工作区域进行检测所获得的工作区域信息不准确或不完整的问题,采用本发明,可以实现提高确定目标区域信息的准确性的目的,从而实现提高构建目标地图的准确性的目的,有效解决了相关技术中存在的清洁设备无法准确获取工作区域的信息从而导致清洁效率低的问题,达到了提高清洁设备的清洁效率的效果。Through the present invention, the target image obtained by shooting the target area by the target camera device is obtained, and the first area information of the target area is determined based on the target image, and then the first area information is combined with the results of the first area detection by the target cleaning equipment. The obtained second area information is fused to obtain the target area information, so that a target map of the target area can be constructed based on the target area information. Since the first area information determined based on the target image is fused, the obtained target area information is more It is accurate and avoids the problem in related technologies that the working area information obtained by detecting the working area only by relying on the target cleaning equipment itself is inaccurate or incomplete. By using the present invention, the purpose of improving the accuracy of determining the target area information can be achieved, thereby The purpose of improving the accuracy of building a target map is achieved, effectively solving the problem in related technologies that cleaning equipment cannot accurately obtain information about the work area, resulting in low cleaning efficiency, and achieving the effect of improving the cleaning efficiency of cleaning equipment.
附图说明Description of the drawings
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described here are used to provide a further understanding of the present invention and constitute a part of this application. The illustrative embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the attached picture:
图1是本发明实施例的一种建图方法的硬件结构框图;Figure 1 is a hardware structural block diagram of a mapping method according to an embodiment of the present invention;
图2是本发明实施例的建图方法的流程图;Figure 2 is a flow chart of a mapping method according to an embodiment of the present invention;
图3是根据本发明实施例的实例流程图;Figure 3 is an example flow chart according to an embodiment of the present invention;
图4是根据本发明实施例的一种建图装置的结构框图。Figure 4 is a structural block diagram of a mapping device according to an embodiment of the present invention.
具体实施方式Detailed ways
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The present invention will be described in detail below with reference to the accompanying drawings and embodiments. It should be noted that, as long as there is no conflict, the embodiments and features in the embodiments of this application can be combined with each other.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
本申请实施例所提供的方法实施例可以在移动装置,或者类似的运算装置中执行。以运行在移动装置上为例,图1是本发明实施例的一种建图方法的硬件结构框图。如图1所示,移动装置可以包括一个或多个(图1中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)和用于存储数据的存储器104,在一个示例性实施例中,上述移动装置还可以包括用于通信功能的传输设备106以及输入输出设备108。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述移动装置的结构造成限定。例如,移动装置还可包括比图1中所示更多或者更少的组件,或者具有与图1所示等同功能或比图1所示功能更多的不同的配置。The method embodiments provided by the embodiments of this application can be executed in a mobile device or a similar computing device. Taking running on a mobile device as an example, FIG. 1 is a hardware structure block diagram of a mapping method according to an embodiment of the present invention. As shown in Figure 1, the mobile device may include one or more (only one is shown in Figure 1) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. In an exemplary embodiment, the above-mentioned mobile device may also include a transmission device 106 for communication functions and an input and output device 108. Persons of ordinary skill in the art can understand that the structure shown in FIG. 1 is only illustrative, and it does not limit the structure of the above-mentioned mobile device. For example, a mobile device may also include more or fewer components than shown in FIG. 1 , or be configured differently with equivalent functionality or more functionality than that shown in FIG. 1 .
存储器104可用于存储计算机程序,例如,应用软件的软件程序以及模块,如本发明实施例中的建图方法对应的计算机程序,处理器102通过运行存储在存储器104内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至移动装置。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the mapping method in the embodiment of the present invention. The processor 102 executes various tasks by running the computer program stored in the memory 104. A functional application and data processing, that is, to implement the above method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 104 may further include memory located remotely from processor 102, and these remote memories may be connected to the mobile device through a network. Examples of the above-mentioned networks include but are not limited to the Internet, intranets, local area networks, mobile communication networks and combinations thereof.
传输装置106用于经由一个网络接收或者发送数据。上述的网络具体实例可包括移动装置的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,简称为RF)模块,其用于通过无线方式与互联网进行通讯。The transmission device 106 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wireless network provided by a communication provider of the mobile device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC for short), which can be connected to other network devices through a base station to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (Radio Frequency, RF for short) module, which is used to communicate with the Internet wirelessly.
下面结合实施例对本发明进行说明:The present invention will be described below in conjunction with the examples:
在本实施例中提供了一种建图方法,应用于目标清洁设备和目标摄像设备,所述目标摄像设备设置在清洁环境中,并与所述目标清洁设备通信连接,如图2所示,该方法包括如下步骤:In this embodiment, a mapping method is provided, which is applied to a target cleaning device and a target camera device. The target camera device is set in a cleaning environment and is communicatively connected with the target cleaning device, as shown in Figure 2. The method includes the following steps:
步骤S202,获取由所述目标摄像设备对目标区域进行拍摄所获得的目标图像,其中,所述目标图像中包含所述目标清洁设备;Step S202: Obtain a target image obtained by photographing the target area by the target imaging device, wherein the target image includes the target cleaning device;
步骤S204,基于所述目标图像确定所述目标区域的第一区域信息,其中,所述第一区域信息包括所述目标清洁设备的第一位置信息及所述目标区域内所包含的第一障碍物的第二位置信息;Step S204: Determine first area information of the target area based on the target image, where the first area information includes first position information of the target cleaning equipment and first obstacles contained in the target area. The second location information of the object;
步骤S206,将所述第一区域信息与第二区域信息进行融合,以获得目标区域信息,其中,所述第二区域信息是由所述目标清洁设备检测到的所述目标区域中包括的第一区域的区域信息;Step S206: Fusion of the first area information and second area information to obtain target area information, wherein the second area information is the first area included in the target area detected by the target cleaning device. Regional information of a region;
步骤S208,基于所述目标区域信息构建所述目标区域的目标地图。Step S208: Construct a target map of the target area based on the target area information.
其中,执行上述操作的可以是设备,如上述目标清洁设备,或者,设备中包括的处理器或控制器,或者是具备控制能力的设备,或者还可以其他的具备类似处理能力的处理设备或处理单元等,其中,上述控制器或其他执行主体可以是单独存在的,也可以是集成于目标清洁设备内的。下面以目标清洁设备内包括的控制器(以下简称“控制器”)执行上述操作为例(仅是一种示例性说明,在实际操作中还可以是其他的设备或模块来执行上述操作)进行说明:Among them, the device that performs the above operations may be a device, such as the above-mentioned target cleaning device, or a processor or controller included in the device, or a device with control capabilities, or other processing devices or processing devices with similar processing capabilities. Unit, etc., wherein the above-mentioned controller or other execution subject may exist alone, or may be integrated into the target cleaning equipment. The following takes the controller included in the target cleaning equipment (hereinafter referred to as the "controller") as an example to perform the above operations (this is only an illustrative explanation, in actual operation, other devices or modules can also be used to perform the above operations). illustrate:
在上述实施例中,控制器获取由目标摄像设备对目标区域进行拍摄所获得的目标图像,目标区域可以为家庭或办公等待清洁的区域,比如所述目标区域可以为客厅区域,其中,目标图像中包括目标清洁设备的图像,在实际应用中,目标清洁设备和目标摄像设备可接入同一个局域网,例如,目标摄像设备可通过包括但不限于有线、WIFI等方式,目标清洁设备也可通过包括但不限于WIFI、蓝牙等方式接入同一个局域网,这样当目标摄像设备的拍摄画面中出现目标清洁设备时,可拍摄到目标区域的图像,在实际应用中,目标摄像设备可拍摄到包括整个目标区域的图像,可以理解为目标区域的全景图像,例如目标摄像设备可安装于目标区域(如客厅)的天花板上,或者目标摄像设备为可全方位移动的摄像设备,目标摄像设备拍摄到目标区域的目标图像后再通过网络将目标图像发送给目标清洁设备;在实际应用中,还可以通过由目标清洁设备向目标摄像设备发送指令,以指示目标摄像设备采集目标区域的目标图像;控制器基于目标图像确定目标区域的第一区域信息,第一区域信息包括目标清洁设备的第一位置信息及目标区域内所包含的第一障碍物的第二位置信息,第一障碍物可以包括多个障碍物,在实际应用中,控制器可通过对目标图像进行识别以获取第一区域信息,第一区域信息还可包括第一障碍物的类型信息和/或尺寸信息;再将第一区域信息与第二区域信息进行融合,以获得目标区域信息,其中,第二区域信息是由目标清洁设备检测到的目标区域中包括的第一区域的区域信息,在实际应用中,目标清洁设备可通过自身传感器获得第一区域的区域信息,由于清洁设备自身携带的传感器一般位于清洁设备的正前方,两侧和后方均存在盲区,而将第一区域信息与第二区域信息进行融合得到的目标区域信息将更准确;因此,基于目标区域信息所构建的目标区域的目标地图也更准确,进一步地,可基于目标地图规划目标清洁设备的清扫路径,这样可有效解决相关技术中存在的清洁设备无法准确获取工作区域的信息从而导致清洁效率低的问题,达到了提高清洁设备的清洁效率的效果。In the above embodiment, the controller obtains a target image obtained by photographing a target area by a target camera device. The target area may be an area in a home or office waiting to be cleaned. For example, the target area may be a living room area, where the target image includes images of the target cleaning equipment. In practical applications, the target cleaning equipment and the target camera equipment can be connected to the same local area network. For example, the target camera equipment can be connected through methods including but not limited to wired, WIFI, etc., and the target cleaning equipment can also be connected through Including but not limited to WIFI, Bluetooth and other methods to access the same LAN, so that when the target cleaning equipment appears in the shooting screen of the target camera equipment, the image of the target area can be captured. In practical applications, the target camera equipment can capture images including The image of the entire target area can be understood as a panoramic image of the target area. For example, the target camera device can be installed on the ceiling of the target area (such as the living room), or the target camera device can be a camera device that can move in all directions. The target camera device can capture The target image of the target area is then sent to the target cleaning equipment through the network; in practical applications, the target cleaning equipment can also send instructions to the target camera equipment to instruct the target camera equipment to collect the target image of the target area; control The device determines first area information of the target area based on the target image. The first area information includes first position information of the target cleaning equipment and second position information of the first obstacles contained in the target area. The first obstacles may include multiple obstacle. In practical applications, the controller can obtain the first area information by identifying the target image. The first area information can also include type information and/or size information of the first obstacle; and then the first area information can be obtained by identifying the target image. The information is fused with the second area information to obtain the target area information, where the second area information is the area information of the first area included in the target area detected by the target cleaning equipment. In practical applications, the target cleaning equipment can The regional information of the first area is obtained through its own sensor. Since the sensor carried by the cleaning equipment itself is generally located directly in front of the cleaning equipment, there are blind areas on both sides and rear. The target obtained by fusing the first area information with the second area information The area information will be more accurate; therefore, the target map of the target area constructed based on the target area information is also more accurate. Furthermore, the cleaning path of the target cleaning equipment can be planned based on the target map, which can effectively solve the problems of cleaning equipment in related technologies. The inability to accurately obtain information about the work area leads to the problem of low cleaning efficiency, which achieves the effect of improving the cleaning efficiency of the cleaning equipment.
在一个示例性实施例中,获取由目标摄像设备对目标区域进行拍摄所获得的目标图像包括:向所述目标摄像设备发送第一采集指令,以指示所述目标摄像设备采集整个所述目标区域的第一图像;获取由所述目标摄像设备发送的所述第一图像,并将所述第一图像确定为所述目标图像。在本实施例中,可通过向目标摄像设备发送第一采集指令,以指示目标摄像设备采集整个目标区域的第一图像,可以理解为第一图像是整个目标区域的全景图像,再获取由目标摄像设备发送的第一图像,并将第一图像确定为目标图像。In an exemplary embodiment, obtaining the target image obtained by photographing the target area by the target camera device includes: sending a first acquisition instruction to the target camera device to instruct the target camera device to capture the entire target area. the first image; obtain the first image sent by the target camera device, and determine the first image as the target image. In this embodiment, a first collection instruction can be sent to the target camera device to instruct the target camera device to collect the first image of the entire target area. It can be understood that the first image is a panoramic image of the entire target area, and then the target camera device is acquired. The camera device sends the first image and determines the first image as the target image.
在一个示例性实施例中,获取由目标摄像设备对目标区域进行拍摄所获得的目标图像包括:向所述目标摄像设备发送第二采集指令,以指示所述目标摄像设备采集所述目标区域的指定区域的第二图像,其中,所述指定区域中包括所述目标清洁设备;获取由所述目标摄像设备发送的所述第二图像,并将所述第二图像确定为所述目标图像。可选地,还可通过向目标摄像设备发送第二采集指令,以指示目标摄像设备采集目标区域中包括的指定区域的第二图像,例如,指定区域为以目标清洁设备为中心的预设范围内的区域,比如所述指定区域可以为以目标清洁设备为中心的圆形区域或方形区域,还可以为其他图形的区域,在本说明书不做限定,在实际应用中,可能只需要对指定区域的范围内进行清扫,再获取由目标摄像设备发送的第二图像,并将第二图像确定为目标图像,从而提高了清洁的效率和准确性,提升了用户体验。In an exemplary embodiment, obtaining the target image obtained by shooting the target area by the target camera device includes: sending a second collection instruction to the target camera device to instruct the target camera device to collect the image of the target area. A second image of a designated area, wherein the target cleaning device is included in the designated area; the second image sent by the target camera device is obtained, and the second image is determined as the target image. Optionally, a second collection instruction can also be sent to the target camera device to instruct the target camera device to collect a second image of a designated area included in the target area. For example, the designated area is a preset range centered on the target cleaning device. For example, the designated area can be a circular area or a square area centered on the target cleaning equipment, or it can also be an area of other graphics. This specification does not limit it. In practical applications, it may only be necessary to specify Clean the area, then acquire the second image sent by the target camera device, and determine the second image as the target image, thus improving the efficiency and accuracy of cleaning and improving the user experience.
通过上述实施例,实现了通过不同方式获取目标区域的目标图像的目的。Through the above embodiments, the purpose of obtaining the target image of the target area through different methods is achieved.
在一个示例性实施例中,基于所述目标图像确定所述目标区域的第一区域信息包括:对所述目标图像进行识别,以确定所述目标区域中所包括的所述目标清洁设备的第一目标信息及所述第一障碍物的第二目标信息,其中,所述第一目标信息至少包括所述第一位置信息,所述第二目标信息至少包括所述第二位置信息、所述第一障碍物的类型信息及尺寸信息;基于所述第一目标信息和所述第二目标信息确定所述第一区域信息。在本实施例中,通过对目标图像进行识别,以确定目标区域中包括的目标清洁设备的第一目标信息及第一障碍物的第二目标信息,第一目标信息至少包括目标清洁设备的第一位置信息,第二目标信息至少包括第一障碍物的第二位置信息,第一障碍物的类型信息及第一障碍物的尺寸信息,例如,在实际应用中,可通过图像识别(比如OCR技术)和/或AI图像处理,以识别出目标图像中包括的目标清洁设备自身,地面区域以及目标区域内的各类障碍物等,还可计算出目标清洁设备自身和所有障碍物的位置关系,然后,基于第一目标信息和第二目标信息确定出第一区域信息。通过本实施例,通过对目标图像进行识别以确定出第一区域信息的目的。In an exemplary embodiment, determining the first area information of the target area based on the target image includes identifying the target image to determine the first area information of the target cleaning device included in the target area. A target information and second target information of the first obstacle, wherein the first target information at least includes the first position information, and the second target information at least includes the second position information, the Type information and size information of the first obstacle; determining the first area information based on the first target information and the second target information. In this embodiment, the first target information of the target cleaning equipment and the second target information of the first obstacle included in the target area are determined by identifying the target image. The first target information includes at least the third target information of the target cleaning equipment. A position information, the second target information at least includes the second position information of the first obstacle, the type information of the first obstacle and the size information of the first obstacle. For example, in practical applications, it can be through image recognition (such as OCR Technology) and/or AI image processing to identify the target cleaning equipment itself, the ground area and various obstacles in the target area included in the target image, and also calculate the positional relationship between the target cleaning equipment itself and all obstacles. , and then determine the first area information based on the first target information and the second target information. Through this embodiment, the purpose of the first area information is determined by identifying the target image.
在一个示例性实施例中,将所述第一区域信息与第二区域信息进行融合,以获得目标区域信息包括:获取所述第一区域信息中与所述第一区域对应的第一子区域信息;将所述第一子区域信息与所述第二区域信息进行对比,以得到对比结果,其中,所述对比结果用于指示所述第一子区域信息中的第一子障碍物信息所对应的第一子障碍物与所述第二区域信息中的第二子障碍物信息所对应的第二子障碍物是否匹配;基于所述对比结果对所述第一区域信息进行更新,以获得所述目标区域信息。在本实施例中,通过将第一区域信息中包括的与第一区域所对应的第一子区域信息与第二区域信息进行对比以获得对比结果,由于第一区域信息中包括整个目标区域的信息,其中也包括上述第一区域所对应的第一子区域信息,而将第一子区域信息与第二区域信息进行对比,可确定出两者中所分别包括的障碍物是否匹配,在实际应用中,匹配的过程可以包括障碍物的位置、尺寸等方面的匹配;然后可根据对比结果对第一区域信息进行更新,以获得最终的目标区域信息,例如,如果上述第一子区域信息与第二区域信息不一致时,即第一子区域信息中所包括的第一子障碍物与第二区域信息中所包括的第二子障碍物不匹配的情况下,可基于第二区域信息对第一子区域信息进行更新,即对第一区域信息进行更新,从而获得目标区域信息,实现了进一步提高确定目标区域信息的准确率的效果。通过本实施例,通过将第一区域信息与第二区域信息进行融合以进一步提高确定目标区域信息的准确率的目的。In an exemplary embodiment, fusing the first area information and the second area information to obtain the target area information includes: obtaining the first sub-area corresponding to the first area in the first area information. information; compare the first sub-area information with the second area information to obtain a comparison result, wherein the comparison result is used to indicate where the first sub-obstacle information in the first sub-area information Whether the corresponding first sub-obstacle matches the second sub-obstacle corresponding to the second sub-obstacle information in the second area information; update the first area information based on the comparison result to obtain The target area information. In this embodiment, the comparison result is obtained by comparing the first sub-area information corresponding to the first area and the second area information included in the first area information, because the first area information includes the entire target area. information, which also includes the first sub-region information corresponding to the above-mentioned first region. By comparing the first sub-region information with the second region information, it can be determined whether the obstacles included in the two match. In practice, In the application, the matching process may include matching the location, size, etc. of obstacles; then the first area information may be updated based on the comparison results to obtain the final target area information. For example, if the above first sub-area information is consistent with When the second area information is inconsistent, that is, when the first sub-obstacle included in the first sub-area information does not match the second sub-obstacle included in the second area information, the second area information may be based on the second area information. The information of one sub-region is updated, that is, the information of the first region is updated, thereby obtaining the target region information, thereby achieving the effect of further improving the accuracy of determining the target region information. Through this embodiment, the purpose of further improving the accuracy of determining the target area information is by fusing the first area information with the second area information.
在一个示例性实施例中,基于所述对比结果对所述第一区域信息进行更新,以获得所述目标区域信息包括:当所述对比结果指示所述第一子障碍物与所述第二子障碍物不匹配时,将所述第一区域信息中的所述第一子障碍物信息更新为所述第二子障碍物信息,以得到更新后的第一区域信息;将所述更新后的第一区域信息确定为所述目标区域信息。在本实施例中,当上述对比结果指示第一子障碍物与第二子障碍物不匹配时,可将第一区域信息中包括的第一子障碍物信息更新第二子障碍物信息,从而得到更新后的第一区域信息,在实际应用中,目标摄像设备在拍摄目标区域的目标图像时,可能存在因为某个障碍物的遮挡导致某些区域或其它障碍物信息不全,或图像识别出的结果不够准确的情况,此时结合目标清洁设备自身传感器近距离检测所获得的第一区域的区域信息能更好地确定出目标区域中地面及障碍物信息,最终可更准确地确定出目标区域信息。In an exemplary embodiment, updating the first area information based on the comparison result to obtain the target area information includes: when the comparison result indicates that the first sub-obstacle and the second When the sub-obstacles do not match, the first sub-obstacle information in the first area information is updated to the second sub-obstacle information to obtain the updated first area information; the updated The first area information is determined as the target area information. In this embodiment, when the above comparison result indicates that the first sub-obstacle and the second sub-obstacle do not match, the first sub-obstacle information included in the first area information may be updated with the second sub-obstacle information, so that Obtain the updated first area information. In practical applications, when the target camera equipment captures the target image of the target area, there may be incomplete information in some areas or other obstacles due to the occlusion of an obstacle, or the image recognition may be incomplete. If the result is not accurate enough, at this time, combined with the regional information of the first area obtained by the close-range detection of the target cleaning equipment's own sensor, the ground and obstacle information in the target area can be better determined, and finally the target can be determined more accurately. Regional information.
在一个示例性实施例中,将所述第一子区域信息与所述第二区域信息进行对比,以得到对比结果包括:将所述第一子障碍物信息与所述第二子障碍物信息进行对比;在确定所述第一子障碍物信息与所述第二子障碍物信息不一致的情况下,得到第一对比结果;在确定所述第一子障碍物信息与所述第二子障碍物信息一致的情况下,得到第二对比结果。在本实施例中,可通过将第一子障碍物信息与第二子障碍物信息进行对比,以得到对比结果,例如,当第一子障碍物信息与第二子障碍物信息不一致时,则认为第一子障碍物与第二子障碍物不匹配,而当第一子障碍物信息与第二子障碍物信息一致时,则认为第一子障碍物与第二子障碍物匹配。In an exemplary embodiment, comparing the first sub-region information with the second sub-region information to obtain a comparison result includes: comparing the first sub-obstacle information with the second sub-obstacle information. Compare; when it is determined that the first sub-obstacle information is inconsistent with the second sub-obstacle information, obtain a first comparison result; after determining that the first sub-obstacle information and the second sub-obstacle information are inconsistent When the object information is consistent, the second comparison result is obtained. In this embodiment, the comparison result can be obtained by comparing the first sub-obstacle information with the second sub-obstacle information. For example, when the first sub-obstacle information and the second sub-obstacle information are inconsistent, then It is considered that the first sub-obstacle and the second sub-obstacle do not match, and when the first sub-obstacle information is consistent with the second sub-obstacle information, the first sub-obstacle and the second sub-obstacle are considered to match.
在一个示例性实施例中,将所述第一子区域信息与所述第二区域信息进行对比,以得到对比结果包括:将所述第一子障碍物的第一特征与所述第二子障碍物的第二特征进行对比,其中,所述第一特征是利用目标卷积神经网络提取的所述第一子障碍物的特征数据,所述第二特征是利用所述目标卷积神经网络提取的所述第二子障碍物的特征数据;在确定所述第一特征与所述第二特征之间的第一相似度小于第一相似度阈值的情况下,得到第三对比结果;在确定所述第一特征与所述第二特征之间的所述第一相似度大于或等于所述第一相似度阈值的情况下,得到第四对比结果。在本实施例中,可通过将第一子障碍物的第一特征与第二子障碍物的第二特征进行对比,以得到对比结果,其中,第一特征和第二特征分别是通过卷积神经网络对第一子障碍物和第二子障碍物进行特征提取所得到的特征数据,例如,计算第一特征与第二特征之间的第一相似度值,当两者的相似度值小于第一相似度阈值(如90%,或85%,或其他值)时,则认为第一子障碍物与第二子障碍物不匹配,而当两者的相似度值大于或等于第一相似度阈值时,则认为第一子障碍物与第二子障碍物匹配。In an exemplary embodiment, comparing the first sub-region information with the second sub-region information to obtain a comparison result includes: comparing the first feature of the first sub-obstacle with the second sub-region information. The second feature of the obstacle is compared, wherein the first feature is the feature data of the first sub-obstacle extracted using the target convolutional neural network, and the second feature is extracted using the target convolutional neural network. The extracted feature data of the second sub-obstacle; when it is determined that the first similarity between the first feature and the second feature is less than the first similarity threshold, obtain a third comparison result; in When it is determined that the first similarity between the first feature and the second feature is greater than or equal to the first similarity threshold, a fourth comparison result is obtained. In this embodiment, the comparison result can be obtained by comparing the first feature of the first sub-obstacle with the second feature of the second sub-obstacle, where the first feature and the second feature are respectively obtained by convolution Feature data obtained by extracting features of the first sub-obstacle and the second sub-obstacle by the neural network, for example, calculating the first similarity value between the first feature and the second feature. When the similarity value between the two is less than When the first similarity threshold (such as 90%, or 85%, or other values) is reached, it is considered that the first sub-obstacle and the second sub-obstacle do not match, and when the similarity value between the two is greater than or equal to the first similarity When the degree threshold is reached, the first sub-obstacle and the second sub-obstacle are considered to match.
在一个示例性实施例中,将所述第一子区域信息与所述第二区域信息进行对比,以得到对比结果包括:对所述第一子区域信息所对应的区域进行分割,以得到包含第一子障碍物的第一区块,以及,对所述第二区域信息所对应的区域进行分割,以得到包含第二子障碍物的第二区块;基于所述第一区块的中心坐标与所述第二区块的中心坐标计算所述第一子障碍物与所述第二子障碍物之间的第二相似度;在确定所述第二相似度小于第二相似度阈值的情况下,得到第五对比结果;在确定所述第二相似度大于或等于所述第二相似度阈值的情况下,得到第六对比结果。可选地,在实际应用中,还可通过对第一子区域信息和第二区域信息所对应的区域分别进行分割,以得到第一区块和第二区块,然后基于第一区块的中心坐标和第二区块的中心坐标计算第一子障碍物与第二子障碍物之间的第二相似度值,当两者的相似度值小于第二相似度阈值(如95%,或90%,或其他值)时,则认为第一子障碍物与第二子障碍物不匹配,而当两者的相似度值大于或等于第二相似度阈值时,则认为第一子障碍物与第二子障碍物匹配。In an exemplary embodiment, comparing the first sub-region information with the second region information to obtain a comparison result includes: segmenting a region corresponding to the first sub-region information to obtain a comparison result containing The first block of the first sub-obstacle, and segmenting the area corresponding to the second area information to obtain the second block containing the second sub-obstacle; based on the center of the first block coordinates and the center coordinate of the second block to calculate a second similarity between the first sub-obstacle and the second sub-obstacle; after determining that the second similarity is less than a second similarity threshold In this case, a fifth comparison result is obtained; in a case where it is determined that the second similarity is greater than or equal to the second similarity threshold, a sixth comparison result is obtained. Optionally, in practical applications, the first block and the second block can also be obtained by dividing the areas corresponding to the first sub-area information and the second area information respectively, and then based on the first block The center coordinate and the center coordinate of the second block calculate the second similarity value between the first sub-obstacle and the second sub-obstacle. When the similarity value between the two is less than the second similarity threshold (such as 95%, or 90%, or other values), it is considered that the first sub-obstacle and the second sub-obstacle do not match, and when the similarity value between the two is greater than or equal to the second similarity threshold, it is considered that the first sub-obstacle Matches the second sub-obstacle.
上述第一子障碍物可包括一个或多个障碍物,同样,上述第二子障碍物也可包括一个或多个障碍物;通过上述实施例,实现了通过多种不同方式来确定第一子区域信息中包括的第一子障碍物信息所对应的第一子障碍物与第二区域信息中包括的第二子障碍物信息所对应的第二子障碍物是否匹配的目的,从而实现对第一区域信息进行更新以及确定目标区域信息的目的。The above-mentioned first sub-obstacle may include one or more obstacles, and similarly, the above-mentioned second sub-obstacle may also include one or more obstacles; through the above embodiments, the first sub-obstacle can be determined in a variety of different ways. Whether the first sub-obstacle corresponding to the first sub-obstacle information included in the area information matches the second sub-obstacle corresponding to the second sub-obstacle information included in the second area information, thereby achieving the purpose of matching the first sub-obstacle information included in the area information. The purpose of updating a region information and determining the target region information.
在一个示例性实施例中,在基于所述目标区域信息构建所述目标区域的目标地图之后,所述方法还包括:基于所述目标地图规划目标路径,并按照所述目标路径执行清扫操作。在本实施例中,在构建目标区域的目标地图之后,目标清洁设备或控制器可基于目标地图规划目标路径,并控制目标清洁设备按照目标路径执行清扫操作。通过本实施例,实现了基于目标地图规划目标路径的目的。In an exemplary embodiment, after constructing a target map of the target area based on the target area information, the method further includes: planning a target path based on the target map, and performing a cleaning operation according to the target path. In this embodiment, after constructing the target map of the target area, the target cleaning device or the controller can plan the target path based on the target map, and control the target cleaning device to perform cleaning operations according to the target path. Through this embodiment, the purpose of planning the target path based on the target map is achieved.
在一个示例性实施例中,在获取由目标摄像设备对目标区域进行拍摄所获得的目标图像之前,所述方法还包括:获取所述目标清洁设备所处局域网信息;基于所述局域网信息,确定同时进入网络的全部智能终端;获取每个智能终端的网络标识符;基于所述网络标识符,确定所述目标摄像设备。在本实施例中,可通过获取目标清洁设备所处的局域网信息,再确定与目标清洁设备处于同一局域网的全部智能终端,在实际应用中,还可获取每个智能终端的网络标识符,例如终端ID,唯一标识符,能够识别智能终端设备的类型,然后再基于网络标识符确定出目标摄像设备。通过本实施例,实现了通过目标清洁设备所处的局域网信息确定目标摄像设备的目的。In an exemplary embodiment, before acquiring the target image obtained by photographing the target area by the target camera device, the method further includes: acquiring information on the local area network where the target cleaning device is located; and determining, based on the local area network information, All smart terminals that enter the network at the same time; obtain the network identifier of each smart terminal; and determine the target camera device based on the network identifier. In this embodiment, all the smart terminals in the same local area network as the target cleaning device can be determined by obtaining the local area network information where the target cleaning device is located. In practical applications, the network identifier of each smart terminal can also be obtained, for example Terminal ID, a unique identifier, can identify the type of smart terminal device, and then determine the target camera device based on the network identifier. Through this embodiment, the purpose of determining the target camera device through the local area network information where the target cleaning device is located is achieved.
在一个示例性实施例中,将所述第一区域信息与第二区域信息进行融合,以获得目标区域信息包括:按照预定规则更新所述第二区域信息,以得到更新后的第二区域信息;将所述第一区域信息与所述更新后的第二区域信息进行融合,以获得所述目标区域信息。在本实施例中,可按照预定规则对第二区域信息进行更新,例如,在实际应用中,随着目标清洁设备的转动或移动,自身传感器的扫描视角也可能发生变化,可以定期或实时更新目标清洁设备所获取的第二区域信息,再将第二区域信息与第一区域信息进行融合,以实现定期或实时对目标区域信息进行更新的目的,从而实现进一步提高确定目标区域信息的准确率的目的,以达到提高清洁设备的清洁效率的效果。In an exemplary embodiment, fusing the first area information with the second area information to obtain target area information includes: updating the second area information according to predetermined rules to obtain updated second area information. ; Fusion of the first area information and the updated second area information to obtain the target area information. In this embodiment, the second area information can be updated according to predetermined rules. For example, in practical applications, as the target cleaning equipment rotates or moves, the scanning angle of its own sensor may also change, and it can be updated regularly or in real time. The second area information obtained by the target cleaning equipment is then integrated with the first area information to update the target area information regularly or in real time, thereby further improving the accuracy of determining the target area information. The purpose is to achieve the effect of improving the cleaning efficiency of cleaning equipment.
显然,上述所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。Obviously, the above-described embodiments are only part of the embodiments of the present invention, rather than all embodiments.
下面以上述清洁设备为扫地机(或称为扫地机器人)为例,结合具体实施例对本发明进行具体说明:Taking the above-mentioned cleaning equipment as a sweeping machine (or sweeping robot) as an example, the present invention will be described in detail with reference to specific embodiments:
图3是根据本发明实施例的实例流程图,如图3所示,该流程包括如下步骤:Figure 3 is an example flow chart according to an embodiment of the present invention. As shown in Figure 3, the process includes the following steps:
S302,摄像头(对应于前述目标摄像设备)、扫地机(对应于前述目标清洁设备)接入同一个局域网。监控摄像头通过包括但不限于有线、wifi等方式,扫地机器人通过包括但不限于wifi、蓝牙等方式接入同一个局域网。S302: The camera (corresponding to the aforementioned target camera equipment) and the sweeper (corresponding to the aforementioned target cleaning equipment) are connected to the same local area network. The surveillance camera accesses the same local area network through methods including but not limited to wired and wifi, and the sweeping robot accesses the same local area network through methods including but not limited to wifi and Bluetooth.
针对步骤S302,扫地机可以获得连接到同一局域网下的设备信息,设备信息可以包括设备类型,标识,识别码等,再根据设备信息确定其中的图像采集设备(比如家用摄像头),进而排除手机洗衣机冰箱等其他设备。在具体实施时,可以以路由器为信号和数据传输中介,或者,扫地机通过建立第二局域网络(比如蓝牙,WiFi等方式)与图像采集设备直接建立连接,从而实现信号和数据的直接传输。For step S302, the sweeper can obtain device information connected to the same local area network. The device information may include device type, identification, identification code, etc., and then determine the image collection device (such as a home camera) based on the device information, thereby excluding mobile phone washing machines. Refrigerator and other equipment. In specific implementation, the router can be used as the signal and data transmission intermediary, or the sweeper can establish a direct connection with the image acquisition device by establishing a second local area network (such as Bluetooth, WiFi, etc.), thereby realizing direct transmission of signals and data.
S304,摄像头采集图像,并将图像(对应于前述目标图像)传入扫地机。当监控摄像头画面中出现扫地机器人的时候,通过网络方式,将摄像头拍摄的图片传入扫地机器人。S304: The camera collects images and transmits the image (corresponding to the aforementioned target image) to the sweeper. When the sweeping robot appears in the surveillance camera screen, the pictures taken by the camera are transmitted to the sweeping robot through the network.
针对步骤S304,扫地机向图像采集设备发送第一图像采集指令(可以理解为全景图像,摄像头可以全方位移动,这是为了确定扫地机在哪些图像采集设备的视野内,比如扫地机在客厅,卧室内的摄像头的全景图像就没有扫地机),第一图像采集指令对应于前述第一采集指令,扫地机根据获得的第一图像可以确定目标图像采集设备;扫地机可以对目标图像采集设备的全景图像进行图像分析。或者,扫地机向目标图像设备发送第二图像采集指令(对应于前述第二采集指令),采集以扫地机为中心的,预设范围内的第二图像,对第二图像进行分析,效果是避免了分析全景图像导致较大的性能消耗,分析局部图像可以降低软硬件的要求。For step S304, the sweeper sends a first image collection instruction (which can be understood as a panoramic image) to the image collection device. The camera can move in all directions. This is to determine which image collection devices the sweeper is within the field of view of. For example, the sweeper is in the living room. The panoramic image of the camera in the bedroom does not have a sweeper). The first image acquisition instruction corresponds to the aforementioned first acquisition instruction. The sweeper can determine the target image acquisition device based on the obtained first image; the sweeper can determine the target image acquisition device. Panoramic images for image analysis. Alternatively, the sweeper sends a second image acquisition instruction (corresponding to the aforementioned second acquisition instruction) to the target image device, collects the second image centered on the sweeper and within a preset range, and analyzes the second image. The effect is: Avoiding the large performance consumption caused by analyzing panoramic images, analyzing partial images can reduce software and hardware requirements.
S306,对图像进行识别,以确定扫地机自身及障碍物的位置关系。通过图像识别或AI图像处理,识别出摄像头图片中的扫地机自身、地面等可通过区域、摄像头视野范围内的各类障碍物,并计算自身和所有障碍物的相对位置。S306: Recognize the image to determine the positional relationship between the sweeper itself and obstacles. Through image recognition or AI image processing, it identifies the sweeper itself, the ground and other passable areas in the camera picture, and various obstacles within the camera's field of view, and calculates the relative position of itself and all obstacles.
针对步骤S306,对摄像头采集的图片(对应于前述目标图像)进行识别,确定图片中的障碍物类型、尺寸(比如轮廓、长宽高等)和相对位置关系(与扫地机之间的距离和角度),比如通过图像识别模型识别图片中的类型,通过摄像头在房间内的位置(比如摄像头的高度和图像比例等关系)确定每个障碍物的尺寸和相对位置关系,根据识别结果生成第一障碍物地图。For step S306, identify the picture collected by the camera (corresponding to the aforementioned target image), and determine the type, size (such as outline, length, width, height, etc.) and relative position relationship (distance and angle with the sweeper) of the obstacles in the picture. ), for example, identify the type in the picture through the image recognition model, determine the size and relative position of each obstacle through the position of the camera in the room (such as the relationship between the height of the camera and the image ratio, etc.), and generate the first obstacle based on the recognition result. object map.
S308,将上述位置关系和扫地机通过本机传感器计算的或已存储的定位信息进行融合,以得到更新后的障碍物地图;获取图片中扫地机和参考障碍物(例如墙、家具)的相对位置关系,将该位置关系和扫地机通过本机传感器计算的、或已存储的定位信息进行融合,提高定位的准确性。S308, fuse the above positional relationship with the positioning information calculated or stored by the sweeper through the local sensor to obtain an updated obstacle map; obtain the relative relationship between the sweeper and reference obstacles (such as walls, furniture) in the picture. The position relationship is fused with the positioning information calculated by the sweeper through the local sensor or stored to improve the accuracy of positioning.
针对步骤S308,扫地机通过自身传感器获得第二障碍物地图,将第一障碍物地图和第二障碍物地图进行融合(相当于前述将第一区域信息与第二区域信息进行融合),得到最终的障碍物地图(对应于前述目标地图);For step S308, the sweeper obtains the second obstacle map through its own sensor, fuses the first obstacle map and the second obstacle map (equivalent to the aforementioned fusion of the first area information and the second area information), and obtains the final obstacle map (corresponding to the aforementioned target map);
其中,融合过程可以为:Among them, the fusion process can be:
确定第二障碍物地图的范围(可以包括以扫地机为中心的扇形区域,确定扇形区域的角度,边界,以及其中包含的障碍物的信息);Determine the scope of the second obstacle map (which may include a sector-shaped area centered on the sweeper, determine the angle, boundary, and information about the obstacles contained in the sector-shaped area);
将第一障碍物地图中与第二障碍物地图对应区域的障碍物(即第一障碍物,对应于前述第一子障碍物)提取出来,并与第二障碍物地图中的障碍物(即第二障碍物,对应于前述第二子障碍物)进行匹配,匹配的过程可以包括障碍物位置、尺寸等方面的匹配;Extract the obstacles in the area corresponding to the second obstacle map in the first obstacle map (i.e., the first obstacle, corresponding to the aforementioned first sub-obstacle), and compare them with the obstacles in the second obstacle map (i.e., the first obstacle) The second obstacle (corresponding to the aforementioned second sub-obstacle) is matched. The matching process may include matching in terms of obstacle location, size, etc.;
将匹配一致的区域(即障碍物)保留,不一致的部分可以用第二障碍物地图的障碍物替换第一障碍物地图中的障碍物,从而得到更新后的第一障碍物地图,即为最终的障碍物信息。The areas with consistent matching (i.e. obstacles) are retained, and the inconsistent parts can be replaced with obstacles in the first obstacle map with obstacles in the second obstacle map, thereby obtaining the updated first obstacle map, which is the final obstacle information.
进一步地,上述匹配的过程还可以为:Furthermore, the above matching process can also be:
提取第一障碍物和第二障碍物的特征数据(比如可以通过卷积神经网络提取);将两者的特征数据进行相似度计算;相似度大于阈值(对应于前述第一相似度阈值)则表示匹配一致,否则不一致。Extract the characteristic data of the first obstacle and the second obstacle (for example, it can be extracted through a convolutional neural network); calculate the similarity of the two characteristic data; if the similarity is greater than the threshold (corresponding to the aforementioned first similarity threshold), then It means the match is consistent, otherwise it is inconsistent.
或者,or,
针对每组障碍物,按照相同规则进行分割处理,得到不同的区块,不同的障碍物类型可以对应不同的分割规则,可以实现分割的准确性;通过每个区块的中心计算每组障碍物之间的相似度(参考欧式距离,曼式距离计算方式);相似度大于阈值(对应于前述第二相似度阈值)则表示匹配一致,否则不一致。For each group of obstacles, segmentation is performed according to the same rules to obtain different blocks. Different obstacle types can correspond to different segmentation rules, which can achieve segmentation accuracy; each group of obstacles is calculated through the center of each block The similarity between them (refer to Euclidean distance and Mann distance calculation method); if the similarity is greater than the threshold (corresponding to the aforementioned second similarity threshold), it means that the matching is consistent, otherwise it is inconsistent.
S310,基于更新后的障碍物地图,进行路径规划。S310: Perform path planning based on the updated obstacle map.
需要说明的是,随着扫地机的转动或移动,自身传感器扫描视角也会发生变化,可以定期或实时更新障碍物信息。从而定期或实时更新障碍物地图,可以提高路径规划的准确性,从而达到提高扫地机清洁效率的效果。It should be noted that as the sweeper rotates or moves, the scanning angle of its own sensor will also change, and obstacle information can be updated regularly or in real time. Therefore, updating the obstacle map regularly or in real time can improve the accuracy of path planning, thereby achieving the effect of improving the cleaning efficiency of the sweeper.
在本实施例中,扫地机的障碍物感知传感器(Tof、线激光、摄像头),通常位于机器正前方,存在两侧和后方盲区,而融合了上述步骤S306中扫地机自身和障碍物位置关系、障碍物的AI分类、地面可通行区域,就可以弥补自身盲区内的障碍物信息,提高对周围障碍物的感知范围和精度,建立更准确完善的障碍物地图。In this embodiment, the obstacle sensing sensor (Tof, line laser, camera) of the sweeper is usually located directly in front of the machine, with blind areas on both sides and rear, and the relationship between the position of the sweeper itself and the obstacles in the above step S306 is integrated. , AI classification of obstacles, and passable areas on the ground, it can make up for the obstacle information in its own blind spot, improve the perception range and accuracy of surrounding obstacles, and establish a more accurate and complete obstacle map.
通过上述实施例,避免了相关技术中扫地机只依赖于自身携带的传感器来感知障碍物和SLAM定位,因传感器自身存在盲区而导致感知障碍物信息不全及定位存在误差的问题,通过本发明实施例,扫地机通过网络获取摄像头采集的全景图像并对图像进行分析以生成第一障碍物地图,再将第一障碍物地图与扫地机通过自身传感器获得的第二障碍物地图进行融合,以得到最终的目标障碍物地图,可以实现提高扫地机建图的完整性和可靠性的目的。Through the above embodiments, the problem in the related art that the sweeper only relies on the sensor it carries to sense obstacles and SLAM positioning is avoided. The problem of incomplete information on obstacles and errors in positioning due to the blind area of the sensor itself is avoided. Through the implementation of the present invention For example, the sweeping machine obtains the panoramic image collected by the camera through the network and analyzes the image to generate a first obstacle map, and then fuses the first obstacle map with the second obstacle map obtained by the sweeping machine through its own sensor to obtain The final target obstacle map can achieve the purpose of improving the integrity and reliability of sweeping machine mapping.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。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 the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is Better implementation. Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product in essence or that contributes to the existing technology. The computer software product is stored in a storage medium (such as ROM/RAM, disk, CD), including several instructions to cause a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present invention.
在本实施例中还提供了一种建图装置,位于目标清洁设备和目标摄像设备中,所述目标摄像设备设置在清洁环境中,并与所述目标清洁设备通信连接,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a mapping device is also provided, which is located in the target cleaning equipment and the target camera equipment. The target camera equipment is set in a cleaning environment and is communicatively connected with the target cleaning equipment. The device is used to implement The above-mentioned embodiments and preferred implementation modes have been described and will not be described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
图4是根据本发明实施例的一种建图装置的结构框图,如图4所示,该装置包括:Figure 4 is a structural block diagram of a mapping device according to an embodiment of the present invention. As shown in Figure 4, the device includes:
第一获取模块402,用于获取由所述目标摄像设备对目标区域进行拍摄所获得的目标图像,其中,所述目标图像中包含所述目标清洁设备;The first acquisition module 402 is used to acquire a target image obtained by photographing a target area by the target imaging device, wherein the target image includes the target cleaning device;
第一确定模块404,用于基于所述目标图像确定所述目标区域的第一区域信息,其中,所述第一区域信息包括所述目标清洁设备的第一位置信息及所述目标区域内所包含的第一障碍物的第二位置信息;The first determination module 404 is configured to determine the first area information of the target area based on the target image, wherein the first area information includes the first position information of the target cleaning equipment and the first location information of the target area. Contains the second position information of the first obstacle;
融合模块406,用于将所述第一区域信息与第二区域信息进行融合,以获得目标区域信息,其中,所述第二区域信息是由所述目标清洁设备检测到的所述目标区域中包括的第一区域的区域信息;Fusion module 406, configured to fuse the first area information with the second area information to obtain target area information, wherein the second area information is in the target area detected by the target cleaning device. Included area information for the first area;
构建模块408,用于基于所述目标区域信息构建所述目标区域的目标地图。A construction module 408 is used to construct a target map of the target area based on the target area information.
在一个示例性实施例中,上述获取模块402包括:In an exemplary embodiment, the above-mentioned acquisition module 402 includes:
第一采集单元,用于向所述目标摄像设备发送第一采集指令,以指示所述目标摄像设备采集整个所述目标区域的第一图像;第一获取单元,用于获取由所述目标摄像设备发送的所述第一图像,并将所述第一图像确定为所述目标图像。The first acquisition unit is used to send a first acquisition instruction to the target camera device to instruct the target camera device to collect the first image of the entire target area; the first acquisition unit is used to acquire the first image captured by the target camera. The first image sent by the device and determines the first image as the target image.
在一个示例性实施例中,上述获取模块402包括:In an exemplary embodiment, the above-mentioned acquisition module 402 includes:
第二采集单元,用于向所述目标摄像设备发送第二采集指令,以指示所述目标摄像设备采集所述目标区域的指定区域的第二图像,其中,所述指定区域中包括所述目标清洁设备;第二获取单元,用于获取由所述目标摄像设备发送的所述第二图像,并将所述第二图像确定为所述目标图像。A second collection unit configured to send a second collection instruction to the target camera device to instruct the target camera device to collect a second image of a designated area of the target area, wherein the designated area includes the target Cleaning device; a second acquisition unit, configured to acquire the second image sent by the target imaging device and determine the second image as the target image.
在一个示例性实施例中,上述确定模块404包括:In an exemplary embodiment, the above-mentioned determining module 404 includes:
识别单元,用于对所述目标图像进行识别,以确定所述目标区域中所述目标清洁设备的第一目标信息及所述第一障碍物的第二目标信息,其中,所述第一目标信息至少包括所述第一位置信息,所述第二目标信息至少包括所述第二位置信息、所述第一障碍物的类型信息及尺寸信息;An identification unit configured to identify the target image to determine the first target information of the target cleaning equipment and the second target information of the first obstacle in the target area, wherein the first target The information at least includes the first position information, and the second target information at least includes the second position information, the type information and the size information of the first obstacle;
第一确定单元,用于基于所述第一目标信息和所述第二目标信息确定所述第一区域信息。A first determining unit configured to determine the first area information based on the first target information and the second target information.
在一个示例性实施例中,上述融合模块406包括:In an exemplary embodiment, the above-mentioned fusion module 406 includes:
第三获取单元,用于获取所述第一区域信息中与所述第一区域对应的第一子区域信息;A third acquisition unit, configured to acquire the first sub-region information corresponding to the first region in the first region information;
对比单元,用于将所述第一子区域信息与所述第二区域信息进行对比,以得到对比结果,其中,所述对比结果用于指示所述第一子区域信息中的第一子障碍物信息所对应的第一子障碍物与所述第二区域信息中的第二子障碍物信息所对应的第二子障碍物是否匹配;A comparison unit configured to compare the first sub-area information with the second area information to obtain a comparison result, wherein the comparison result is used to indicate the first sub-obstacle in the first sub-area information. Whether the first sub-obstacle corresponding to the object information matches the second sub-obstacle corresponding to the second sub-obstacle information in the second area information;
第一更新单元,用于基于所述对比结果对所述第一区域信息进行更新,以获得所述目标区域信息。A first update unit is configured to update the first area information based on the comparison result to obtain the target area information.
在一个示例性实施例中,上述第一更新单元包括:In an exemplary embodiment, the above-mentioned first update unit includes:
更新子单元,用于当所述对比结果指示所述第一子障碍物与所述第二子障碍物不匹配时,将所述第一区域信息中的所述第一子障碍物信息更新为所述第二子障碍物信息,以得到更新后的第一区域信息;Update subunit, configured to update the first sub-obstacle information in the first area information to when the comparison result indicates that the first sub-obstacle does not match the second sub-obstacle. the second sub-obstacle information to obtain updated first area information;
确定子单元,用于将所述更新后的第一区域信息确定为所述目标区域信息。and a determining subunit, configured to determine the updated first area information as the target area information.
在一个示例性实施例中,上述对比单元包括:In an exemplary embodiment, the above comparison unit includes:
第一对比子单元,用于将所述第一子障碍物信息与所述第二子障碍物信息进行对比;第一获得子单元,用于在确定所述第一子障碍物信息与所述第二子障碍物信息不一致的情况下,得到第一对比结果;第二获得子单元,用于在确定所述第一子障碍物信息与所述第二子障碍物信息一致的情况下,得到第二对比结果。A first comparison subunit is used to compare the first sub-obstacle information with the second sub-obstacle information; a first obtaining sub-unit is used to determine whether the first sub-obstacle information is the same as the second sub-obstacle information. When the second sub-obstacle information is inconsistent, the first comparison result is obtained; the second acquisition sub-unit is used to obtain the first comparison result when it is determined that the first sub-obstacle information is consistent with the second sub-obstacle information. Second comparison result.
在一个示例性实施例中,上述对比单元包括:In an exemplary embodiment, the above comparison unit includes:
第二对比子单元,用于将所述第一子障碍物的第一特征与所述第二子障碍物的第二特征进行对比,其中,所述第一特征是利用目标卷积神经网络提取的所述第一子障碍物的特征数据,所述第二特征是利用所述目标卷积神经网络提取的所述第二子障碍物的特征数据;第三获得子单元,用于在确定所述第一特征与所述第二特征之间的第一相似度小于第一相似度阈值的情况下,得到第三对比结果;第四获得子单元,用于在确定所述第一特征与所述第二特征之间的所述第一相似度大于或等于所述第一相似度阈值的情况下,得到第四对比结果。The second comparison subunit is used to compare the first feature of the first sub-obstacle with the second feature of the second sub-obstacle, wherein the first feature is extracted using a target convolutional neural network The characteristic data of the first sub-obstacle, the second characteristic is the characteristic data of the second sub-obstacle extracted using the target convolutional neural network; the third acquisition sub-unit is used to determine the When the first similarity between the first feature and the second feature is less than the first similarity threshold, a third comparison result is obtained; a fourth acquisition subunit is used to determine whether the first feature is the same as the first similarity threshold. When the first similarity between the second features is greater than or equal to the first similarity threshold, a fourth comparison result is obtained.
在一个示例性实施例中,上述对比单元包括:In an exemplary embodiment, the above comparison unit includes:
分割子单元,用于对所述第一子区域信息所对应的区域进行分割,以得到包含第一子障碍物的第一区块,以及,对所述第二区域信息所对应的区域进行分割,以得到包含第二子障碍物的第二区块;计算子单元,用于基于所述第一区块的中心坐标与所述第二区块的中心坐标计算所述第一子障碍物与所述第二子障碍物之间的第二相似度;第五获得子单元,用于在确定所述第二相似度小于第二相似度阈值的情况下,得到第五对比结果;第六获得子单元,用于在确定所述第二相似度大于或等于所述第二相似度阈值的情况下,得到第六对比结果。A segmentation subunit, used to segment the area corresponding to the first sub-area information to obtain the first block containing the first sub-obstacle, and to segment the area corresponding to the second area information. , to obtain the second block containing the second sub-obstacle; the calculation subunit is used to calculate the first sub-obstacle and the second sub-obstacle based on the center coordinates of the first block and the center coordinates of the second block. The second similarity between the second sub-obstacles; the fifth obtaining subunit, used to obtain the fifth comparison result when it is determined that the second similarity is less than the second similarity threshold; the sixth obtaining A subunit configured to obtain a sixth comparison result when it is determined that the second similarity is greater than or equal to the second similarity threshold.
在一个示例性实施例中,上述装置还包括:In an exemplary embodiment, the above device further includes:
规划模块,用于在基于所述目标区域信息构建所述目标区域的目标地图之后,基于所述目标地图规划目标路径,并按照所述目标路径执行清扫操作。A planning module, configured to plan a target path based on the target map after constructing a target map of the target area based on the target area information, and perform cleaning operations according to the target path.
在一个示例性实施例中,上述装置还包括 :In an exemplary embodiment, the above device further includes:
第二获取模块,用于在获取由目标摄像设备对目标区域进行拍摄所获得的目标图像之前,获取所述目标清洁设备所处局域网信息;The second acquisition module is used to acquire the local area network information of the target cleaning device before acquiring the target image obtained by shooting the target area by the target camera device;
第二确定模块,用于基于所述局域网信息,确定同时进入网络的全部智能终端;The second determination module is used to determine all intelligent terminals that enter the network at the same time based on the local area network information;
第三获取模块,用于获取每个智能终端的网络标识符;The third acquisition module is used to obtain the network identifier of each smart terminal;
第三确定模块,用于基于所述网络标识符,确定所述目标摄像设备。A third determination module, configured to determine the target camera device based on the network identifier.
在一个示例性实施例中,上述融合模块406还包括:In an exemplary embodiment, the above-mentioned fusion module 406 also includes:
第二更新单元,用于按照预定规则更新所述第二区域信息,以得到更新后的第二区域信息;a second update unit, configured to update the second area information according to predetermined rules to obtain updated second area information;
融合单元,用于将所述第一区域信息与所述更新后的第二区域信息进行融合,以获得所述目标区域信息。A fusion unit configured to fuse the first area information with the updated second area information to obtain the target area information.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that each of the above modules can be implemented through software or hardware. For the latter, it can be implemented in the following ways, but is not limited to this: the above modules are all located in the same processor; or the above modules can be implemented in any combination. The forms are located in different processors.
本发明的实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。Embodiments of the present invention also provide a computer-readable storage medium that stores a computer program, wherein the computer program is configured to execute the steps in any of the above method embodiments when running.
在本实施例中,上述计算机可读存储介质可以被设置为存储用于执行以下步骤的计算机程序:In this embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for performing the following steps:
S1,获取由目标摄像设备对目标区域进行拍摄所获得的目标图像,其中,所述目标图像中包含目标清洁设备;S1. Obtain the target image obtained by shooting the target area by the target camera device, wherein the target image includes the target cleaning device;
S2,基于所述目标图像确定所述目标区域的第一区域信息,其中,所述第一区域信息包括所述目标清洁设备的第一位置信息及所述目标区域内所包含的第一障碍物的第二位置信息;S2. Determine first area information of the target area based on the target image, wherein the first area information includes first position information of the target cleaning equipment and first obstacles contained in the target area. the second location information;
S3,将所述第一区域信息与第二区域信息进行融合,以获得目标区域信息,其中,所述第二区域信息是由所述目标清洁设备检测到的所述目标区域中包括的第一区域的区域信息;S3: Fusion of the first area information and the second area information to obtain target area information, wherein the second area information is the first area included in the target area detected by the target cleaning device. Regional information for the region;
S4,基于所述目标区域信息构建所述目标区域的目标地图。S4: Construct a target map of the target area based on the target area information.
在一个示例性实施例中,上述计算机可读存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。In an exemplary embodiment, the computer-readable storage medium may include but is not limited to: USB flash drive, read-only memory (ROM), random access memory (Random Access Memory, RAM) , mobile hard disk, magnetic disk or optical disk and other media that can store computer programs.
本发明的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。An embodiment of the present invention also provides an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
在一个示例性实施例中,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。In an exemplary embodiment, the above-mentioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor.
在一个示例性实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:In an exemplary embodiment, the above-mentioned processor may be configured to perform the following steps through a computer program:
S1,获取由目标摄像设备对目标区域进行拍摄所获得的目标图像,其中,所述目标图像中包含目标清洁设备;S1. Obtain the target image obtained by shooting the target area by the target camera device, wherein the target image includes the target cleaning device;
S2,基于所述目标图像确定所述目标区域的第一区域信息,其中,所述第一区域信息包括所述目标清洁设备的第一位置信息及所述目标区域内所包含的第一障碍物的第二位置信息;S2. Determine first area information of the target area based on the target image, wherein the first area information includes first position information of the target cleaning equipment and first obstacles contained in the target area. the second location information;
S3,将所述第一区域信息与第二区域信息进行融合,以获得目标区域信息,其中,所述第二区域信息是由所述目标清洁设备检测到的所述目标区域中包括的第一区域的区域信息;S3: Fusion of the first area information and the second area information to obtain target area information, wherein the second area information is the first area included in the target area detected by the target cleaning device. Regional information for the region;
S4,基于所述目标区域信息构建所述目标区域的目标地图。S4: Construct a target map of the target area based on the target area information.
通过本发明提供的一种建图方法,可以弥补自身盲区内的障碍物信息,提高对周围障碍物的感知范围和精度,以实现建立更准确完善的障碍物地图的目的,解决了相关技术中因清洁设备自身传感器数量有限及存在盲区,从而导致感知障碍物和SLAM定位存在误差的问题。Through the mapping method provided by the present invention, the obstacle information in its own blind spot can be compensated, and the perception range and accuracy of surrounding obstacles can be improved to achieve the purpose of establishing a more accurate and complete obstacle map and solve the problems in related technologies. Due to the limited number of sensors in the cleaning equipment itself and the existence of blind spots, there are problems with errors in sensing obstacles and SLAM positioning.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present invention can be implemented using general-purpose computing devices. They can be concentrated on a single computing device, or distributed across a network composed of multiple computing devices. They may be implemented in program code executable by a computing device, such that they may be stored in a storage device for execution by the computing device, and in some cases may be executed in a sequence different from that shown herein. Or the described steps can be implemented by making them into individual integrated circuit modules respectively, or by making multiple modules or steps among them into a single integrated circuit module. As such, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention shall be included in the protection scope of the present invention.

Claims (19)

  1.  一种建图方法,应用于目标清洁设备和目标摄像设备,所述目标摄像设备设置在清洁环境中,并与所述目标清洁设备通信连接,其特征在于,包括:A mapping method, applied to target cleaning equipment and target camera equipment, the target camera equipment is set in a clean environment and is communicatively connected with the target cleaning equipment, characterized in that it includes:
    获取由所述目标摄像设备对目标区域进行拍摄所获得的目标图像,其中,所述目标图像中包含所述目标清洁设备;Obtaining a target image obtained by photographing a target area by the target imaging device, wherein the target image includes the target cleaning device;
    基于所述目标图像确定所述目标区域的第一区域信息,其中,所述第一区域信息包括所述目标清洁设备的第一位置信息及所述目标区域内所包含的第一障碍物的第二位置信息;First area information of the target area is determined based on the target image, wherein the first area information includes first position information of the target cleaning equipment and first location information of the first obstacle included in the target area. 2. Location information;
    将所述第一区域信息与第二区域信息进行融合,以获得目标区域信息,其中,所述第二区域信息是由所述目标清洁设备检测到的所述目标区域中包括的第一区域的区域信息;The first area information and the second area information are fused to obtain target area information, wherein the second area information is the first area included in the target area detected by the target cleaning device. Regional information;
    基于所述目标区域信息构建所述目标区域的目标地图。A target map of the target area is constructed based on the target area information.
  2.  根据权利要求1所述的方法,其特征在于,获取由目标摄像设备对目标区域进行拍摄所获得的目标图像包括:The method according to claim 1, characterized in that, obtaining the target image obtained by shooting the target area by the target camera device includes:
    向所述目标摄像设备发送第一采集指令,以指示所述目标摄像设备采集整个所述目标区域的第一图像;Send a first collection instruction to the target camera device to instruct the target camera device to collect a first image of the entire target area;
    获取由所述目标摄像设备发送的所述第一图像,并将所述第一图像确定为所述目标图像。The first image sent by the target camera device is acquired, and the first image is determined as the target image.
  3.  根据权利要求1所述的方法,其特征在于,获取由目标摄像设备对目标区域进行拍摄所获得的目标图像包括:The method according to claim 1, characterized in that, obtaining the target image obtained by shooting the target area by the target camera device includes:
    向所述目标摄像设备发送第二采集指令,以指示所述目标摄像设备采集所述目标区域的指定区域的第二图像,其中,所述指定区域中包括所述目标清洁设备;Send a second collection instruction to the target camera device to instruct the target camera device to collect a second image of a designated area of the target area, wherein the designated area includes the target cleaning device;
    获取由所述目标摄像设备发送的所述第二图像,并将所述第二图像确定为所述目标图像。The second image sent by the target camera device is acquired, and the second image is determined as the target image.
  4.  根据权利要求1所述的方法,其特征在于,基于所述目标图像确定所述目标区域的第一区域信息包括:The method according to claim 1, wherein determining the first area information of the target area based on the target image includes:
    对所述目标图像进行识别,以确定所述目标区域中所述目标清洁设备的第一目标信息及所述第一障碍物的第二目标信息,其中,所述第一目标信息至少包括所述第一位置信息,所述第二目标信息至少包括所述第二位置信息、所述第一障碍物的类型信息及尺寸信息;The target image is identified to determine first target information of the target cleaning equipment and second target information of the first obstacle in the target area, wherein the first target information at least includes the First position information, the second target information includes at least the second position information, the type information and size information of the first obstacle;
    基于所述第一目标信息和所述第二目标信息确定所述第一区域信息。The first area information is determined based on the first target information and the second target information.
  5.  根据权利要求1所述的方法,其特征在于,将所述第一区域信息与第二区域信息进行融合,以获得目标区域信息包括:The method according to claim 1, characterized in that fusing the first area information and the second area information to obtain the target area information includes:
    获取所述第一区域信息中与所述第一区域对应的第一子区域信息;Obtain the first sub-region information corresponding to the first region in the first region information;
    将所述第一子区域信息与所述第二区域信息进行对比,以得到对比结果,其中,所述对比结果用于指示所述第一子区域信息中的第一子障碍物信息所对应的第一子障碍物与所述第二区域信息中的第二子障碍物信息所对应的第二子障碍物是否匹配;Compare the first sub-area information with the second area information to obtain a comparison result, wherein the comparison result is used to indicate the location corresponding to the first sub-obstacle information in the first sub-area information. Whether the first sub-obstacle matches the second sub-obstacle corresponding to the second sub-obstacle information in the second area information;
    基于所述对比结果对所述第一区域信息进行更新,以获得所述目标区域信息。The first area information is updated based on the comparison result to obtain the target area information.
  6.  根据权利要求5所述的方法,其特征在于,基于所述对比结果对所述第一区域信息进行更新,以获得所述目标区域信息包括:The method according to claim 5, wherein updating the first area information based on the comparison result to obtain the target area information includes:
    当所述对比结果指示所述第一子障碍物与所述第二子障碍物不匹配时,将所述第一区域信息中的所述第一子障碍物信息更新为所述第二子障碍物信息,以得到更新后的第一区域信息;When the comparison result indicates that the first sub-obstacle does not match the second sub-obstacle, updating the first sub-obstacle information in the first area information to the second sub-obstacle object information to obtain updated first area information;
    将所述更新后的第一区域信息确定为所述目标区域信息。The updated first area information is determined as the target area information.
  7.  根据权利要求5或6所述的方法,其特征在于,将所述第一子区域信息与所述第二区域信息进行对比,以得到对比结果包括:The method according to claim 5 or 6, characterized in that, comparing the first sub-region information with the second region information to obtain the comparison result includes:
    将所述第一子障碍物信息与所述第二子障碍物信息进行对比;在确定所述第一子障碍物信息与所述第二子障碍物信息不一致的情况下,得到第一对比结果;在确定所述第一子障碍物信息与所述第二子障碍物信息一致的情况下,得到第二对比结果。Compare the first sub-obstacle information with the second sub-obstacle information; when it is determined that the first sub-obstacle information is inconsistent with the second sub-obstacle information, obtain a first comparison result ; When it is determined that the first sub-obstacle information is consistent with the second sub-obstacle information, obtain a second comparison result.
  8.  根据权利要求5或6所述的方法,其特征在于,将所述第一子区域信息与所述第二区域信息进行对比,以得到对比结果包括:The method according to claim 5 or 6, characterized in that, comparing the first sub-region information with the second region information to obtain the comparison result includes:
    将所述第一子障碍物的第一特征与所述第二子障碍物的第二特征进行对比,其中,所述第一特征是利用目标卷积神经网络提取的所述第一子障碍物的特征数据,所述第二特征是利用所述目标卷积神经网络提取的所述第二子障碍物的特征数据;Comparing the first feature of the first sub-obstacle with the second feature of the second sub-obstacle, wherein the first feature is the first sub-obstacle extracted using a target convolutional neural network The feature data, the second feature is the feature data of the second sub-obstacle extracted using the target convolutional neural network;
    在确定所述第一特征与所述第二特征之间的第一相似度小于第一相似度阈值的情况下,得到第三对比结果;When it is determined that the first similarity between the first feature and the second feature is less than the first similarity threshold, a third comparison result is obtained;
    在确定所述第一特征与所述第二特征之间的所述第一相似度大于或等于所述第一相似度阈值的情况下,得到第四对比结果。When it is determined that the first similarity between the first feature and the second feature is greater than or equal to the first similarity threshold, a fourth comparison result is obtained.
  9.  根据权利要求5或6所述的方法,其特征在于,将所述第一子区域信息与所述第二区域信息进行对比,以得到对比结果包括:The method according to claim 5 or 6, characterized in that, comparing the first sub-region information with the second region information to obtain the comparison result includes:
    对所述第一子区域信息所对应的区域进行分割,以得到包含第一子障碍物的第一区块,以及,对所述第二区域信息所对应的区域进行分割,以得到包含第二子障碍物的第二区块;Divide the area corresponding to the first sub-region information to obtain a first block including the first sub-obstacle, and divide the area corresponding to the second area information to obtain a first block including the second sub-obstacle. The second block of the sub-obstacle;
    基于所述第一区块的中心坐标与所述第二区块的中心坐标计算所述第一子障碍物与所述第二子障碍物之间的第二相似度;Calculate a second similarity between the first sub-obstacle and the second sub-obstacle based on the center coordinate of the first block and the center coordinate of the second block;
    在确定所述第二相似度小于第二相似度阈值的情况下,得到第五对比结果;When it is determined that the second similarity is less than the second similarity threshold, a fifth comparison result is obtained;
    在确定所述第二相似度大于或等于所述第二相似度阈值的情况下,得到第六对比结果。If it is determined that the second similarity is greater than or equal to the second similarity threshold, a sixth comparison result is obtained.
  10.  根据权利要求1所述的方法,其特征在于,在基于所述目标区域信息构建所述目标区域的目标地图之后,所述方法还包括:The method according to claim 1, characterized in that, after constructing the target map of the target area based on the target area information, the method further includes:
    基于所述目标地图规划目标路径,并按照所述目标路径执行清扫操作。Plan a target path based on the target map, and perform cleaning operations according to the target path.
  11.  根据权利要求1所述的方法,其特征在于,在获取由目标摄像设备对目标区域进行拍摄所获得的目标图像之前,所述方法还包括:The method according to claim 1, characterized in that, before acquiring the target image obtained by shooting the target area by the target camera device, the method further includes:
    获取所述目标清洁设备所处局域网信息;Obtain the local area network information where the target cleaning equipment is located;
    基于所述局域网信息,确定同时进入网络的全部智能终端;Based on the local area network information, determine all smart terminals that enter the network at the same time;
    获取每个智能终端的网络标识符;Obtain the network identifier of each smart terminal;
    基于所述网络标识符,确定所述目标摄像设备。Based on the network identifier, the target camera device is determined.
  12.  根据权利要求1-11中任一项所述的方法,其特征在于,将所述第一区域信息与第二区域信息进行融合,以获得目标区域信息包括:The method according to any one of claims 1-11, characterized in that fusing the first area information and the second area information to obtain the target area information includes:
    按照预定规则更新所述第二区域信息,以得到更新后的第二区域信息;Update the second area information according to predetermined rules to obtain updated second area information;
    将所述第一区域信息与所述更新后的第二区域信息进行融合,以获得所述目标区域信息。The first area information and the updated second area information are fused to obtain the target area information.
  13.  根据权利要求1中所述的方法,其特征在于,所述目标图像由所述目标摄像设备在确定所述目标图像中包含所述目标清洁设备的情况下传送至所述目标清洁设备。The method according to claim 1, characterized in that the target image is transmitted to the target cleaning device by the target camera device when it is determined that the target image contains the target cleaning device.
  14.  根据权利要求3中所述的方法,其特征在于,所述指定区域为以所述目标清洁设备为中心的预设范围内的区域。The method according to claim 3, wherein the designated area is an area within a preset range centered on the target cleaning equipment.
  15.  根据权利要求5中所述的方法,其特征在于,所述将所述第一子区域信息与所述第二区域信息进行对比,以得到对比结果,包括:The method according to claim 5, characterized in that comparing the first sub-region information with the second region information to obtain a comparison result includes:
    将所述第一子区域信息中第一子障碍物与所述第二区域信息中的第二子障碍物的位置、尺寸进行匹配,以得到对比结果。Match the positions and sizes of the first sub-obstacle in the first sub-region information and the second sub-obstacle in the second region information to obtain a comparison result.
  16.  根据权利要求9中所述的方法,其特征在于,不同的障碍物类型对应不同的分割规则。The method according to claim 9, characterized in that different obstacle types correspond to different segmentation rules.
  17.  一种建图装置,位于目标清洁设备和目标摄像设备中,所述目标摄像设备设置在清洁环境中,并与所述目标清洁设备通信连接,其特征在于,包括:A mapping device located in a target cleaning device and a target camera device. The target camera device is set in a clean environment and is communicatively connected to the target cleaning device. It is characterized in that it includes:
    第一获取模块,用于获取由所述目标摄像设备对目标区域进行拍摄所获得的目标图像,其中,所述目标图像中包含所述目标清洁设备;A first acquisition module, configured to acquire a target image obtained by photographing a target area by the target imaging device, wherein the target image includes the target cleaning device;
    第一确定模块,用于基于所述目标图像确定所述目标区域的第一区域信息,其中,所述第一区域信息包括所述目标清洁设备的第一位置信息及所述目标区域内所包含的第一障碍物的第二位置信息;A first determination module configured to determine first area information of the target area based on the target image, wherein the first area information includes first position information of the target cleaning equipment and the first location information contained in the target area. The second position information of the first obstacle;
    融合模块,用于将所述第一区域信息与第二区域信息进行融合,以获得目标区域信息,其中,所述第二区域信息是由所述目标清洁设备检测到的所述目标区域中包括的第一区域的区域信息;a fusion module, configured to fuse the first area information with the second area information to obtain target area information, wherein the second area information is included in the target area detected by the target cleaning device Regional information of the first region;
    构建模块,用于基于所述目标区域信息构建所述目标区域的目标地图。A building module, configured to build a target map of the target area based on the target area information.
  18.  一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,其中,所述计算机程序被处理器执行时实现所述权利要求1至16任一项中所述的方法的步骤。A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, wherein when the computer program is executed by a processor, the computer program implements what is described in any one of claims 1 to 16 steps of the method.
  19.  一种电子装置,包括存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现所述权利要求1至16任一项中所述的方法的步骤。An electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that when the processor executes the computer program, claim 1 is realized to the steps of the method described in any one of 16.
PCT/CN2023/088027 2022-04-25 2023-04-13 Mapping method and apparatus, and storage medium and electronic apparatus WO2023207610A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210441631.1A CN116982884A (en) 2022-04-25 2022-04-25 Picture construction method and device, storage medium and electronic device
CN202210441631.1 2022-04-25

Publications (1)

Publication Number Publication Date
WO2023207610A1 true WO2023207610A1 (en) 2023-11-02

Family

ID=88517465

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/088027 WO2023207610A1 (en) 2022-04-25 2023-04-13 Mapping method and apparatus, and storage medium and electronic apparatus

Country Status (2)

Country Link
CN (1) CN116982884A (en)
WO (1) WO2023207610A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006113858A (en) * 2004-10-15 2006-04-27 Mitsubishi Heavy Ind Ltd Method and system for supporting remote operation for mobile object
CN111723619A (en) * 2019-03-21 2020-09-29 安克创新科技股份有限公司 Method and device for determining mobile information, storage medium and electronic device
WO2021146862A1 (en) * 2020-01-20 2021-07-29 珊口(深圳)智能科技有限公司 Indoor positioning method for mobile device, mobile device and control system
CN113662476A (en) * 2020-05-14 2021-11-19 杭州萤石软件有限公司 Method and system for improving cleaning coverage rate of movable cleaning robot
CN113670292A (en) * 2021-08-10 2021-11-19 追觅创新科技(苏州)有限公司 Map drawing method and device, sweeper, storage medium and electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006113858A (en) * 2004-10-15 2006-04-27 Mitsubishi Heavy Ind Ltd Method and system for supporting remote operation for mobile object
CN111723619A (en) * 2019-03-21 2020-09-29 安克创新科技股份有限公司 Method and device for determining mobile information, storage medium and electronic device
WO2021146862A1 (en) * 2020-01-20 2021-07-29 珊口(深圳)智能科技有限公司 Indoor positioning method for mobile device, mobile device and control system
CN113662476A (en) * 2020-05-14 2021-11-19 杭州萤石软件有限公司 Method and system for improving cleaning coverage rate of movable cleaning robot
CN113670292A (en) * 2021-08-10 2021-11-19 追觅创新科技(苏州)有限公司 Map drawing method and device, sweeper, storage medium and electronic device

Also Published As

Publication number Publication date
CN116982884A (en) 2023-11-03

Similar Documents

Publication Publication Date Title
WO2023016188A1 (en) Map drawing method and apparatus, floor sweeper, storage medium, and electronic apparatus
CN110268225B (en) Method for cooperative operation among multiple devices, server and electronic device
CN111328017B (en) Map transmission method and device
WO2023066078A1 (en) Grid map correction method and device, and storage medium and electronic device
KR101753361B1 (en) Smart cleaning system and method using a cleaning robot
CN110134117B (en) Mobile robot repositioning method, mobile robot and electronic equipment
US10437251B2 (en) Method for specifying position, terminal device, autonomous device, and program
CN112075879A (en) Information processing method, device and storage medium
WO2019232804A1 (en) Software updating method and system, and mobile robot and server
CN111679661A (en) Semantic map construction method based on depth camera and sweeping robot
WO2020010841A1 (en) Autonomous vacuum cleaner positioning method and device employing gyroscope calibration based on visual loop closure detection
WO2021208015A1 (en) Map construction and positioning method, client, mobile robot, and storage medium
CN111679664A (en) Three-dimensional map construction method based on depth camera and sweeping robot
CN113475977A (en) Robot path planning method and device and robot
CN113520246B (en) Mobile robot compensation cleaning method and system
WO2022222345A1 (en) Positioning correction method and apparatus for mobile robot, storage medium, and electronic apparatus
CN112748721A (en) Visual robot and cleaning control method, system and chip thereof
CN110597081A (en) Method and device for sending control instruction based on smart home operating system
WO2023207610A1 (en) Mapping method and apparatus, and storage medium and electronic apparatus
KR102458428B1 (en) Robt cleaner and controlling method of the same
CN113536820B (en) Position identification method and device and electronic equipment
CN112286185A (en) Floor sweeping robot, three-dimensional map building method and system thereof, and computer readable storage medium
CN110177256B (en) Tracking video data acquisition method and device
CN113516715A (en) Target area inputting method and device, storage medium, chip and robot
WO2023097897A1 (en) Method and apparatus for controlling cleaning robot, electronic device, and storage medium

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

Country of ref document: EP

Kind code of ref document: A1