WO2023115658A1 - Intelligent obstacle avoidance method and apparatus - Google Patents

Intelligent obstacle avoidance method and apparatus Download PDF

Info

Publication number
WO2023115658A1
WO2023115658A1 PCT/CN2022/070836 CN2022070836W WO2023115658A1 WO 2023115658 A1 WO2023115658 A1 WO 2023115658A1 CN 2022070836 W CN2022070836 W CN 2022070836W WO 2023115658 A1 WO2023115658 A1 WO 2023115658A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
information
obstacle
target obstacle
intelligent cleaning
Prior art date
Application number
PCT/CN2022/070836
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 WO2023115658A1 publication Critical patent/WO2023115658A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/25Determination of region of interest [ROI] or a volume of interest [VOI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/46Descriptors for shape, contour or point-related descriptors, e.g. scale invariant feature transform [SIFT] or bags of words [BoW]; Salient regional features
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/764Arrangements for image or video recognition or understanding using pattern recognition or machine learning using classification, e.g. of video objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/10Terrestrial scenes
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E10/00Energy generation through renewable energy sources
    • Y02E10/50Photovoltaic [PV] energy

Definitions

  • the invention relates to the technical field of intelligent equipment, in particular to a method and device for intelligently avoiding obstacles, and intelligent cleaning equipment.
  • artificial intelligence products have gradually entered people's lives, providing many conveniences for people's lives, such as intelligent sweeping robots, which can automatically clean areas and reduce cleaning tasks for users.
  • the intelligent sweeping robot mainly cleans according to a preset path or a random path.
  • the existing intelligent sweeping robots often bump into obstacles when they encounter obstacles during the cleaning process, resulting in reduced cleaning efficiency, and even being blocked by obstacles and unable to continue cleaning. It can be seen that how to provide a technical solution for intelligently identifying obstacles to improve the cleaning efficiency of intelligent cleaning equipment is particularly important.
  • the invention provides a method and device for intelligently avoiding obstacles, and intelligent cleaning equipment, which can collect area information on the traveling path during the traveling process of the intelligent cleaning equipment, intelligently identify obstacles on the path, and then realize accurate detection of obstacles. Obstacle avoidance improves the cleaning efficiency of intelligent cleaning equipment. At the same time, by accurately identifying the types of obstacles and matching corresponding obstacle avoidance strategies, the accuracy of obstacle avoidance is further improved and the coverage of the cleaning surface is maximized.
  • the first aspect of the present invention discloses a method for intelligently avoiding obstacles, the method comprising:
  • the area information includes image information and/or infrared information
  • the judgment result determines the position of the target obstacle and other information, and control the intelligent cleaning device to avoid obstacles according to the position of the target obstacle and the other information
  • the other information includes size information and category information.
  • the determining the position of the target obstacle and other information includes:
  • the feature detection result includes target category information of the target obstacle and target size information of the target obstacle;
  • the determination of the target image set of the target obstacle includes:
  • the real-time position of the intelligent cleaning device and the position of the target obstacle it is judged whether the distance between the intelligent cleaning device and the target obstacle is greater than or equal to a first preset distance, and when the judgment result is yes, acquiring a first image of the target obstacle, where the first image is used to identify category information of the target obstacle;
  • the second image includes depth of field information for detecting three-dimensional size information of the target obstacle
  • the first image and the second image are determined as a target image set of the target obstacle.
  • the feature extraction of the target image set based on the preset image detection model to obtain the feature detection result of the target obstacle includes:
  • the target category information and the target size information of the target obstacle are determined as the feature detection result of the target obstacle.
  • the reconstruction of the initial size model according to the depth information to obtain the target size information of the target obstacle includes:
  • the depth of field information determine the depth of field features of all pixels corresponding to the target obstacle in the second image
  • Transforming the depth features of all the pixels to determine the target depth features of all the pixels and the set of target pixels that need to be reconstructed in the initial size model; wherein, the Transforming the depth of field features, including: mapping the depth of field features of all the pixels into the initial size model;
  • the set of target pixels is reconstructed to obtain the target size information of the target obstacle.
  • the controlling the intelligent cleaning device to avoid obstacles according to the position of the target obstacle and the other information includes:
  • determining an obstacle avoidance control method that matches the target category information includes:
  • the target category belongs to the first category, when the judgment result is yes, controlling the intelligent cleaning device to perform an automatic obstacle avoidance operation, the first category is used to represent obstacles that need to be avoided and cannot be cleaned;
  • the second category is used to indicate that the category needs to be avoided, cleaned and For obstacles that do not belong to the cleaning category of the intelligent cleaning device, the warning information is used to prompt the target personnel to clean the target obstacle;
  • the third category is used to indicate that the category needs to be cleaned and belongs to the cleaning of the intelligent cleaning device Category-wide obstacles.
  • the determining the target obstacle avoidance path according to the characteristic information of the target obstacle and the predetermined map information includes:
  • the updating of the predetermined map information to generate the target map information according to the characteristic information of the target obstacle includes:
  • the predetermined map information is dynamically updated to generate target map information.
  • the controlling the intelligent cleaning device to perform an automatic obstacle avoidance operation includes:
  • the intelligent cleaning device is controlled to perform an automatic obstacle avoidance operation according to the target steering path.
  • the calculation of the steering distance information, steering direction information, and steering angle information of the intelligent cleaning device according to the target size information of the target obstacle includes :
  • an edge pixel sequence of the target obstacle is extracted, the edge pixel sequence includes the target size A collection of all pixel points within the absolute height range between the apex of the intelligent cleaning device and the bottom point of the intelligent cleaning device in the information;
  • the second aspect of the present invention discloses an intelligent obstacle avoidance device, which includes:
  • a first determination module configured to determine a target moving area of the intelligent cleaning device during the movement of the intelligent cleaning device
  • a collection module configured to collect area information of the target moving area, where the area information includes image information and/or infrared information;
  • a judging module configured to judge, according to the area information, whether there is a target obstacle in the target moving area that hinders the movement of the intelligent cleaning device;
  • a second determination module configured to determine the position of the target obstacle and other information when the determination result of the determination module is yes;
  • a control module configured to control the intelligent cleaning device to avoid obstacles according to the position of the target obstacle and the other information, the other information including size information and category information.
  • the second determination module includes:
  • a first determining submodule configured to determine the position of the target obstacle according to the area information
  • the second determining submodule is used to determine the target image set of the target obstacle, and based on a preset image detection model, perform feature extraction on the target image set to obtain a feature detection result of the target obstacle, and
  • the feature detection result is used as other information of the target obstacle, and the feature detection result includes target category information of the target obstacle and target size information of the target obstacle;
  • the specific manner in which the second determining submodule determines the target image set of the target obstacle is:
  • the real-time position of the intelligent cleaning device and the position of the target obstacle it is judged whether the distance between the intelligent cleaning device and the target obstacle is greater than or equal to a first preset distance, and when the judgment result is yes, acquiring a first image of the target obstacle, where the first image is used to identify category information of the target obstacle;
  • the second image includes depth of field information for detecting three-dimensional size information of the target obstacle
  • the first image and the second image are determined as a target image set of the target obstacle.
  • the second determining submodule extracts features from the target image set based on a preset image detection model to obtain the features of the target obstacle
  • the specific methods of the test results are as follows:
  • the target category information and the target size information of the target obstacle are determined as the feature detection result of the target obstacle.
  • the second determination submodule reconstructs the initial size model according to the depth information to obtain the target size information of the target obstacle.
  • the specific way is:
  • the depth of field information determine the depth of field features of all pixels corresponding to the target obstacle in the second image
  • Transforming the depth features of all the pixels to determine the target depth features of all the pixels and the set of target pixels that need to be reconstructed in the initial size model; wherein, the Transforming the depth of field features, including: mapping the depth of field features of all the pixels into the initial size model;
  • the set of target pixels is reconstructed to obtain the target size information of the target obstacle.
  • control module includes:
  • a third determining submodule configured to determine an obstacle avoidance control method that matches the target category information according to the target category information of the target obstacle
  • the control submodule controls the intelligent cleaning device to avoid obstacles according to the position of the target obstacle and the obstacle avoidance control mode
  • the control submodule is specifically used for:
  • the target category belongs to the first category, when the judgment result is yes, controlling the intelligent cleaning device to perform an automatic obstacle avoidance operation, the first category is used to represent obstacles that need to be avoided and cannot be cleaned;
  • the second category is used to indicate that the category needs to be avoided, cleaned and For obstacles that do not belong to the cleaning category of the intelligent cleaning device, the warning information is used to prompt the target personnel to clean the target obstacle;
  • the third category is used to indicate that the category needs to be cleaned and belongs to the cleaning of the intelligent cleaning device Category-wide obstacles.
  • control submodule controls the intelligent cleaning device to perform an automatic obstacle avoidance operation
  • the intelligent cleaning device is controlled to perform an automatic obstacle avoidance operation according to the target steering path.
  • control submodule calculates the steering distance information, steering direction information, and steering angle of the intelligent cleaning device according to the target size information of the target obstacle
  • the specific way of information is:
  • an edge pixel sequence of the target obstacle is extracted, the edge pixel sequence includes the target size A collection of all pixel points within the absolute height range between the apex of the intelligent cleaning device and the bottom point of the intelligent cleaning device in the information;
  • the third aspect of the present invention discloses an intelligent cleaning device, which includes:
  • a processor coupled to the memory
  • the processor invokes the executable program code stored in the memory to implement some or all of the steps in any intelligent obstacle avoidance method disclosed in the first aspect of the present invention.
  • the fourth aspect of the present invention discloses another intelligent obstacle avoidance device, which includes:
  • a processor coupled to the memory
  • the processor invokes the executable program code stored in the memory to execute some or all of the steps in any intelligent obstacle avoidance method disclosed in the first aspect of the present invention.
  • the fifth aspect of the present invention discloses a computer storage medium, the computer storage medium stores computer instructions, and when the computer instructions are invoked, it is used to execute any intelligent obstacle avoidance method disclosed in the first aspect of the present invention Some or all of the steps in .
  • the present invention has the following beneficial effects:
  • the invention discloses a method and device for intelligently avoiding obstacles, and intelligent cleaning equipment.
  • the method includes: determining the target moving area of the intelligent cleaning equipment during the moving process of the intelligent cleaning equipment; collecting area information of the target moving area; information to judge whether there is a target obstacle in the target moving area; when the judgment result is yes, determine the position of the target obstacle and other information, and control the intelligent cleaning device to avoid obstacles according to the position of the target obstacle and other information, other information includes size information and category information.
  • the present invention can collect area information on the traveling path during the traveling process of the intelligent cleaning equipment, intelligently identify obstacles on the path, and then realize accurate obstacle avoidance of obstacles, improve the cleaning efficiency of the intelligent cleaning equipment, and at the same time pass accurate Identify the types of obstacles and match the corresponding obstacle avoidance strategies to further improve the accuracy of obstacle avoidance and maximize the coverage of the cleaning surface.
  • FIG. 1 is a schematic flowchart of a method for intelligently avoiding obstacles disclosed in an embodiment of the present invention
  • Fig. 2 is a schematic structural diagram of an intelligent obstacle avoidance device disclosed in an embodiment of the present invention.
  • Fig. 3 is a schematic structural diagram of another intelligent obstacle avoidance device disclosed in an embodiment of the present invention.
  • Fig. 4 is a schematic structural diagram of another intelligent obstacle avoidance device disclosed in an embodiment of the present invention.
  • the invention discloses a method and device for intelligently avoiding obstacles, and intelligent cleaning equipment, which can collect area information on the traveling path during the traveling process of the intelligent cleaning equipment, such as image information and/or infrared information, and intelligently identify obstacles on the path Objects, thereby realizing accurate obstacle avoidance and improving the cleaning efficiency of intelligent cleaning equipment.
  • area information on the traveling path during the traveling process of the intelligent cleaning equipment such as image information and/or infrared information
  • intelligently identify obstacles on the path Objects thereby realizing accurate obstacle avoidance and improving the cleaning efficiency of intelligent cleaning equipment.
  • the accuracy of obstacle avoidance is further improved, and the maximum Maximize the coverage of the cleaning surface.
  • FIG. 1 is a schematic flowchart of a method for intelligently avoiding obstacles disclosed in an embodiment of the present invention.
  • the method described in FIG. 1 can be applied to an automatic control device for intelligent obstacle avoidance, and the automatic control device for intelligent obstacle avoidance can include intelligent cleaning equipment or a server corresponding to the intelligent cleaning equipment, wherein the intelligent cleaning equipment can communicate with the user Terminals and/or other smart devices in the current area (such as: smart display screens, smart image acquisition devices, etc.) (Android mobile phone, iOS mobile phone, etc.), the embodiments of the present invention are not limited.
  • the method for avoiding obstacles intelligently may include the following operations:
  • the target movement area of the intelligent cleaning device may be the travel area determined according to the preset movement rules or cruising rules during the cleaning process or the cruising process, for example, the intelligent cleaning device follows the preset paper clip
  • the route scans the map of the room, and the area corresponding to its forward direction is the above-mentioned target moving area; it can also be the target moving area analyzed based on the range of the cleaning area obtained from the mobile terminal.
  • the area range is sent to the smart cleaning device, and the smart cleaning device can determine the target moving area corresponding to the area range according to the received area range; it can also be The target moving area analyzed by images or voice commands, for example, if the user sends a voice command of "sweeping robot, please clean around the dining table", the intelligent cleaning device can determine the range within 0.5m around the dining table according to the preset cleaning range area as its target mobile area.
  • the area information of the target moving area needs to be collected, including visual recognition information, distance measurement information, such as image information, infrared information, ultrasonic feedback One or more combinations of information, etc.
  • the present invention can be acquired through the acquisition device installed by the intelligent cleaning equipment itself, such as a monocular camera, a binocular camera, an infrared sensor, an ultrasonic sensor, etc., or can be sent by receiving other intelligent acquisition equipment that can communicate with the intelligent cleaning equipment
  • the smart camera in the room sends the captured image to the smart cleaning device, etc., which is not limited in this embodiment of the present invention.
  • the area information it is judged whether there is a target obstacle in the target moving area that hinders the movement of the intelligent cleaning device.
  • a preliminary judgment can be made on whether there are obstacles that hinder the movement of the intelligent cleaning device in the target moving area. For example, by performing object recognition on the image information, the identified The object is matched with the obstacles in the database. If the match is successful, it can be determined that there is a target obstacle in the target moving area that hinders the movement of the intelligent cleaning device.
  • the position of the target obstacle and other information are determined to perform obstacle avoidance control on the intelligent cleaning device.
  • other information includes category information (bed, dining table, desk, water cup, garbage bag, orange peel, etc.) and size information (two-dimensional size information, three-dimensional size information, etc.) of the target obstacle.
  • the position information of the target obstacle and other information, the obstacle avoidance points during the traveling process are calculated, dynamic detection and route planning are maintained, and then the steering motor is controlled. Adjust with the traveling motor to control the intelligent cleaning equipment for obstacle avoidance.
  • the method described in the embodiment of the present invention can collect area information on the travel path of the intelligent cleaning device, such as image information and/or infrared information, and intelligently identify obstacles on the path, thereby realizing accurate detection of obstacles. Obstacle avoidance improves the cleaning efficiency of intelligent cleaning equipment. At the same time, by accurately identifying the type of obstacle and matching the corresponding obstacle avoidance strategy, it can meet different cleaning needs, further improve the accuracy of obstacle avoidance, and maximize the coverage of the cleaning surface.
  • area information on the travel path of the intelligent cleaning device such as image information and/or infrared information
  • determining the position of the target obstacle and other information includes:
  • the target image set of the target obstacle is determined, including:
  • the real-time position of the intelligent cleaning device and the position of the target obstacle determine whether the distance between the intelligent cleaning device and the target obstacle is greater than or equal to the first preset distance, and when the judgment result is yes, obtain the first image of the target obstacle , the first image is used to identify the category information of the target obstacle;
  • the first image and the second image are determined as a target image set of the target obstacle.
  • the position of the target obstacle can be determined according to the collected area information of the target moving area.
  • the intelligent cleaning device continuously emits infrared or ultrasonic signals during its movement, and by receiving the infrared or ultrasonic signals fed back by the target obstacle in real time, the distance between it and the target obstacle can be calculated, and then obtained The location of the target obstacle.
  • the intelligent cleaning device can collect the target image set of the target obstacle, and perform feature extraction on the images in the target image set through the pre-trained image detection model to obtain the feature detection result of the target obstacle.
  • the target image set may include one image to be detected, or may include multiple images to be detected, which is not limited in this embodiment of the present invention.
  • the feature detection result is the above-mentioned other information, and the feature detection result may include target category information and target size information of the target obstacle.
  • two images of the target obstacle are collected as the target image set according to the real-time position of the smart cleaning device and the position of the target obstacle.
  • the first preset distance for example, at 0.5m
  • an image for identifying the category of the target obstacle is collected.
  • the resolution of the images collected at this time can be low-resolution, which reduces the proportion of computing power of the intelligent cleaning equipment and facilitates quick identification of category information.
  • the present invention does not limit the first preset distance to be fixed, and the first preset distance can be adjusted according to the size of the target obstacle in the image field of view, such as the proportion of the target obstacle in the entire image When it is close to 70%, set the first preset distance to 0.7m; when the proportion of the target obstacle in the entire image is close to 50%, set the first preset distance to 0.5m.
  • the intelligent cleaning device when the intelligent cleaning device is closer to the target obstacle, the details of the collected images are clearer and more accurate, so when judging that the distance between the intelligent cleaning device and the target obstacle is less than the first preset distance and greater than When it is equal to the second preset distance, an image for detecting the three-dimensional size information of the target obstacle is collected, and the image should include field depth information.
  • the 3D ToF camera can be used to capture an image including depth of field information.
  • the smart cleaning device can also be equipped with a pan/tilt to control the 3D ToF camera to scan up and down , to obtain a more accurate image.
  • the method described in the embodiment of the present invention can quickly identify the type of the target obstacle through the first image collected at a relatively long distance, and measure the size information of the target obstacle through the second image collected at a relatively short distance. It is beneficial to improve the identification and detection efficiency of target obstacles, and improve the cleaning efficiency of intelligent cleaning equipment.
  • feature extraction is performed on the target image set to obtain a feature detection result of the target obstacle, including:
  • the target category information and target size information of the target obstacle are determined as the feature detection result of the target obstacle.
  • the image detection model is a deep neural network model obtained based on forward sample training, and the first image is input into the image recognition branch of the image detection model, and processed through convolution, pooling, activation layer and fully connected layer , the feature vector corresponding to the first image can be obtained.
  • the feature vector is matched with the reference feature vector of each category reference obstacle image in the preset database to obtain the category probability set corresponding to each category reference obstacle of the target obstacle, and the probability value is selected from the category probability set The highest category is used as the target category information of the target obstacle.
  • the initial size model of the target obstacle can be determined from the preset size model database according to the category information of the target obstacle. For example, when it is detected that the target obstacle is a basketball, it can be found from the preset size model database that the model matching the basketball is spherical.
  • the second image is input into the image detection branch of the image detection model, through the analysis of the image detection branch, the field depth information of each pixel in the second image can be obtained, and then the field depth information reflected according to the field depth information
  • the distance information between the intelligent cleaning device and the target obstacle is reconstructed from the initial size model determined above, and the target size information of the target obstacle can be obtained.
  • the detected target obstacle is a basketball
  • the method described in the embodiment of the present invention can quickly identify the category of the target obstacle through the first image collected at a relatively long distance, accurately identify the category while reducing the consumption of computing power, and calculate it through the second image collected at a relatively short distance
  • the size information of target obstacles and accurate identification of three-dimensional size details are conducive to improving the identification and detection efficiency of target obstacles, further improving the accuracy of obstacle avoidance of intelligent cleaning equipment, and improving the cleaning efficiency of intelligent cleaning equipment.
  • the initial size model is reconstructed according to the depth information to obtain the target size information of the target obstacle, including:
  • the target pixel set is reconstructed to obtain target size information of the target obstacle.
  • the initial size model due to the limitation of the shooting distance or field of view of the intelligent cleaning device, it may not be possible to capture a complete image of the target obstacle, so it is necessary to reconstruct the initial size model according to the depth of field information to obtain the target obstacle more accurate size information.
  • the field depth information of the second image the field depth features of all pixels in the image area corresponding to the target obstacle in the second image can be obtained. If the recognized target obstacle is a basketball, only the image corresponding to the basketball in the second image is extracted. Depth of field characteristics of image regions. According to the size information reflected by these depth features, the set of target pixel points to be reconstructed in the initial size model is determined.
  • the depth of field information scanned by the intelligent cleaning device only includes 1/4 spherical surface of the entire basketball.
  • the pixel at the corresponding 1/4 spherical surface position in the initial size model is the target pixel point to be reconstructed.
  • the method described in the embodiment of the present invention can reconstruct the size model of the target obstacle through the depth of field information, so as to obtain the accurate visual size information of the target obstacle, and improve the precision and accuracy of the intelligent cleaning equipment for the obstacle measurement , which is conducive to improving the obstacle avoidance precision and accuracy of intelligent cleaning equipment, and further improving the cleaning efficiency of intelligent cleaning equipment.
  • controlling the intelligent cleaning device to avoid obstacles according to the position of the target obstacle and other information includes:
  • the target category information of the target obstacle determine the obstacle avoidance control mode that matches the target category information
  • the obstacle avoidance control method matching the target category information is determined, including:
  • the target category belongs to the first category, when the judgment result is yes, controlling the intelligent cleaning device to perform an automatic obstacle avoidance operation, the first category is used to represent obstacles that need to be avoided and cannot be cleaned;
  • the second category is used to indicate that the category needs to avoid, clean and does not belong to intelligent cleaning equipment cleaning.
  • the warning message is used to prompt the target personnel to clean the target obstacle;
  • the intelligent cleaning device is controlled not to perform an avoidance operation, and the third category is used to represent obstacles that need to be cleaned and belong to the cleaning category range of the intelligent cleaning device.
  • the feature information (such as location information, category information, size information, etc.) of the target obstacle acquired by the intelligent cleaning device is firstly fused with the acquired map data information to obtain the fused map data Information, and then based on the fused map data information, the target obstacle avoidance path of the intelligent cleaning equipment can be generated.
  • the control mode matching the target category information can be determined from the preset obstacle avoidance control modes, and different obstacle avoidance controls can be implemented for different target obstacles.
  • the present invention provides three solutions.
  • the obstacles that the intelligent cleaning equipment needs to avoid and cannot be cleaned are taken as the first category, such as shoe cabinets, beds and other items; the intelligent cleaning equipment needs to be avoided and cleaned and does not belong to intelligent cleaning equipment.
  • Obstacles within the scope of cleaning categories are taken as the second category, such as slippers, children’s toys, thread balls, animal excrement, etc.; obstacles that need to be cleaned by smart cleaning equipment and belong to the scope of cleaning categories of intelligent cleaning equipment are taken as the third category, such as paper crumbs, hair, etc.
  • control the intelligent cleaning device to perform automatic obstacle avoidance operation if it is judged as an item of the first category, control the intelligent cleaning device to perform automatic obstacle avoidance operation; if it is judged as an item of the second category, control the intelligent cleaning device to perform automatic obstacle avoidance operation and output
  • the warning message is used to remind the user that the detected items need to be cleaned manually.
  • the way to output the warning information can be to generate a warning voice prompt, or to send the information of the item (category information, location information, etc.) to other smart devices (smart phones, smart display screens, etc.) to remind
  • the user is not limited in this embodiment of the present invention; if it is judged to be an item of the third category, the avoidance operation is not performed, and the item is directly cleaned across the item.
  • the method described in the embodiment of the present invention matches different obstacle avoidance strategies through different types of detected target obstacles, greatly enhances the intelligence level of intelligent cleaning equipment, and improves the refined control degree of intelligent cleaning equipment. It solves the problem of insufficient cleaning surface coverage caused by lack of obstacle avoidance strategies, and further improves the cleaning quality and cleaning efficiency of intelligent cleaning equipment.
  • the target obstacle avoidance path is determined according to the characteristic information of the target obstacle and the predetermined map information, including:
  • the target obstacle According to the position of the target obstacle and the target map information, determine the target obstacle avoidance path of the intelligent cleaning equipment
  • the predetermined map information is updated to generate the target map information, including:
  • the target obstacle is a moving obstacle
  • the predetermined map information is dynamically updated to generate the target map information.
  • the target obstacle avoidance path may be a global obstacle avoidance path (for example, if the target area selected by the user is the entire room, then the obstacle avoidance path generated for the entire room is the global area obstacle avoidance path)
  • the target obstacle avoidance path may also be a local obstacle avoidance path (for example, if the target area specified by the user is the area around the dining table, then the generated obstacle avoidance path within the area around the dining table is the local obstacle avoidance path), which is not limited in this embodiment of the present invention.
  • the coordinate and scale conversion of the size information is carried out to obtain the corresponding coordinates and size of the target obstacle on the predetermined map, and then the target obstacle can be compared with the map
  • the information is fused to obtain the fused map information, that is, the above-mentioned target map information. Further, it may also be judged whether it is necessary to update the target map information in real time based on the category information of the target obstacle or the like.
  • the target obstacle avoidance route of the intelligent cleaning device can be planned according to the position of existing obstacles and the position of the target obstacle in the target map information.
  • the method described in the embodiment of the present invention can combine the characteristic information of the target obstacle with the acquired map data information while matching different control methods through the characteristic information of the target obstacle for global path planning Or local path planning, which improves the efficiency of path planning and tracking, and further improves the intelligent obstacle avoidance level and obstacle avoidance efficiency of intelligent cleaning equipment.
  • controlling the intelligent cleaning equipment to perform automatic obstacle avoidance operations includes:
  • the target size information of the target obstacle calculate the steering distance information, steering direction information and steering angle information of the intelligent cleaning equipment
  • the shortest distance of the target obstacle relative to the front of the smart cleaning device is determined as the turning distance information, and at the same time, according to the target size information of the target obstacle , to determine whether the left and right sides of the target obstacle can be turned by the intelligent cleaning device to avoid obstacles, so as to determine the steering direction information and steering angle information.
  • the target steering path is planned according to these information, so as to control the intelligent cleaning equipment to perform automatic obstacle avoidance operations with the planned target steering path.
  • the steering distance information can also be corrected according to the detected category information of the target obstacle.
  • the steering and obstacle avoidance should be performed as close as possible to the target obstacle.
  • the second category of items above turn and avoid obstacles as far as possible from the target obstacle.
  • the detected target obstacle is a bed
  • the detected target obstacle Objects are wire balls.
  • obstacle avoidance can be performed at a distance of 10cm from the edge of the wire balls.
  • the method described in the embodiment of the present invention can determine accurate steering distance information, steering direction information, and steering angle information through the target size information of the target obstacle, improve the accuracy of determining the target steering path, and further improve the intelligent cleaning equipment. Obstacle avoidance efficiency and accuracy are further improved to improve the cleaning quality and cleaning efficiency of intelligent cleaning equipment.
  • the steering distance information, steering direction information, and steering angle information of the intelligent cleaning device are calculated according to the target size information of the target obstacle, including:
  • the edge pixel sequence of the target obstacle is extracted, and the edge pixel sequence includes the vertices of the intelligent cleaning device in the target size information and the intelligent cleaning device.
  • the edge pixel sequence of the target obstacle is extracted according to the target size information of the target obstacle, the top position of the intelligent cleaning device, and the bottom position of the intelligent cleaning device, wherein the extracted edge pixel sequence includes the target size information located at A collection of all pixels within the absolute height range between the vertex of the smart cleaning device and the bottom point of the smart cleaning device. For example, if the absolute height range between the apex of the smart cleaning device and the bottom point of the smart cleaning device is 10cm, then the bottom point of the smart cleaning device is taken as the lowest point of the horizontal position, and the height range in the target size information intercepted from this position is All pixels within 10cm are used as the edge pixel sequence of the target obstacle.
  • the edge pixel point with the smallest horizontal distance is selected as the target obstacle avoidance pixel point. Furthermore, steering distance information, steering direction information, and steering angle information are calculated according to the target pixel.
  • the target steering path can be divided into multiple steering path nodes according to the steering direction and steering angle, and each time the intelligent cleaning device travels to a steering path node , the operation of calculating the steering distance information, steering direction information, and steering angle information of the intelligent cleaning device according to the target size information of the target obstacle is retriggered, so as to maintain dynamic survey and path planning during the traveling process to achieve Dynamically corrects the purpose of the target steering path.
  • the method described in the embodiment of the present invention can save the computing power of the intelligent cleaning equipment to calculate the target obstacle avoidance point by extracting the edge pixel sequence, improve the precision and accuracy of measuring the target obstacle avoidance point, and improve the rapid calculation of the intelligent cleaning equipment Low space and other gaps can avoid collision damage at the bottom of objects, thereby improving the obstacle avoidance efficiency and accuracy of intelligent cleaning equipment, and further improving the cleaning quality and cleaning efficiency of intelligent cleaning equipment.
  • FIG. 2 is a schematic structural diagram of an intelligent obstacle avoidance device disclosed in an embodiment of the present invention.
  • the device for intelligently avoiding obstacles may include an intelligent cleaning device or a server corresponding to the intelligent cleaning device, wherein the intelligent cleaning device may communicate with the user terminal and/or other intelligent devices in the current area (such as: a smart display screen, a smart image acquisition device, etc.) etc.), where the user terminal includes but is not limited to smart wearable devices (such as smart bracelets, etc.) and/or smart phones (Android phones, iOS phones, etc.), which are not limited in this embodiment of the present invention.
  • the intelligent obstacle avoidance device refers to the steps in the intelligent obstacle avoidance method described in Embodiment 1, and the detailed description will not be repeated in this embodiment, as shown in Figure 2
  • the device for intelligently avoiding obstacles may include:
  • the first determination module 201 is used to determine the target movement area of the intelligent cleaning equipment during the movement of the intelligent cleaning equipment;
  • a collection module 202 configured to collect area information of the target moving area, where the area information includes image information and/or infrared information;
  • a judging module 203 configured to judge according to the area information whether there is a target obstacle in the target moving area that hinders the movement of the intelligent cleaning device;
  • the second determination module 204 is used to determine the position of the target obstacle and other information when the determination result of the determination module 203 is yes;
  • the control module 205 is configured to control the intelligent cleaning device to avoid obstacles according to the position of the target obstacle and other information, and the other information includes size information and category information.
  • the device described in the embodiment of the present invention can collect area information on the travel path, such as image information and/or infrared information, intelligently identify obstacles on the path during the travel of the intelligent cleaning device, and then realize accurate detection of obstacles. Obstacle avoidance improves the cleaning efficiency of intelligent cleaning equipment. At the same time, by accurately identifying the type of obstacle and matching the corresponding obstacle avoidance strategy, it can meet different cleaning needs, further improve the accuracy of obstacle avoidance, and maximize the coverage of the cleaning surface.
  • area information on the travel path such as image information and/or infrared information
  • the second determination module 204 may include:
  • the first determining submodule 2041 is configured to determine the position of the target obstacle according to the area information
  • the second determination sub-module 2042 is configured to determine a target image set of the target obstacle, and perform feature extraction on the target image set based on a preset image detection model to obtain a feature detection result of the target obstacle, Using the feature detection result as other information of the target obstacle, the feature detection result includes target category information of the target obstacle and target size information of the target obstacle;
  • the second determination sub-module 2042 determines the target image set of the target obstacle in a specific manner as follows:
  • the real-time position of the intelligent cleaning device and the position of the target obstacle it is judged whether the distance between the intelligent cleaning device and the target obstacle is greater than or equal to a first preset distance, and when the judgment result is yes, acquiring a first image of the target obstacle, where the first image is used to identify category information of the target obstacle;
  • the second image includes depth of field information for detecting three-dimensional size information of the target obstacle
  • the first image and the second image are determined as a target image set of the target obstacle.
  • the device described in the embodiment of the present invention can quickly identify the type of the target obstacle through the first image collected at a relatively long distance, and measure the size information of the target obstacle through the second image collected at a relatively short distance. It is beneficial to improve the identification and detection efficiency of target obstacles, and improve the cleaning efficiency of intelligent cleaning equipment.
  • the second determining submodule 2042 performs feature extraction on the target image set based on a preset image detection model to obtain a feature detection result of the target obstacle.
  • the specific way is:
  • the target category information and the target size information of the target obstacle are determined as the feature detection result of the target obstacle.
  • the device described in the embodiment of the present invention can quickly identify the category of the target obstacle through the first image collected at a relatively long distance, accurately identify the category while reducing computing power consumption, and use the second image collected at a relatively short distance To measure the size information of the target obstacle and accurately identify the three-dimensional size details, it is beneficial to improve the identification and detection efficiency of the target obstacle, further improve the accuracy of the obstacle avoidance of the intelligent cleaning equipment, and improve the cleaning efficiency of the intelligent cleaning equipment.
  • the second determination submodule 2042 reconstructs the initial size model according to the depth information to obtain the target size information of the target obstacle. for:
  • the depth of field information determine the depth of field features of all pixels corresponding to the target obstacle in the second image
  • Transforming the depth features of all the pixels to determine the target depth features of all the pixels and the set of target pixels that need to be reconstructed in the initial size model; wherein, the Transforming the depth of field features, including: mapping the depth of field features of all the pixels into the initial size model;
  • the set of target pixels is reconstructed to obtain the target size information of the target obstacle.
  • the device described in the embodiment of the present invention can reconstruct the size model of the target obstacle through the depth of field information, so as to obtain the accurate visual size information of the target obstacle, and improve the precision and accuracy of the intelligent cleaning equipment for the obstacle measurement , which is conducive to improving the obstacle avoidance precision and accuracy of intelligent cleaning equipment, and further improving the cleaning efficiency of intelligent cleaning equipment.
  • control module may include:
  • the third determination sub-module 2051 is configured to determine an obstacle avoidance control method that matches the target category information according to the target category information of the target obstacle;
  • the control sub-module 2052 controls the intelligent cleaning device to avoid obstacles according to the position of the target obstacle and the obstacle avoidance control mode
  • the control submodule 2052 is specifically used for:
  • the target category belongs to the first category, when the judgment result is yes, controlling the intelligent cleaning device to perform an automatic obstacle avoidance operation, the first category is used to represent obstacles that need to be avoided and cannot be cleaned;
  • the second category is used to indicate that the category needs to be avoided, cleaned and For obstacles that do not belong to the cleaning category of the intelligent cleaning device, the warning information is used to prompt the target personnel to clean the target obstacle;
  • the third category is used to indicate that the category needs to be cleaned and belongs to the cleaning of the intelligent cleaning device Category-wide obstacles. .
  • the device described in the embodiment of the present invention can match different obstacle avoidance strategies through different types of detected target obstacles, greatly enhance the intelligence level of intelligent cleaning equipment, and improve the refined control degree of intelligent cleaning equipment , solve the problem of insufficient coverage of the cleaning surface caused by lack of obstacle avoidance strategies, and further improve the cleaning quality and cleaning efficiency of intelligent cleaning equipment.
  • control submodule 2052 controls the intelligent cleaning device to perform an automatic obstacle avoidance operation is as follows:
  • the intelligent cleaning device is controlled to perform an automatic obstacle avoidance operation according to the target steering path.
  • the device described in the embodiment of the present invention can determine accurate steering distance information, steering direction information, and steering angle information through the target size information of the target obstacle, improve the accuracy of determining the target steering path, and further improve the intelligent cleaning equipment. Obstacle avoidance efficiency and accuracy are further improved to improve the cleaning quality and cleaning efficiency of intelligent cleaning equipment.
  • control submodule 2052 calculates the specific method of steering distance information, steering direction information, and steering angle information of the intelligent cleaning device according to the target size information of the target obstacle. for:
  • an edge pixel sequence of the target obstacle is extracted, the edge pixel sequence includes the target size A collection of all pixel points within the absolute height range between the apex of the intelligent cleaning device and the bottom point of the intelligent cleaning device in the information;
  • the device described in the embodiment of the present invention can save the computing power of the intelligent cleaning equipment to calculate the target obstacle avoidance point by extracting the edge pixel sequence, improve the precision and accuracy of measuring the target obstacle avoidance point, and improve the rapid calculation of the intelligent cleaning equipment Low space and other gaps can avoid collision damage at the bottom of objects, thereby improving the obstacle avoidance efficiency and accuracy of intelligent cleaning equipment, and further improving the cleaning quality and cleaning efficiency of intelligent cleaning equipment.
  • FIG. 4 is a schematic structural diagram of another intelligent obstacle avoidance device disclosed in an embodiment of the present invention.
  • the device for intelligently avoiding obstacles may include an intelligent cleaning device or a server corresponding to the intelligent cleaning device, wherein the intelligent cleaning device may communicate with the user terminal and/or other intelligent devices in the current area (such as: a smart display screen, a smart image acquisition device, etc.) etc.), where the user terminal includes but is not limited to smart wearable devices (such as smart bracelets, etc.) and/or smart phones (Android phones, iOS phones, etc.), which are not limited in this embodiment of the present invention.
  • the device for avoiding obstacles intelligently may include:
  • a memory 301 storing executable program codes
  • processor 302 coupled to the memory 301;
  • the processor 302 invokes the executable program code stored in the memory 302 to execute some or all of the steps in the intelligent obstacle avoidance method disclosed in Embodiment 1 of the present invention.
  • the embodiment of the present invention discloses a computer storage medium.
  • the computer storage medium stores computer instructions. When the computer instructions are invoked, they are used to execute the steps in the intelligent obstacle avoidance method disclosed in the first embodiment of the present invention.
  • the embodiment of the present invention discloses an intelligent cleaning device, wherein the intelligent cleaning device may include an intelligent obstacle avoidance device, and is used to implement some or all of the steps in the intelligent obstacle avoidance method described in FIG. 1 .
  • the intelligent obstacle avoidance device may be the intelligent obstacle avoidance device described in any one of FIGS. 2-4 , which is not limited in this embodiment of the present invention.
  • the device embodiments described above are only illustrative, and the modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in One place, or it can be distributed to multiple network modules. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without any creative efforts.
  • the computer program codes required for the operation of each part of this manual can be written in any one or more programming languages, including object-oriented programming languages such as Java, Scala, Smalltalk, Eiffel, JADE, Emerald, C++, C#, VB .NET, Python, etc., conventional programming languages such as C language, Visual Basic, Fortran2003, Perl, COBOL 2002, PHP, ABAP, dynamic programming languages such as Python, Ruby and Groovy, or other programming languages.
  • the program code can run entirely on the computer (PC, embedded smart device, etc.), or as an independent software package on the user's computer, or partly on the user's computer and partly on the remote computer, or completely on the remote computer or run on the server.
  • the remote computer can be connected to the user computer through any form of network, such as a local area network (LAN) or wide area network (WAN), or to an external computer (such as through the Internet), or in a cloud computing environment, or as a service Use software as a service (SaaS).
  • LAN local area network
  • WAN wide area network
  • SaaS service Use software as a service
  • a method and device for intelligently avoiding obstacles disclosed in the embodiments of the present invention, and intelligent cleaning equipment disclosed are only preferred embodiments of the present invention, and are only used to illustrate the technical solutions of the present invention. It is not limited thereto; although the present invention has been described in detail with reference to the aforementioned embodiments, those of ordinary skill in the art should understand; it can still modify the technical solutions described in the aforementioned embodiments, or modify some of the technical features thereof. Equivalent replacements are carried out; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Databases & Information Systems (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)

Abstract

An intelligent obstacle avoidance method and apparatus, and an intelligent sweeping device. The method comprises: during a movement process of an intelligent sweeping device, determining a target movement area of the intelligent sweeping device (101); collecting area information of the target movement area (102); determining whether there is a target obstacle in the target moving area according to the area information (103); when a determination result is yes, determining the position and other information of the target obstacle (104); and controlling, according to the position and the other information of the target obstacle, the intelligent sweeping device to perform obstacle avoidance (105), wherein the other information comprises size information and category information. By means of the method, area information on an advancing path can be collected during an advancing process of an intelligent sweeping device, and an obstacle on the path is intelligently identified, so as to realize accurate obstacle avoidance with respect to the obstacle, thereby improving the sweeping efficiency of the intelligent sweeping device; moreover, a corresponding obstacle avoidance strategy is matched by means of accurately identifying the category of the obstacle, thereby further improving the obstacle avoidance precision, and increasing the coverage of a sweeping surface to the greatest possible extent.

Description

智能避开障碍的方法及装置Method and device for avoiding obstacles intelligently 技术领域technical field
本发明涉及智能设备技术领域,尤其涉及一种智能避开障碍的方法及装置、智能清扫设备。The invention relates to the technical field of intelligent equipment, in particular to a method and device for intelligently avoiding obstacles, and intelligent cleaning equipment.
背景技术Background technique
随着人工智能技术的不断发展,人工智能产品逐渐走进人们的生活,为人们的生活提供诸多便利,例如智能扫地机器人,能够自动清扫区域,为用户减轻清扫任务。With the continuous development of artificial intelligence technology, artificial intelligence products have gradually entered people's lives, providing many conveniences for people's lives, such as intelligent sweeping robots, which can automatically clean areas and reduce cleaning tasks for users.
在实际应用中,智能扫地机器人主要是按照预先设置好的路径或者随机路径进行清扫。然而,实践发现,现有的智能扫地机器人在清扫过程中遇到障碍物时经常出现乱撞导致降低了清扫效率,甚至被障碍物挡住无法继续清扫的发生情况。可见,如何提供一种智能识别障碍物,以提高智能清扫设备的清扫效率的技术方案显得尤为重要。In practical applications, the intelligent sweeping robot mainly cleans according to a preset path or a random path. However, it has been found in practice that the existing intelligent sweeping robots often bump into obstacles when they encounter obstacles during the cleaning process, resulting in reduced cleaning efficiency, and even being blocked by obstacles and unable to continue cleaning. It can be seen that how to provide a technical solution for intelligently identifying obstacles to improve the cleaning efficiency of intelligent cleaning equipment is particularly important.
发明内容Contents of the invention
本发明提供了一种智能避开障碍的方法及装置、智能清扫设备,能够在智能清扫设备行进过程中采集行进路径上的区域信息,智能识别路径上的障碍物,进而实现对障碍物的准确避障,提高了智能清扫设备的清扫效率,同时通过准确识别障碍物的类别,匹配相应的避障策略,进一步提升避障精度,最大限度增加清扫面的覆盖程度。The invention provides a method and device for intelligently avoiding obstacles, and intelligent cleaning equipment, which can collect area information on the traveling path during the traveling process of the intelligent cleaning equipment, intelligently identify obstacles on the path, and then realize accurate detection of obstacles. Obstacle avoidance improves the cleaning efficiency of intelligent cleaning equipment. At the same time, by accurately identifying the types of obstacles and matching corresponding obstacle avoidance strategies, the accuracy of obstacle avoidance is further improved and the coverage of the cleaning surface is maximized.
为了解决上述技术问题,本发明第一方面公开了一种智能避开障碍的方法,所述方法包括:In order to solve the above technical problems, the first aspect of the present invention discloses a method for intelligently avoiding obstacles, the method comprising:
在所述智能清扫设备移动过程中,确定所述智能清扫设备的目标移动区域;During the moving process of the intelligent cleaning equipment, determining the target moving area of the intelligent cleaning equipment;
采集所述目标移动区域的区域信息,所述区域信息包括图像信息和/或红外信息;collecting area information of the target moving area, where the area information includes image information and/or infrared information;
根据所述区域信息判断所述目标移动区域是否存在阻碍所述智能清扫设备移动的目标障碍物;judging according to the area information whether there is a target obstacle in the target movement area that hinders the movement of the intelligent cleaning device;
当判断结果为是时,确定所述目标障碍物的位置以及其他信息,并根据所述目标障碍物的位置以及所述其他信息控制所述智能清扫设备进行避障,所述其他信息包括尺寸信息以及类别信息。When the judgment result is yes, determine the position of the target obstacle and other information, and control the intelligent cleaning device to avoid obstacles according to the position of the target obstacle and the other information, the other information includes size information and category information.
作为一种可选的实施方式,在本发明第一方面中,所述确定所述目标障碍物的位置以及其他信息,包括:As an optional implementation manner, in the first aspect of the present invention, the determining the position of the target obstacle and other information includes:
根据所述区域信息确定所述目标障碍物的位置;determining the position of the target obstacle according to the area information;
确定所述目标障碍物的目标图像集,并基于预设的图像检测模型,对所述目标图像集进行特征提取,得到所述目标障碍物的特征检测结果,将所述特征检测结果作为所述目标障碍物的其他信息,所述特征检测结果包括所述目标障碍物的目标类别信息以及所述目标障碍物的目标尺寸信息;determining the target image set of the target obstacle, and based on a preset image detection model, performing feature extraction on the target image set to obtain a feature detection result of the target obstacle, and using the feature detection result as the other information of the target obstacle, the feature detection result includes target category information of the target obstacle and target size information of the target obstacle;
其中,所述确定所述目标障碍物的目标图像集,包括:Wherein, the determination of the target image set of the target obstacle includes:
根据所述智能清扫设备的实时位置和所述目标障碍物的位置,判断所述智能清扫设备与所述目标障碍物之间的距离是否大于等于第一预设距离,当判断结果为是时,获取所述目标障碍物的第一图像,所述第一图像用于识别所述目标障碍物的类别信息;According to the real-time position of the intelligent cleaning device and the position of the target obstacle, it is judged whether the distance between the intelligent cleaning device and the target obstacle is greater than or equal to a first preset distance, and when the judgment result is yes, acquiring a first image of the target obstacle, where the first image is used to identify category information of the target obstacle;
判断所述智能清扫设备与所述目标障碍物之间的距离是否小于所述第一预设距离且大于等于第二预设距离,当判断结果为是时,获取所述目标障碍物的第二图像,所述第二图像包括景深信息,用于检测所述目标障碍物的三维尺寸信息;Judging whether the distance between the intelligent cleaning device and the target obstacle is less than the first preset distance and greater than or equal to a second preset distance, and when the judgment result is yes, obtain the second distance of the target obstacle An image, the second image includes depth of field information for detecting three-dimensional size information of the target obstacle;
将所述第一图像以及所述第二图像确定为所述目标障碍物的目标图像集。The first image and the second image are determined as a target image set of the target obstacle.
作为一种可选的实施方式,在本发明第一方面中,所述基于预设的图像检测模型,对所述目标图像集进行特征提取,得到所述目标障碍物的特征检测结果,包括:As an optional implementation manner, in the first aspect of the present invention, the feature extraction of the target image set based on the preset image detection model to obtain the feature detection result of the target obstacle includes:
将所述第一图像输入预设的图像检测模型的图像识别分支,对所述第一图像进行图像识别操作,得到所述第一图像中所述目标障碍物对应的特征向量;根据所述目标障碍物对应的特征向量,确定所述目标障碍物对应的类别概率集合;从所述类别概率集合中确定出概率值最高的类别作为所述目标障碍物的目标类别信息;Inputting the first image into the image recognition branch of the preset image detection model, performing an image recognition operation on the first image to obtain a feature vector corresponding to the target obstacle in the first image; according to the target The feature vector corresponding to the obstacle is used to determine the category probability set corresponding to the target obstacle; the category with the highest probability value is determined from the category probability set as the target category information of the target obstacle;
根据所述目标障碍物的类别信息,确定所述目标障碍物的初始尺寸模型;determining an initial size model of the target obstacle according to the category information of the target obstacle;
将所述第二图像输入所述图像检测模型的图像检测分支,得到所述第二图像中所述目标障碍物的景深信息;根据所述景深信息,对所述初始尺寸模型进行重建,得到所述目标障碍物的目标尺寸信息;Input the second image into the image detection branch of the image detection model to obtain the depth information of the target obstacle in the second image; reconstruct the initial size model according to the depth information to obtain the The target size information of the target obstacle;
将所述目标障碍物的目标类别信息以及所述目标尺寸信息确定为所述目标障碍物的特征检测结果。The target category information and the target size information of the target obstacle are determined as the feature detection result of the target obstacle.
作为一种可选的实施方式,在本发明第一方面中,所述根据所述景深信息,对所述初始尺寸模型进行重建,得到所述目标障碍物的目标尺寸信息,包括:As an optional implementation manner, in the first aspect of the present invention, the reconstruction of the initial size model according to the depth information to obtain the target size information of the target obstacle includes:
根据所述景深信息,确定所述第二图像中所述目标障碍物对应的所有像素点的景深特征;According to the depth of field information, determine the depth of field features of all pixels corresponding to the target obstacle in the second image;
将所有所述像素点的景深特征进行转化操作,确定出所有所述像素点的目标景深特征以及所述初始尺寸模型中需要重建的目标像素点集合;其中,所述将所有所述像素点的景深特征进行转化操作,包括:将所有所述像素点的景深特征映射到所述初始尺寸模型中;Transforming the depth features of all the pixels to determine the target depth features of all the pixels and the set of target pixels that need to be reconstructed in the initial size model; wherein, the Transforming the depth of field features, including: mapping the depth of field features of all the pixels into the initial size model;
根据所有所述像素点的目标景深特征,对所述目标像素点集合进行重建,得到所述目标障碍物的目标尺寸信息。According to the target depth features of all the pixels, the set of target pixels is reconstructed to obtain the target size information of the target obstacle.
作为一种可选的实施方式,在本发明第一方面中,所述根据所述目标障碍物的位置以及所述其他信息控制所述智能清扫设备进行避障,包括:As an optional implementation manner, in the first aspect of the present invention, the controlling the intelligent cleaning device to avoid obstacles according to the position of the target obstacle and the other information includes:
根据所述目标障碍物的特征信息以及预先确定出的地图信息,确定目标避障路径;determining a target obstacle avoidance path according to characteristic information of the target obstacle and predetermined map information;
根据所述目标障碍物的目标类别信息,确定与所述目标类别信息相匹配的避障控制方式;determining an obstacle avoidance control mode that matches the target category information according to the target category information of the target obstacle;
根据所述目标避障路径以及所述避障控制方式,控制所述智能清扫设备进行避障;controlling the intelligent cleaning device to avoid obstacles according to the target obstacle avoidance path and the obstacle avoidance control mode;
其中,所述根据所述目标障碍物的目标类别信息,确定与所述目标类别信息相匹配的避障控制方式,包括:Wherein, according to the target category information of the target obstacle, determining an obstacle avoidance control method that matches the target category information includes:
判断所述目标类别是否属于第一类别,当判断结果为是时,控制所述智能清扫设备执行自动避障操作,所述第一类别用于表征类别为需要避让且无法进行清扫的障碍物;Judging whether the target category belongs to the first category, when the judgment result is yes, controlling the intelligent cleaning device to perform an automatic obstacle avoidance operation, the first category is used to represent obstacles that need to be avoided and cannot be cleaned;
判断所述目标类别信息是否属于第二类别,当判断结果为是时,控制所述 智能清扫设备执行自动避障操作且输出警告信息,所述第二类别用于表征类别为需要避让、清扫且不属于所述智能清扫设备清扫类别范围的障碍物,所述警告信息用于提示目标人员需要对所述目标障碍物进行清扫;Judging whether the target category information belongs to the second category, when the judgment result is yes, controlling the intelligent cleaning device to perform an automatic obstacle avoidance operation and output a warning message, the second category is used to indicate that the category needs to be avoided, cleaned and For obstacles that do not belong to the cleaning category of the intelligent cleaning device, the warning information is used to prompt the target personnel to clean the target obstacle;
判断所述目标类别信息是否属于第三类别,当判断结果为是时,控制所述智能清扫设备不执行避让操作,所述第三类别用于表征类别为需要清扫且属于所述智能清扫设备清扫类别范围的障碍物。Judging whether the target category information belongs to the third category, when the judgment result is yes, controlling the intelligent cleaning device not to perform avoidance operation, the third category is used to indicate that the category needs to be cleaned and belongs to the cleaning of the intelligent cleaning device Category-wide obstacles.
作为一种可选的实施方式,在本发明第一方面中,所述根据所述目标障碍物的特征信息以及预先确定出的地图信息,确定目标避障路径包括:As an optional implementation manner, in the first aspect of the present invention, the determining the target obstacle avoidance path according to the characteristic information of the target obstacle and the predetermined map information includes:
根据所述目标障碍物的特征信息,更新预先确定出的地图信息以生成目标地图信息;Updating predetermined map information to generate target map information according to characteristic information of the target obstacle;
根据所述目标障碍物的位置以及所述目标地图信息,确定出所述智能清扫设备的目标避障路径;determining a target obstacle avoidance path of the intelligent cleaning device according to the position of the target obstacle and the target map information;
其中,所述根据所述目标障碍物的特征信息,更新预先确定出的地图信息以生成目标地图信息,包括:Wherein, the updating of the predetermined map information to generate the target map information according to the characteristic information of the target obstacle includes:
根据所述目标障碍物的特征信息,判断所述目标障碍物是否为移动障碍物;judging whether the target obstacle is a moving obstacle according to the characteristic information of the target obstacle;
当判断结果为是时,根据所述目标障碍物的移动方向以及移动速度,确定出所述目标障碍物的预估移动位置;When the judgment result is yes, determine the estimated moving position of the target obstacle according to the moving direction and moving speed of the target obstacle;
根据所述目标障碍物的预估移动位置,对所述预先确定出的地图信息进行动态更新以生成目标地图信息。According to the estimated moving position of the target obstacle, the predetermined map information is dynamically updated to generate target map information.
作为一种可选的实施方式,在本发明第一方面中,所述控制所述智能清扫设备执行自动避障操作,包括:As an optional implementation manner, in the first aspect of the present invention, the controlling the intelligent cleaning device to perform an automatic obstacle avoidance operation includes:
根据所述目标障碍物的目标尺寸信息,计算所述智能清扫设备的转向距离信息、转向方向信息以及转向角度信息;calculating the steering distance information, steering direction information, and steering angle information of the intelligent cleaning device according to the target size information of the target obstacle;
根据所述转向方向信息以及所述转向角度信息,确定目标转向路径;determining a target steering path according to the steering direction information and the steering angle information;
控制所述智能清扫设备按照所述目标转向路径执行自动避障操作。The intelligent cleaning device is controlled to perform an automatic obstacle avoidance operation according to the target steering path.
作为一种可选的实施方式,在本发明第一方面中,所述根据所述目标障碍物的目标尺寸信息,计算所述智能清扫设备的转向距离信息、转向方向信息以及转向角度信息,包括:As an optional implementation manner, in the first aspect of the present invention, the calculation of the steering distance information, steering direction information, and steering angle information of the intelligent cleaning device according to the target size information of the target obstacle includes :
根据所述目标障碍物的目标尺寸信息、所述智能清扫设备的顶部位置以及 所述智能清扫设备的底部位置,提取所述目标障碍物的边缘像素序列,所述边缘像素序列包括所述目标尺寸信息中位于所述智能清扫设备的顶点与所述智能清扫设备的底点之间绝对高度范围内的所有像素点集合;According to the target size information of the target obstacle, the top position of the intelligent cleaning device and the bottom position of the intelligent cleaning device, an edge pixel sequence of the target obstacle is extracted, the edge pixel sequence includes the target size A collection of all pixel points within the absolute height range between the apex of the intelligent cleaning device and the bottom point of the intelligent cleaning device in the information;
计算所述边缘像素序列中每一边缘像素点与所述智能清扫设备之间的水平距离,得到所有所述边缘像素点对应的水平距离集合;Calculating the horizontal distance between each edge pixel in the edge pixel sequence and the intelligent cleaning device to obtain a set of horizontal distances corresponding to all the edge pixels;
从所述水平距离集合中筛选出所述水平距离最小的边缘像素点作为目标避障像素点;Selecting the edge pixel point with the smallest horizontal distance from the horizontal distance set as the target obstacle avoidance pixel point;
根据所述目标避障像素点,计算所述智能清扫设备的转向距离信息、转向方向信息以及转向角度信息。Calculate the steering distance information, steering direction information, and steering angle information of the intelligent cleaning device according to the target obstacle avoidance pixel.
本发明第二方面公开了一种智能避开障碍的装置,所述装置包括:The second aspect of the present invention discloses an intelligent obstacle avoidance device, which includes:
第一确定模块,用于在所述智能清扫设备移动过程中,确定所述智能清扫设备的目标移动区域;A first determination module, configured to determine a target moving area of the intelligent cleaning device during the movement of the intelligent cleaning device;
采集模块,用于采集所述目标移动区域的区域信息,所述区域信息包括图像信息和/或红外信息;A collection module, configured to collect area information of the target moving area, where the area information includes image information and/or infrared information;
判断模块,用于根据所述区域信息判断所述目标移动区域是否存在阻碍所述智能清扫设备移动的目标障碍物;A judging module, configured to judge, according to the area information, whether there is a target obstacle in the target moving area that hinders the movement of the intelligent cleaning device;
第二确定模块,用于当所述判断模块的判断结果为是时,确定所述目标障碍物的位置以及其他信息;A second determination module, configured to determine the position of the target obstacle and other information when the determination result of the determination module is yes;
控制模块,用于根据所述目标障碍物的位置以及所述其他信息控制所述智能清扫设备进行避障,所述其他信息包括尺寸信息以及类别信息。A control module, configured to control the intelligent cleaning device to avoid obstacles according to the position of the target obstacle and the other information, the other information including size information and category information.
作为一种可选的实施方式,在本发明第二方面中,所述第二确定模块,包括:As an optional implementation manner, in the second aspect of the present invention, the second determination module includes:
第一确定子模块,用于根据所述区域信息确定所述目标障碍物的位置;A first determining submodule, configured to determine the position of the target obstacle according to the area information;
第二确定子模块,用于确定所述目标障碍物的目标图像集,并基于预设的图像检测模型,对所述目标图像集进行特征提取,得到所述目标障碍物的特征检测结果,将所述特征检测结果作为所述目标障碍物的其他信息,所述特征检测结果包括所述目标障碍物的目标类别信息以及所述目标障碍物的目标尺寸信息;The second determining submodule is used to determine the target image set of the target obstacle, and based on a preset image detection model, perform feature extraction on the target image set to obtain a feature detection result of the target obstacle, and The feature detection result is used as other information of the target obstacle, and the feature detection result includes target category information of the target obstacle and target size information of the target obstacle;
其中,所述第二确定子模块确定所述目标障碍物的目标图像集的具体方式 为:Wherein, the specific manner in which the second determining submodule determines the target image set of the target obstacle is:
根据所述智能清扫设备的实时位置和所述目标障碍物的位置,判断所述智能清扫设备与所述目标障碍物之间的距离是否大于等于第一预设距离,当判断结果为是时,获取所述目标障碍物的第一图像,所述第一图像用于识别所述目标障碍物的类别信息;According to the real-time position of the intelligent cleaning device and the position of the target obstacle, it is judged whether the distance between the intelligent cleaning device and the target obstacle is greater than or equal to a first preset distance, and when the judgment result is yes, acquiring a first image of the target obstacle, where the first image is used to identify category information of the target obstacle;
判断所述智能清扫设备与所述目标障碍物之间的距离是否小于所述第一预设距离且大于等于第二预设距离,当判断结果为是时,获取所述目标障碍物的第二图像,所述第二图像包括景深信息,用于检测所述目标障碍物的三维尺寸信息;Judging whether the distance between the intelligent cleaning device and the target obstacle is less than the first preset distance and greater than or equal to a second preset distance, and when the judgment result is yes, obtain the second distance of the target obstacle An image, the second image includes depth of field information for detecting three-dimensional size information of the target obstacle;
将所述第一图像以及所述第二图像确定为所述目标障碍物的目标图像集。The first image and the second image are determined as a target image set of the target obstacle.
作为一种可选的实施方式,在本发明第二方面中,所述第二确定子模块基于预设的图像检测模型,对所述目标图像集进行特征提取,得到所述目标障碍物的特征检测结果的具体方式为:As an optional implementation, in the second aspect of the present invention, the second determining submodule extracts features from the target image set based on a preset image detection model to obtain the features of the target obstacle The specific methods of the test results are as follows:
将所述第一图像输入预设的图像检测模型的图像识别分支,对所述第一图像进行图像识别操作,得到所述第一图像中所述目标障碍物对应的特征向量;根据所述目标障碍物对应的特征向量,确定所述目标障碍物对应的类别概率集合;从所述类别概率集合中确定出概率值最高的类别作为所述目标障碍物的目标类别信息;Inputting the first image into the image recognition branch of the preset image detection model, performing an image recognition operation on the first image to obtain a feature vector corresponding to the target obstacle in the first image; according to the target The feature vector corresponding to the obstacle is used to determine the category probability set corresponding to the target obstacle; the category with the highest probability value is determined from the category probability set as the target category information of the target obstacle;
根据所述目标障碍物的类别信息,确定所述目标障碍物的初始尺寸模型;determining an initial size model of the target obstacle according to the category information of the target obstacle;
将所述第二图像输入所述图像检测模型的图像检测分支,得到所述第二图像中所述目标障碍物的景深信息;根据所述景深信息,对所述初始尺寸模型进行重建,得到所述目标障碍物的目标尺寸信息;Input the second image into the image detection branch of the image detection model to obtain the depth information of the target obstacle in the second image; reconstruct the initial size model according to the depth information to obtain the The target size information of the target obstacle;
将所述目标障碍物的目标类别信息以及所述目标尺寸信息确定为所述目标障碍物的特征检测结果。The target category information and the target size information of the target obstacle are determined as the feature detection result of the target obstacle.
作为一种可选的实施方式,在本发明第二方面中,所述第二确定子模块根据所述景深信息,对所述初始尺寸模型进行重建,得到所述目标障碍物的目标尺寸信息的具体方式为:As an optional implementation manner, in the second aspect of the present invention, the second determination submodule reconstructs the initial size model according to the depth information to obtain the target size information of the target obstacle. The specific way is:
根据所述景深信息,确定所述第二图像中所述目标障碍物对应的所有像素点的景深特征;According to the depth of field information, determine the depth of field features of all pixels corresponding to the target obstacle in the second image;
将所有所述像素点的景深特征进行转化操作,确定出所有所述像素点的目标景深特征以及所述初始尺寸模型中需要重建的目标像素点集合;其中,所述将所有所述像素点的景深特征进行转化操作,包括:将所有所述像素点的景深特征映射到所述初始尺寸模型中;Transforming the depth features of all the pixels to determine the target depth features of all the pixels and the set of target pixels that need to be reconstructed in the initial size model; wherein, the Transforming the depth of field features, including: mapping the depth of field features of all the pixels into the initial size model;
根据所有所述像素点的目标景深特征,对所述目标像素点集合进行重建,得到所述目标障碍物的目标尺寸信息。According to the target depth features of all the pixels, the set of target pixels is reconstructed to obtain the target size information of the target obstacle.
作为一种可选的实施方式,在本发明第二方面中,所述控制模块,包括:As an optional implementation manner, in the second aspect of the present invention, the control module includes:
第三确定子模块,用于根据所述目标障碍物的目标类别信息,确定与所述目标类别信息相匹配的避障控制方式;A third determining submodule, configured to determine an obstacle avoidance control method that matches the target category information according to the target category information of the target obstacle;
控制子模块,根据所述目标障碍物的位置以及所述避障控制方式,控制所述智能清扫设备进行避障;The control submodule controls the intelligent cleaning device to avoid obstacles according to the position of the target obstacle and the obstacle avoidance control mode;
所述控制子模块,具体用于:The control submodule is specifically used for:
判断所述目标类别是否属于第一类别,当判断结果为是时,控制所述智能清扫设备执行自动避障操作,所述第一类别用于表征类别为需要避让且无法进行清扫的障碍物;Judging whether the target category belongs to the first category, when the judgment result is yes, controlling the intelligent cleaning device to perform an automatic obstacle avoidance operation, the first category is used to represent obstacles that need to be avoided and cannot be cleaned;
判断所述目标类别信息是否属于第二类别,当判断结果为是时,控制所述智能清扫设备执行自动避障操作且输出警告信息,所述第二类别用于表征类别为需要避让、清扫且不属于所述智能清扫设备清扫类别范围的障碍物,所述警告信息用于提示目标人员需要对所述目标障碍物进行清扫;Judging whether the target category information belongs to the second category, when the judgment result is yes, controlling the intelligent cleaning device to perform an automatic obstacle avoidance operation and output a warning message, the second category is used to indicate that the category needs to be avoided, cleaned and For obstacles that do not belong to the cleaning category of the intelligent cleaning device, the warning information is used to prompt the target personnel to clean the target obstacle;
判断所述目标类别信息是否属于第三类别,当判断结果为是时,控制所述智能清扫设备不执行避让操作,所述第三类别用于表征类别为需要清扫且属于所述智能清扫设备清扫类别范围的障碍物。Judging whether the target category information belongs to the third category, when the judgment result is yes, controlling the intelligent cleaning device not to perform avoidance operation, the third category is used to indicate that the category needs to be cleaned and belongs to the cleaning of the intelligent cleaning device Category-wide obstacles.
作为一种可选的实施方式,在本发明第二方面中,所述控制子模块控制所述智能清扫设备执行自动避障操作的具体方式为:As an optional implementation manner, in the second aspect of the present invention, the specific manner in which the control submodule controls the intelligent cleaning device to perform an automatic obstacle avoidance operation is as follows:
根据所述目标障碍物的目标尺寸信息,计算所述智能清扫设备的转向距离信息、转向方向信息以及转向角度信息;calculating the steering distance information, steering direction information, and steering angle information of the intelligent cleaning device according to the target size information of the target obstacle;
根据所述转向方向信息以及所述转向角度信息,确定目标转向路径;determining a target steering path according to the steering direction information and the steering angle information;
控制所述智能清扫设备按照所述目标转向路径执行自动避障操作。The intelligent cleaning device is controlled to perform an automatic obstacle avoidance operation according to the target steering path.
作为一种可选的实施方式,在本发明第二方面中,所述控制子模块根据所 述目标障碍物的目标尺寸信息,计算所述智能清扫设备的转向距离信息、转向方向信息以及转向角度信息的具体方式为:As an optional implementation, in the second aspect of the present invention, the control submodule calculates the steering distance information, steering direction information, and steering angle of the intelligent cleaning device according to the target size information of the target obstacle The specific way of information is:
根据所述目标障碍物的目标尺寸信息、所述智能清扫设备的顶部位置以及所述智能清扫设备的底部位置,提取所述目标障碍物的边缘像素序列,所述边缘像素序列包括所述目标尺寸信息中位于所述智能清扫设备的顶点与所述智能清扫设备的底点之间绝对高度范围内的所有像素点集合;According to the target size information of the target obstacle, the top position of the intelligent cleaning device and the bottom position of the intelligent cleaning device, an edge pixel sequence of the target obstacle is extracted, the edge pixel sequence includes the target size A collection of all pixel points within the absolute height range between the apex of the intelligent cleaning device and the bottom point of the intelligent cleaning device in the information;
计算所述边缘像素序列中每一边缘像素点与所述智能清扫设备之间的水平距离,得到所有所述边缘像素点对应的水平距离集合;Calculating the horizontal distance between each edge pixel in the edge pixel sequence and the intelligent cleaning device to obtain a set of horizontal distances corresponding to all the edge pixels;
从所述水平距离集合中筛选出所述水平距离最小的边缘像素点作为目标避障像素点;Selecting the edge pixel point with the smallest horizontal distance from the horizontal distance set as the target obstacle avoidance pixel point;
根据所述目标避障像素点,计算所述智能清扫设备的转向距离信息、转向方向信息以及转向角度信息。Calculate the steering distance information, steering direction information, and steering angle information of the intelligent cleaning device according to the target obstacle avoidance pixel.
本发明第三方面公开了一种智能清扫设备,所述智能清扫设备包括:The third aspect of the present invention discloses an intelligent cleaning device, which includes:
存储有可执行程序代码的存储器;a memory storing executable program code;
与所述存储器耦合的处理器;a processor coupled to the memory;
所述处理器调用所述存储器中存储的所述可执行程序代码,以实现本发明第一方面公开的任意一种智能避开障碍的方法中的部分或全部步骤。The processor invokes the executable program code stored in the memory to implement some or all of the steps in any intelligent obstacle avoidance method disclosed in the first aspect of the present invention.
本发明第四方面公开了另一种智能避开障碍的装置,所述装置包括:The fourth aspect of the present invention discloses another intelligent obstacle avoidance device, which includes:
存储有可执行程序代码的存储器;a memory storing executable program code;
与所述存储器耦合的处理器;a processor coupled to the memory;
所述处理器调用所述存储器中存储的所述可执行程序代码,执行本发明第一方面公开的任意一种智能避开障碍的方法中的部分或全部步骤。The processor invokes the executable program code stored in the memory to execute some or all of the steps in any intelligent obstacle avoidance method disclosed in the first aspect of the present invention.
本发明第五方面公开了一种计算机存储介质,所述计算机存储介质存储有计算机指令,所述计算机指令被调用时,用于执行本发明第一方面公开的任意一种智能避开障碍的方法中的部分或全部步骤。The fifth aspect of the present invention discloses a computer storage medium, the computer storage medium stores computer instructions, and when the computer instructions are invoked, it is used to execute any intelligent obstacle avoidance method disclosed in the first aspect of the present invention Some or all of the steps in .
与现有技术相比,本发明具有以下有益效果:Compared with the prior art, the present invention has the following beneficial effects:
本发明公开了一种智能避开障碍的方法及装置、智能清扫设备,该方法包括:在智能清扫设备移动过程中,确定智能清扫设备的目标移动区域;采集目标移动区域的区域信息;根据区域信息判断目标移动区域是否存在目标障碍物; 当判断结果为是时,确定目标障碍物的位置以及其他信息,并根据目标障碍物的位置以及其他信息控制智能清扫设备进行避障,其他信息包括尺寸信息以及类别信息。可见,本发明能够在智能清扫设备行进过程中采集行进路径上的区域信息,智能识别路径上的障碍物,进而实现对障碍物的准确避障,提高了智能清扫设备的清扫效率,同时通过准确识别障碍物的类别,匹配相应的避障策略,进一步提升避障精度,最大限度增加清扫面的覆盖程度。The invention discloses a method and device for intelligently avoiding obstacles, and intelligent cleaning equipment. The method includes: determining the target moving area of the intelligent cleaning equipment during the moving process of the intelligent cleaning equipment; collecting area information of the target moving area; information to judge whether there is a target obstacle in the target moving area; when the judgment result is yes, determine the position of the target obstacle and other information, and control the intelligent cleaning device to avoid obstacles according to the position of the target obstacle and other information, other information includes size information and category information. It can be seen that the present invention can collect area information on the traveling path during the traveling process of the intelligent cleaning equipment, intelligently identify obstacles on the path, and then realize accurate obstacle avoidance of obstacles, improve the cleaning efficiency of the intelligent cleaning equipment, and at the same time pass accurate Identify the types of obstacles and match the corresponding obstacle avoidance strategies to further improve the accuracy of obstacle avoidance and maximize the coverage of the cleaning surface.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without creative effort.
图1是本发明实施例公开的一种智能避开障碍的方法的流程示意图;FIG. 1 is a schematic flowchart of a method for intelligently avoiding obstacles disclosed in an embodiment of the present invention;
图2是本发明实施例公开的一种智能避开障碍的装置的结构示意图;Fig. 2 is a schematic structural diagram of an intelligent obstacle avoidance device disclosed in an embodiment of the present invention;
图3是本发明实施例公开的另一种智能避开障碍的装置的结构示意图;Fig. 3 is a schematic structural diagram of another intelligent obstacle avoidance device disclosed in an embodiment of the present invention;
图4是本发明实施例公开的又一种智能避开障碍的装置的结构示意图。Fig. 4 is a schematic structural diagram of another intelligent obstacle avoidance device disclosed in an embodiment of the present invention.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、装置、产品或端没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或端固有的其他步骤或单元。The terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, device, product, or terminal comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally further includes For other steps or units inherent in these processes, methods, products or ends.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present invention. The occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments.
本发明公开了一种智能避开障碍的方法及装置、智能清扫设备,能够在智能清扫设备行进过程中采集行进路径上的区域信息,如图像信息和/或红外信息,智能识别路径上的障碍物,进而实现对障碍物的准确避障,提高了智能清扫设备的清扫效率,同时通过准确识别障碍物的类别,匹配相应的避障策略,满足不同的清洁需求,进一步提升避障精度,最大限度增加清扫面的覆盖程度。以下分别进行详细的说明。The invention discloses a method and device for intelligently avoiding obstacles, and intelligent cleaning equipment, which can collect area information on the traveling path during the traveling process of the intelligent cleaning equipment, such as image information and/or infrared information, and intelligently identify obstacles on the path Objects, thereby realizing accurate obstacle avoidance and improving the cleaning efficiency of intelligent cleaning equipment. At the same time, by accurately identifying the types of obstacles and matching corresponding obstacle avoidance strategies to meet different cleaning needs, the accuracy of obstacle avoidance is further improved, and the maximum Maximize the coverage of the cleaning surface. Each will be described in detail below.
实施例一Embodiment one
请参阅图1,图1是本发明实施例公开的一种智能避开障碍的方法的流程示意图。其中,图1所描述的方法可以应用于智能避开障碍的自动控制装置中,该智能避开障碍的自动控制装置可以包括智能清扫设备或智能清扫设备对应的服务器,其中智能清扫设备可以与用户终端和/或当前区域的其他智能设备(如:智能显示屏、智能图像采集设备等)进行通信连接,其中,用户终端包括但不限于智能穿戴设备(如智能手环等)和/或智能手机(Android手机、iOS手机等),本发明实施例不做限定。如图1所示,该智能避开障碍的方法可以包括以下操作:Please refer to FIG. 1 . FIG. 1 is a schematic flowchart of a method for intelligently avoiding obstacles disclosed in an embodiment of the present invention. Wherein, the method described in FIG. 1 can be applied to an automatic control device for intelligent obstacle avoidance, and the automatic control device for intelligent obstacle avoidance can include intelligent cleaning equipment or a server corresponding to the intelligent cleaning equipment, wherein the intelligent cleaning equipment can communicate with the user Terminals and/or other smart devices in the current area (such as: smart display screens, smart image acquisition devices, etc.) (Android mobile phone, iOS mobile phone, etc.), the embodiments of the present invention are not limited. As shown in Figure 1, the method for avoiding obstacles intelligently may include the following operations:
101、在智能清扫设备移动过程中,确定智能清扫设备的目标移动区域。101. During the moving process of the smart cleaning device, determine the target moving area of the smart cleaning device.
本发明实施例中,智能清扫设备的目标移动区域可以是在清扫过程中或者巡航过程中,根据预设的移动规则或巡航规则确定出的行进区域,比如,智能清扫设备按照预设回形针式的路径对房间的地图进行巡航扫描,则其前进方向所对应的区域即为上述目标移动区域;也可以是根据从移动终端获取到的清扫区域范围而解析出来的目标移动区域,比如,用户在手机APP中的虚拟地图中划定出需要清扫的区域后,将该区域范围发送给智能清扫设备,智能清扫设备根据接收到的区域范围可以确定出该区域范围所对应的目标移动区域;还可以是通过图像或者语音指令而解析出来的目标移动区域,比如,用户发送“扫地 机器人,请把餐桌周围打扫一下”的语音指令,则智能清扫设备可以根据预设清扫范围,确定餐桌周围0.5m范围内的区域作为其目标移动区域。In the embodiment of the present invention, the target movement area of the intelligent cleaning device may be the travel area determined according to the preset movement rules or cruising rules during the cleaning process or the cruising process, for example, the intelligent cleaning device follows the preset paper clip The route scans the map of the room, and the area corresponding to its forward direction is the above-mentioned target moving area; it can also be the target moving area analyzed based on the range of the cleaning area obtained from the mobile terminal. After the area to be cleaned is delineated on the virtual map in the APP, the area range is sent to the smart cleaning device, and the smart cleaning device can determine the target moving area corresponding to the area range according to the received area range; it can also be The target moving area analyzed by images or voice commands, for example, if the user sends a voice command of "sweeping robot, please clean around the dining table", the intelligent cleaning device can determine the range within 0.5m around the dining table according to the preset cleaning range area as its target mobile area.
102、采集目标移动区域的区域信息。102. Collect area information of the target moving area.
本发明实施例中,在确定出智能清扫设备的目标移动区域之后,需要采集目标移动区域的区域信息,包括视觉识别类的信息,距离测量类的信息,比如,图像信息、红外信息、超声回馈信息等中的一种或多种组合。本发明可以通过智能清扫设备自身安装的采集装置获取,比如单目摄像头、双目摄像头、红外感应器、超声波感应器等,也可以是通过接收可与智能清扫设备进行通信的其他智能采集设备发送的信息中获取,比如房间中的智能摄像头将拍摄到的图像发送至智能清扫设备等,本发明实施例不做限定。In the embodiment of the present invention, after the target moving area of the intelligent cleaning device is determined, the area information of the target moving area needs to be collected, including visual recognition information, distance measurement information, such as image information, infrared information, ultrasonic feedback One or more combinations of information, etc. The present invention can be acquired through the acquisition device installed by the intelligent cleaning equipment itself, such as a monocular camera, a binocular camera, an infrared sensor, an ultrasonic sensor, etc., or can be sent by receiving other intelligent acquisition equipment that can communicate with the intelligent cleaning equipment For example, the smart camera in the room sends the captured image to the smart cleaning device, etc., which is not limited in this embodiment of the present invention.
103、根据区域信息判断目标移动区域是否存在阻碍智能清扫设备移动的目标障碍物。103. According to the area information, it is judged whether there is a target obstacle in the target moving area that hinders the movement of the intelligent cleaning device.
本发明实施例中,通过步骤102所采集到的区域信息,可以对目标移动区域中是否存在阻碍智能清扫设备移动的障碍物作出初步判断,比如,通过对图像信息进行物体识别,将识别到的物体与数据库中的障碍物进行匹配,若匹配成功,则可以判断出目标移动区域存在阻碍智能清扫设备移动的目标障碍物。In the embodiment of the present invention, through the area information collected in step 102, a preliminary judgment can be made on whether there are obstacles that hinder the movement of the intelligent cleaning device in the target moving area. For example, by performing object recognition on the image information, the identified The object is matched with the obstacles in the database. If the match is successful, it can be determined that there is a target obstacle in the target moving area that hinders the movement of the intelligent cleaning device.
104、当判断结果为是时,确定目标障碍物的位置以及其他信息。104. When the judgment result is yes, determine the position of the target obstacle and other information.
本发明实施例中,当判断出目标移动区域存在阻碍智能清扫设备移动的目标障碍物之后,确定出目标障碍物的位置以及其他信息,以对智能清扫设备进行避障控制。其中,其他信息包括目标障碍物的类别信息(床、餐桌、书桌、水杯、垃圾袋、橘子皮等)以及尺寸信息(二维尺寸信息、三维尺寸信息等)。In the embodiment of the present invention, after it is determined that there is a target obstacle in the target moving area that hinders the movement of the intelligent cleaning device, the position of the target obstacle and other information are determined to perform obstacle avoidance control on the intelligent cleaning device. Among them, other information includes category information (bed, dining table, desk, water cup, garbage bag, orange peel, etc.) and size information (two-dimensional size information, three-dimensional size information, etc.) of the target obstacle.
105、根据目标障碍物的位置以及其他信息控制智能清扫设备进行避障。105. Control the intelligent cleaning equipment to avoid obstacles according to the position of the target obstacle and other information.
本发明实施例中,在智能清扫设备的行进过程中,根据其实时位置、目标障碍物的位置信息以及其他信息,计算行进过程中的避障点,保持动态探测和路线规划,进而控制转向电机和行进电机进行调整,以控制智能清扫设备进行避障。In the embodiment of the present invention, during the traveling process of the intelligent cleaning device, according to its real-time position, the position information of the target obstacle and other information, the obstacle avoidance points during the traveling process are calculated, dynamic detection and route planning are maintained, and then the steering motor is controlled. Adjust with the traveling motor to control the intelligent cleaning equipment for obstacle avoidance.
可见,本发明实施例所描述的方法能够在智能清扫设备行进过程中采集行进路径上的区域信息,如图像信息和/或红外信息,智能识别路径上的障碍物,进而实现对障碍物的准确避障,提高了智能清扫设备的清扫效率,同时通过准 确识别障碍物的类别,匹配相应的避障策略,满足不同的清洁需求,进一步提升避障精度,最大限度增加清扫面的覆盖程度。It can be seen that the method described in the embodiment of the present invention can collect area information on the travel path of the intelligent cleaning device, such as image information and/or infrared information, and intelligently identify obstacles on the path, thereby realizing accurate detection of obstacles. Obstacle avoidance improves the cleaning efficiency of intelligent cleaning equipment. At the same time, by accurately identifying the type of obstacle and matching the corresponding obstacle avoidance strategy, it can meet different cleaning needs, further improve the accuracy of obstacle avoidance, and maximize the coverage of the cleaning surface.
在一个可选的实施例中,确定目标障碍物的位置以及其他信息,包括:In an optional embodiment, determining the position of the target obstacle and other information includes:
根据区域信息确定目标障碍物的位置;Determine the position of the target obstacle according to the area information;
确定目标障碍物的目标图像集,并基于预设的图像检测模型,对目标图像集进行特征提取,得到目标障碍物的特征检测结果,将特征检测结果作为目标障碍物的其他信息,特征检测结果包括目标障碍物的目标类别信息以及目标障碍物的目标尺寸信息;Determine the target image set of the target obstacle, and based on the preset image detection model, perform feature extraction on the target image set to obtain the feature detection result of the target obstacle, and use the feature detection result as other information of the target obstacle, and the feature detection result Including the target category information of the target obstacle and the target size information of the target obstacle;
其中,确定目标障碍物的目标图像集,包括:Among them, the target image set of the target obstacle is determined, including:
根据智能清扫设备的实时位置和目标障碍物的位置,判断智能清扫设备与目标障碍物之间的距离是否大于等于第一预设距离,当判断结果为是时,获取目标障碍物的第一图像,第一图像用于识别目标障碍物的类别信息;According to the real-time position of the intelligent cleaning device and the position of the target obstacle, determine whether the distance between the intelligent cleaning device and the target obstacle is greater than or equal to the first preset distance, and when the judgment result is yes, obtain the first image of the target obstacle , the first image is used to identify the category information of the target obstacle;
判断智能清扫设备与目标障碍物之间的距离是否小于第一预设距离且大于等于第二预设距离,当判断结果为是时,获取目标障碍物的第二图像,第二图像包括景深信息,用于检测目标障碍物的三维尺寸信息;Judging whether the distance between the intelligent cleaning device and the target obstacle is less than the first preset distance and greater than or equal to the second preset distance, when the judgment result is yes, acquiring a second image of the target obstacle, the second image includes depth of field information , used to detect the three-dimensional size information of the target obstacle;
将第一图像以及所述第二图像确定为目标障碍物的目标图像集。The first image and the second image are determined as a target image set of the target obstacle.
本发明实施例中,根据采集到的目标移动区域的区域信息,可以确定出目标障碍物的位置。举例说明,智能清扫设备在移动过程中不断发射红外信号或者超声信号,通过实时接收到目标障碍物反馈回来的红外信号或者超声信号,即可测算出其与目标障碍物之间的距离,进而得到目标障碍物的位置。与此同时,智能清扫设备可以采集目标障碍物的目标图像集,并通过预先训练好的图像检测模型,对目标图像集中的图像进行特征提取,以得到目标障碍物的特征检测结果。其中,目标图像集可以包括一张待检测图像,也可以包括多张待检测图像,本发明实施例不做限定。需要说明的是,特征检测结果即为上述的其他信息,特征检测结果可以包括目标障碍物的目标类别信息以及目标尺寸信息。In the embodiment of the present invention, the position of the target obstacle can be determined according to the collected area information of the target moving area. For example, the intelligent cleaning device continuously emits infrared or ultrasonic signals during its movement, and by receiving the infrared or ultrasonic signals fed back by the target obstacle in real time, the distance between it and the target obstacle can be calculated, and then obtained The location of the target obstacle. At the same time, the intelligent cleaning device can collect the target image set of the target obstacle, and perform feature extraction on the images in the target image set through the pre-trained image detection model to obtain the feature detection result of the target obstacle. Wherein, the target image set may include one image to be detected, or may include multiple images to be detected, which is not limited in this embodiment of the present invention. It should be noted that the feature detection result is the above-mentioned other information, and the feature detection result may include target category information and target size information of the target obstacle.
该可选的实施例中,智能清扫设备行进过程中,根据智能清扫设备的实时位置以及目标障碍物的位置,采集两张目标障碍物的图像作为目标图像集。其中,考虑到当智能清扫设备距离目标障碍物较远时,采集图像的视野较大,对目标障碍物的整体识别度较好,所以在判断智能清扫设备与目标障碍物之间的 距离大于等于第一预设距离(比如0.5m处)时,采集一张用于识别目标障碍物类别的图像。此时采集到的图像的分辨率可以是低分辨率的,降低智能清扫设备的算力占比,便于快速识别类别信息。需要说明的是,本发明并不限定第一预设距离是固定不变的,第一预设距离可以根据图像视野中目标障碍物的大小做调整,比如目标障碍物在整个图像中的占比接近70%时,设置第一预设距离为0.7m;目标障碍物在整个图像中的占比接近50%时,设置第一预设距离为0.5m。相应的,考虑到智能清扫设备距离目标障碍物较近时,采集到的图像的细节更为清晰、准确,所以在判断智能清扫设备与目标障碍物之间的距离小于第一预设距离且大于等于第二预设距离时,采集一张用于检测目标障碍物三维尺寸信息的图像,且该图像中应当包括景深信息。比如,当智能清扫设备距离目标障碍物为0.2m时,通过3D ToF摄像头拍摄得到包括景深信息的图像,与此同时,智能清扫设备上还可以设置有云台,控制3D ToF摄像头进行上下俯仰扫描,得到更精准的图像。In this optional embodiment, during the travel of the smart cleaning device, two images of the target obstacle are collected as the target image set according to the real-time position of the smart cleaning device and the position of the target obstacle. Among them, considering that when the intelligent cleaning device is far away from the target obstacle, the field of view of the collected image is larger, and the overall recognition of the target obstacle is better, so when judging that the distance between the intelligent cleaning device and the target obstacle is greater than or equal to At the first preset distance (for example, at 0.5m), an image for identifying the category of the target obstacle is collected. The resolution of the images collected at this time can be low-resolution, which reduces the proportion of computing power of the intelligent cleaning equipment and facilitates quick identification of category information. It should be noted that the present invention does not limit the first preset distance to be fixed, and the first preset distance can be adjusted according to the size of the target obstacle in the image field of view, such as the proportion of the target obstacle in the entire image When it is close to 70%, set the first preset distance to 0.7m; when the proportion of the target obstacle in the entire image is close to 50%, set the first preset distance to 0.5m. Correspondingly, considering that when the intelligent cleaning device is closer to the target obstacle, the details of the collected images are clearer and more accurate, so when judging that the distance between the intelligent cleaning device and the target obstacle is less than the first preset distance and greater than When it is equal to the second preset distance, an image for detecting the three-dimensional size information of the target obstacle is collected, and the image should include field depth information. For example, when the distance between the smart cleaning device and the target obstacle is 0.2m, the 3D ToF camera can be used to capture an image including depth of field information. At the same time, the smart cleaning device can also be equipped with a pan/tilt to control the 3D ToF camera to scan up and down , to obtain a more accurate image.
可见,本发明实施例所描述的方法能够通过较远距离采集到的第一图像来快速识别目标障碍物的类别,通过较近距离采集到的第二图像来测算目标障碍物的尺寸信息,有利于提高目标障碍物的识别和检测效率,提升智能清扫设备的清扫效率。It can be seen that the method described in the embodiment of the present invention can quickly identify the type of the target obstacle through the first image collected at a relatively long distance, and measure the size information of the target obstacle through the second image collected at a relatively short distance. It is beneficial to improve the identification and detection efficiency of target obstacles, and improve the cleaning efficiency of intelligent cleaning equipment.
在另一个可选的实施例中,基于预设的图像检测模型,对目标图像集进行特征提取,得到目标障碍物的特征检测结果,包括:In another optional embodiment, based on a preset image detection model, feature extraction is performed on the target image set to obtain a feature detection result of the target obstacle, including:
将第一图像输入预设的图像检测模型的图像识别分支,对第一图像进行图像识别操作,得到第一图像中目标障碍物对应的特征向量;根据目标障碍物对应的特征向量,确定目标障碍物对应的类别概率集合;从类别概率集合中确定出概率值最高的类别作为目标障碍物的目标类别信息;Input the first image into the image recognition branch of the preset image detection model, perform image recognition operation on the first image, and obtain the feature vector corresponding to the target obstacle in the first image; determine the target obstacle according to the feature vector corresponding to the target obstacle The category probability set corresponding to the object; the category with the highest probability value is determined from the category probability set as the target category information of the target obstacle;
根据目标障碍物的类别信息,确定目标障碍物的初始尺寸模型;Determine the initial size model of the target obstacle according to the category information of the target obstacle;
将第二图像输入图像检测模型的图像检测分支,得到第二图像中目标障碍物的景深信息;根据景深信息,对初始尺寸模型进行重建,得到目标障碍物的目标尺寸信息;Input the second image into the image detection branch of the image detection model to obtain the depth information of the target obstacle in the second image; reconstruct the initial size model according to the depth information to obtain the target size information of the target obstacle;
将目标障碍物的目标类别信息以及目标尺寸信息确定为目标障碍物的特征检测结果。The target category information and target size information of the target obstacle are determined as the feature detection result of the target obstacle.
本发明实施例中,图像检测模型是基于正向样本训练得到的深度神经网络模型,将第一图像输入图像检测模型的图像识别分支,通过卷积、池化、激活层以及全连接层的处理,可以得到第一图像对应特征向量。将该特征向量与预设数据库中各个类别参考障碍物图像的参考特征向量进行相似度匹配,得到目标障碍物对应于各个类别参考障碍物的类别概率集合,从该类别概率集合中筛选出概率值最高的类别作为目标障碍物的目标类别信息。进而,可以根据目标障碍物的类别信息,从预设尺寸模型数据库中确定出目标障碍物的初始尺寸模型。举例说明,当检测到目标障碍物是篮球,则可以从预设尺寸模型数据库中查找到与篮球相匹配的模型为球形。In the embodiment of the present invention, the image detection model is a deep neural network model obtained based on forward sample training, and the first image is input into the image recognition branch of the image detection model, and processed through convolution, pooling, activation layer and fully connected layer , the feature vector corresponding to the first image can be obtained. The feature vector is matched with the reference feature vector of each category reference obstacle image in the preset database to obtain the category probability set corresponding to each category reference obstacle of the target obstacle, and the probability value is selected from the category probability set The highest category is used as the target category information of the target obstacle. Furthermore, the initial size model of the target obstacle can be determined from the preset size model database according to the category information of the target obstacle. For example, when it is detected that the target obstacle is a basketball, it can be found from the preset size model database that the model matching the basketball is spherical.
该可选的实施例中,将第二图像输入图像检测模型的图像检测分支,通过图像检测分支的解析,可以得到第二图像中每一像素点的景深信息,进而根据景深信息所反应出来的智能清扫设备与目标障碍物之间的距离信息,对上述确定出的初始尺寸模型进行重建,既可以得到目标障碍物的目标尺寸信息。比如,检测到的目标障碍物是篮球,此时可以通过景深信息计算出该篮球的圆周为75cm,直径为24.6cm。In this optional embodiment, the second image is input into the image detection branch of the image detection model, through the analysis of the image detection branch, the field depth information of each pixel in the second image can be obtained, and then the field depth information reflected according to the field depth information The distance information between the intelligent cleaning device and the target obstacle is reconstructed from the initial size model determined above, and the target size information of the target obstacle can be obtained. For example, if the detected target obstacle is a basketball, it can be calculated from the depth of field information that the circumference of the basketball is 75 cm and the diameter is 24.6 cm.
本发明实施例所描述的方法能够通过较远距离采集到的第一图像来快速识别目标障碍物的类别,准确识别类别的同时降低算力消耗,通过较近距离采集到的第二图像来测算目标障碍物的尺寸信息,精准识别三维尺寸细节,有利于提高目标障碍物的识别和检测效率,进一步提升智能清扫设备的避障的准确率,同时提高智能清扫设备的清扫效率。The method described in the embodiment of the present invention can quickly identify the category of the target obstacle through the first image collected at a relatively long distance, accurately identify the category while reducing the consumption of computing power, and calculate it through the second image collected at a relatively short distance The size information of target obstacles and accurate identification of three-dimensional size details are conducive to improving the identification and detection efficiency of target obstacles, further improving the accuracy of obstacle avoidance of intelligent cleaning equipment, and improving the cleaning efficiency of intelligent cleaning equipment.
在又一个可选的实施例中,根据景深信息,对初始尺寸模型进行重建,得到目标障碍物的目标尺寸信息,包括:In another optional embodiment, the initial size model is reconstructed according to the depth information to obtain the target size information of the target obstacle, including:
根据景深信息,确定第二图像中目标障碍物对应的所有像素点的景深特征;Determining the depth of field features of all pixels corresponding to the target obstacle in the second image according to the depth of field information;
将所有所述像素点的景深特征进行转化操作,确定出所有像素点的目标景深特征以及所述初始尺寸模型中需要重建的目标像素点集合;其中,所述将所有所述像素点的景深特征进行转化操作,包括:将所有所述像素点的景深特征映射到初始尺寸模型中;Transforming the depth of field features of all the pixels to determine the target depth of field features of all pixels and the set of target pixels to be reconstructed in the initial size model; wherein, the depth of field features of all the pixels are Performing a conversion operation, including: mapping the depth features of all the pixels into the initial size model;
根据所有像素点的目标景深特征,对所述目标像素点集合进行重建,得到所述目标障碍物的目标尺寸信息。According to the target depth features of all pixels, the target pixel set is reconstructed to obtain target size information of the target obstacle.
本发明实施例中,因为受限于智能清扫设备的拍摄距离或者视野,可能无法完整拍摄到目标障碍物的完整的图像,则需要根据景深信息对初始尺寸模型进场重建,以得到目标障碍物的更精准的尺寸信息。通过第二图像的景深信息,可以得到第二图像中目标障碍物所对应图像区域中所有像素点的景深特征,假如识别到的目标障碍物为篮球,则只提取第二图像中篮球所对应的图像区域的景深特征。根据这些景深特征所反映出来的尺寸信息,确定出初始尺寸模型中需要重建的目标像素点集合。举例说明,智能清扫设备扫描的景深信息只包含整个篮球的1/4球面,则相对应的,初始尺寸模型中对应的1/4球面位置处的像素点即为需要重建的目标像素点。可以将这些景深特征映射到上述确定出的初始尺寸模型中,对这些需要重建的目标像素点的构成的图像模型的尺寸进行重建,以得到目标障碍物的目标尺寸信息。In the embodiment of the present invention, due to the limitation of the shooting distance or field of view of the intelligent cleaning device, it may not be possible to capture a complete image of the target obstacle, so it is necessary to reconstruct the initial size model according to the depth of field information to obtain the target obstacle more accurate size information. Through the field depth information of the second image, the field depth features of all pixels in the image area corresponding to the target obstacle in the second image can be obtained. If the recognized target obstacle is a basketball, only the image corresponding to the basketball in the second image is extracted. Depth of field characteristics of image regions. According to the size information reflected by these depth features, the set of target pixel points to be reconstructed in the initial size model is determined. For example, the depth of field information scanned by the intelligent cleaning device only includes 1/4 spherical surface of the entire basketball. Correspondingly, the pixel at the corresponding 1/4 spherical surface position in the initial size model is the target pixel point to be reconstructed. These depth features can be mapped to the determined initial size model, and the size of the image model composed of the target pixels to be reconstructed is reconstructed to obtain the target size information of the target obstacle.
可见,本发明实施例所描述的方法能够通过景深信息对目标障碍物的尺寸模型进行重构,以得到目标障碍物的精准的目测尺寸信息,提高智能清扫设备对障碍物的测算精度和准确度,有利于提升智能清扫设备的避障精度和准确度,进一步提高智能清扫设备的清扫效率。It can be seen that the method described in the embodiment of the present invention can reconstruct the size model of the target obstacle through the depth of field information, so as to obtain the accurate visual size information of the target obstacle, and improve the precision and accuracy of the intelligent cleaning equipment for the obstacle measurement , which is conducive to improving the obstacle avoidance precision and accuracy of intelligent cleaning equipment, and further improving the cleaning efficiency of intelligent cleaning equipment.
在又一个可选的实施例中,根据目标障碍物的位置以及其他信息控制智能清扫设备进行避障,包括:In yet another optional embodiment, controlling the intelligent cleaning device to avoid obstacles according to the position of the target obstacle and other information includes:
根据目标障碍物的特征信息以及预先确定出的地图信息,确定目标避障路径;Determine the target obstacle avoidance path according to the characteristic information of the target obstacle and the predetermined map information;
根据目标障碍物的目标类别信息,确定与目标类别信息相匹配的避障控制方式;According to the target category information of the target obstacle, determine the obstacle avoidance control mode that matches the target category information;
根据目标避障路径以及避障控制方式,控制智能清扫设备进行避障;According to the target obstacle avoidance path and obstacle avoidance control method, control the intelligent cleaning equipment to avoid obstacles;
其中,根据目标障碍物的目标类别信息,确定与目标类别信息相匹配的避障控制方式,包括:Among them, according to the target category information of the target obstacle, the obstacle avoidance control method matching the target category information is determined, including:
判断目标类别是否属于第一类别,当判断结果为是时,控制智能清扫设备执行自动避障操作,第一类别用于表征类别为需要避让且无法进行清扫的障碍物;Judging whether the target category belongs to the first category, when the judgment result is yes, controlling the intelligent cleaning device to perform an automatic obstacle avoidance operation, the first category is used to represent obstacles that need to be avoided and cannot be cleaned;
判断目标类别信息是否属于第二类别,当判断结果为是时,控制智能清扫设备执行自动避障操作且输出警告信息,第二类别用于表征类别为需要避让、 清扫且不属于智能清扫设备清扫类别范围的障碍物,警告信息用于提示目标人员需要对目标障碍物进行清扫;Determine whether the target category information belongs to the second category. When the judgment result is yes, control the intelligent cleaning device to perform automatic obstacle avoidance operation and output a warning message. The second category is used to indicate that the category needs to avoid, clean and does not belong to intelligent cleaning equipment cleaning. For obstacles in the category range, the warning message is used to prompt the target personnel to clean the target obstacle;
判断目标类别信息是否属于第三类别,当判断结果为是时,控制智能清扫设备不执行避让操作,第三类别用于表征类别为需要清扫且属于智能清扫设备清扫类别范围的障碍物。It is judged whether the target category information belongs to the third category, and when the judgment result is yes, the intelligent cleaning device is controlled not to perform an avoidance operation, and the third category is used to represent obstacles that need to be cleaned and belong to the cleaning category range of the intelligent cleaning device.
本发明实施例中,首先将智能清扫设备获取到的目标障碍物的特征信息(比如,位置信息、类别信息、尺寸信息等)与获取到的地图数据信息进行信息融合,得到融合之后的地图数据信息,进而可以根据融合之后的地图数据信息,生成智能清扫设备的目标避障路径。通过目标障碍物的目标类别信息,可以从预置的避障控制方式中确定出与目标类别信息相匹配的控制方式,实现对不同的目标障碍物实施不同的避障控制。其中,本发明提供了三种方案,将智能清扫设备需要避让且无法进行清扫的障碍物作为第一类别,比如鞋柜、床等物品;将智能清扫设备需要避让、清扫且不属于智能清扫设备清扫类别范围的障碍物作为第二类别,比如,拖鞋、儿童玩具、线团、动物粪便等物品;将智能清扫设备需要清扫且属于智能清扫设备清扫类别范围的障碍物作为第三类别,比如纸屑、毛发等物品。对目标障碍物进行分类之后,如果判断为第一类别的物品,则控制智能清扫设备执行自动避障操作;如果判断为第二类别的物品,则控制智能清扫设备执行自动避障操作的同时输出警告信息,用以提示用户检测到的物品是需要人为进行清扫的。需要说明的是,输出警告信息的方式可以是产生警告语音提示、也可以是将该物品的信息(类别信息、位置信息等)发送至其他智能设备(智能手机、智能显示大屏等)来提醒用户,本发明实施例不做限定;如果判断为第三类类别的物品,则不执行避让操作,直接跨越该物品进行清扫。In the embodiment of the present invention, the feature information (such as location information, category information, size information, etc.) of the target obstacle acquired by the intelligent cleaning device is firstly fused with the acquired map data information to obtain the fused map data Information, and then based on the fused map data information, the target obstacle avoidance path of the intelligent cleaning equipment can be generated. Through the target category information of the target obstacle, the control mode matching the target category information can be determined from the preset obstacle avoidance control modes, and different obstacle avoidance controls can be implemented for different target obstacles. Among them, the present invention provides three solutions. The obstacles that the intelligent cleaning equipment needs to avoid and cannot be cleaned are taken as the first category, such as shoe cabinets, beds and other items; the intelligent cleaning equipment needs to be avoided and cleaned and does not belong to intelligent cleaning equipment. Obstacles within the scope of cleaning categories are taken as the second category, such as slippers, children’s toys, thread balls, animal excrement, etc.; obstacles that need to be cleaned by smart cleaning equipment and belong to the scope of cleaning categories of intelligent cleaning equipment are taken as the third category, such as paper crumbs, hair, etc. After classifying the target obstacle, if it is judged as an item of the first category, control the intelligent cleaning device to perform automatic obstacle avoidance operation; if it is judged as an item of the second category, control the intelligent cleaning device to perform automatic obstacle avoidance operation and output The warning message is used to remind the user that the detected items need to be cleaned manually. It should be noted that the way to output the warning information can be to generate a warning voice prompt, or to send the information of the item (category information, location information, etc.) to other smart devices (smart phones, smart display screens, etc.) to remind The user is not limited in this embodiment of the present invention; if it is judged to be an item of the third category, the avoidance operation is not performed, and the item is directly cleaned across the item.
可见,本发明实施例所描述的方法通过检测到的目标障碍物的不同类别来匹配不同的避障策略,极大增强智能清扫设备的智能化水平,提升对智能清扫设备的精细化控制程度,解决了因避障缺乏策略导致的清洁面覆盖不足的问题,进一步提高提高智能清扫设备的清扫质量和清扫效率。It can be seen that the method described in the embodiment of the present invention matches different obstacle avoidance strategies through different types of detected target obstacles, greatly enhances the intelligence level of intelligent cleaning equipment, and improves the refined control degree of intelligent cleaning equipment. It solves the problem of insufficient cleaning surface coverage caused by lack of obstacle avoidance strategies, and further improves the cleaning quality and cleaning efficiency of intelligent cleaning equipment.
在又一个可选的实施例中,根据目标障碍物的特征信息以及预先确定出的地图信息,确定目标避障路径,包括:In another optional embodiment, the target obstacle avoidance path is determined according to the characteristic information of the target obstacle and the predetermined map information, including:
根据目标障碍物的特征信息,更新预先确定出的地图信息以生成目标地图信息;According to the feature information of the target obstacle, update the predetermined map information to generate the target map information;
根据目标障碍物的位置以及目标地图信息,确定出智能清扫设备的目标避障路径;According to the position of the target obstacle and the target map information, determine the target obstacle avoidance path of the intelligent cleaning equipment;
其中,根据目标障碍物的特征信息,更新预先确定出的地图信息以生成目标地图信息,包括:Wherein, according to the feature information of the target obstacle, the predetermined map information is updated to generate the target map information, including:
根据目标障碍物的特征信息,判断目标障碍物是否为移动障碍物;According to the feature information of the target obstacle, it is judged whether the target obstacle is a moving obstacle;
当判断结果为是时,根据目标障碍物的移动方向以及移动速度,确定出目标障碍物的预估移动位置;When the judgment result is yes, determine the estimated moving position of the target obstacle according to the moving direction and moving speed of the target obstacle;
根据目标障碍物的预估移动位置,对预先确定出的地图信息进行动态更新以生成目标地图信息。According to the estimated moving position of the target obstacle, the predetermined map information is dynamically updated to generate the target map information.
本发明实施例中,需要说明的是,目标避障路径可以是全局避障路径(比如,用户选定的目标区域为整个房间,则生成整个房间的避障路径即为全局区域避障路径),也可以是局部避障路径(比如,用户指定的目标区域为餐桌周边区域,则生成餐桌周边区域范围内的避障路径即为局部避障路径),对此本发明实施例不做限定。根据目标障碍物的特征信息,比如,尺寸信息,对该尺寸信息进行坐标和比例转化的方式,得到目标障碍物在预先确定出的地图上的对应坐标和尺寸,进而可以将目标障碍物与地图信息进行融合,得到融合之后的地图信息,也即上述目标地图信息。进一步的,还可以通过目标障碍物的类别信息等,判断是否需要对目标地图信息进行实时更新。举例说明,当判断出目标障碍物为小狗时,其属于移动障碍物,可以根据监测到的小狗的移动速度和移动方向,计算出小狗的预估移动位置,同时根据该预估移动位置与预先确定出的地图信息进行动态更新,动态生成实时目标地图信息。进而,可以根据目标地图信息中的已有障碍物的位置以及目标障碍物的位置,规划出智能清扫设备的目标避障路径。In the embodiment of the present invention, it should be noted that the target obstacle avoidance path may be a global obstacle avoidance path (for example, if the target area selected by the user is the entire room, then the obstacle avoidance path generated for the entire room is the global area obstacle avoidance path) , may also be a local obstacle avoidance path (for example, if the target area specified by the user is the area around the dining table, then the generated obstacle avoidance path within the area around the dining table is the local obstacle avoidance path), which is not limited in this embodiment of the present invention. According to the characteristic information of the target obstacle, such as size information, the coordinate and scale conversion of the size information is carried out to obtain the corresponding coordinates and size of the target obstacle on the predetermined map, and then the target obstacle can be compared with the map The information is fused to obtain the fused map information, that is, the above-mentioned target map information. Further, it may also be judged whether it is necessary to update the target map information in real time based on the category information of the target obstacle or the like. For example, when it is judged that the target obstacle is a puppy, it is a moving obstacle, and the estimated moving position of the puppy can be calculated according to the monitored moving speed and direction of the puppy, and at the same time according to the estimated moving The location and the pre-determined map information are dynamically updated to dynamically generate real-time target map information. Furthermore, the target obstacle avoidance route of the intelligent cleaning device can be planned according to the position of existing obstacles and the position of the target obstacle in the target map information.
可见,本发明实施例所描述的方法能够通过目标障碍物的特征信息,在匹配不同的控制方式的同时,将目标障碍物的特征信息与获取到的地图数据信息融合,以用于全局路径规划或者局部路径规划,提高了路径规划的和追踪的效率,进一步提高智能清扫设备的智能化避障水平和避障效率。It can be seen that the method described in the embodiment of the present invention can combine the characteristic information of the target obstacle with the acquired map data information while matching different control methods through the characteristic information of the target obstacle for global path planning Or local path planning, which improves the efficiency of path planning and tracking, and further improves the intelligent obstacle avoidance level and obstacle avoidance efficiency of intelligent cleaning equipment.
在又一个可选的实施例中,控制智能清扫设备执行自动避障操作,包括:In yet another optional embodiment, controlling the intelligent cleaning equipment to perform automatic obstacle avoidance operations includes:
根据目标障碍物的目标尺寸信息,计算智能清扫设备的转向距离信息、转向方向信息以及转向角度信息;According to the target size information of the target obstacle, calculate the steering distance information, steering direction information and steering angle information of the intelligent cleaning equipment;
根据转向距离信息、转向方向信息以及转向角度信息,确定目标转向路径;Determine the target steering path according to the steering distance information, steering direction information and steering angle information;
控制智能清扫设备按照目标转向路径执行自动避障操作。Control the intelligent cleaning equipment to perform automatic obstacle avoidance operations according to the target steering path.
本发明实施例中,根据目标障碍物的目标尺寸信息以及智能清扫设备的位置,将目标障碍物相对于智能清扫设备正前方的最短距离确定为转向距离信息,同时根据目标障碍物的目标尺寸信息,判断目标障碍物的左右两侧是否可供智能清扫设备转向避障,以确定转向方向信息以及转向角度信息。在确定出转向距离信息、转向方向信息以及转向角度信息之后,根据这些信息规划目标转向路径,从而控制智能清扫设备以规划的目标转向路径执行自动避障操作。In the embodiment of the present invention, according to the target size information of the target obstacle and the position of the smart cleaning device, the shortest distance of the target obstacle relative to the front of the smart cleaning device is determined as the turning distance information, and at the same time, according to the target size information of the target obstacle , to determine whether the left and right sides of the target obstacle can be turned by the intelligent cleaning device to avoid obstacles, so as to determine the steering direction information and steering angle information. After determining the steering distance information, steering direction information, and steering angle information, the target steering path is planned according to these information, so as to control the intelligent cleaning equipment to perform automatic obstacle avoidance operations with the planned target steering path.
进一步的,还可以根据检测到的目标障碍物的类别信息,来对转向距离信息进行修正,对于上述第一类别的物品,尽可能在距离目标障碍物较近的地方再进行转向避障,对于上述第二类别物品,尽可能在距离目标障碍物较远的地方进行转向避障。比如,如果检测的目标障碍物为床,则可以在避免碰撞的前提下,为了实现更好的清扫效果和更大的清扫面积,可以在距离床边缘3cm处进行避障;如果检测的目标障碍物为线团,为了避免线团缠绕智能清扫设备,可以在距离线团边缘10cm处进行避障。Further, the steering distance information can also be corrected according to the detected category information of the target obstacle. For the above-mentioned first category of items, the steering and obstacle avoidance should be performed as close as possible to the target obstacle. For the second category of items above, turn and avoid obstacles as far as possible from the target obstacle. For example, if the detected target obstacle is a bed, on the premise of avoiding collisions, in order to achieve a better cleaning effect and a larger cleaning area, obstacle avoidance can be performed at a distance of 3 cm from the edge of the bed; if the detected target obstacle Objects are wire balls. In order to avoid the wire balls from being entangled with the smart cleaning equipment, obstacle avoidance can be performed at a distance of 10cm from the edge of the wire balls.
可见,本发明实施例所描述的方法能够通过目标障碍物的目标尺寸信息确定出精准的转向距离信息、转向方向信息以及转向角度信息,提升确定目标转向路径的精准度,进而提高智能清扫设备的避障效率和准确度,进一步提高提高智能清扫设备的清扫质量和清扫效率。It can be seen that the method described in the embodiment of the present invention can determine accurate steering distance information, steering direction information, and steering angle information through the target size information of the target obstacle, improve the accuracy of determining the target steering path, and further improve the intelligent cleaning equipment. Obstacle avoidance efficiency and accuracy are further improved to improve the cleaning quality and cleaning efficiency of intelligent cleaning equipment.
在又一个可选的实施例中,根据目标障碍物的目标尺寸信息,计算智能清扫设备的转向距离信息、转向方向信息以及转向角度信息,包括:In yet another optional embodiment, the steering distance information, steering direction information, and steering angle information of the intelligent cleaning device are calculated according to the target size information of the target obstacle, including:
根据目标障碍物的目标尺寸信息、智能清扫设备的顶部位置以及智能清扫设备的底部位置,提取目标障碍物的边缘像素序列,边缘像素序列包括目标尺寸信息中位于智能清扫设备的顶点与智能清扫设备的底点之间绝对高度范围内的所有像素点集合;According to the target size information of the target obstacle, the top position of the intelligent cleaning device, and the bottom position of the intelligent cleaning device, the edge pixel sequence of the target obstacle is extracted, and the edge pixel sequence includes the vertices of the intelligent cleaning device in the target size information and the intelligent cleaning device The collection of all pixel points within the absolute height range between the bottom points of ;
计算边缘像素序列中每一边缘像素点与智能清扫设备之间的水平距离,得 到所有边缘像素点对应的水平距离集合;Calculate the horizontal distance between each edge pixel in the edge pixel sequence and the intelligent cleaning device, and obtain the set of horizontal distances corresponding to all edge pixels;
从水平距离集合中筛选出水平距离最小的边缘像素点作为目标避障像素点;Select the edge pixel with the smallest horizontal distance from the horizontal distance set as the target obstacle avoidance pixel;
根据目标避障像素点,计算智能清扫设备的转向距离信息、转向方向信息以及转向角度信息。Calculate the steering distance information, steering direction information and steering angle information of the intelligent cleaning device according to the target obstacle avoidance pixel.
本发明实施例中,根据目标障碍物的目标尺寸信息、智能清扫设备的顶部位置以及智能清扫设备的底部位置,提取目标障碍物的边缘像素序列,其中提取的边缘像素序列包括目标尺寸信息中位于智能清扫设备的顶点与智能清扫设备的底点之间绝对高度范围内的所有像素点集合。举例说明,智能清扫设备的顶点与智能清扫设备的底点之间绝对高度范围为10cm,则以智能清扫设备的底点作为水平位置的最低点,从该位置开始截取目标尺寸信息中高度范围在10cm以内的所有像素点作为目标障碍物的边缘像素序列。从每一边缘像素点与智能清扫设备之间的水平距离组成的水平距离集合中筛选出水平距离最小的边缘像素点作为目标避障像素点。进而,根据该目标像素点计算转向距离信息、转向方向信息以及转向角度信息。In the embodiment of the present invention, the edge pixel sequence of the target obstacle is extracted according to the target size information of the target obstacle, the top position of the intelligent cleaning device, and the bottom position of the intelligent cleaning device, wherein the extracted edge pixel sequence includes the target size information located at A collection of all pixels within the absolute height range between the vertex of the smart cleaning device and the bottom point of the smart cleaning device. For example, if the absolute height range between the apex of the smart cleaning device and the bottom point of the smart cleaning device is 10cm, then the bottom point of the smart cleaning device is taken as the lowest point of the horizontal position, and the height range in the target size information intercepted from this position is All pixels within 10cm are used as the edge pixel sequence of the target obstacle. From the horizontal distance set composed of the horizontal distance between each edge pixel point and the intelligent cleaning device, the edge pixel point with the smallest horizontal distance is selected as the target obstacle avoidance pixel point. Furthermore, steering distance information, steering direction information, and steering angle information are calculated according to the target pixel.
进一步的,在智能清扫设备沿目标障碍物的边缘行进避障过程中,可以根据转向方向和转向角度,将目标转向路径划分为多个转向路径节点,在智能清扫设备每行进至一个转向路径节点时,重新触发执行根据所述目标障碍物的目标尺寸信息,计算所述智能清扫设备的转向距离信息、转向方向信息以及转向角度信息的操作,以在行进过程中保持动态勘测和路径规划,达到动态修正目标转向路径的目的。Further, when the intelligent cleaning device travels along the edge of the target obstacle to avoid obstacles, the target steering path can be divided into multiple steering path nodes according to the steering direction and steering angle, and each time the intelligent cleaning device travels to a steering path node , the operation of calculating the steering distance information, steering direction information, and steering angle information of the intelligent cleaning device according to the target size information of the target obstacle is retriggered, so as to maintain dynamic survey and path planning during the traveling process to achieve Dynamically corrects the purpose of the target steering path.
可见,本发明实施例所描述的方法能够通过提取边缘像素序列的方式,节约智能清扫设备计算目标避障点的算力,提高测算目标避障点的精度和准确度,提升智能清扫设备快速测算低矮空间等缝隙,避免物体底部磕碰损伤,进而提高智能清扫设备的避障效率和准确度,进一步提高提高智能清扫设备的清扫质量和清扫效率。It can be seen that the method described in the embodiment of the present invention can save the computing power of the intelligent cleaning equipment to calculate the target obstacle avoidance point by extracting the edge pixel sequence, improve the precision and accuracy of measuring the target obstacle avoidance point, and improve the rapid calculation of the intelligent cleaning equipment Low space and other gaps can avoid collision damage at the bottom of objects, thereby improving the obstacle avoidance efficiency and accuracy of intelligent cleaning equipment, and further improving the cleaning quality and cleaning efficiency of intelligent cleaning equipment.
实施例二Embodiment two
请参阅图2,图2是本发明实施例公开的一种智能避开障碍的装置的结构示意图。其中,该智能避开障碍的装置可以包括智能清扫设备或智能清扫设备对 应的服务器,其中智能清扫设备可以与用户终端和/或当前区域的其他智能设备(如:智能显示屏、智能图像采集设备等)进行通信连接,其中,用户终端包括但不限于智能穿戴设备(如智能手环等)和/或智能手机(Android手机、iOS手机等),本发明实施例不做限定。需要说明的是,该智能避开障碍的装置参照的是实施例一所描述的一种智能避开障碍的方法中的步骤,详细的描述在本实施例中就不做赘述,如图2所示,该智能避开障碍的装置可以包括:Please refer to FIG. 2 . FIG. 2 is a schematic structural diagram of an intelligent obstacle avoidance device disclosed in an embodiment of the present invention. Wherein, the device for intelligently avoiding obstacles may include an intelligent cleaning device or a server corresponding to the intelligent cleaning device, wherein the intelligent cleaning device may communicate with the user terminal and/or other intelligent devices in the current area (such as: a smart display screen, a smart image acquisition device, etc.) etc.), where the user terminal includes but is not limited to smart wearable devices (such as smart bracelets, etc.) and/or smart phones (Android phones, iOS phones, etc.), which are not limited in this embodiment of the present invention. It should be noted that the intelligent obstacle avoidance device refers to the steps in the intelligent obstacle avoidance method described in Embodiment 1, and the detailed description will not be repeated in this embodiment, as shown in Figure 2 As shown, the device for intelligently avoiding obstacles may include:
第一确定模块201,用于在智能清扫设备移动过程中,确定智能清扫设备的目标移动区域;The first determination module 201 is used to determine the target movement area of the intelligent cleaning equipment during the movement of the intelligent cleaning equipment;
采集模块202,用于采集目标移动区域的区域信息,区域信息包括图像信息和/或红外信息;A collection module 202, configured to collect area information of the target moving area, where the area information includes image information and/or infrared information;
判断模块203,用于根据区域信息判断目标移动区域是否存在阻碍所述智能清扫设备移动的目标障碍物;A judging module 203, configured to judge according to the area information whether there is a target obstacle in the target moving area that hinders the movement of the intelligent cleaning device;
第二确定模块204,用于当判断模块203的判断结果为是时,确定目标障碍物的位置以及其他信息;The second determination module 204 is used to determine the position of the target obstacle and other information when the determination result of the determination module 203 is yes;
控制模块205,用于根据目标障碍物的位置以及其他信息控制智能清扫设备进行避障,其他信息包括尺寸信息以及类别信息。The control module 205 is configured to control the intelligent cleaning device to avoid obstacles according to the position of the target obstacle and other information, and the other information includes size information and category information.
可见,本发明实施例所描述的装置能够在智能清扫设备行进过程中采集行进路径上的区域信息,如图像信息和/或红外信息,智能识别路径上的障碍物,进而实现对障碍物的准确避障,提高了智能清扫设备的清扫效率,同时通过准确识别障碍物的类别,匹配相应的避障策略,满足不同的清洁需求,进一步提升避障精度,最大限度增加清扫面的覆盖程度。It can be seen that the device described in the embodiment of the present invention can collect area information on the travel path, such as image information and/or infrared information, intelligently identify obstacles on the path during the travel of the intelligent cleaning device, and then realize accurate detection of obstacles. Obstacle avoidance improves the cleaning efficiency of intelligent cleaning equipment. At the same time, by accurately identifying the type of obstacle and matching the corresponding obstacle avoidance strategy, it can meet different cleaning needs, further improve the accuracy of obstacle avoidance, and maximize the coverage of the cleaning surface.
在一个可选的实施例中,如图3所示,第二确定模块204可以包括:In an optional embodiment, as shown in FIG. 3, the second determination module 204 may include:
第一确定子模块2041,用于根据所述区域信息确定所述目标障碍物的位置;The first determining submodule 2041 is configured to determine the position of the target obstacle according to the area information;
第二确定子模块2042,用于确定所述目标障碍物的目标图像集,并基于预设的图像检测模型,对所述目标图像集进行特征提取,得到所述目标障碍物的特征检测结果,将所述特征检测结果作为所述目标障碍物的其他信息,所述特征检测结果包括所述目标障碍物的目标类别信息以及所述目标障碍物的目标尺寸信息;The second determination sub-module 2042 is configured to determine a target image set of the target obstacle, and perform feature extraction on the target image set based on a preset image detection model to obtain a feature detection result of the target obstacle, Using the feature detection result as other information of the target obstacle, the feature detection result includes target category information of the target obstacle and target size information of the target obstacle;
其中,第二确定子模块2042确定目标障碍物的目标图像集的具体方式为:Wherein, the second determination sub-module 2042 determines the target image set of the target obstacle in a specific manner as follows:
根据所述智能清扫设备的实时位置和所述目标障碍物的位置,判断所述智能清扫设备与所述目标障碍物之间的距离是否大于等于第一预设距离,当判断结果为是时,获取所述目标障碍物的第一图像,所述第一图像用于识别所述目标障碍物的类别信息;According to the real-time position of the intelligent cleaning device and the position of the target obstacle, it is judged whether the distance between the intelligent cleaning device and the target obstacle is greater than or equal to a first preset distance, and when the judgment result is yes, acquiring a first image of the target obstacle, where the first image is used to identify category information of the target obstacle;
判断所述智能清扫设备与所述目标障碍物之间的距离是否小于所述第一预设距离且大于等于第二预设距离,当判断结果为是时,获取所述目标障碍物的第二图像,所述第二图像包括景深信息,用于检测所述目标障碍物的三维尺寸信息;Judging whether the distance between the intelligent cleaning device and the target obstacle is less than the first preset distance and greater than or equal to a second preset distance, and when the judgment result is yes, obtain the second distance of the target obstacle An image, the second image includes depth of field information for detecting three-dimensional size information of the target obstacle;
将所述第一图像以及所述第二图像确定为所述目标障碍物的目标图像集。The first image and the second image are determined as a target image set of the target obstacle.
可见,本发明实施例所描述的装置能够通过较远距离采集到的第一图像来快速识别目标障碍物的类别,通过较近距离采集到的第二图像来测算目标障碍物的尺寸信息,有利于提高目标障碍物的识别和检测效率,提升智能清扫设备的清扫效率。It can be seen that the device described in the embodiment of the present invention can quickly identify the type of the target obstacle through the first image collected at a relatively long distance, and measure the size information of the target obstacle through the second image collected at a relatively short distance. It is beneficial to improve the identification and detection efficiency of target obstacles, and improve the cleaning efficiency of intelligent cleaning equipment.
在另一个可选的实施例中,如图3所示,第二确定子模块2042基于预设的图像检测模型,对所述目标图像集进行特征提取,得到所述目标障碍物的特征检测结果的具体方式为:In another optional embodiment, as shown in FIG. 3 , the second determining submodule 2042 performs feature extraction on the target image set based on a preset image detection model to obtain a feature detection result of the target obstacle. The specific way is:
将所述第一图像输入预设的图像检测模型的图像识别分支,对所述第一图像进行图像识别操作,得到所述第一图像中所述目标障碍物对应的特征向量;根据所述目标障碍物对应的特征向量,确定所述目标障碍物对应的类别概率集合;从所述类别概率集合中确定出概率值最高的类别作为所述目标障碍物的目标类别信息;Inputting the first image into the image recognition branch of the preset image detection model, performing an image recognition operation on the first image to obtain a feature vector corresponding to the target obstacle in the first image; according to the target The feature vector corresponding to the obstacle is used to determine the category probability set corresponding to the target obstacle; the category with the highest probability value is determined from the category probability set as the target category information of the target obstacle;
根据所述目标障碍物的类别信息,确定所述目标障碍物的初始尺寸模型;determining an initial size model of the target obstacle according to the category information of the target obstacle;
将所述第二图像输入所述图像检测模型的图像检测分支,得到所述第二图像中所述目标障碍物的景深信息;根据所述景深信息,对所述初始尺寸模型进行重建,得到所述目标障碍物的目标尺寸信息;Input the second image into the image detection branch of the image detection model to obtain the depth information of the target obstacle in the second image; reconstruct the initial size model according to the depth information to obtain the The target size information of the target obstacle;
将所述目标障碍物的目标类别信息以及所述目标尺寸信息确定为所述目标障碍物的特征检测结果。The target category information and the target size information of the target obstacle are determined as the feature detection result of the target obstacle.
可见,本发明实施例所描述的装置能够通过较远距离采集到的第一图像来快速识别目标障碍物的类别,准确识别类别的同时降低算力消耗,通过较近距 离采集到的第二图像来测算目标障碍物的尺寸信息,精准识别三维尺寸细节,有利于提高目标障碍物的识别和检测效率,进一步提升智能清扫设备的避障的准确率,同时提高智能清扫设备的清扫效率。It can be seen that the device described in the embodiment of the present invention can quickly identify the category of the target obstacle through the first image collected at a relatively long distance, accurately identify the category while reducing computing power consumption, and use the second image collected at a relatively short distance To measure the size information of the target obstacle and accurately identify the three-dimensional size details, it is beneficial to improve the identification and detection efficiency of the target obstacle, further improve the accuracy of the obstacle avoidance of the intelligent cleaning equipment, and improve the cleaning efficiency of the intelligent cleaning equipment.
在又一个可选的实施例中,如图3所示,第二确定子模块2042根据所述景深信息,对所述初始尺寸模型进行重建,得到所述目标障碍物的目标尺寸信息的具体方式为:In yet another optional embodiment, as shown in FIG. 3 , the second determination submodule 2042 reconstructs the initial size model according to the depth information to obtain the target size information of the target obstacle. for:
根据所述景深信息,确定所述第二图像中所述目标障碍物对应的所有像素点的景深特征;According to the depth of field information, determine the depth of field features of all pixels corresponding to the target obstacle in the second image;
将所有所述像素点的景深特征进行转化操作,确定出所有所述像素点的目标景深特征以及所述初始尺寸模型中需要重建的目标像素点集合;其中,所述将所有所述像素点的景深特征进行转化操作,包括:将所有所述像素点的景深特征映射到所述初始尺寸模型中;Transforming the depth features of all the pixels to determine the target depth features of all the pixels and the set of target pixels that need to be reconstructed in the initial size model; wherein, the Transforming the depth of field features, including: mapping the depth of field features of all the pixels into the initial size model;
根据所有所述像素点的目标景深特征,对所述目标像素点集合进行重建,得到所述目标障碍物的目标尺寸信息。According to the target depth features of all the pixels, the set of target pixels is reconstructed to obtain the target size information of the target obstacle.
可见,本发明实施例所描述的装置能够通过景深信息对目标障碍物的尺寸模型进行重构,以得到目标障碍物的精准的目测尺寸信息,提高智能清扫设备对障碍物的测算精度和准确度,有利于提升智能清扫设备的避障精度和准确度,进一步提高智能清扫设备的清扫效率。It can be seen that the device described in the embodiment of the present invention can reconstruct the size model of the target obstacle through the depth of field information, so as to obtain the accurate visual size information of the target obstacle, and improve the precision and accuracy of the intelligent cleaning equipment for the obstacle measurement , which is conducive to improving the obstacle avoidance precision and accuracy of intelligent cleaning equipment, and further improving the cleaning efficiency of intelligent cleaning equipment.
在又一个可选的实施例中,如图3所示,控制模块可以包括:In yet another optional embodiment, as shown in Figure 3, the control module may include:
第三确定子模块2051,用于根据所述目标障碍物的目标类别信息,确定与所述目标类别信息相匹配的避障控制方式;The third determination sub-module 2051 is configured to determine an obstacle avoidance control method that matches the target category information according to the target category information of the target obstacle;
控制子模块2052,根据所述目标障碍物的位置以及所述避障控制方式,控制所述智能清扫设备进行避障;The control sub-module 2052 controls the intelligent cleaning device to avoid obstacles according to the position of the target obstacle and the obstacle avoidance control mode;
所述控制子模块2052,具体用于:The control submodule 2052 is specifically used for:
判断所述目标类别是否属于第一类别,当判断结果为是时,控制所述智能清扫设备执行自动避障操作,所述第一类别用于表征类别为需要避让且无法进行清扫的障碍物;Judging whether the target category belongs to the first category, when the judgment result is yes, controlling the intelligent cleaning device to perform an automatic obstacle avoidance operation, the first category is used to represent obstacles that need to be avoided and cannot be cleaned;
判断所述目标类别信息是否属于第二类别,当判断结果为是时,控制所述智能清扫设备执行自动避障操作且输出警告信息,所述第二类别用于表征类别 为需要避让、清扫且不属于所述智能清扫设备清扫类别范围的障碍物,所述警告信息用于提示目标人员需要对所述目标障碍物进行清扫;Judging whether the target category information belongs to the second category, when the judgment result is yes, controlling the intelligent cleaning device to perform an automatic obstacle avoidance operation and output a warning message, the second category is used to indicate that the category needs to be avoided, cleaned and For obstacles that do not belong to the cleaning category of the intelligent cleaning device, the warning information is used to prompt the target personnel to clean the target obstacle;
判断所述目标类别信息是否属于第三类别,当判断结果为是时,控制所述智能清扫设备不执行避让操作,所述第三类别用于表征类别为需要清扫且属于所述智能清扫设备清扫类别范围的障碍物。。Judging whether the target category information belongs to the third category, when the judgment result is yes, controlling the intelligent cleaning device not to perform avoidance operation, the third category is used to indicate that the category needs to be cleaned and belongs to the cleaning of the intelligent cleaning device Category-wide obstacles. .
可见,本发明实施例所描述的装置能够通过检测到的目标障碍物的不同类别来匹配不同的避障策略,极大增强智能清扫设备的智能化水平,提升对智能清扫设备的精细化控制程度,解决了因避障缺乏策略导致的清洁面覆盖不足的问题,进一步提高提高智能清扫设备的清扫质量和清扫效率。It can be seen that the device described in the embodiment of the present invention can match different obstacle avoidance strategies through different types of detected target obstacles, greatly enhance the intelligence level of intelligent cleaning equipment, and improve the refined control degree of intelligent cleaning equipment , solve the problem of insufficient coverage of the cleaning surface caused by lack of obstacle avoidance strategies, and further improve the cleaning quality and cleaning efficiency of intelligent cleaning equipment.
在又一个可选的实施例中,如图3所示,控制子模块2052控制所述智能清扫设备执行自动避障操作的具体方式为:In yet another optional embodiment, as shown in FIG. 3 , the specific manner in which the control submodule 2052 controls the intelligent cleaning device to perform an automatic obstacle avoidance operation is as follows:
根据所述目标障碍物的目标尺寸信息,计算所述智能清扫设备的转向距离信息、转向方向信息以及转向角度信息;calculating the steering distance information, steering direction information, and steering angle information of the intelligent cleaning device according to the target size information of the target obstacle;
根据所述转向方向信息以及所述转向角度信息,确定目标转向路径;determining a target steering path according to the steering direction information and the steering angle information;
控制所述智能清扫设备按照所述目标转向路径执行自动避障操作。The intelligent cleaning device is controlled to perform an automatic obstacle avoidance operation according to the target steering path.
可见,本发明实施例所描述的装置能够通过目标障碍物的目标尺寸信息确定出精准的转向距离信息、转向方向信息以及转向角度信息,提升确定目标转向路径的精准度,进而提高智能清扫设备的避障效率和准确度,进一步提高提高智能清扫设备的清扫质量和清扫效率。It can be seen that the device described in the embodiment of the present invention can determine accurate steering distance information, steering direction information, and steering angle information through the target size information of the target obstacle, improve the accuracy of determining the target steering path, and further improve the intelligent cleaning equipment. Obstacle avoidance efficiency and accuracy are further improved to improve the cleaning quality and cleaning efficiency of intelligent cleaning equipment.
在又一个可选的实施例中,如图3所示,控制子模块2052根据目标障碍物的目标尺寸信息,计算所述智能清扫设备的转向距离信息、转向方向信息以及转向角度信息的具体方式为:In yet another optional embodiment, as shown in FIG. 3 , the control submodule 2052 calculates the specific method of steering distance information, steering direction information, and steering angle information of the intelligent cleaning device according to the target size information of the target obstacle. for:
根据所述目标障碍物的目标尺寸信息、所述智能清扫设备的顶部位置以及所述智能清扫设备的底部位置,提取所述目标障碍物的边缘像素序列,所述边缘像素序列包括所述目标尺寸信息中位于所述智能清扫设备的顶点与所述智能清扫设备的底点之间绝对高度范围内的所有像素点集合;According to the target size information of the target obstacle, the top position of the intelligent cleaning device and the bottom position of the intelligent cleaning device, an edge pixel sequence of the target obstacle is extracted, the edge pixel sequence includes the target size A collection of all pixel points within the absolute height range between the apex of the intelligent cleaning device and the bottom point of the intelligent cleaning device in the information;
计算所述边缘像素序列中每一边缘像素点与所述智能清扫设备之间的水平距离,得到所有所述边缘像素点对应的水平距离集合;Calculating the horizontal distance between each edge pixel in the edge pixel sequence and the intelligent cleaning device to obtain a set of horizontal distances corresponding to all the edge pixels;
从所述水平距离集合中筛选出所述水平距离最小的边缘像素点作为目标避 障像素点;Screen out the edge pixel point with the smallest horizontal distance as the target obstacle avoidance pixel point from the horizontal distance set;
根据所述目标避障像素点,计算所述智能清扫设备的转向距离信息、转向方向信息以及转向角度信息。Calculate the steering distance information, steering direction information, and steering angle information of the intelligent cleaning device according to the target obstacle avoidance pixel.
可见,本发明实施例所描述的装置能够通过提取边缘像素序列的方式,节约智能清扫设备计算目标避障点的算力,提高测算目标避障点的精度和准确度,提升智能清扫设备快速测算低矮空间等缝隙,避免物体底部磕碰损伤,进而提高智能清扫设备的避障效率和准确度,进一步提高提高智能清扫设备的清扫质量和清扫效率。It can be seen that the device described in the embodiment of the present invention can save the computing power of the intelligent cleaning equipment to calculate the target obstacle avoidance point by extracting the edge pixel sequence, improve the precision and accuracy of measuring the target obstacle avoidance point, and improve the rapid calculation of the intelligent cleaning equipment Low space and other gaps can avoid collision damage at the bottom of objects, thereby improving the obstacle avoidance efficiency and accuracy of intelligent cleaning equipment, and further improving the cleaning quality and cleaning efficiency of intelligent cleaning equipment.
实施例三Embodiment three
请参阅图4,图4是本发明实施例公开的又一种智能避开障碍的装置的结构示意图。其中,该智能避开障碍的装置可以包括智能清扫设备或智能清扫设备对应的服务器,其中智能清扫设备可以与用户终端和/或当前区域的其他智能设备(如:智能显示屏、智能图像采集设备等)进行通信连接,其中,用户终端包括但不限于智能穿戴设备(如智能手环等)和/或智能手机(Android手机、iOS手机等),本发明实施例不做限定。如图5所示,该智能避开障碍的装置可以包括:Please refer to FIG. 4 . FIG. 4 is a schematic structural diagram of another intelligent obstacle avoidance device disclosed in an embodiment of the present invention. Wherein, the device for intelligently avoiding obstacles may include an intelligent cleaning device or a server corresponding to the intelligent cleaning device, wherein the intelligent cleaning device may communicate with the user terminal and/or other intelligent devices in the current area (such as: a smart display screen, a smart image acquisition device, etc.) etc.), where the user terminal includes but is not limited to smart wearable devices (such as smart bracelets, etc.) and/or smart phones (Android phones, iOS phones, etc.), which are not limited in this embodiment of the present invention. As shown in Figure 5, the device for avoiding obstacles intelligently may include:
存储有可执行程序代码的存储器301;A memory 301 storing executable program codes;
与存储器301耦合的处理器302;a processor 302 coupled to the memory 301;
处理器302调用存储器302中存储的可执行程序代码,执行本发明实施例一公开的智能避开障碍的方法中的部分或全部步骤。The processor 302 invokes the executable program code stored in the memory 302 to execute some or all of the steps in the intelligent obstacle avoidance method disclosed in Embodiment 1 of the present invention.
实施例四Embodiment four
本发明实施例公开了一种计算机存储介质,该计算机存储介质存储有计算机指令,该计算机指令被调用时,用于执行本发明实施例一公开的智能避开障碍的方法中的步骤。The embodiment of the present invention discloses a computer storage medium. The computer storage medium stores computer instructions. When the computer instructions are invoked, they are used to execute the steps in the intelligent obstacle avoidance method disclosed in the first embodiment of the present invention.
实施例五Embodiment five
本发明实施例公开的一种智能清扫设备,其中,该智能清扫设备可以包括智能避开障碍的装置,且用于实现图1所描述的智能避开障碍的方法中部分或全部的步骤。可选的,该智能避开障碍的装置可以为图2-图4任一项所描述的智能避开障碍的装置,本发明实施例不做限定。The embodiment of the present invention discloses an intelligent cleaning device, wherein the intelligent cleaning device may include an intelligent obstacle avoidance device, and is used to implement some or all of the steps in the intelligent obstacle avoidance method described in FIG. 1 . Optionally, the intelligent obstacle avoidance device may be the intelligent obstacle avoidance device described in any one of FIGS. 2-4 , which is not limited in this embodiment of the present invention.
以上所描述的装置实施例仅是示意性的,其中所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative, and the modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in One place, or it can be distributed to multiple network modules. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without any creative efforts.
通过以上的实施例的具体描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,存储介质包括只读存储器(Read-Only Memory,ROM)、随机存储器(Random Access Memory,RAM)、可编程只读存储器(Programmable Read-only Memory,PROM)、可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、一次可编程只读存储器(One-time Programmable Read-Only Memory,OTPROM)、电子抹除式可复写只读存储器(Electrically-Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其他光盘存储器、磁盘存储器、磁带存储器、或者能够用于携带或存储数据的计算机可读的任何其他介质。Through the specific description of the above embodiments, those skilled in the art can clearly understand that each implementation manner can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware. Based on this understanding, the above-mentioned technical solution essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), programmable read-only memory (Programmable Read-only Memory, PROM), erasable programmable read-only memory (Erasable Programmable Read Only Memory, EPROM ), One-time Programmable Read-Only Memory (OTPROM), Electronically Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read -Only Memory, CD-ROM) or other optical disk storage, magnetic disk storage, tape storage, or any other computer-readable medium that can be used to carry or store data.
需要说明的是本说明书各部分操作所需的计算机程序代码可以用任意一种或多种程序语言编写,包括面向对象编程语言如Java、Scala、Smalltalk、Eiffel、JADE、Emerald、C++、C#、VB.NET、Python等,常规程序化编程语言如C语言、Visual Basic、Fortran2003、Perl、COBOL 2002、PHP、ABAP,动态编程语言如Python、Ruby和Groovy,或其他编程语言等。该程序编码可以完全在计算机(PC、嵌入式智能设备等)上运行、或作为独立的软件包在用户计算机上运行、或部分在用户计算机上运行部分在远程计算机运行、或完全在远程计算机或服务器上运行。在后种情况下,远程计算机可以通过任何网络形式与用户计算机连接,比如局域网(LAN)或广域网(WAN),或连接至外部计算机(例如通过因特网),或在云计算环境中,或作为服务使用如软件即服务(SaaS)。It should be noted that the computer program codes required for the operation of each part of this manual can be written in any one or more programming languages, including object-oriented programming languages such as Java, Scala, Smalltalk, Eiffel, JADE, Emerald, C++, C#, VB .NET, Python, etc., conventional programming languages such as C language, Visual Basic, Fortran2003, Perl, COBOL 2002, PHP, ABAP, dynamic programming languages such as Python, Ruby and Groovy, or other programming languages. The program code can run entirely on the computer (PC, embedded smart device, etc.), or as an independent software package on the user's computer, or partly on the user's computer and partly on the remote computer, or completely on the remote computer or run on the server. In the latter case, the remote computer can be connected to the user computer through any form of network, such as a local area network (LAN) or wide area network (WAN), or to an external computer (such as through the Internet), or in a cloud computing environment, or as a service Use software as a service (SaaS).
最后应说明的是:本发明实施例公开的一种智能避开障碍的方法及装置、智能清扫设备所揭露的仅为本发明较佳实施例而已,仅用于说明本发明的技术 方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解;其依然可以对前述各项实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或替换,并不使相应的技术方案的本质脱离本发明各项实施例技术方案的精神和范围。Finally, it should be noted that: a method and device for intelligently avoiding obstacles disclosed in the embodiments of the present invention, and intelligent cleaning equipment disclosed are only preferred embodiments of the present invention, and are only used to illustrate the technical solutions of the present invention. It is not limited thereto; although the present invention has been described in detail with reference to the aforementioned embodiments, those of ordinary skill in the art should understand; it can still modify the technical solutions described in the aforementioned embodiments, or modify some of the technical features thereof. Equivalent replacements are carried out; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims (10)

  1. 一种智能避开障碍的方法,其特征在于,所述方法包括:A method for intelligently avoiding obstacles, characterized in that the method comprises:
    在所述智能清扫设备移动过程中,确定所述智能清扫设备的目标移动区域;During the moving process of the intelligent cleaning equipment, determining the target moving area of the intelligent cleaning equipment;
    采集所述目标移动区域的区域信息,所述区域信息包括图像信息和/或红外信息;collecting area information of the target moving area, where the area information includes image information and/or infrared information;
    根据所述区域信息判断所述目标移动区域是否存在阻碍所述智能清扫设备移动的目标障碍物;judging according to the area information whether there is a target obstacle in the target movement area that hinders the movement of the intelligent cleaning device;
    当判断结果为是时,确定所述目标障碍物的位置以及其他信息,并根据所述目标障碍物的位置以及所述其他信息控制所述智能清扫设备进行避障,所述其他信息包括尺寸信息以及类别信息。When the judgment result is yes, determine the position of the target obstacle and other information, and control the intelligent cleaning device to avoid obstacles according to the position of the target obstacle and the other information, the other information includes size information and category information.
  2. 根据权利要求1所述的智能避开障碍的方法,其特征在于,所述确定所述目标障碍物的位置以及其他信息,包括:The method for avoiding obstacles intelligently according to claim 1, wherein said determining the position of said target obstacle and other information includes:
    根据所述区域信息确定所述目标障碍物的位置;determining the position of the target obstacle according to the area information;
    确定所述目标障碍物的目标图像集,并基于预设的图像检测模型,对所述目标图像集进行特征提取,得到所述目标障碍物的特征检测结果,将所述特征检测结果作为所述目标障碍物的其他信息,所述特征检测结果包括所述目标障碍物的目标类别信息以及所述目标障碍物的目标尺寸信息;determining the target image set of the target obstacle, and based on a preset image detection model, performing feature extraction on the target image set to obtain a feature detection result of the target obstacle, and using the feature detection result as the other information of the target obstacle, the feature detection result includes target category information of the target obstacle and target size information of the target obstacle;
    其中,所述确定所述目标障碍物的目标图像集,包括:Wherein, the determination of the target image set of the target obstacle includes:
    根据所述智能清扫设备的实时位置和所述目标障碍物的位置,判断所述智能清扫设备与所述目标障碍物之间的距离是否大于等于第一预设距离,当判断结果为是时,获取所述目标障碍物的第一图像,所述第一图像用于识别所述目标障碍物的类别信息;According to the real-time position of the intelligent cleaning device and the position of the target obstacle, it is judged whether the distance between the intelligent cleaning device and the target obstacle is greater than or equal to a first preset distance, and when the judgment result is yes, acquiring a first image of the target obstacle, where the first image is used to identify category information of the target obstacle;
    判断所述智能清扫设备与所述目标障碍物之间的距离是否小于所述第一预设距离且大于等于第二预设距离,当判断结果为是时,获取所述目标障碍物的第二图像,所述第二图像包括景深信息,用于检测所述目标障碍物的三维尺寸信息;Judging whether the distance between the intelligent cleaning device and the target obstacle is less than the first preset distance and greater than or equal to a second preset distance, and when the judgment result is yes, obtain the second distance of the target obstacle An image, the second image includes depth of field information for detecting three-dimensional size information of the target obstacle;
    将所述第一图像以及所述第二图像确定为所述目标障碍物的目标图像集。The first image and the second image are determined as a target image set of the target obstacle.
  3. 根据权利要求2所述的智能避开障碍的方法,其特征在于,所述基于预设的图像检测模型,对所述目标图像集进行特征提取,得到所述目标障碍物的 特征检测结果,包括:The method for intelligently avoiding obstacles according to claim 2, wherein the feature extraction is performed on the target image set based on the preset image detection model, and the feature detection result of the target obstacle is obtained, including :
    将所述第一图像输入预设的图像检测模型的图像识别分支,对所述第一图像进行图像识别操作,得到所述第一图像中所述目标障碍物对应的特征向量;根据所述目标障碍物对应的特征向量,确定所述目标障碍物对应的类别概率集合;从所述类别概率集合中确定出概率值最高的类别作为所述目标障碍物的目标类别信息;Inputting the first image into the image recognition branch of the preset image detection model, performing an image recognition operation on the first image to obtain a feature vector corresponding to the target obstacle in the first image; according to the target The feature vector corresponding to the obstacle is used to determine the category probability set corresponding to the target obstacle; the category with the highest probability value is determined from the category probability set as the target category information of the target obstacle;
    根据所述目标障碍物的类别信息,确定所述目标障碍物的初始尺寸模型;determining an initial size model of the target obstacle according to the category information of the target obstacle;
    将所述第二图像输入所述图像检测模型的图像检测分支,得到所述第二图像中所述目标障碍物的景深信息;根据所述景深信息,对所述初始尺寸模型进行重建,得到所述目标障碍物的目标尺寸信息;Input the second image into the image detection branch of the image detection model to obtain the depth information of the target obstacle in the second image; reconstruct the initial size model according to the depth information to obtain the The target size information of the target obstacle;
    将所述目标障碍物的目标类别信息以及所述目标尺寸信息确定为所述目标障碍物的特征检测结果。The target category information and the target size information of the target obstacle are determined as the feature detection result of the target obstacle.
  4. 根据权利要求3所述的智能避开障碍的方法,其特征在于,所述根据所述景深信息,对所述初始尺寸模型进行重建,得到所述目标障碍物的目标尺寸信息,包括:The method for intelligently avoiding obstacles according to claim 3, wherein the reconstruction of the initial size model according to the depth information to obtain the target size information of the target obstacle includes:
    根据所述景深信息,确定所述第二图像中所述目标障碍物对应的所有像素点的景深特征;According to the depth of field information, determine the depth of field features of all pixels corresponding to the target obstacle in the second image;
    将所有所述像素点的景深特征进行转化操作,确定出所有所述像素点的目标景深特征以及所述初始尺寸模型中需要重建的目标像素点集合;其中,所述将所有所述像素点的景深特征进行转化操作,包括:将所有所述像素点的景深特征映射到所述初始尺寸模型中;Transforming the depth features of all the pixels to determine the target depth features of all the pixels and the set of target pixels that need to be reconstructed in the initial size model; wherein, the Transforming the depth of field features, including: mapping the depth of field features of all the pixels into the initial size model;
    根据所有所述像素点的目标景深特征,对所述目标像素点集合进行重建,得到所述目标障碍物的目标尺寸信息。According to the target depth features of all the pixels, the set of target pixels is reconstructed to obtain the target size information of the target obstacle.
  5. 根据权利要求1-4任一所述的智能避开障碍的方法,其特征在于,所述根据所述目标障碍物的位置以及所述其他信息控制所述智能清扫设备进行避障,包括:The method for intelligent obstacle avoidance according to any one of claims 1-4, wherein the controlling the intelligent cleaning device to avoid obstacles according to the position of the target obstacle and the other information includes:
    根据所述目标障碍物的特征信息以及预先确定出的地图信息,确定目标避障路径;determining a target obstacle avoidance path according to characteristic information of the target obstacle and predetermined map information;
    根据所述目标障碍物的目标类别信息,确定与所述目标类别信息相匹配的 避障控制方式;According to the target category information of the target obstacle, determine an obstacle avoidance control mode that matches the target category information;
    根据所述目标避障路径以及所述避障控制方式,控制所述智能清扫设备进行避障;controlling the intelligent cleaning device to avoid obstacles according to the target obstacle avoidance path and the obstacle avoidance control mode;
    其中,所述根据所述目标障碍物的目标类别信息,确定与所述目标类别信息相匹配的避障控制方式,包括:Wherein, according to the target category information of the target obstacle, determining an obstacle avoidance control method that matches the target category information includes:
    判断所述目标类别是否属于第一类别,当判断结果为是时,控制所述智能清扫设备执行自动避障操作,所述第一类别用于表征类别为需要避让且无法进行清扫的障碍物;Judging whether the target category belongs to the first category, when the judgment result is yes, controlling the intelligent cleaning device to perform an automatic obstacle avoidance operation, the first category is used to represent obstacles that need to be avoided and cannot be cleaned;
    判断所述目标类别信息是否属于第二类别,当判断结果为是时,控制所述智能清扫设备执行自动避障操作且输出警告信息,所述第二类别用于表征类别为需要避让、清扫且不属于所述智能清扫设备清扫类别范围的障碍物,所述警告信息用于提示目标人员需要对所述目标障碍物进行清扫;Judging whether the target category information belongs to the second category, when the judgment result is yes, controlling the intelligent cleaning device to perform an automatic obstacle avoidance operation and output a warning message, the second category is used to indicate that the category needs to be avoided, cleaned and For obstacles that do not belong to the cleaning category of the intelligent cleaning device, the warning information is used to prompt the target personnel to clean the target obstacle;
    判断所述目标类别信息是否属于第三类别,当判断结果为是时,控制所述智能清扫设备不执行避让操作,所述第三类别用于表征类别为需要清扫且属于所述智能清扫设备清扫类别范围的障碍物。Judging whether the target category information belongs to the third category, when the judgment result is yes, controlling the intelligent cleaning device not to perform avoidance operation, the third category is used to indicate that the category needs to be cleaned and belongs to the cleaning of the intelligent cleaning device Category-wide obstacles.
  6. 根据权利要求5所述的智能避开障碍的方法,其特征在于,所述根据所述目标障碍物的特征信息以及预先确定出的地图信息,确定目标避障路径包括:The method for intelligent obstacle avoidance according to claim 5, wherein said determining the target obstacle avoidance path according to the feature information of the target obstacle and the predetermined map information comprises:
    根据所述目标障碍物的特征信息,更新预先确定出的地图信息以生成目标地图信息;Updating predetermined map information to generate target map information according to characteristic information of the target obstacle;
    根据所述目标障碍物的位置以及所述目标地图信息,确定出所述智能清扫设备的目标避障路径;determining a target obstacle avoidance path of the intelligent cleaning device according to the position of the target obstacle and the target map information;
    其中,所述根据所述目标障碍物的特征信息,更新预先确定出的地图信息以生成目标地图信息,包括:Wherein, the updating of the predetermined map information to generate the target map information according to the feature information of the target obstacle includes:
    根据所述目标障碍物的特征信息,判断所述目标障碍物是否为移动障碍物;judging whether the target obstacle is a moving obstacle according to the characteristic information of the target obstacle;
    当判断结果为是时,根据所述目标障碍物的移动方向以及移动速度,确定出所述目标障碍物的预估移动位置;When the judgment result is yes, determine the estimated moving position of the target obstacle according to the moving direction and moving speed of the target obstacle;
    根据所述目标障碍物的预估移动位置,对所述预先确定出的地图信息进行动态更新以生成目标地图信息。According to the estimated moving position of the target obstacle, the predetermined map information is dynamically updated to generate target map information.
  7. 根据权利要求5或6所述的智能避开障碍的方法,其特征在于,所述控 制所述智能清扫设备执行自动避障操作,包括:The method for avoiding obstacles intelligently according to claim 5 or 6, wherein said controlling said intelligent cleaning equipment to perform an automatic obstacle avoidance operation comprises:
    根据所述目标障碍物的目标尺寸信息,计算所述智能清扫设备的转向距离信息、转向方向信息以及转向角度信息;calculating the steering distance information, steering direction information, and steering angle information of the intelligent cleaning device according to the target size information of the target obstacle;
    根据所述转向方向信息以及所述转向角度信息,确定目标转向路径;determining a target steering path according to the steering direction information and the steering angle information;
    控制所述智能清扫设备按照所述目标转向路径执行自动避障操作。The intelligent cleaning device is controlled to perform an automatic obstacle avoidance operation according to the target steering path.
  8. 根据权利要求7所述的智能避开障碍的方法,其特征在于,所述根据所述目标障碍物的目标尺寸信息,计算所述智能清扫设备的转向距离信息、转向方向信息以及转向角度信息,包括:The method for intelligently avoiding obstacles according to claim 7, characterized in that, according to the target size information of the target obstacle, calculating the steering distance information, steering direction information and steering angle information of the intelligent cleaning device, include:
    根据所述目标障碍物的目标尺寸信息、所述智能清扫设备的顶部位置以及所述智能清扫设备的底部位置,提取所述目标障碍物的边缘像素序列,所述边缘像素序列包括所述目标尺寸信息中位于所述智能清扫设备的顶点与所述智能清扫设备的底点之间绝对高度范围内的所有像素点集合;According to the target size information of the target obstacle, the top position of the intelligent cleaning device and the bottom position of the intelligent cleaning device, an edge pixel sequence of the target obstacle is extracted, the edge pixel sequence includes the target size A collection of all pixel points within the absolute height range between the apex of the intelligent cleaning device and the bottom point of the intelligent cleaning device in the information;
    计算所述边缘像素序列中每一边缘像素点与所述智能清扫设备之间的水平距离,得到所有所述边缘像素点对应的水平距离集合;Calculating the horizontal distance between each edge pixel in the edge pixel sequence and the intelligent cleaning device to obtain a set of horizontal distances corresponding to all the edge pixels;
    从所述水平距离集合中筛选出所述水平距离最小的边缘像素点作为目标避障像素点;Selecting the edge pixel point with the smallest horizontal distance from the horizontal distance set as the target obstacle avoidance pixel point;
    根据所述目标避障像素点,计算所述智能清扫设备的转向距离信息、转向方向信息以及转向角度信息。Calculate the steering distance information, steering direction information, and steering angle information of the intelligent cleaning device according to the target obstacle avoidance pixel.
  9. 一种智能避开障碍的装置,其特征在于,所述装置包括:A device for intelligently avoiding obstacles, characterized in that the device includes:
    第一确定模块,用于在所述智能清扫设备移动过程中,确定所述智能清扫设备的目标移动区域;A first determination module, configured to determine a target moving area of the intelligent cleaning device during the movement of the intelligent cleaning device;
    采集模块,用于采集所述目标移动区域的区域信息,所述区域信息包括图像信息和/或红外信息;A collection module, configured to collect area information of the target moving area, where the area information includes image information and/or infrared information;
    判断模块,用于根据所述区域信息判断所述目标移动区域是否存在阻碍所述智能清扫设备移动的目标障碍物;A judging module, configured to judge, according to the area information, whether there is a target obstacle in the target moving area that hinders the movement of the intelligent cleaning device;
    第二确定模块,用于当所述判断模块的判断结果为是时,确定所述目标障碍物的位置以及其他信息;A second determination module, configured to determine the position of the target obstacle and other information when the determination result of the determination module is yes;
    控制模块,用于根据所述目标障碍物的位置以及所述其他信息控制所述智能清扫设备进行避障,所述其他信息包括尺寸信息以及类别信息。A control module, configured to control the intelligent cleaning device to avoid obstacles according to the position of the target obstacle and the other information, the other information including size information and category information.
  10. 一种智能清扫设备,其特征在于,所述智能清扫设备包括:An intelligent cleaning device, characterized in that the intelligent cleaning device comprises:
    存储有可执行程序代码的存储器;a memory storing executable program code;
    与所述存储器耦合的处理器;a processor coupled to the memory;
    所述处理器调用所述存储器中存储的所述可执行程序代码,以实现如权利要求1-8任一项所述的智能避开障碍的方法。The processor invokes the executable program code stored in the memory, so as to realize the intelligent obstacle avoidance method according to any one of claims 1-8.
PCT/CN2022/070836 2021-12-22 2022-01-07 Intelligent obstacle avoidance method and apparatus WO2023115658A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111580917.XA CN116416518A (en) 2021-12-22 2021-12-22 Intelligent obstacle avoidance method and device
CN202111580917.X 2021-12-22

Publications (1)

Publication Number Publication Date
WO2023115658A1 true WO2023115658A1 (en) 2023-06-29

Family

ID=86901147

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/070836 WO2023115658A1 (en) 2021-12-22 2022-01-07 Intelligent obstacle avoidance method and apparatus

Country Status (2)

Country Link
CN (1) CN116416518A (en)
WO (1) WO2023115658A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117032218A (en) * 2023-07-31 2023-11-10 北京小米机器人技术有限公司 Robot cruise control method and device, robot and storage medium
CN117406755A (en) * 2023-12-01 2024-01-16 北京极智嘉科技股份有限公司 Robot obstacle avoidance method, device, equipment and readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108594823A (en) * 2018-05-21 2018-09-28 珠海格力电器股份有限公司 The control method and its control system of sweeping robot
CN108852176A (en) * 2018-05-31 2018-11-23 上海与德通讯技术有限公司 Intelligent cleaning method, cleaning equipment and computer readable storage medium
US20190332119A1 (en) * 2016-12-26 2019-10-31 Lg Electronics Inc. Mobile robot and method of controlling the same
CN111012254A (en) * 2019-12-30 2020-04-17 北京太坦科技有限公司 Intelligent floor sweeping robot
CN111067439A (en) * 2019-12-31 2020-04-28 深圳飞科机器人有限公司 Obstacle processing method and cleaning robot
CN111481105A (en) * 2020-04-20 2020-08-04 北京石头世纪科技股份有限公司 Obstacle avoidance method and device for self-walking robot, robot and storage medium
CN112415998A (en) * 2020-10-26 2021-02-26 珠海市一微半导体有限公司 Obstacle classification and obstacle avoidance control system based on TOF camera
CN112650235A (en) * 2020-03-11 2021-04-13 南京奥拓电子科技有限公司 Robot obstacle avoidance control method and system and robot

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190332119A1 (en) * 2016-12-26 2019-10-31 Lg Electronics Inc. Mobile robot and method of controlling the same
CN108594823A (en) * 2018-05-21 2018-09-28 珠海格力电器股份有限公司 The control method and its control system of sweeping robot
CN108852176A (en) * 2018-05-31 2018-11-23 上海与德通讯技术有限公司 Intelligent cleaning method, cleaning equipment and computer readable storage medium
CN111012254A (en) * 2019-12-30 2020-04-17 北京太坦科技有限公司 Intelligent floor sweeping robot
CN111067439A (en) * 2019-12-31 2020-04-28 深圳飞科机器人有限公司 Obstacle processing method and cleaning robot
CN112650235A (en) * 2020-03-11 2021-04-13 南京奥拓电子科技有限公司 Robot obstacle avoidance control method and system and robot
CN111481105A (en) * 2020-04-20 2020-08-04 北京石头世纪科技股份有限公司 Obstacle avoidance method and device for self-walking robot, robot and storage medium
CN112415998A (en) * 2020-10-26 2021-02-26 珠海市一微半导体有限公司 Obstacle classification and obstacle avoidance control system based on TOF camera

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117032218A (en) * 2023-07-31 2023-11-10 北京小米机器人技术有限公司 Robot cruise control method and device, robot and storage medium
CN117406755A (en) * 2023-12-01 2024-01-16 北京极智嘉科技股份有限公司 Robot obstacle avoidance method, device, equipment and readable storage medium
CN117406755B (en) * 2023-12-01 2024-04-19 北京极智嘉科技股份有限公司 Robot obstacle avoidance method, device, equipment and readable storage medium

Also Published As

Publication number Publication date
CN116416518A (en) 2023-07-11

Similar Documents

Publication Publication Date Title
WO2023115658A1 (en) Intelligent obstacle avoidance method and apparatus
US11130238B2 (en) Mobile control method, mobile robot and computer storage medium
CN112215843B (en) Ultrasonic intelligent imaging navigation method and device, ultrasonic equipment and storage medium
US9704043B2 (en) Systems and methods for capturing images and annotating the captured images with information
KR102577785B1 (en) Cleaning robot and Method of performing task thereof
WO2020248458A1 (en) Information processing method and apparatus, and storage medium
CN114603559A (en) Control method and device for mobile robot, mobile robot and storage medium
KR20180134230A (en) Cleaning robot and controlling method of thereof
KR20240063820A (en) Cleaning robot and Method of performing task thereof
Rong et al. A peduncle detection method of tomato for autonomous harvesting
US11481972B2 (en) Method of performing dendrometry and forest mapping
CN108710367B (en) Laser data identification method and device, robot and storage medium
CN113359692B (en) Obstacle avoidance method and movable robot
CN109479746B (en) Robot pet teasing control method and chip
Maier et al. Vision-based humanoid navigation using self-supervised obstacle detection
Volkhardt et al. People tracking on a mobile companion robot
CN109984691A (en) A kind of sweeping robot control method
CN111421553A (en) Robot control method based on contour recognition, storage medium and mobile robot
CN110853135A (en) Indoor scene real-time reconstruction tracking service method based on endowment robot
Badeka et al. Harvest crate detection for grapes harvesting robot based on YOLOv3 model
CN111309011A (en) Decision-making method, system, equipment and storage medium for autonomously exploring target
Chen et al. Design and Implementation of AMR Robot Based on RGBD, VSLAM and SLAM
KR20230134109A (en) Cleaning robot and Method of performing task thereof
CN113093907B (en) Man-machine interaction method, system, equipment and storage medium
Meng et al. A slope detection method based on 3D LiDAR suitable for quadruped robots

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

Country of ref document: EP

Kind code of ref document: A1