Target obstacle recognition method based on unmanned aerial vehicle and related equipment
By extracting and filtering line segment features and salient features in the UAV flight environment, and combining it with point cloud data, the problem of low UAV obstacle recognition accuracy is solved and higher recognition accuracy and stability are achieved.
Patent Information
- Application Number
- CN202410695540.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-10-11
AI Technical Summary
Existing drones are susceptible to external interference when identifying obstacles, resulting in reduced recognition accuracy. Especially in environments with many low-altitude obstacles, it is difficult to accurately identify specific target obstacles.
By extracting line segment features in the flight environment image, and extracting salient features according to the preset target obstacle shape features, the salient features are used to filter the line segment features, and the position of the obstacle is determined based on point cloud data to avoid misidentification.
It improves the UAV's recognition accuracy of target obstacles, reduces the impact of external interference, and enhances its recognition capabilities in complex airspace environments.
Smart Images

Figure CN118762347A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of unmanned aerial vehicles, and in particular to a target obstacle recognition method based on unmanned aerial vehicles and related equipment. Background Art
[0002] With the continuous advancement of aviation technology and information technology, drones have been widely used and are often more suitable for scenes with many low-altitude obstacles. Due to the more complex and uncertain overall airspace environment, the probability of drones encountering obstacles and colliding during flight increases. Therefore, obstacle recognition during drone flight is particularly important and is a prerequisite for drones to avoid obstacles.
[0003] However, currently, drones mainly use neural network calculations based on visual recognition to identify whether an obstacle to be identified is a specific target obstacle. This method is limited by the obstacle sample volume and the performance of the onboard computer, and is more susceptible to external interference, which reduces the recognition accuracy. Summary of the invention
[0004] In view of this, the purpose of this application is to propose a target obstacle recognition method and related equipment based on drones to solve or partially solve the above-mentioned technical problems.
[0005] Based on the above objectives, the first aspect of the present application provides a target obstacle recognition method based on a drone, comprising:
[0006] Acquiring a flight environment image of the UAV;
[0007] Extracting line segment features of the obstacle to be identified in the flight environment image, and extracting significant features of the obstacle to be identified in the flight environment image according to preset shape features of the target obstacle;
[0008] Filtering the line segment features using the significant features to obtain target line segment features, and acquiring an obstacle area to be identified formed by combining the target line segment features;
[0009] Determine the centroid position of the obstacle area to be identified;
[0010] Acquire point cloud data corresponding to the centroid position, and detect whether point cloud data of an obstacle to be identified corresponding to the shape feature of the target obstacle exists in the point cloud data to obtain a detection result;
[0011] In response to the detection result being yes, determining that the centroid position is the position of the target obstacle in the flight environment image;
[0012] In response to the detection result being negative, it is determined that the centroid position is not the position of the target obstacle in the flight environment image.
[0013] Optionally, extracting line segment features of obstacles to be identified in the flight environment image includes:
[0014] Extracting edges of obstacles to be identified in the flight environment image to obtain an edge image;
[0015] The edge image is processed by line segment detection using a probability-based Hough transform algorithm to obtain line segment features of obstacles to be identified in the flight environment image.
[0016] Optionally, the extracting the significant features of the obstacle to be identified in the flight environment image according to the preset shape features of the target obstacle includes:
[0017] Selecting a target endpoint of an obstacle to be identified in the flight environment image according to a preset shape feature of the target obstacle;
[0018] A neighborhood search is performed on the flight environment image based on the target endpoint to obtain a neighborhood image, and a significant feature algorithm is used to extract significant features from the neighborhood image to obtain significant features of obstacles to be identified in the flight environment image.
[0019] Optionally, the filtering the line segment features by using the significant features to obtain target line segment features includes:
[0020] Preprocessing the line segment feature to obtain a preprocessed line segment feature, wherein the preprocessed line segment feature includes a plurality of preprocessed sub-line segment features;
[0021] Matching the significant feature with the plurality of preprocessed sub-line segment features to obtain a plurality of matching results;
[0022] From the plurality of preprocessed sub-line segment features, the preprocessed sub-line segment features corresponding to the unmatched target matching results in the plurality of matching results are filtered to obtain the target line segment features.
[0023] Optionally, the line segment feature includes a plurality of sub-line segment features;
[0024] The preprocessing of the line segment features to obtain preprocessed line segment features includes:
[0025] Get the continuity feature value corresponding to each sub-segment feature;
[0026] The continuity feature values corresponding to each sub-segment feature are summed up to obtain a summation result;
[0027] Taking any sub-segment feature of the plurality of sub-segment features as a target sub-segment feature, obtaining a target pixel length of the target sub-segment feature, and performing ratio processing on the sum processing result and the target pixel length to obtain a target normalized continuity feature value;
[0028] In response to the target normalized continuity feature value being less than a preset threshold, the target sub-line segment feature is removed from the multiple sub-line segment features to obtain the preprocessed line segment feature.
[0029] Optionally, obtaining the continuity feature value corresponding to each sub-line segment feature includes:
[0030] For each sub-segment feature, do the following:
[0031] Scanning the sub-line segment feature using a pre-constructed scanning window according to a preset scanning path, wherein the scanning window includes a preset number of pixel blocks;
[0032] Performing AND processing on the scanning path and the preset number of pixel blocks respectively to obtain a plurality of AND processing results;
[0033] The plurality of AND processing results are processed by OR to obtain a continuity feature value corresponding to the sub-line segment feature.
[0034] Optionally, the acquiring point cloud data corresponding to the centroid position includes:
[0035] Obtaining coordinate transformation parameters between a pre-constructed image coordinate system and a pre-constructed point cloud coordinate system;
[0036] Based on the coordinate conversion parameters, point cloud data corresponding to the centroid position in the point cloud coordinate system is acquired.
[0037] Based on the same inventive concept, the second aspect of the present application provides a target obstacle identification device based on a drone, comprising:
[0038] An acquisition module is configured to acquire a flight environment image of the UAV;
[0039] an extraction module configured to extract line segment features of the obstacle to be identified in the flight environment image, and extract significant features of the obstacle to be identified in the flight environment image according to a preset shape feature of the target obstacle;
[0040] A filtering module is configured to filter the line segment features using the significant features to obtain target line segment features, and obtain an obstacle area to be identified formed by combining the target line segment features;
[0041] A centroid position determination module, configured to determine the centroid position of the obstacle area to be identified;
[0042] a detection module configured to acquire point cloud data corresponding to the centroid position, and detect whether point cloud data of an obstacle to be identified corresponding to the shape feature of the target obstacle exists in the point cloud data, to obtain a detection result;
[0043] a first determination module configured to determine, in response to the detection result being yes, that the centroid position is the position of a target obstacle in the flight environment image;
[0044] The second determination module is configured to determine, in response to the detection result being negative, that the centroid position is not the position of the target obstacle in the flight environment image.
[0045] Based on the same inventive concept, the third aspect of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the method described in the first aspect above when executing the computer program.
[0046] Based on the same inventive concept, the fourth aspect of the present application provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to execute the method described in the first aspect above.
[0047] From the above, it can be seen that the target obstacle recognition method and related equipment based on the drone provided by the present application extract the line segment features of the obstacles to be identified in the flight environment image, and extract the significant features of the obstacles to be identified in the flight environment image according to the preset shape features of the target obstacles, and then filter the line segment features by using the significant features, which will not be affected by external interference, thereby realizing accurate feature capture, making the obtained target line segment features more accurate, and then obtaining the obstacle area to be identified formed by the combination of the target line segment features, determining the centroid position of the obstacle area to be identified, and finally detecting whether there is point cloud data of the obstacle to be identified corresponding to the shape features of the target obstacle in the point cloud data corresponding to the centroid position, so as to further determine whether the centroid position is the position of the target obstacle in the flight environment image, avoid misidentification, and thus improve the recognition accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0049] Figure 1 This is a flow chart of a target obstacle identification method based on a drone according to an embodiment of the present application;
[0050] Figure 2 This is a structural block diagram of a target obstacle identification device based on a drone according to an embodiment of the present application;
[0051] Figure 3 A schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0052] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0053] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be the usual meanings understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0054] It is understandable that before using the technical solutions of each embodiment of the present application, the type, scope of use, usage scenarios, etc. of the personal information involved will be informed to the user in an appropriate manner, and the user's authorization will be obtained.
[0055] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly remind the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can independently choose whether to provide personal information to the electronic device, application, server, storage medium or other software or hardware that performs the operation of the technical solution of the present application according to the prompt message.
[0056] As an optional but non-limiting implementation, in response to receiving the user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0057] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation method of this application. Other methods that meet relevant laws and regulations may also be applied to the implementation method of this application.
[0058] The embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0059] With the continuous advancement of aviation technology and information technology, drones have been widely used and are often more suitable for scenes with many low-altitude obstacles. Due to the more complex and uncertain airspace environment, the probability of drones encountering obstacles and colliding during flight increases. Therefore, obstacle recognition during flight is particularly important for drones and is a prerequisite for drones to avoid obstacles.
[0060] However, currently, drones mainly use neural network calculations based on visual recognition to identify whether an obstacle to be identified is a specific target obstacle. This method is limited by the obstacle sample volume and the performance of the onboard computer and is more susceptible to external interference, making it difficult to accurately identify the obstacle.
[0061] The embodiment of the present application provides a target obstacle recognition method based on a drone, which extracts line segment features of obstacles to be recognized in a flight environment image, and extracts significant features of obstacles to be recognized in the flight environment image according to preset shape features of the target obstacles, and then uses the significant features to filter the line segment features, which will not be disturbed by the outside world, thereby achieving accurate feature capture, making the obtained target line segment features more accurate, and then obtaining an obstacle area to be recognized formed by a combination of target line segment features, determining the centroid position of the obstacle area to be recognized, and finally detecting whether there is point cloud data of obstacles to be recognized corresponding to the shape features of the target obstacles in the point cloud data corresponding to the centroid position, so as to further judge whether the centroid position is the position of the target obstacle in the flight environment image, avoid misidentification, and thus improve the recognition accuracy.
[0062] like Figure 1 As shown, the method of this embodiment includes:
[0063] Step 101, obtaining a flight environment image of the UAV.
[0064] In this step, a binocular camera is installed on the drone to make up for the shortcomings of the lidar's short detection distance and complex recognition algorithm. The binocular camera is used to output two types of flight environment images, namely, optical three primary colors (Red, Green, Blue, RGB) images and depth images, and the pixels of the quantum type of flight environment images correspond one to one.
[0065] Among them, the optical three-primary color image has relatively rich features, but it is a two-dimensional image and lacks key depth information. Therefore, it is necessary to combine it with a depth map to supplement the depth information. In the depth map, the pixel depth features of specific target obstacles will be more obvious. The binocular camera combines the advantages of the optical three-primary color image and the depth map to further achieve better recognition effects.
[0066] Step 102: extracting line segment features of the obstacles to be identified in the flight environment image, and extracting significant features of the obstacles to be identified in the flight environment image according to preset shape features of the target obstacles.
[0067] In this step, by extracting line segment features from the flight image, the real edges of the obstacles to be identified are accurately detected, and the edge pixels can be precisely positioned based on the obtained line segment features.
[0068] In addition, in the process of line segment feature extraction, using Gaussian filter to smooth the image can effectively suppress noise interference, thereby improving the accuracy of line segment features.
[0069] According to the preset shape features of the target obstacle, the saliency value of each pixel in the image corresponding to the obstacle to be identified in the flight environment image is calculated from multiple different scales, and the saliency values are fused to obtain the saliency features of the obstacle to be identified in the flight environment image.
[0070] The line segment features are combined with the saliency features as a basis for subsequently obtaining the target line segment features that may be specific target obstacles.
[0071] Step 103: Filter the line segment features using the significant features to obtain target line segment features, and obtain the obstacle area to be identified formed by the combination of the target line segment features.
[0072] In this step, the line segment features are filtered using the salient features without being disturbed by the outside world, thereby achieving accurate feature capture and obtaining a set of candidate line segments that may be specific target obstacles (i.e., target line segment features), making the obtained candidate line segment set more accurate.
[0073] Step 104: determine the centroid position of the obstacle area to be identified.
[0074] In this step, the moment feature of the image is used to calculate the centroid coordinates (i.e., centroid position) of the obstacle area to be identified as the geometric center of the obstacle area to be identified. The calculation method is as follows:
[0075]
[0076] Where i, j are pixel coordinates; p, q are subscripts of the moment eigenvalue m, with values of 0, 1; f(i, j) is the grayscale value of the pixel, with values of 0 to 255; is the horizontal coordinate of the center of mass position, is the vertical coordinate of the centroid position.
[0077] Step 105 , acquiring point cloud data corresponding to the centroid position, and detecting whether point cloud data of an obstacle to be identified corresponding to the shape feature of the target obstacle exists in the point cloud data, to obtain a detection result.
[0078] In this step, when the background noise is large, especially when the characteristics of the background are highly similar to those of the target obstacle, the centroid position may not be the position of the target obstacle in the flight environment image. In order to avoid misidentification, the laser radar is introduced to further determine whether the centroid position is the position of the target obstacle in the flight environment image.
[0079] The detection range of the laser radar can cover the detection range of the binocular camera. Therefore, after obtaining the centroid position, the point cloud belonging to the centroid position in the laser radar point cloud can be obtained. Then, in the point cloud, it is detected whether there is point cloud data of a raised target that meets the shape characteristics of the target obstacle to obtain the detection result.
[0080] The binocular camera makes up for the defects of the laser radar with short detection distance and complex recognition algorithm, while the laser radar makes up for the problems of large detection error and low recognition rate of the aerial binocular camera. This application combines the two to complement each other and achieve a better recognition effect.
[0081] Step 106: In response to the detection result being yes, determining that the centroid position is the position of the target obstacle in the flight environment image.
[0082] In this step, if the detection result is yes, it means that there is point cloud data of a raised target that meets the shape characteristics of the target obstacle, and the center of mass position is considered to be the position of the specific target obstacle in the flight environment image, thereby achieving fast and accurate identification.
[0083] Step 107: In response to the detection result being negative, determining that the centroid position is not the position of the target obstacle in the flight environment image.
[0084] In this step, if the detection result is no, it means that there is no point cloud data of a raised target that meets the shape characteristics of the target obstacle. In this case, the center of mass position is considered not to be the position of a specific target obstacle in the flight environment image and is screened out, thereby achieving fast and accurate identification.
[0085] Through the above scheme, by extracting the line segment features of the obstacles to be identified in the flight environment image, and extracting the significant features of the obstacles to be identified in the flight environment image according to the preset shape features of the target obstacles, and then filtering the line segment features by using the significant features, it will not be disturbed by the outside world, thereby realizing accurate feature capture, making the obtained target line segment features more accurate, and then obtaining the obstacle area to be identified formed by the combination of the target line segment features, determining the centroid position of the obstacle area to be identified, and finally detecting whether there is point cloud data of the obstacle to be identified corresponding to the shape features of the target obstacle in the point cloud data corresponding to the centroid position, so as to further judge whether the centroid position is the position of the target obstacle in the flight environment image, avoid misidentification, and thus improve the recognition accuracy.
[0086] In some embodiments, in step 102, extracting line segment features of obstacles to be identified in the flight environment image includes:
[0087] Step A1, extracting the edges of obstacles to be identified in the flight environment image to obtain an edge image.
[0088] Step A2: Perform line segment detection processing on the edge image using a probability-based Hough transform algorithm to obtain line segment features of obstacles to be identified in the flight environment image.
[0089] In the above scheme, an edge extraction algorithm (Canny operator) is used to extract the edges of obstacles to be identified in the flight environment image to obtain an edge image.
[0090] The Canny operator can accurately detect the real edges of obstacles to be identified in the flight environment image, and can also achieve detailed positioning of edge pixels based on the obtained line segment features.
[0091] Moreover, in the process of extracting line segment features, the Canny operator can effectively suppress noise interference by using a Gaussian filter to smooth the image, thereby improving the accuracy of line segment features. A dual threshold method is used to divide edge pixels into strong edges and weak edges, and the weak edges are connected to the strong edges through the edge connection algorithm, so that the edge lines of the obtained line segment features are more continuous.
[0092] In addition, the parameters of the Canny operator include the size of the Gaussian filter, the setting of the double threshold, etc. These parameters can be adjusted according to the specific application to obtain an edge image that meets the requirements.
[0093] Then, the edge image is processed by line segment detection based on the probability-based Hough transform algorithm (Hough) to obtain a set of candidate line segments (ie, line segment features).
[0094] In some embodiments, in step 102, extracting the significant features of the obstacle to be identified in the flight environment image according to the preset shape features of the target obstacle includes:
[0095] Step B1, selecting a target endpoint of an obstacle to be identified in the flight environment image according to a preset shape feature of the target obstacle.
[0096] Step B2, performing a neighborhood search on the flight environment image based on the target endpoint to obtain a neighborhood image, and using a significant feature algorithm to extract significant features from the neighborhood image to obtain significant features of the obstacles to be identified in the flight environment image.
[0097] In the above scheme, the shape features of specific target obstacles are analyzed and pre-stored, and then the target endpoints of the obstacles to be identified in the flight environment image are selected according to the shape features, and a search is performed in the neighborhood of the target endpoints. A neighborhood image can be obtained within a certain neighborhood, and then a saliency feature algorithm (AC algorithm) is used to perform saliency detection on the neighborhood image, so that the saliency features of the obstacles to be identified in the obtained flight environment image are more accurate.
[0098] For example, analyzing the structural diagram of a specific target obstacle, one end of the strip is a concrete base, that is, the base intersects with the strip line segment. The base has relatively obvious features whether it is above or below the water surface. Therefore, by searching in the neighborhood of the end point of the strip line segment (that is, the target end point), a certain neighborhood image can be obtained, and the AC method is used to perform saliency detection in a certain neighborhood image to obtain the salient position of the base (that is, the salient feature).
[0099] In some embodiments, in step 103, filtering the line segment features using the salient features to obtain target line segment features includes:
[0100] Step C1, preprocessing the line segment feature to obtain a preprocessed line segment feature, wherein the preprocessed line segment feature includes a plurality of preprocessed sub-line segment features.
[0101] Step C2, matching the significant feature with the plurality of preprocessed sub-line segment features to obtain a plurality of matching results.
[0102] Step C3: filtering the preprocessed sub-line segment features corresponding to the unmatched target matching results in the multiple matching results from the multiple preprocessed sub-line segment features to obtain the target line segment features.
[0103] In the above scheme, the extracted line segment features may contain noise, and the sources of noise are various. Therefore, the line segment features are preprocessed to filter out the noise, so as to screen out most of the misdetected line segments and obtain the preprocessed line segment features, thereby further improving the recognition accuracy.
[0104] The salient features are used to match each preprocessed sub-segment feature respectively, and the preprocessed sub-segment features with mismatching results are eliminated from multiple preprocessed sub-segment features, so as to quickly obtain a candidate segment set (i.e., target segment features) that may be specific target obstacles.
[0105] In some embodiments, the line segment feature includes a plurality of sub-line segment features.
[0106] Step C1 comprises:
[0107] Step C11, obtaining the continuity feature value corresponding to each sub-segment feature.
[0108] Step C12, summing up the continuity feature values corresponding to each sub-segment feature to obtain a summing result.
[0109] Step C13, taking any sub-segment feature among the multiple sub-segment features as a target sub-segment feature, obtaining a target pixel length of the target sub-segment feature, and performing ratio processing on the sum processing result and the target pixel length to obtain a target normalized continuity feature value.
[0110] Step C14, in response to the target normalized continuity feature value being less than a preset threshold, removing the target sub-line segment feature from the multiple sub-line segment features to obtain the preprocessed line segment feature.
[0111] In the above scheme, in order to measure the line segment features on a unified scale, the feature line segments are normalized, and the continuity feature value of each pixel on the line segment (that is, the continuity feature value corresponding to each sub-line segment feature) is added and divided by the line segment length (that is, the target pixel length) to obtain the normalized continuity feature value of the line segment, as follows:
[0112] Where L represents the pixel length of the line segment (i.e., the target pixel length), i represents the pixel traversal index on the line segment, ranging from 0 to L, and F line represents the normalized continuous eigenvalue, represents the result of the summation process, K i Represents a continuous eigenvalue.
[0113] For the line segment of the obstacle to be identified, its continuity is good, and the normalized continuity eigenvalue F line Higher; while other noises are less continuous, F line By setting a suitable threshold (i.e., a preset threshold), it is used to distinguish the candidate line segments of obstacles to be identified (i.e., the preprocessed line segment features) and the noise (i.e., the target sub-line segment features), thereby filtering out the noise to a large extent.
[0114] In some embodiments, step C11 includes:
[0115] Step C111, performing the following operations on each sub-line segment feature:
[0116] Step C1111: Scan the sub-line segment feature using a pre-constructed scanning window according to a preset scanning path, wherein the scanning window includes a preset number of pixel blocks.
[0117] Step C1112, performing AND processing on the scanning path and the preset number of pixel blocks respectively to obtain a plurality of AND processing results.
[0118] Step C1113, performing OR processing on the multiple AND processing results to obtain a continuity feature value corresponding to the sub-line segment feature.
[0119] In the above scheme, in order to filter out noise, a detection operator is pre-constructed, and the image containing sub-line segment features is scanned using the scanning window of the detection operator. When scanning, it is scanned from one end to the other end along the direction of the sub-line segment feature to detect its continuity characteristics. The scanning window includes a preset number of pixel blocks.
[0120] A preset scanning path and a preset number of pixel blocks are used to perform AND processing respectively to obtain a plurality of AND processing results, and then OR processing is performed on the plurality of AND processing results, so that the continuity characteristic value can be obtained relatively quickly.
[0121] For example, a detection operator of three-sided, large and small pixel blocks is designed to scan an image containing sub-line segment features. When scanning, it scans from one end to the other along the direction of the sub-line segment feature to detect its continuity feature. The scanning window contains 3, 9 pixel blocks in total, numbered m00-m22, and each pixel block contains 2 colors: blue is 1 and white is 0.
[0122] Four scanning paths are designed. The angle between the scanning path and the scanning window is divided into four intervals. The continuity characteristic value of the pixel is K i . K iThe calculation process is as follows: the scanning path and the 9 pixels are respectively “ANDed” to obtain 9 calculation results, and the 9 results are “ORed” to obtain K i value.
[0123] In some embodiments, in step 105, obtaining point cloud data corresponding to the centroid position includes:
[0124] Step D1, obtaining coordinate conversion parameters between a pre-constructed image coordinate system and a pre-constructed point cloud coordinate system.
[0125] Step D2, acquiring point cloud data corresponding to the centroid position in the point cloud coordinate system based on the coordinate conversion parameters.
[0126] In the above scheme, when the background noise is large, especially when the characteristics of the background are highly similar to those of the target obstacle, the centroid position may not be the position of the target obstacle in the flight environment image. In order to avoid misidentification, a laser radar is introduced to further determine whether the centroid position is the position of the target obstacle in the flight environment image.
[0127] The detection range of the laser radar can cover the detection range of the binocular camera. Therefore, after obtaining the centroid position, the processing core can quickly obtain the point cloud belonging to the centroid position in the laser radar point cloud according to the conversion relationship between the radar's point cloud coordinate system and the camera's image coordinate system (that is, the coordinate conversion parameters).
[0128] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.
[0129] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0130] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a target obstacle identification device based on a drone.
[0131] refer to Figure 2 , the target obstacle recognition device based on drone includes:
[0132] The acquisition module 201 is configured to acquire a flight environment image of the UAV;
[0133] The extraction module 202 is configured to extract line segment features of the obstacle to be identified in the flight environment image, and extract significant features of the obstacle to be identified in the flight environment image according to the preset shape features of the target obstacle;
[0134] The filtering module 203 is configured to filter the line segment features using the significant features to obtain target line segment features, and obtain the obstacle area to be identified formed by the combination of the target line segment features;
[0135] A centroid position determination module 204 is configured to determine the centroid position of the obstacle area to be identified;
[0136] A detection module 205 is configured to obtain point cloud data corresponding to the centroid position, and determine whether the centroid position is the position of a target obstacle in the flight environment image based on the point cloud data;
[0137] A first determination module 206 is configured to determine, in response to the detection result being yes, that the centroid position is the position of a target obstacle in the flight environment image;
[0138] The second determination module 207 is configured to determine, in response to the detection result being negative, that the centroid position is not the position of the target obstacle in the flight environment image.
[0139] In some embodiments, the extraction module 202 is specifically configured to:
[0140] Extracting edges of obstacles to be identified in the flight environment image to obtain an edge image;
[0141] The edge image is processed by line segment detection using a probability-based Hough transform algorithm to obtain line segment features of obstacles to be identified in the flight environment image.
[0142] In some embodiments, the extraction module 202 is specifically configured to:
[0143] Selecting a target endpoint of an obstacle to be identified in the flight environment image according to a preset shape feature of the target obstacle;
[0144] A neighborhood search is performed on the flight environment image based on the target endpoint to obtain a neighborhood image, and a significant feature algorithm is used to extract significant features from the neighborhood image to obtain significant features of obstacles to be identified in the flight environment image.
[0145] In some embodiments, the filtering module 203 includes:
[0146] A preprocessing unit is configured to preprocess the line segment feature to obtain a preprocessed line segment feature, wherein the preprocessed line segment feature includes a plurality of preprocessed sub-line segment features;
[0147] a matching unit configured to match the significant feature with the plurality of preprocessed sub-line segment features to obtain a plurality of matching results;
[0148] The filtering unit is configured to filter the preprocessed sub-line segment features corresponding to the unmatched target matching results in the multiple matching results from the multiple preprocessed sub-line segment features to obtain the target line segment features.
[0149] In some embodiments, the line segment feature includes a plurality of sub-line segment features;
[0150] Pre-processing unit, including:
[0151] An acquisition subunit is configured to acquire a continuity feature value corresponding to each sub-line segment feature;
[0152] The summing subunit is configured to sum the continuity feature values corresponding to each sub-line segment feature to obtain a summing result;
[0153] a ratio subunit, configured to use any sub-segment feature of the plurality of sub-segment features as a target sub-segment feature, obtain a target pixel length of the target sub-segment feature, and perform ratio processing on the sum processing result and the target pixel length to obtain a target normalized continuity feature value;
[0154] The elimination sub-unit is configured to eliminate the target sub-line segment feature from the multiple sub-line segment features in response to the target normalized continuity feature value being less than a preset threshold value, so as to obtain the preprocessed line segment feature.
[0155] In some embodiments, the acquisition subunit is specifically configured to:
[0156] For each sub-segment feature, do the following:
[0157] Scanning the sub-line segment feature using a pre-constructed scanning window according to a preset scanning path, wherein the scanning window includes a preset number of pixel blocks;
[0158] Performing AND processing on the scanning path and the preset number of pixel blocks respectively to obtain a plurality of AND processing results;
[0159] The plurality of AND processing results are processed by OR to obtain a continuity feature value corresponding to the sub-line segment feature.
[0160] In some embodiments, the detection module 205 is specifically configured to:
[0161] Obtaining coordinate transformation parameters between a pre-constructed image coordinate system and a pre-constructed point cloud coordinate system;
[0162] Based on the coordinate conversion parameters, point cloud data corresponding to the centroid position in the point cloud coordinate system is acquired.
[0163] For the convenience of description, the above device is described in terms of functions divided into various modules. Of course, when implementing the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0164] The device of the above embodiment is used to implement the corresponding drone-based target obstacle identification method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0165] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the drone-based target obstacle recognition method described in any of the above embodiments is implemented.
[0166] Figure 3 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 301, a memory 302, an input / output interface 303, a communication interface 304, and a bus 305. The processor 301, the memory 302, the input / output interface 303, and the communication interface 304 are connected to each other in communication within the device through the bus 305.
[0167] The processor 301 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0168] The memory 302 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 302 can store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 302 and called and executed by the processor 301.
[0169] The input / output interface 303 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device can include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device can include a display, a speaker, a vibrator, an indicator light, etc.
[0170] The communication interface 304 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).
[0171] The bus 305 comprises a pathway for transmitting information between the various components of the device (eg, the processor 301 , the memory 302 , the input / output interface 303 , and the communication interface 304 ).
[0172] It should be noted that, although the above device only shows the processor 301, the memory 302, the input / output interface 303, the communication interface 304 and the bus 305, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.
[0173] The electronic device of the above embodiment is used to implement the corresponding drone-based target obstacle identification method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0174] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the drone-based target obstacle identification method as described in any of the above embodiments.
[0175] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0176] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the target obstacle identification method based on a drone as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0177] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.
[0178] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.
[0179] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0180] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.
Claims
1. A target obstacle recognition method based on drone, characterized in that: include: Acquiring a flight environment image of the UAV; Extracting line segment features of the obstacle to be identified in the flight environment image, and extracting significant features of the obstacle to be identified in the flight environment image according to preset shape features of the target obstacle; Filtering the line segment features using the significant features to obtain target line segment features, and acquiring an obstacle area to be identified formed by combining the target line segment features; Determine the centroid position of the obstacle area to be identified; Acquire point cloud data corresponding to the centroid position, and detect whether point cloud data of an obstacle to be identified corresponding to the shape feature of the target obstacle exists in the point cloud data to obtain a detection result; In response to the detection result being yes, determining that the centroid position is the position of the target obstacle in the flight environment image; In response to the detection result being negative, it is determined that the centroid position is not the position of the target obstacle in the flight environment image.
2. The method according to claim 1, characterized in that The extracting line segment features of obstacles to be identified in the flight environment image includes: Extracting edges of obstacles to be identified in the flight environment image to obtain an edge image; The edge image is processed by line segment detection using a probability-based Hough transform algorithm to obtain line segment features of obstacles to be identified in the flight environment image.
3. The method according to claim 1, characterized in that The extracting the significant features of the obstacle to be identified in the flight environment image according to the preset shape features of the target obstacle includes: Selecting a target endpoint of an obstacle to be identified in the flight environment image according to a preset shape feature of the target obstacle; A neighborhood search is performed on the flight environment image based on the target endpoint to obtain a neighborhood image, and a significant feature algorithm is used to extract significant features from the neighborhood image to obtain significant features of obstacles to be identified in the flight environment image.
4. The method according to claim 1, characterized in that: The filtering the line segment features by using the significant features to obtain target line segment features includes: Preprocessing the line segment feature to obtain a preprocessed line segment feature, wherein the preprocessed line segment feature includes a plurality of preprocessed sub-line segment features; Matching the significant feature with the plurality of preprocessed sub-line segment features to obtain a plurality of matching results; From the plurality of preprocessed sub-line segment features, the preprocessed sub-line segment features corresponding to the unmatched target matching results in the plurality of matching results are filtered to obtain the target line segment features.
5. The method according to claim 4, characterized in that The line segment feature includes a plurality of sub-line segment features; The preprocessing of the line segment features to obtain preprocessed line segment features includes: Get the continuity feature value corresponding to each sub-segment feature; The continuity feature values corresponding to each sub-segment feature are summed up to obtain a summation result; Taking any sub-segment feature of the plurality of sub-segment features as a target sub-segment feature, obtaining a target pixel length of the target sub-segment feature, and performing ratio processing on the sum processing result and the target pixel length to obtain a target normalized continuity feature value; In response to the target normalized continuity feature value being less than a preset threshold, the target sub-line segment feature is removed from the multiple sub-line segment features to obtain the preprocessed line segment feature.
6. The method according to claim 5, characterized in that The obtaining of the continuity feature value corresponding to each sub-line segment feature includes: For each sub-segment feature, do the following: Scanning the sub-line segment feature using a pre-constructed scanning window according to a preset scanning path, wherein the scanning window includes a preset number of pixel blocks; Performing AND processing on the scanning path and the preset number of pixel blocks respectively to obtain a plurality of AND processing results; The plurality of AND processing results are processed by OR to obtain a continuity feature value corresponding to the sub-line segment feature.
7. The method according to claim 1, characterized in that The acquiring of point cloud data corresponding to the centroid position includes: Obtaining coordinate transformation parameters between a pre-constructed image coordinate system and a pre-constructed point cloud coordinate system; Based on the coordinate conversion parameters, point cloud data corresponding to the centroid position in the point cloud coordinate system is acquired.
8. A target obstacle recognition device based on a drone, characterized in that: include: An acquisition module is configured to acquire a flight environment image of the UAV; an extraction module configured to extract line segment features of the obstacle to be identified in the flight environment image, and extract significant features of the obstacle to be identified in the flight environment image according to a preset shape feature of the target obstacle; A filtering module is configured to filter the line segment features using the significant features to obtain target line segment features, and obtain an obstacle area to be identified formed by combining the target line segment features; A centroid position determination module, configured to determine the centroid position of the obstacle area to be identified; a detection module configured to acquire point cloud data corresponding to the centroid position, and detect whether point cloud data of an obstacle to be identified corresponding to the shape feature of the target obstacle exists in the point cloud data, to obtain a detection result; a first determination module configured to determine, in response to the detection result being yes, that the centroid position is the position of a target obstacle in the flight environment image; The second determination module is configured to determine, in response to the detection result being negative, that the centroid position is not the position of the target obstacle in the flight environment image.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 7 is implemented.
10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 7.
Citation Information
Cited By
Unmanned aerial vehicle inspection target recognition algorithm fusing graph neural network and spatial semantics
CN120375245A
