Unmanned driving formula racing car environment perception method, device, equipment and medium

Through real-time drivable area plane fitting and YOLOv7-tiny model combined with Euclidean clustering algorithm, the problem of non-target misclustering and low fusion efficiency in driverless formula racing environment perception is solved, and efficient and accurate target detection and Point cloud processing.

CN118447282BInactive Publication Date: 2024-10-22GUANGDONG UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410904251.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-10-22
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In driverless formula racing environment perception, in the existing technology, the point cloud is clustered in the whole scene and then fused with the visual detection results, which is prone to non-target mis-clustering and low fusion efficiency, and requires high computing power. It is difficult for mechanical lidar to take into account point cloud density and hardware cost, which affects the detection effect.

Method used

It adopts the multi-point scanning capability and high-resolution three-dimensional imaging characteristics of solid-state lidar, and performs precise segmentation through real-time drivable area plane fitting technology. Combined with the YOLOv7-tiny lightweight target detection model and Euclidean clustering algorithm, it can segment drivable areas first. Regions and perform data fusion to avoid mis-clustering of non-targets and improve detection efficiency.

Benefits of technology

It significantly improves the accuracy of target detection and the efficiency of the system, maximizes the advantages of solid-state lidar hardware, optimizes point cloud processing performance, reduces computing power consumption, and improves detection and fusion efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118447282B_ABST
    Figure CN118447282B_ABST
Patent Text Reader

Abstract

The present application relates to an unmanned driving formula racing environment perception method, device, equipment and medium, the method comprising: converting the three-dimensional coordinates of the point cloud data corresponding to the drivable area and obstacles into two-dimensional coordinates, matching the positions corresponding to the two-dimensional detection frame, selecting the point cloud data in the two-dimensional detection frame as the target point cloud data corresponding to the drivable area and obstacles; dividing the target point cloud data into short-distance, medium-long-distance and long-distance target point cloud data based on a preset distance threshold, performing Euclidean clustering on the short-distance, medium-long-distance and long-distance target point cloud data to determine the position information corresponding to the drivable area and obstacles; obtaining the first driving environment perception information based on the category information and position information corresponding to the drivable area and obstacles. The present application effectively avoids the problem of mis-clustering of non-target objects that may be caused by clustering the entire scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent driving, and in particular to an environment perception method for an unmanned formula one racing car, a corresponding device, an electronic device, and a computer-readable storage medium. Background Art

[0002] In the field of environmental perception of driverless formula racing, commonly used sensors include monocular cameras, lidar, millimeter wave radar, etc. Monocular cameras are mainly used to capture image information, while lidar can provide more accurate distance and position information of objects. However, the data of a single sensor may be uncertain and incomplete, so it cannot provide comprehensive and accurate environmental information. In order to solve this problem, multi-sensor fusion technology is usually used to obtain more reliable and accurate environmental perception results.

[0003] Multi-sensor fusion technology refers to the technology that uses the information of two or more sensors to process data through fusion algorithms to improve the sensor's perception performance, accuracy and robustness of the environment. Generally speaking, multi-sensor fusion technology mainly covers three levels: information fusion, data fusion and feature fusion. In the information fusion stage, sensor information is integrated according to certain rules to generate new information. Data fusion focuses on processing the raw data collected by the sensor, so as to obtain more accurate data and enhance the perception accuracy of the environment. As for feature fusion, its main task is to integrate the feature information extracted by different sensors to form a richer and more complex feature description, thereby improving the ability to analyze the environment. After multi-sensor fusion, more accurate data can be obtained, which is of great significance in the fields of automated control, machine vision, intelligent transportation, security monitoring, etc.

[0004] In traditional technology, it uses mechanical laser radar, which makes it difficult to balance point cloud density and hardware cost, and is prone to point cloud sparseness and point cloud interference in the drivable area, affecting the detection effect; the target detection model in the existing technology is large, the operating efficiency is low, and the computing power requirements of the industrial computer are high; and three-dimensional target detection is performed on the point cloud, and the point cloud is clustered for the entire scene and then fused with the visual detection results, which is prone to non-target misclustering, low fusion efficiency, and high computing power requirements.

[0005] In summary, the existing technology of clustering point clouds in the entire scene and then fusing them with the visual detection results is prone to non-target misclustering, low fusion efficiency, and high computing power requirements. The applicant has made corresponding explorations to solve these problems. Summary of the invention

[0006] The purpose of this application is to solve the above-mentioned problems and to provide an unmanned formula racing car environment perception method, corresponding device, electronic device and computer-readable storage medium.

[0007] In order to meet the various objectives of this application, this application adopts the following technical solutions:

[0008] A method for sensing the environment of an unmanned formula car proposed to meet one of the purposes of this application includes:

[0009] Obtain camera image data from a camera and lidar point cloud data from a lidar, perform target detection on the camera image data based on a target detection model that has been trained to a convergent state, and determine a two-dimensional detection frame and category information corresponding to a drivable area and obstacles;

[0010] Performing drivable area point cloud segmentation on the laser radar point cloud data based on a preset drivable area point cloud segmentation algorithm to determine point cloud data corresponding to the drivable area and obstacles;

[0011] Convert the three-dimensional coordinates of the point cloud data corresponding to the drivable area and the obstacle into two-dimensional coordinates, match them with the positions corresponding to the two-dimensional detection frame, and select the point cloud data in the two-dimensional detection frame as the target point cloud data corresponding to the drivable area and the obstacle;

[0012] The target point cloud data is divided into short-distance, medium-distance and long-distance target point cloud data based on a preset distance threshold, and the short-distance, medium-distance and long-distance target point cloud data are subjected to Euclidean clustering to determine the corresponding position information of the drivable area and the obstacles;

[0013] Based on the drivable area, category information and position information corresponding to obstacles, first driving environment perception information is obtained, and the unmanned formula racing car is driven to drive in the drivable area according to the first driving environment perception information to complete the environmental perception of the unmanned formula racing car.

[0014] Optionally, before the step of obtaining camera image data and lidar point cloud data, the following steps are included:

[0015] In response to the sensor space alignment command, the camera is calibrated individually to determine the camera intrinsic parameters, camera extrinsic parameters and distortion parameters to transform the world coordinate system into the pixel coordinate system;

[0016] The camera and lidar are jointly calibrated, and the characteristics of the same calibration plate captured by the lidar and camera are used as constraints to match these characteristics and solve the extrinsic parameter matrix between the two coordinate systems. The lidar coordinate system is transformed into the camera coordinate system and the pixel coordinate system through the extrinsic parameter matrix and the camera intrinsic parameter matrix.

[0017] Optionally, before the step of acquiring the camera image data from the camera and the lidar point cloud data from the lidar, the following steps are included:

[0018] The camera and the laser radar are time-aligned, and the monocular camera and the solid-state laser radar are connected by a robot operating system. When each frame of camera image data and laser radar point cloud data is generated, the robot operating system driving node stamps it with a global reference timestamp, so as to facilitate the timestamp alignment of the message filter of the robot operating system;

[0019] Taking the time of the lidar point cloud data as a reference, the message filter of the robot operating system searches for the nearest neighbor timestamp within the timestamp threshold to determine a matching timestamp, and discards useless queue data that is less than the matching timestamp to complete the matching of the camera image data and the lidar point cloud data.

[0020] Optionally, the step of converting the three-dimensional coordinates of the point cloud data corresponding to the drivable area and the obstacle into two-dimensional coordinates, matching them with the positions corresponding to the two-dimensional detection frame, and selecting the point cloud data in the two-dimensional detection frame as the target point cloud data corresponding to the drivable area and the obstacle includes:

[0021] Based on the preset plane model, multiply all points with the normal vector of the drivable area plane to obtain the distance between each point and the ground plane;

[0022] The points whose distance is less than the preset distance threshold are classified as drivable area points. All drivable area points after classification will be segmented and used as seed point sets for the next iteration to iteratively optimize the plane.

[0023] Optionally, after the step of obtaining the first driving environment perception information based on the drivable area, the category information and the position information corresponding to the obstacle, the method further includes:

[0024] Acquire positioning information corresponding to the driverless formula car from a positioning sensor, wherein the positioning information is current posture information relative to an initial posture and global posture information on a global map;

[0025] fusing the positioning information corresponding to the driverless formula racing car and the first driving environment perception information to determine second driving environment perception information;

[0026] The unmanned formula one racing car is driven to travel in the drivable area according to the second driving environment perception information, so as to complete the environment perception of the unmanned formula one racing car.

[0027] Optionally, the step of driving the driverless formula one racing car to drive in the drivable area according to the second driving environment perception information includes:

[0028] The obstacle includes one or more of pedestrians, animals or cones, and the three-dimensional coordinate system of the laser radar point cloud data is converted into a world coordinate system;

[0029] The robot operating system in the unmanned formula racing car is used to publish the target positions and categories corresponding to the drivable area, the pedestrians, animals and cones, and the unmanned formula racing car is driven to avoid the pedestrians, animals or cones in the drivable area according to the second driving environment perception information, so as to complete the environmental perception of the unmanned formula racing car.

[0030] Optionally, the basic network architecture of the target detection model is a YOLOv7_tiny model, and the camera image data includes one or more of obstacle information, traffic sign information, drivable area information, oncoming vehicle light information, and lane line information.

[0031] An unmanned driving formula racing car environment perception device provided for another purpose of the present application includes:

[0032] A target detection module is configured to obtain camera image data from a camera and lidar point cloud data from a lidar, perform target detection on the camera image data based on a target detection model that has been trained to a convergence state, and determine a two-dimensional detection frame and category information corresponding to a drivable area and obstacles;

[0033] A drivable area determination module is configured to perform drivable area point cloud segmentation on the laser radar point cloud data based on a preset drivable area point cloud segmentation algorithm to determine point cloud data corresponding to the drivable area and obstacles;

[0034] A matching module, configured to convert the three-dimensional coordinates of the point cloud data corresponding to the drivable area and the obstacle into two-dimensional coordinates, match them with the positions corresponding to the two-dimensional detection frame, and select the point cloud data in the two-dimensional detection frame as the target point cloud data corresponding to the drivable area and the obstacle;

[0035] a position information determination module, configured to divide the target point cloud data into short-distance, medium-long-distance and long-distance target point cloud data based on a preset distance threshold, and perform Euclidean clustering on the short-distance, medium-long-distance and long-distance target point cloud data to determine the position information corresponding to the drivable area and the obstacles;

[0036] The environment perception module is configured to obtain first driving environment perception information based on the drivable area, category information corresponding to obstacles, and position information, and drive the unmanned formula racing car to drive in the drivable area according to the first driving environment perception information to complete the environment perception of the unmanned formula racing car.

[0037] An electronic device provided to meet another purpose of the present application includes a central processing unit and a memory, wherein the central processing unit is used to call and run a computer program stored in the memory to execute the steps of the unmanned formula racing car environment perception method described in the present application.

[0038] A computer-readable storage medium is provided to meet another purpose of the present application, which stores a computer program implemented according to the unmanned formula racing car environment perception method in the form of computer-readable instructions. When the computer program is called and executed by a computer, the steps included in the corresponding method are executed.

[0039] Compared with the prior art, the present application aims at the following problems: the prior art clusters the point cloud for the entire scene and then fuses it with the visual detection result, which is prone to non-target mis-clustering, low fusion efficiency, and high computing power requirements. The present application includes but is not limited to the following beneficial effects:

[0040] First, it is difficult to take into account both point cloud density and hardware cost when using mechanical laser radar, and there are problems such as sparse point cloud and interference of point cloud in the drivable area, which affects the detection effect. This application makes full use of the multi-point scanning capability and high-resolution three-dimensional imaging characteristics of solid-state laser radar, and adopts a comprehensive and detailed point cloud processing strategy. This strategy implements real-time drivable area plane fitting technology to achieve accurate segmentation of the drivable area. This process effectively eliminates the interference of the drivable area point cloud on the detection results through continuous iterative optimization, while ensuring that the integrity of the target point cloud is maintained. Such processing not only significantly improves the accuracy of target detection, but also maximizes the hardware advantages of solid-state laser radar, ensuring the efficiency and reliability of the system in various application scenarios;

[0041] Secondly, the target detection model is large, has low operating efficiency, and requires high computing power of industrial computers. This application introduces YOLOv7-tiny, which is an efficient and lightweight target detection model. In order to further improve the performance of the model, it implements a data enhancement strategy to enrich the diversity of samples, thereby enhancing the generalization ability and robustness of the model. During the annotation process, the self-service shape annotation tool performs semi-automatic image annotation. This method reduces the demand for computing resources while ensuring the accuracy and processing speed of detection; through these optimization measures, the model of this application achieves high-quality target detection performance while maintaining low computing power consumption.

[0042] Third, in view of the problems that the existing technology clusters the point cloud in the whole scene and then fuses it with the visual detection results, it is easy to cause non-target misclustering, low fusion efficiency, and high computing power requirements. This application abandons the traditional three-dimensional point cloud target detection method and adopts an innovative point cloud processing strategy, which follows the steps of "segmentation of the drivable area first, data fusion later, and Euclidean clustering at the end". Specifically, first perform an accurate drivable area segmentation operation to separate the background noise and determine the target area of ​​interest. Then, the segmented drivable area point cloud data is combined with the two-dimensional detection frame to accurately identify and define the target point cloud set; finally, these target point clouds are classified according to distance and the Euclidean clustering algorithm is applied separately. This not only effectively avoids the misclustering problem of non-target objects that may be caused by clustering the entire scene, and the problem of cluster loss due to the sparseness of the long-distance target point cloud, but also significantly improves the detection efficiency and data fusion efficiency of the entire point cloud processing process. Through this strategy, the present application achieves efficient and accurate detection of target objects and optimizes the performance of point cloud data processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0044] Figure 1 An exemplary network architecture used in the environment perception method of the driverless formula car of this application;

[0045] Figure 2 A schematic diagram of a process flow of an unmanned formula racing car environment perception method in an embodiment of the present application;

[0046] Figure 3 This is a schematic diagram of the effect of performing target detection on camera image data based on the target detection model in an embodiment of the present application;

[0047] Figure 4 A schematic diagram of the calibration results of the laser radar and camera joint calibration in an embodiment of the present application;

[0048] Figure 5 A flowchart of aligning timestamps of laser radar point cloud data and camera image data in an embodiment of the present application;

[0049] Figure 6 A schematic diagram of point cloud data of a drivable area segmented in an embodiment of the present application;

[0050] Figure 7 A schematic diagram of the fusion detection effect of the laser radar point cloud data and the camera image data in the embodiment of the present application;

[0051] Figure 8 This is a principle block diagram of an unmanned formula racing car environment perception device in an embodiment of the present application;

[0052] Fig. 9 It is a schematic diagram of the structure of the computer device in the embodiment of the present application. DETAILED DESCRIPTION

[0053] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be interpreted as limiting the present application.

[0054] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.

[0055] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as generally understood by those skilled in the art to which this application belongs. It should also be understood that terms such as those defined in common dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as here.

[0056] It will be understood by those skilled in the art that the "client", "terminal" and "terminal device" used herein include both devices with wireless signal receivers, which are devices with only wireless signal receivers without transmission capabilities, and devices with receiving and transmitting hardware, which are devices with receiving and transmitting hardware capable of two-way communication on a two-way communication link. Such devices may include: cellular or other communication devices such as personal computers, tablet computers, which have single-line displays or multi-line displays or cellular or other communication devices without multi-line displays; PCS (Personal Communications Service, personal communication system), which can combine voice, data processing, fax and / or data communication capabilities; PDA (Personal Digital Assistant, personal digital assistant), which may include a radio frequency receiver, pager, Internet / intranet access, web browser, notepad, calendar and / or GPS (Global Positioning System, global positioning system) receiver; conventional laptop and / or palmtop computers or other devices, which have and / or include a conventional laptop and / or palmtop computer or other device with and / or including a radio frequency receiver. The "client", "terminal" and "terminal device" used herein may be portable, transportable, installed in a vehicle (air, sea and / or land), or suitable and / or configured to run locally, and / or in a distributed form, at any other location on the earth and / or in space. The "client", "terminal" and "terminal device" used herein may also be a communication terminal, an Internet terminal, a music / video playback terminal, such as a PDA, a MID (Mobile Internet Device) and / or a mobile phone with a music / video playback function, or a smart TV, a set-top box and other devices.

[0057] The hardware referred to by the names such as "server", "client", and "service node" in this application is essentially an electronic device with capabilities equivalent to those of a personal computer. It is a hardware device that has the necessary components revealed by the von Neumann principle, such as a central processing unit (including an arithmetic unit and a controller), a memory, an input device, and an output device. The computer program is stored in its memory, and the central processing unit calls the program stored in the external memory into the internal memory for execution, executes the instructions in the program, and interacts with the input and output devices to complete specific functions.

[0058] It should be pointed out that the concept of "server" referred to in this application can also be extended to the case of server clusters. According to the network deployment principle understood by those skilled in the art, the servers should be logically divided. In physical space, these servers can be independent of each other but can be called through interfaces, or integrated into a physical computer or a set of computer clusters. Those skilled in the art should understand this flexibility, and should not use it to restrict the implementation of the network deployment method of this application.

[0059] Unless expressly specified, one or more technical features of the present application can be deployed on a server for implementation and accessed by a client through a remote call to obtain an online service interface provided by the server, or can be directly deployed and run on a client for access.

[0060] The neural network models referenced or may be referenced in this application, unless expressly specified, can be deployed on a remote server and remotely called on the client, or can be deployed and directly called on a client with sufficient device capabilities. In some embodiments, when it runs on the client, its corresponding intelligence can be obtained through transfer learning to reduce the requirements for the client's hardware operating resources and avoid excessive occupation of the client's hardware operating resources.

[0061] Unless explicitly specified, the various data involved in this application can be stored remotely on a server or on a local terminal device, as long as it is suitable for being called by the technical solution of this application.

[0062] Those skilled in the art should be aware that, although the various methods of the present application are described based on the same concept and thus present commonality to each other, unless otherwise specified, these methods can be independently executed. Similarly, for each embodiment disclosed in the present application, they are all proposed based on the same inventive concept, therefore, concepts with the same expression, and concepts that are appropriately changed for convenience despite different expressions, should be understood as equivalent.

[0063] Unless the mutually exclusive relationship between the embodiments to be disclosed in this application is explicitly stated, the relevant technical features involved in each embodiment can be cross-combined to flexibly construct a new embodiment, as long as such combination does not deviate from the creative spirit of this application and can meet the needs of the prior art or solve certain deficiencies in the prior art. Those skilled in the art should be aware of this flexibility.

[0064] See also Figure 1The unmanned driving formula car environment perception method of the present application can be implemented based on the unmanned driving formula car environment perception system, the main components of the unmanned driving formula car environment perception system include a sensor spatiotemporal alignment module, an image target detection module, a drivable area point cloud segmentation module and an image point cloud fusion module;

[0065] The sensor spatiotemporal alignment module is used to jointly calibrate the monocular camera and the solid-state laser radar to obtain relative external parameters. The data of the monocular camera and the solid-state laser radar are timestamped through the message filter (message_filters) of the robot operating system (ROS);

[0066] The image object detection module acquires a two-dimensional detection frame of an object and category information of the object from an image through an object detection model;

[0067] The drivable area point cloud segmentation module can process the drivable area with a certain slope change by plane fitting of the drivable area and real-time iterative optimization, so as to segment the drivable area point cloud data;

[0068] The image point cloud fusion module projects the point cloud data after the drivable area is segmented onto a two-dimensional image, selects the point cloud data framed by the two-dimensional detection frame for conditional Euclidean clustering to obtain the target position information, and combines the category information to achieve fusion perception of the target.

[0069] Based on the above exemplary scenarios, please refer to Figure 2 In one embodiment, the unmanned driving formula car environment perception method of the present application includes:

[0070] Step S10, acquiring camera image data from a camera and lidar point cloud data from a lidar, performing target detection on the camera image data based on a target detection model that has been trained to a convergent state, and determining a two-dimensional detection frame and category information corresponding to a drivable area and obstacles;

[0071] See also Figure 3 The terminal device in the driverless formula car can obtain camera image data from the camera and lidar point cloud data from the lidar, perform target detection on the camera image data based on the target detection model that has been trained to a convergence state, and determine the two-dimensional detection frame and category information corresponding to the drivable area and obstacles, wherein the camera image data comes from the monocular camera sensor in the driverless formula car, and the lidar point cloud data comes from the solid-state lidar in the driverless formula car;

[0072] The basic network architecture of the target detection model is the YOLOv7_tiny model. This application takes the YOLOv7_tiny model as an example and does not limit this application. The camera image data includes one or more of obstacle information, traffic sign information, drivable area information, oncoming vehicle light information, and lane line information; the obstacle includes one or more of pedestrians, animals, or cones;

[0073] In some embodiments, the training of the YOLOv7_tiny model collects 561 training data, and data enhancement is achieved by increasing image noise, rotating, cropping and translating images. Each sample in the original data set can be expanded by 10, and 5610 sample images are obtained. Semi-automatic labeling is performed by self-service shape labeling (auto_label), and 5610 labeled sample images are obtained. The sample images are randomly divided into 3927 as training sets and 1683 as verification sets according to a ratio of 7:3. YOLOv7_tiny is selected as the framework for model training. When the preset number of iterations is reached or the loss value is lower than the preset threshold, it means that the YOLOv7_tiny model has reached a convergence state, which can be used for target detection of camera image data from a monocular camera to determine the two-dimensional detection frame and category information corresponding to the drivable area and obstacles. It is not difficult to understand that the traffic signs in the camera image data, the drivable area, the two-dimensional detection frame corresponding to the lights of the oncoming vehicles and the lane lines, and the two-dimensional detection frame and category information corresponding to the category information are also determined accordingly.

[0074] In some embodiments, before the step of acquiring camera image data and lidar point cloud data, the following steps are included:

[0075] Step S101, responding to the sensor space alignment instruction, calibrating the camera individually, determining the camera intrinsic parameters, camera extrinsic parameters and distortion parameters, so as to transform the world coordinate system into the pixel coordinate system;

[0076] Step S103, jointly calibrate the camera and lidar, using the characteristics of the same calibration plate captured by the lidar and camera as constraints to match these characteristics and solve the extrinsic parameter matrix between the two coordinate systems. Through the extrinsic parameter matrix and the camera intrinsic parameter matrix, the lidar coordinate system is transformed into the camera coordinate system and the pixel coordinate system.

[0077] Specifically, before obtaining camera image data and lidar point cloud data, the camera and lidar need to be jointly calibrated to achieve sensor space alignment. Through camera calibration, the camera intrinsic parameters, camera extrinsic parameters and distortion parameters can be obtained to complete the transformation from the world coordinate system to the pixel coordinate system. The specific mapping relationship is:

[0078] ,

[0079] The joint calibration of LiDAR and camera usually adopts the calibration strategy based on the target object. This strategy uses the characteristics of the same calibration plate captured by LiDAR and camera as constraints to match these characteristics and solve the extrinsic matrix between the two coordinate systems. The LiDAR coordinate system can be converted into Convert to camera coordinate system and pixel coordinate system , the specific mapping relationship is as follows:

[0080] ,

[0081] ,

[0082] Where: (u, v) is the coordinate of the laser radar coordinate point in the pixel coordinate system; s is the scaling factor; , is the focal length of the camera; R.T They are the rotation matrix and translation matrix from the laser radar to the camera respectively; dx、dy For each pixel in x and y The physical size of the direction.

[0083] See also Figure 4 ,After the joint calibration of the lidar and the camera is completed, the calibration results are verified and the ,point cloud is projected onto the image. The results show that the lidar point cloud and the ,calibration plate in the image basically coincide and correspond.

[0084] In some embodiments, before the step of acquiring the camera image data from the camera and the lidar point cloud data from the lidar, the method includes:

[0085] Step S1001: Time-align the camera and the laser radar, use a robot operating system to connect the monocular camera and the solid-state laser radar, and when each frame of camera image data and laser radar point cloud data is generated, the robot operating system driving node stamps it with a global reference timestamp to facilitate the timestamp alignment of the message filter of the robot operating system;

[0086] Step S1003: Taking the time of the lidar point cloud data as a reference, the message filter of the robot operating system is used to find the nearest neighbor timestamp within the timestamp threshold to determine a matching timestamp, and useless queue data that is less than the matching timestamp is discarded to complete the matching of the camera image data and the lidar point cloud data.

[0087] Specifically, see Figure 5 , time alignment of the monocular camera and solid-state laser radar, using the robot operating system (ROS) to connect the monocular camera and solid-state laser radar, when each frame of camera image and laser radar point cloud data is generated, the corresponding ROS driver node will stamp it with the ROS global reference timestamp, which is convenient for using the message filter (message_filters) of the robot operating system (ROS) to align the timestamps; Among them, the solid-state laser radar generates point cloud data at a frequency of 10Hz, while the monocular camera generates image data at a frequency of 25Hz, so the laser radar point cloud time is used as the benchmark;

[0088] The message filter (message_filters) of the Robot Operating System (ROS) can be used to find the nearest neighbor timestamp within the timestamp threshold, discard useless queue data that is less than the matching timestamp, and complete the image point cloud matching.

[0089] In some embodiments, target detection is performed on camera image data, the trained weight file is loaded, images with successful timestamp matching are detected, and the coordinates and category information of the two-dimensional detection box are published through ROS for use by subsequent fusion algorithms.

[0090] In some embodiments, point cloud data of non-interested areas are filtered out, and for point cloud data with successful timestamp matching, some non-interested areas are first excluded. For example, points that are too close or too high to the radar are filtered out, and points such as nearby vehicle body reflection point clouds and large trees and tall buildings that are of little significance to the perception of the unmanned vehicle due to the radar installation position are excluded, thereby reducing the amount of calculation for subsequent algorithms and, to a certain extent, reducing the algorithm's computing power requirements.

[0091] Step S20: performing drivable area point cloud segmentation on the laser radar point cloud data based on a preset drivable area point cloud segmentation algorithm to determine point cloud data corresponding to the drivable area and obstacles;

[0092] After determining the two-dimensional detection frames and category information corresponding to the drivable area and obstacles, the drivable area point cloud segmentation is performed on the lidar point cloud data based on a preset drivable area point cloud segmentation algorithm to determine the point cloud data corresponding to the drivable area and obstacles.

[0093] Furthermore, the steps of converting the three-dimensional coordinates of the point cloud data corresponding to the drivable area and the obstacle into two-dimensional coordinates, matching the positions corresponding to the two-dimensional detection frame, and selecting the point cloud data in the two-dimensional detection frame as the target point cloud data corresponding to the drivable area and the obstacle include:

[0094] Step S201: Based on a preset plane model, multiply all points by the plane normal vector of the drivable area to obtain the distance between each point and the ground plane;

[0095] Step S203: classify the points whose distance is less than the preset distance threshold as drivable area points. All drivable area points after classification will be segmented and used as seed point sets for the next iteration to iteratively optimize the plane.

[0096] Specifically, a drivable area seed point set is selected. The drivable area seed point set is used to establish an initial plane model describing the drivable area. The selection of the drivable area seed point set requires the introduction of the concept of Lowest Point Representative (LPR). The so-called Lowest Point Representative (LPR) is The average value of the lowest height points ensures that the plane fitting stage is not affected by measurement noise. LPR can be regarded as the lowest point of the entire point cloud. To obtain the Lowest Point Representative (LPR), the filtered point cloud needs to be sorted according to the height of the point, that is, sorted according to the Z-axis value of the point, and then taken out After obtaining the Lowest Point Representative (LPR), take the height value in the point cloud data within the first preset threshold ( ) are taken as seed points and stored in the seed point set.

[0097] Furthermore, the drivable area plane is fitted. In order to achieve the point cloud segmentation of the drivable area, the drivable area plane needs to be fitted. A simple linear model is used for plane fitting:

[0098] ,

[0099] Right now: ,

[0100] in, , .

[0101] The covariance matrix of the initial point set can be To find out , thereby determining a plane.

[0102] In some embodiments, a seed point set is used As the initial point set, its covariance matrix is:

[0103] ,

[0104] in, is the mean of all points.

[0105] This covariance matrix C Describes the scatter of the seed point set. Its three singular vectors can be obtained by singular value decomposition. These three singular value vectors describe the scatter of the point set in three main directions. Since it is a plane model, the normal vector perpendicular to the plane is n represents the direction with the smallest variance, which can be obtained by calculating the singular vector with the smallest singular value. After obtaining n, we can substitute the average value of the seed point set into (representing points belonging to the drivable area) is directly obtained d .

[0106] Furthermore, the point cloud of the drivable area is segmented, and the point multiplication of all points with the plane normal vector of the drivable area is performed according to the obtained plane equation to obtain the distance to the ground plane, and the points with a distance less than the second preset threshold are set. The points are divided into drivable area points. All drivable area points after classification will be segmented and used as seed points for the next iteration. The plane is iteratively optimized. Please refer to Figure 6 , Figure 6 It is the point cloud data of the segmented drivable area.

[0107] Step S30, converting the three-dimensional coordinates of the point cloud data corresponding to the drivable area and the obstacle into two-dimensional coordinates, matching them with the positions corresponding to the two-dimensional detection frame, and selecting the point cloud data in the two-dimensional detection frame as the target point cloud data corresponding to the drivable area and the obstacle;

[0108] After determining the point cloud data corresponding to the drivable area and the obstacle, convert the three-dimensional coordinates of the point cloud data corresponding to the drivable area and the obstacle into two-dimensional coordinates, match them with the positions corresponding to the two-dimensional detection frame, and select the point cloud data in the two-dimensional detection frame as the target point cloud data corresponding to the drivable area and the obstacle;

[0109] Step S40: dividing the target point cloud data into short-distance, medium-distance and long-distance target point cloud data based on a preset distance threshold, and performing Euclidean clustering on the short-distance, medium-distance and long-distance target point cloud data to determine the corresponding position information of the drivable area and the obstacles;

[0110] After selecting the point cloud data in the two-dimensional detection frame as the target point cloud data corresponding to the drivable area and the obstacle, the target point cloud data is divided into short-distance, medium-long-distance and long-distance target point cloud data based on a preset distance threshold, and the short-distance, medium-long-distance and long-distance target point cloud data are subjected to Euclidean clustering to determine the position information corresponding to the drivable area and the obstacle;

[0111] Specifically, the laser point cloud data and camera image data corresponding to the drivable area and obstacles are fused, and timestamp matching is performed on the two-dimensional detection frame of the camera image data and the point cloud of the segmented drivable area. After the matching is successful, the three-dimensional coordinates of the point cloud are converted into two-dimensional coordinates using the external parameter matrix obtained by the joint calibration of the solid-state laser radar and the monocular camera. The coordinates are matched with the position of the two-dimensional detection frame, and the point cloud in the detection frame is selected. The obtained point clouds are all target point clouds. The target point cloud is divided into three categories according to the distance: short-range point cloud data, medium- and long-range point cloud data, and long-range point cloud data. Conditional Euclidean clustering is performed on these three categories of point clouds, which can solve the problem of clustering failure caused by sparse point clouds at long distances. After the location information of the target is obtained by clustering, it is combined with the category information of the two-dimensional detection frame in the frame to realize the fusion detection of the category and location information of the target.

[0112] Step S50: obtaining first driving environment perception information based on the drivable area, category information corresponding to obstacles, and location information; and driving the unmanned formula racing car in the drivable area according to the first driving environment perception information to complete environmental perception of the unmanned formula racing car.

[0113] See also Figure 7 After determining the drivable area and the position information corresponding to the obstacle, first driving environment perception information is obtained based on the drivable area, the category information and the position information corresponding to the obstacle, and the unmanned formula car is driven to travel in the drivable area according to the first driving environment perception information to complete the environment perception of the unmanned formula car.

[0114] Specifically, the three-dimensional coordinate system of the laser radar is converted into the world coordinate system to facilitate the use of subsequent algorithms. The specific conversion formula is as follows:

[0115] ,

[0116] in, is the inclination angle between the solid-state laser radar and the drivable area.

[0117] After completing the coordinate change, the target location information and category information are published through ROS to complete the environmental perception task.

[0118] In some embodiments, after the step of obtaining the first driving environment perception information based on the drivable area, the category information and the position information corresponding to the obstacle, the method includes:

[0119] Step S501, obtaining positioning information corresponding to the driverless formula car from a positioning sensor, wherein the positioning information is current posture information relative to an initial posture and global posture information on a global map;

[0120] Step S503: fusing the positioning information corresponding to the unmanned formula racing car and the first driving environment perception information to determine second driving environment perception information;

[0121] Step S505: driving the unmanned formula racing car to drive in the drivable area according to the second driving environment perception information, so as to complete the environment perception of the unmanned formula racing car.

[0122] The step of driving the driverless formula one racing car to drive in the drivable area according to the second driving environment perception information comprises:

[0123] Step S5001: The obstacle includes one or more of pedestrians, animals, or cones, and the three-dimensional coordinate system of the laser radar point cloud data is converted into a world coordinate system;

[0124] Step S5003: using the robot operating system in the unmanned formula car to publish the target positions and categories corresponding to the drivable area, the pedestrians, animals and cones, and driving the unmanned formula car to avoid the pedestrians, animals or cones in the drivable area according to the second driving environment perception information, so as to complete the environmental perception of the unmanned formula car.

[0125] It can be seen from the above embodiments that by fusing the positioning information corresponding to the unmanned formula racing car and the first driving environment perception information to obtain the final environment perception information, it can ensure that the system has the ability to output accurate environment perception information, thereby greatly improving the safety performance of the vehicle.

[0126] It can be seen from the above embodiments that, compared with the prior art, the present application aims at the problems that the prior art clusters the point cloud for the entire scene and then fuses it with the visual detection result, which is prone to non-target mis-clustering, has low fusion efficiency, and requires high computing power. The present application includes but is not limited to the following beneficial effects:

[0127] First, it is difficult to take into account both point cloud density and hardware cost when using mechanical laser radar, and there are problems such as sparse point cloud and interference of point cloud in the drivable area, which affects the detection effect. This application makes full use of the multi-point scanning capability and high-resolution three-dimensional imaging characteristics of solid-state laser radar, and adopts a comprehensive and detailed point cloud processing strategy. This strategy implements real-time drivable area plane fitting technology to achieve accurate segmentation of the drivable area. This process effectively eliminates the interference of the drivable area point cloud on the detection results through continuous iterative optimization, while ensuring that the integrity of the target point cloud is maintained. Such processing not only significantly improves the accuracy of target detection, but also maximizes the hardware advantages of solid-state laser radar, ensuring the efficiency and reliability of the system in various application scenarios;

[0128] Secondly, the target detection model is large, has low operating efficiency, and requires high computing power of industrial computers. This application introduces YOLOv7-tiny, which is an efficient and lightweight target detection model. In order to further improve the performance of the model, it implements a data enhancement strategy to enrich the diversity of samples, thereby enhancing the generalization ability and robustness of the model. During the annotation process, the self-service shape annotation tool performs semi-automatic image annotation. This method reduces the demand for computing resources while ensuring the accuracy and processing speed of detection; through these optimization measures, the model of this application achieves high-quality target detection performance while maintaining low computing power consumption.

[0129] Third, in view of the problems that the existing technology clusters the point cloud in the whole scene and then fuses it with the visual detection results, it is easy to cause non-target misclustering, low fusion efficiency, and high computing power requirements. This application abandons the traditional three-dimensional point cloud target detection method and adopts an innovative point cloud processing strategy, which follows the steps of "segmentation of the drivable area first, data fusion later, and Euclidean clustering at the end". Specifically, first perform an accurate drivable area segmentation operation to separate the background noise and determine the target area of ​​interest. Then, the segmented drivable area point cloud data is combined with the two-dimensional detection frame to accurately identify and define the target point cloud set; finally, these target point clouds are classified according to distance and the Euclidean clustering algorithm is applied separately. This not only effectively avoids the misclustering problem of non-target objects that may be caused by clustering the entire scene, and the problem of cluster loss due to the sparseness of the long-distance target point cloud, but also significantly improves the detection efficiency and data fusion efficiency of the entire point cloud processing process. Through this strategy, the present application achieves efficient and accurate detection of target objects and optimizes the performance of point cloud data processing.

[0130] See also Figure 8, an unmanned formula racing car environment perception device provided to meet one of the purposes of the present application, includes a target detection module 1100, a drivable area determination module 1200, a matching module 1300, a position information determination module 1400 and an environment perception module 1500. Among them, the target detection module 1100 is configured to obtain camera image data from a camera and a laser radar point cloud data from a laser radar, perform target detection on the camera image data based on a target detection model that has been trained to a convergence state, and determine the two-dimensional detection frame and category information corresponding to the drivable area and obstacles; the drivable area determination module 1200 is configured to perform drivable area point cloud segmentation on the laser radar point cloud data based on a preset drivable area point cloud segmentation algorithm to determine the point cloud data corresponding to the drivable area and obstacles; the matching module 1300 is configured to convert the three-dimensional coordinates of the point cloud data corresponding to the drivable area and obstacles into two-dimensional coordinates, match them with the position corresponding to the two-dimensional detection frame, and select The point cloud data in the two-dimensional detection frame is taken as the target point cloud data corresponding to the drivable area and the obstacles; the position information determination module 1400 is configured to divide the target point cloud data into short-distance, medium-distance and long-distance target point cloud data based on a preset distance threshold, and perform Euclidean clustering on the short-distance, medium-distance and long-distance target point cloud data to determine the position information corresponding to the drivable area and the obstacles; the environment perception module 1500 is configured to obtain the first driving environment perception information based on the category information and position information corresponding to the drivable area and the obstacles, and drive the unmanned formula car to travel in the drivable area according to the first driving environment perception information to complete the environment perception of the unmanned formula car.

[0131] Based on any embodiment of this application, please refer to Fig. 9 Another embodiment of the present application further provides an electronic device, which can be implemented by a computer device, such as Fig. 9As shown, a schematic diagram of the internal structure of a computer device. The computer device includes a processor, a computer-readable storage medium, a memory, and a network interface connected via a system bus. Among them, the computer-readable storage medium of the computer device stores an operating system, a database, and computer-readable instructions. The database may store a control information sequence. When the computer-readable instructions are executed by the processor, the processor can implement a method for perceiving the environment of an unmanned formula car. The processor of the computer device is used to provide computing and control capabilities to support the operation of the entire computer device. The memory of the computer device may store computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor can execute the method for perceiving the environment of an unmanned formula car of the present application. The network interface of the computer device is used to connect and communicate with a terminal. Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0132] In this embodiment, the processor is used to execute Figure 8 The memory stores the program code and various data required to execute the above modules or submodules. The network interface is used to transmit data between user terminals or servers. The memory in this embodiment stores the program code and data required to execute all modules / submodules in the unmanned formula racing environment perception device of this application, and the server can call the program code and data of the server to execute the functions of all submodules.

[0133] The present application also provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the unmanned formula racing car environment perception method described in any embodiment of the present application.

[0134] The present application also provides a computer program product, including a computer program / instruction, which, when executed by one or more processors, implements the steps of the unmanned formula racing car environment perception method described in any embodiment of the present application.

[0135] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments of the present application can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a computer-readable storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0136] The above description is only a partial implementation method of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

[0137] In summary, this application classifies these target point clouds according to distance and applies the Euclidean clustering algorithm to each of them. This not only effectively avoids the problem of mis-clustering of non-target objects that may be caused by clustering the entire scene, and the problem of cluster loss due to sparse long-distance target point clouds, but also significantly improves the detection efficiency and data fusion efficiency of the entire point cloud processing process. Through this strategy, this application achieves efficient and accurate detection of target objects and optimizes the performance of point cloud data processing.

Claims

1. A method for sensing the environment of an unmanned formula car, characterized in that: include: Obtain camera image data from a camera and lidar point cloud data from a lidar, perform target detection on the camera image data based on a target detection model that has been trained to a convergent state, and determine a two-dimensional detection frame and category information corresponding to a drivable area and obstacles; The steps to obtain camera image data from the camera and lidar point cloud data from the lidar include: The camera and the laser radar are time-aligned, and the monocular camera and the solid-state laser radar are connected by a robot operating system. When each frame of camera image data and laser radar point cloud data is generated, the robot operating system driving node stamps it with a global reference timestamp, so as to facilitate the timestamp alignment of the message filter of the robot operating system; Taking the time of the laser radar point cloud data as a reference, searching for the nearest neighbor timestamp within the timestamp threshold through the message filter of the robot operating system to determine a matching timestamp, and discarding useless queue data less than the matching timestamp to complete the matching of the camera image data and the laser radar point cloud data; Performing drivable area point cloud segmentation on the laser radar point cloud data based on a preset drivable area point cloud segmentation algorithm to determine point cloud data corresponding to the drivable area and obstacles; The three-dimensional coordinates of the point cloud data corresponding to the drivable area and the obstacle are converted into two-dimensional coordinates, matched with the position corresponding to the two-dimensional detection frame, and the point cloud data in the two-dimensional detection frame are selected as the target point cloud data corresponding to the drivable area and the obstacle, which includes: Based on the preset plane model, multiply all points with the normal vector of the drivable area plane to obtain the distance between each point and the ground plane; The points whose distance is less than a preset distance threshold are divided into drivable area points. All drivable area points after classification will be segmented and used as seed point sets for the next iteration to iteratively optimize the plane. The target point cloud data is divided into short-distance, medium-distance and long-distance target point cloud data based on a preset distance threshold, and the short-distance, medium-distance and long-distance target point cloud data are subjected to Euclidean clustering to determine the corresponding position information of the drivable area and the obstacles; Based on the drivable area, category information and position information corresponding to obstacles, first driving environment perception information is obtained, and the unmanned formula racing car is driven to drive in the drivable area according to the first driving environment perception information to complete the environmental perception of the unmanned formula racing car.

2. The method for sensing the environment of an unmanned formula car according to claim 1, characterized in that: The steps to obtain camera image data and lidar point cloud data include: In response to the sensor space alignment command, the camera is calibrated individually to determine the camera intrinsic parameters, camera extrinsic parameters and distortion parameters to transform the world coordinate system into the pixel coordinate system; The camera and lidar are jointly calibrated, and the characteristics of the same calibration plate captured by the lidar and camera are used as constraints to match these characteristics and solve the extrinsic parameter matrix between the two coordinate systems. The lidar coordinate system is transformed into the camera coordinate system and the pixel coordinate system through the extrinsic parameter matrix and the camera intrinsic parameter matrix.

3. The method for sensing the environment of an unmanned formula car according to claim 1, characterized in that: After the step of obtaining first driving environment perception information based on the drivable area, the category information and the position information corresponding to the obstacle, the method includes: Acquire positioning information corresponding to the driverless formula car from a positioning sensor, wherein the positioning information is current posture information relative to an initial posture and global posture information on a global map; fusing the positioning information corresponding to the driverless formula racing car and the first driving environment perception information to determine second driving environment perception information; The unmanned formula one racing car is driven to travel in the drivable area according to the second driving environment perception information, so as to complete the environment perception of the unmanned formula one racing car.

4. The method for sensing the environment of an unmanned formula car according to claim 3, characterized in that: The step of driving the driverless formula car to drive in the drivable area according to the second driving environment perception information includes: the obstacle includes one or more of pedestrians, animals or cones, and the three-dimensional coordinate system of the laser radar point cloud data is converted into a world coordinate system; The robot operating system in the unmanned formula racing car is used to publish the target positions and categories corresponding to the drivable area, the pedestrians, the animals and the cones, and the unmanned formula racing car is driven to avoid the pedestrians, the animals or the cones in the drivable area according to the second driving environment perception information, so as to complete the environmental perception of the unmanned formula racing car.

5. The method for sensing the environment of an unmanned formula car according to any one of claims 1 to 4, characterized in that: The basic network architecture of the target detection model is a YOLOv7_tiny model, and the camera image data includes one or more of obstacle information, traffic sign information, drivable area information, oncoming vehicle light information, and lane line information.

6. An unmanned formula racing car environment perception device, characterized in that: include: A target detection module is configured to obtain camera image data from a camera and lidar point cloud data from a lidar, perform target detection on the camera image data based on a target detection model that has been trained to a convergence state, and determine a two-dimensional detection frame and category information corresponding to a drivable area and obstacles; The steps to obtain camera image data from the camera and lidar point cloud data from the lidar include: The camera and the laser radar are time-aligned, and the monocular camera and the solid-state laser radar are connected by a robot operating system. When each frame of camera image data and laser radar point cloud data is generated, the robot operating system driving node stamps it with a global reference timestamp, so as to facilitate the timestamp alignment of the message filter of the robot operating system; A drivable area determination module is configured to perform drivable area point cloud segmentation on the laser radar point cloud data based on a preset drivable area point cloud segmentation algorithm to determine point cloud data corresponding to the drivable area and obstacles; A matching module is configured to convert the three-dimensional coordinates of the point cloud data corresponding to the drivable area and the obstacle into two-dimensional coordinates, match them with the positions corresponding to the two-dimensional detection frame, and select the point cloud data in the two-dimensional detection frame as the target point cloud data corresponding to the drivable area and the obstacle, which includes: Based on the preset plane model, multiply all points with the normal vector of the drivable area plane to obtain the distance between each point and the ground plane; The points whose distance is less than a preset distance threshold are divided into drivable area points. All drivable area points after classification will be segmented and used as seed point sets for the next iteration to iteratively optimize the plane. a position information determination module, configured to divide the target point cloud data into short-distance, medium-long-distance and long-distance target point cloud data based on a preset distance threshold, and perform Euclidean clustering on the short-distance, medium-long-distance and long-distance target point cloud data to determine the position information corresponding to the drivable area and the obstacles; The environment perception module is configured to obtain first driving environment perception information based on the drivable area, category information corresponding to obstacles, and position information, and drive the unmanned formula racing car to drive in the drivable area according to the first driving environment perception information to complete the environment perception of the unmanned formula racing car.

7. An electronic device, comprising a central processing unit and a memory, characterized in that: The central processing unit is used to call and run the computer program stored in the memory to execute the steps of the method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: It stores a computer program implemented according to the method described in any one of claims 1 to 5 in the form of computer-readable instructions, and when the computer program is called and executed by a computer, the steps included in the corresponding method are executed.