Parking space 3D information detection method, device, equipment and system

By inputting real-time image data and lidar point cloud data into the pre-trained parking space analysis model, combined with confidence filtering and non-maximum suppression, the problem of existing parking space detection methods being unable to obtain parking space height information is solved, and more accurate parking spaces are achieved. detection and parking control.

CN118537837APending Publication Date: 2024-08-23SHANGHAI BAOLONG AUTOMOTIVE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410540952.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-30
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing parking space detection methods cannot effectively obtain the height information of the parking space, especially when the slope is large, resulting in inaccurate detection results.

Method used

A 3D information detection method for parking spaces is adopted. By acquiring real-time image data and lidar point cloud data, inputting it into the pre-trained parking space analysis model, the 3D corner information and confidence of the parking spaces are output, combined with confidence filtering and non-maximum values. Suppress and determine the final parking space information.

Benefits of technology

It achieves accurate acquisition of parking space height information, improves the robustness and safety of the parking system, and reduces the error rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537837A
    Figure CN118537837A
Patent Text Reader

Abstract

The invention provides a parking space 3D information detection method, device, equipment and system. The method comprises the steps that image data and laser radar point cloud data generated in real time are acquired; inputting the image data and the laser radar point cloud data into a pre-trained parking space analysis model, and outputting each group of parking space information; the parking space information comprises different predicted parking spaces, and each predicted parking space comprises 3D angular point information of the parking space and confidence of the parking space; according to the size relation between the confidence coefficient and a parking space screening threshold value, predicted parking spaces with the confidence coefficient smaller than the parking space screening threshold value are filtered out; according to the 3D corner point information of the parking space, expanding an external cuboid of a parking space corner point; and performing non-maximum suppression screening on the external cuboid of the predicted parking space after confidence screening, and determining final 3D information of the parking space based on the predicted parking space left by screening. According to the invention, more perfect parking space information is provided, so that the safety of automatic parking is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of automatic parking and relates to a detection method, and in particular to a 3D information detection method, device, equipment and system for a parking space. Background Art

[0002] With the rapid development of society, there are more and more private cars in big cities, so it is difficult to find an empty parking space in some places. It is especially difficult to find free parking spaces in traffic-intensive areas. In addition, among all car collision accidents, more accidents occur in parking lots.

[0003] In this situation, the parking assist system (PAS) came into being, which provides great convenience for car owners in parking. Parking space detection is an important part of the PAS system. However, many current parking space detection methods are based on a flat ground surface, and the height information of the parking space cannot be obtained. If the plane has a certain slope or height, the spliced ​​image will be distorted. If this distorted image is used for parking space detection, the detection result is not accurate. Summary of the invention

[0004] The present application provides a method, device, equipment and system for detecting 3D information of a parking space, which are used to solve the problem of how to perform 3D detection of a parking space.

[0005] In a first aspect, the present application provides a method for detecting 3D information of a parking space, the method comprising: acquiring image data and laser radar point cloud data generated in real time; inputting the image data and the laser radar point cloud data into a pre-trained parking space analysis model, and outputting each group of parking space information; the parking space information comprises different predicted parking spaces, each predicted parking space comprising 3D corner point information of the parking space and a confidence level of the parking space; filtering out predicted parking spaces whose confidence level is less than the parking space screening threshold value according to a relationship between the confidence level and a parking space screening threshold value; expanding a circumscribed cuboid of the parking space corner points according to the 3D corner point information of the parking space; performing non-maximum suppression screening on the circumscribed cuboid of the predicted parking space after confidence screening, and determining the final 3D information of the parking space based on the predicted parking space remaining after screening.

[0006] In an implementation of the first aspect, before the step of acquiring the image data and point cloud data generated in real time, the method further includes: training the parking space analysis model based on training data; the training data includes spliced ​​laser radar point cloud data, image data collected by a single camera, and labels between the two, the labels include the coordinates (X, Y, Z) of each corner point in the marked parking space and the reliability of the labeled vehicle position, wherein, with the anchor point corresponding to the center point of the marked parking space as the center of the circle and the preset length as the radius, the label confidence of the parking space corresponding to the anchor point falling within the circle is set to 1, otherwise it is 0; 2D image feature extraction is performed on each image data in the training data, the extracted 2D image features are converted into 3D cone features respectively, and the 3D cone features are fused to form image BEV features, and the image BEV features are fused. The feature is convolved to extract semantic features to obtain the 3D features of the parking space from the image angle; the spatial features of the point cloud data are extracted using an encoder after voxelization, and the extracted spatial features are converted into point cloud BEV features to obtain the 3D features of the parking space from the point cloud angle; fusion features are generated according to the 3D features of the parking space from the image angle and the 3D features of the parking space from the point cloud angle; the fusion features are input into the parking space detection decoder to output each group of parking space prediction information in the model training stage, the parking space prediction information includes multiple predicted parking spaces, and each predicted parking space includes the x, y information of the predicted four corner points, the height information z and the parking position reliability; the parking space analysis model is iteratively trained multiple times by using the label and the parking space prediction information through the loss function and weight value of each branch to optimize the parking space analysis model.

[0007] In an implementation of the first aspect, the fused features are input into a parking space detection decoder to output each group of parking space prediction information in a model training phase, the parking space prediction information includes multiple predicted parking spaces, each predicted parking space includes x, y information, height information z and vehicle position reliability of four predicted corner points, including the following steps: extracting semantic features from the fused features; combining the semantic features, performing a first convolution processing on the image features in the fused features, outputting the coordinate offsets of the four corner points of the 3D parking space, inputting the coordinate offsets into a coordinate conversion module to obtain a combination with a preset anchor point coordinate, and finally determining the x and y information of the four corner points of the 3D parking space. , y information; in combination with the semantic features, a second convolution processing is performed on the image features in the fused features to extract features related to the corner point height information, the features related to the corner point height information are further decoded to obtain the height information representation of the 3D parking space detection corner points, an e-exponential operation is performed on the height information representation, and finally the height information z of the four corner points of the 3D parking space is determined; in combination with the semantic features, a third convolution processing is performed on the image features in the fused features to extract features related to the corner point confidence, the features related to the confidence are further decoded to obtain the 3D parking space detection confidence factor, and the confidence factor is functionally activated to obtain the prediction confidence.

[0008] In an implementation of the first aspect, the parking space analysis model is optimized by performing multiple iterative training on the parking space analysis model using the label and the parking space prediction information through the loss function and weight value of each branch, including: during training, converting the X and Y of the marked parking space into label offsets based on the corresponding anchor points of the marked parking space, and calculating the loss between the label offset and the predicted coordinate offset; performing loss calculation on the result of the e-index operation and the value of the label height Z; and performing loss calculation based on the predicted vehicle position confidence and the label confidence to optimize the parking space analysis model.

[0009] In an implementation of the first aspect, obtaining the coordinates (X, Y, Z) of each corner point in the marked parking space includes the following steps: using a first coordinate transformation to transform the laser radar point cloud data into self-vehicle coordinate system data, the laser radar point cloud data is obtained after splicing the radar original point cloud data, and the self-vehicle coordinate system data includes 4 corner points of the parking space; marking the 4 corner point coordinate information (X, Y, Z) of the parking space on the self-vehicle coordinate system data; using a second coordinate transformation to transform the 4 corner point coordinate information into camera coordinate system data respectively; using camera intrinsic parameters to transform the 4 camera coordinate system data into image coordinate system data respectively; visualizing the 4 image coordinate system data on image data collected by a single camera, and completing the marking of the parking space according to the degree of overlap between the image coordinate system data and the corner points in the image data, the marked parking space includes 4 corner point coordinate information (X, Y, Z).

[0010] In an implementation of the first aspect, the step of completing the marking of the parking space according to the degree of overlap between the image coordinate system data and the corner points existing in the image data includes: in response to the image coordinate system data overlapping with the collected image data, completing the marking of the parking space; in response to the image coordinate system data not overlapping with the collected image data, fine-tuning the coordinate information of the four corner points of the marked parking space on the vehicle coordinate system data until the image coordinate system data overlaps with the collected image data, thereby completing the marking of the parking space.

[0011] In an implementation of the first aspect, the step of expanding the circumscribed cuboid of the parking space corner points according to the 3D corner point information of the parking space includes: determining the inclined plane formed by the four parking space corner points according to the 3D corner point information of the parking space; projecting the inclined plane to a plane with a preset fixed height value to determine a horizontal projection plane; and determining the circumscribed cuboid by combining the inclined plane and the horizontal projection plane.

[0012] In a second aspect, the present application provides a 3D information detection device for a parking space, the device comprising: a data acquisition module, configured to acquire image data and laser radar point cloud data generated in real time; a model analysis module, configured to input the image data and the laser radar point cloud data into a pre-trained parking space analysis model, and output each group of parking space information; the parking space information comprises different predicted parking spaces, each predicted parking space comprising 3D corner point information of the parking space and a confidence level of the parking space; a threshold screening module, configured to filter out predicted parking spaces whose confidence level is less than the parking space screening threshold value according to a relationship between the confidence level and the parking space screening threshold value; a corner point processing module, configured to expand the circumscribed cuboid of the parking space corner points according to the 3D corner point information of the parking space; a parking space information determination module, configured to perform non-maximum suppression screening on the circumscribed cuboid of the predicted parking space after confidence screening, and determine the final 3D information of the parking space based on the predicted parking space remaining after screening.

[0013] In a third aspect, the present application provides an electronic device, comprising: a processor and a memory; the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the electronic device performs the described method.

[0014] In a fourth aspect, the present application provides a 3D information detection system for a parking space, the system comprising: the electronic device and the parking control device; the electronic device is communicatively connected with the parking control device;

[0015] The electronic device transmits the 3D information of the parking space detected and output to the parking control device, and the parking control device performs parking control on the vehicle according to the 3D information of the parking space.

[0016] As described above, the 3D information detection method, device, equipment and system of the parking space described in the present application have the following beneficial effects:

[0017] This application trains the parking space analysis model through the annotated 3D information of the parking space, inputs the real-time generated image data and point cloud data into the pre-trained parking space analysis model and determines the final parking space 3D information after screening and processing. Since the parking space analysis model can predict the 3D information of the parking space, that is, it also includes height information, this application has good robustness to the slope of the vehicle. In actual work, the 3D information of the parking space can be sent to the control end to achieve more accurate parking, increase the safety of automatic parking, and reduce its error rate. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 Shown is a schematic diagram of an application scenario of the 3D information detection method for a parking space described in an embodiment of the present application.

[0019] Figure 2 Shown is a principle flow chart of the 3D information detection method for a parking space described in an embodiment of the present application.

[0020] Figure 3 Shown is a schematic diagram of coordinate system conversion of the 3D information detection method of the parking space described in an embodiment of the present application.

[0021] Figure 4 Shown is a network structure diagram of the 3D information detection method for a parking space described in an embodiment of the present application.

[0022] Figure 5 Shown is a schematic diagram of a radar point cloud of the 3D information detection method for a parking space described in an embodiment of the present application.

[0023] Figure 6 Shown is a schematic diagram of a circumscribed rectangular block of the 3D information detection method for a parking space described in an embodiment of the present application.

[0024] Figure 7 Shown is a schematic diagram of a vehicle coordinate system for the 3D information detection method for a parking space described in an embodiment of the present application.

[0025] Figure 8 Shown is a structural principle diagram of the 3D information detection device for a parking space described in an embodiment of the present application.

[0026] Fig. 9 Shown is a schematic diagram of the structural connection of an electronic device described in an embodiment of the present application.

[0027] Fig.10 Shown is a structural principle diagram of the 3D information detection system for parking spaces described in an embodiment of the present application.

[0028] Component number description

[0029] 1 Electronic equipment

[0030] 11 Processor

[0031] 12 Memory

[0032] 2 Parking control equipment

[0033] 8 3D information detection device for parking spaces

[0034] 81 Data acquisition module

[0035] 82 Model Analysis Module

[0036] 83 Threshold Filter Module

[0037] 84 Corner processing module

[0038] 85 Parking space information determination module

[0039] Steps S21 to S25 DETAILED DESCRIPTION

[0040] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0041] It should be noted that the illustrations provided in the following embodiments are only used to illustrate the basic concept of the present application in a schematic manner, and therefore the illustrations only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0042] The following embodiments of the present application provide a method, device, equipment and system for detecting 3D information of a parking space, including but not limited to being applied in a vehicle. The following description will be given using this application scenario as an example.

[0043] See also Figure 1 , which is a schematic diagram showing an application scenario of the 3D information detection method for parking spaces described in an embodiment of the present application. Figure 1 As shown, this embodiment provides an application scenario of a 3D information detection method for a parking space, specifically including a vehicle, 5 laser radars and 4 cameras are installed on the vehicle, and the specific installation positions are as follows Figure 1As shown in the figure, the large circle in the middle of the vehicle is the main laser radar, the four small circles at the front, rear and both sides of the roof are blind radars, and the four squares are surround cameras (surround view cameras). The four surround view cameras and five laser radars are calibrated to obtain the internal parameters F of each surround view camera (a total of four), the surround view camera and the laser radar to the vehicle coordinate system (the vehicle coordinate system, as shown in Figure 1). Figure 7 The external parameters of each vehicle are as shown (a total of 4 surround-view camera external parameters Tec and 5 lidar external parameters Tle). Specifically, the lidar external parameters are calibrated according to open source tools, the camera external parameters can be calibrated using Autowarre, and the internal parameters can read the factory parameters of the surround-view camera or be calibrated using the Zhang Zhengyou method. Then, the image data generated and uploaded in real time by the surround-view camera and the point cloud data generated and uploaded in real time by the lidar are obtained through the electronic equipment on the vehicle, the 3D information detection method of the parking space is executed, and the final 3D information of the parking space is output.

[0044] Specifically, the main laser radar generally uses 128 lines, with a horizontal FOV (field of view) of 360 degrees and a vertical FOV of 40 degrees. The blind spot radar uses 32 lines, with a horizontal FOV of 360 degrees and a vertical FOV of 90 degrees. The laser radar has a ranging capability of about 100 meters. Installation position: The front and rear blind spot laser radars and the main laser radar cannot be moved. The left and right blind spot laser radars can be installed under the rearview mirror or on the roof. The role of the five laser radars is to obtain the laser radar point cloud around the vehicle body without blind spots.

[0045] The electronic device may be a computer including all or part of the components such as a memory, a storage controller, one or more processing units (CPU), a peripheral interface, an RF circuit, an audio circuit, a speaker, a microphone, an input / output (I / O) subsystem, a display screen, other output or control devices, and an external port; the computer includes but is not limited to a personal computer such as a laptop, a tablet computer, a smart phone, etc. placed in the vehicle, and may also be a hardware electronic device on the vehicle itself. In other embodiments, the hardware device may also be a server, which may be arranged on one or more physical servers according to various factors such as function and load, or may be a cloud server composed of a distributed or centralized server cluster, which is not limited in this embodiment.

[0046] The technical solutions in the embodiments of the present application will be described in detail below in conjunction with the drawings in the embodiments of the present application.

[0047] See also Figure 2 , which is a principle flow chart of the 3D information detection method for parking spaces described in an embodiment of the present application. Figure 2 As shown, this embodiment provides a 3D information detection method for a parking space, which specifically includes the following steps:

[0048] S21, acquiring image data and lidar point cloud data generated in real time.

[0049] In one embodiment, the image data is collected and uploaded by surround-view cameras arranged at four positions of the vehicle, and the point cloud data is collected and uploaded by a laser radar; the laser radar includes a main laser radar arranged in the middle of the vehicle and blind spot radars arranged at four positions of the vehicle.

[0050] S22, input the image data and the laser radar point cloud data into a pre-trained parking space analysis model, and output each group of parking space information; the parking space information includes different predicted parking spaces, and each predicted parking space includes 3D corner point information of the parking space and the confidence of the parking space.

[0051] Specifically, the image data collected by four surround-view cameras and the point cloud data collected by five lidars in real time are input into the trained parking space analysis model, and the network prediction output is used to obtain multiple sets of parking space information.

[0052] S23, according to the relationship between the confidence and the parking space screening threshold, filtering out the predicted parking spaces whose confidence is less than the parking space screening threshold.

[0053] Specifically, a parking space screening threshold A is set, and by comparing the confidence of the parking space with the parking space screening threshold A, parking spaces with a value less than the threshold A are filtered out.

[0054] S24, expanding the circumscribed cuboid of the parking space corner points according to the 3D corner point information of the parking space.

[0055] In one embodiment, the step of expanding the circumscribed cuboid of the parking space corner points according to the 3D corner point information of the parking space includes: determining the inclined plane formed by the four parking space corner points according to the 3D corner point information of the parking space; projecting the inclined plane to a plane with a preset fixed height value to determine a horizontal projection plane; and determining the circumscribed cuboid by combining the inclined plane and the horizontal projection plane.

[0056] Specifically, Figure 6 As shown, the four corner points of the parking space determine an inclined plane, and the fixed height value, that is, the z value, is set to 0. The inclined plane is projected on the plane with a z value of 0, and the four points on the bottom surface are the bottom vertices of the circumscribed rectangular parallelepiped, and the plane area formed by the four points on the bottom surface is the determined horizontal projection plane.

[0057] It should be noted that the fixed height value, i.e., the z value is set to 0 is only one implementation method of determining the plane in this application. Any technical solution that uses other non-zero setting values ​​as the projection plane while keeping the principle unchanged is also within the scope of protection of this application.

[0058] S25, performing non-maximum suppression screening on the circumscribed cuboid of the predicted parking space after the confidence screening, and determining the final 3D information of the parking space based on the predicted parking space left after the screening.

[0059] Specifically, because Figure 4 The 3D parking space detection decoder in the paper belongs to dense prediction. A large number of targets (predicted parking spaces) will be predicted for the same parking space. Non-Maximum Suppression (NMS) needs to be used to filter out redundant targets. However, there are only 4 points in a parking space. Traditional 3D NMS requires a 3D box to be used. Considering the actual situation of parking spaces, for any group of predicted parking spaces, this application expands the parking space corner points and uses the circumscribed cuboid of the parking space corner points to perform 3DNMS, such as Figure 6 As shown, it includes 4 parking space corner points, and the 4 points on the bottom surface are the bottom vertices of the circumscribed rectangular parallelepiped. The z coordinate of the highest point of the rectangle is the maximum value z of the 4 parking space corner points, and the z value of the bottom vertex is 0. The correct parking space information can be obtained after using the circumscribed rectangular parallelepiped for 3DNMS.

[0060] In one embodiment, before the step of acquiring the image data and point cloud data generated in real time, the method further includes: S1, training the parking space analysis model based on training data; the training data includes spliced ​​laser radar point cloud data, image data collected by a single camera, and labels between the two, and the labels include the coordinates (X, Y, Z) of each corner point in the marked parking space and the reliability of the labeled vehicle position, wherein the anchor point corresponding to the center point of the marked parking space is taken as the center of the circle, and the preset length is taken as the radius, and the label confidence of the parking space corresponding to the anchor point falling within the circle is set to 1, otherwise it is 0. Combined with Figure 4 The network structure of the parking space analysis model includes a laser radar encoder, a laser radar BEV (Bird's Eye View) feature encoder, an Image-view Encoder module, a ViewTransformer module, a visual BEV Encoder feature encoder, and a 3D parking space detection decoder; the network has two inputs, 5 laser radar data D and 4 surround view cameras collected image data V. Then step S1 training the parking space analysis model specifically includes the following steps:

[0061] S11, extract 2D image features from each image data in the training data, convert the extracted 2D image features into 3D cone features, fuse the 3D cone features to form image BEV features, perform convolution processing on the image BEV features to extract semantic features, and obtain 3D features of the parking space at the image angle.

[0062] Specifically, the image data collected by the four surround-view cameras in the data pair are input into the Image-viewEncoder module, which extracts 2D image features from the input surround-view images; then the output is sent to the ViewTransformer module, which uses the BEVDet method or a method such as transformer to convert 2D image features into 3D cone features using the camera extrinsic parameter Tec to obtain BEV features; the BEV features are further extracted through the visual BEV Encoder feature encoder to obtain the 3D features VF of the parking spaces in the four surround-view cameras.

[0063] S12, after voxelizing the point cloud data, use an encoder to extract spatial features of the point cloud data, convert the extracted spatial features into point cloud BEV features, and obtain 3D features of the parking space from the point cloud angle.

[0064] Specifically, the point cloud data of the five laser radars in the data pair are input into the laser radar encoder to extract the spatial features of the laser radar, and the spatial features are input into the laser radar BEV feature encoder to obtain the BEV feature LF of the laser radar.

[0065] S13: Generate fusion features according to the 3D features of the parking space at the image angle and the 3D features of the parking space at the point cloud angle.

[0066] Specifically, the BEV fusion feature module is used to fuse the 3D feature VF of the visual parking space with the laser radar BEV feature LF by multiplication or addition or a combination of both to obtain a fusion feature CF.

[0067] In another embodiment, the present application may also utilize any one of the 3D features VF of the visual parking space and the laser radar BEV features LF for subsequent decoding processing.

[0068] S14, input the fusion features into the parking space detection decoder to output each group of parking space prediction information in the model training stage, the parking space prediction information includes multiple predicted parking spaces, each predicted parking space includes the x, y information of the four corner points predicted, the height information z and the parking position reliability; use the labels and the parking space prediction information, and perform multiple iterative training on the parking space analysis model through the loss function and weight value of each branch to optimize the parking space analysis model.

[0069] In one embodiment, in combination Figure 4The parking space detection decoder is composed of a downsampling module, a convolution module A1+B1 and C1 module, a convolution module A2+B2 and C2 module, and a convolution module A3+B3 and C3 module. The downsampling module is mostly composed of a convolution layer or a pooling layer. The fusion feature is input into the parking space detection decoder to output each group of parking space prediction information in the model training phase. The parking space prediction information includes multiple predicted parking spaces, each predicted parking space includes the predicted x, y information of the four corner points, the height information z, and the car position reliability, including the following steps:

[0070] S141, extracting semantic features from the fused features.

[0071] Specifically, the fused feature CF is input into the 3D parking space detection decoder. The BEV feature generally represents a larger range and the semantic features are more scattered, so the downsampling module is used to further extract the features to obtain more valuable semantic features F.

[0072] S142, combining the semantic features, performing the first convolution processing on the image features in the fusion features, outputting the coordinate offsets Dx and Dy of the four corner points of the 3D parking space respectively, inputting the coordinate offsets Dx and Dy into the coordinate conversion module to obtain the combination with the preset anchor point coordinates, and finally determining the x and y information of the four corner points of the 3D parking space.

[0073] Specifically, the three branches of the 3D parking space detection decoder, the first branch includes independent convolution modules A1, convolution modules B1 and coordinate conversion modules C1. After the semantic features are processed by convolution modules A1 and B1, the coordinate offsets Dx and Dy of the four corner points are output. The coordinate offsets Dx and Dy are input into the coordinate conversion module C1 to be combined with the preset anchor point coordinates, and finally the x and y information of the four corner points of the 3D parking space are confirmed. Each branch is also provided with its own loss function and corresponding weights. During training, based on the anchor point corresponding to the label (X, Y), it is converted into a label offset, and the loss between the label offset and the coordinate offset output by B1 is calculated.

[0074] S143, combining the semantic features, performing a second convolution process on the image features in the fused features, extracting features related to the corner point height information, further decoding the features related to the corner point height information to obtain the height information representation Dz of the 3D parking space detection corner points, performing an e-exponential operation on the height information representation Dz, and finally determining the height information z of the four corner points of the 3D parking space.

[0075] Specifically, in the second convolution processing, the convolution module A2 extracts feature E related to the corner point height information from the image feature F, and further decodes the feature E through the convolution module B2 to obtain the height information representation Dz of the 3D parking space detection corner point. The representation Dz is subjected to the e-exponential operation ez based on C2. During training, the loss is calculated between ez and the value of the label Z.

[0076] S144, combining the semantic features, performing a third convolution process on the image features in the fused features, extracting features related to corner point confidence, further decoding the features related to confidence to obtain a 3D parking space detection confidence factor, and performing function activation on the confidence factor to obtain prediction confidence.

[0077] Specifically, in the third convolution process, the convolution module A3 extracts the feature E related to the corner point confidence from the image feature F, and further decodes the feature E through the convolution module B3 to obtain the 3D predicted parking space detection confidence factor, and inputs the parking space detection confidence factor into the C3 module (sigmoid activation function) to obtain the prediction confidence, for example, 0.7. During training, the loss between the predicted vehicle position confidence and the label confidence is calculated, where the label confidence is obtained according to the following method:

[0078] For each predicted parking space, obtain its anchor point position and determine whether the anchor point corresponds to the circle range. If so, set the label confidence corresponding to the predicted parking space to 1. During training, 0.7 and 1 are calculated. Otherwise, set it to 0. During training, 0.7 and 0 are calculated.

[0079] It should be noted that the convolution modules A1, A2, A3, B1, B2, and B3 are composed of multiple groups of convolutional layers with 3×3 convolution kernels. The initial values ​​of the six are set to the same, but according to the different tasks to be processed by each branch, the parameter values ​​in the convolutional layers are continuously iterated until they are optimal.

[0080] In one embodiment, the steps of optimizing the parking space analysis model by performing multiple iterations of training on the parking space analysis model using the label and the parking space prediction information through the loss function and weight value of each branch include:

[0081] During training, the X and Y of the marked parking space are converted into label offsets based on the corresponding anchor points of the marked parking space, and the loss between the label offset and the predicted coordinate offset is calculated; the loss is calculated based on the e-index operation result and the value of the label height Z; the loss is calculated based on the predicted vehicle position confidence and the label confidence to optimize the parking space analysis model.

[0082] Furthermore, obtaining the coordinates (X, Y, Z) of each corner point in the marked parking space includes the following steps:

[0083] (1) The laser radar point cloud data is transformed into vehicle coordinate system data by using the first coordinate transformation, wherein the laser radar point cloud data is obtained by splicing the original radar point cloud data, and the vehicle coordinate system data includes four corner points of the parking space.

[0084] (2) Mark the coordinate information (X, Y, Z) of the four corner points of the parking space on the vehicle coordinate system data.

[0085] (3) Using the second coordinate transformation, the coordinate information of the four corner points is transformed into camera coordinate system data respectively.

[0086] (4) Using the camera intrinsic parameters, the four camera coordinate system data are transformed into image coordinate system data respectively.

[0087] (5) The four image coordinate system data are respectively visualized on the image data collected by a single camera, and the parking space is marked according to the degree of overlap between the image coordinate system data and the corner points in the image data. The marked parking space includes the coordinate information (X, Y, Z) of the four corner points.

[0088] Furthermore, the step of completing the marking of the parking space according to the degree of overlap between the image coordinate system data and the corner points existing in the image data in step (5) includes:

[0089] In response to the image coordinate system data overlapping with the collected image data, the parking space marking is completed; in response to the image coordinate system data not overlapping with the collected image data, the coordinate information of the four corner points of the marked parking space is fine-tuned on the vehicle coordinate system data until the image coordinate system data overlaps with the collected image data, thereby completing the parking space marking.

[0090] In one embodiment, before the step of training the parking space analysis model, the method further includes: S0, collecting the training data. In the present application, the image data of the parking space is collected by four surround-view cameras, and the point cloud data of the parking space is collected by a laser radar. For parking spaces with obvious parking space lines, the point cloud of the parking space can be obtained by the laser radar, and the parking space can be directly marked. However, the parking space lines are sometimes not sensitive to the laser radar, and the laser radar is not enough to obtain the accurate position, such as floor tile parking spaces. At this time, it is necessary to combine the image data of the parking space to further determine whether the marked parking space is accurate. For parking spaces with obvious parking space lines, the image data of the parking space is also needed to further verify the accuracy of the marked parking space. There are many ways to represent parking space information, such as segmentation, corner points, etc. Here, taking the parking space corner points as an example, combined with Figure 3 The conversion relationship of each coordinate system in , F represents the camera internal parameter, T represents the coordinate system transformation matrix, subscript l represents the lidar coordinate system, subscript e represents the ego-vehicle coordinate system, and subscript c represents the camera coordinate system. T, elrepresents the transformation matrix from the laser radar coordinate system to the vehicle coordinate system, T ce represents the transformation matrix from the vehicle coordinate system to the camera coordinate system. The first coordinate transformation is used to transform the collected point cloud data into the vehicle coordinate system data. Specifically, the first coordinate transformation is used to transform the five laser radar data D l Transform data D to the vehicle coordinate system e , the first coordinate transformation relationship is D e =T el *D l Step S0 specifically includes the following steps:

[0091] S01, using a first coordinate transformation to transform the laser radar point cloud data into vehicle coordinate system data, the laser radar point cloud data is obtained by splicing the original radar point cloud data, and the vehicle coordinate system data includes four corner points of the parking space.

[0092] S02, marking the coordinate information (X, Y, Z) of the four corner points of the parking space on the vehicle coordinate system data.

[0093] Specifically, the slope D of the laser radar point cloud data in the vehicle coordinate system e The coordinate information of the four corner points of the parking space is marked on e ,Compared to image data, lidar point cloud data is not dense, such as Figure 5 As shown in FIG. 1 , if there is no laser radar point cloud data at the corner point of the parking space (such as the dot indicated by the dark gray arrow), the linear interpolation method is used to obtain the coordinate information of the position.

[0094] S03: using a second coordinate transformation, transform the coordinate information of the four corner points into camera coordinate system data respectively.

[0095] Specifically, the vehicle coordinate system data P is transformed into e Transform to the camera coordinate system P c , the second coordinate transformation relationship is P c =T ce *P e .

[0096] S04, using camera intrinsic parameters to transform the four camera coordinate system data into image coordinate system data respectively.

[0097] Specifically, the camera coordinate system data P is transformed into c Transform to the corresponding image coordinate system data P i :P i =F*P c .

[0098] S05, respectively visualize the four image coordinate system data on the image data collected by a single camera, and complete the marking of the parking space according to the degree of overlap between the image coordinate system data and the corner points in the image data. The marked parking space includes the coordinate information (X, Y, Z) of the four corner points.

[0099] In one embodiment, the step of completing the marking of the parking space according to the degree of overlap between the image coordinate system data and the corner points existing in the image data includes: in response to the image coordinate system data overlapping with the collected image data, in this embodiment, only the overlap of X and Y needs to be confirmed to complete the marking of the parking space; in response to the image coordinate system data not overlapping with the collected image data, fine-tuning the coordinate information of the four corner points of the marked parking space on the vehicle coordinate system data until the image coordinate system data overlaps with the collected image data to complete the marking of the parking space.

[0100] Specifically, the image coordinate system data P i The coordinate information of the image is P i Visualization on the image data (picture) of the corresponding parking space. See data P i Whether it coincides with the parking space position in the picture, if not, the laser radar data P is fine-tuned by re-marking the coordinate information of the four corner points of the parking space on the vehicle coordinate system data e ; If they overlap, the marking of the parking space will end.

[0101] Through labeling, a large amount of parking space training data can be obtained. The parking space training data is a data pair (P e , D, V), where V is the image data collected by the four surround view cameras, D is the point cloud data of the laser radar, and P e The parking space data obtained by the lidar at the same time after labeling, that is, the label, includes the coordinates (X, Y, Z) of each corner point in the labeled parking space and the reliability of the labeled vehicle position.

[0102] In another embodiment, the collection of the training data and the training of the parking space analysis model can be realized by parking space segmentation in addition to taking the parking space corner points as an example. The occupancy status inside the marked parking space corner points is marked again, with the vacant part marked as 0 and the occupied part marked as 1. For example, if there is a limiter, the limiter part is marked as 1. For example, if there is a vehicle that semi-intrudes the parking space, the intrusion part is marked as 1. It is necessary to judge the degree of intrusion of the vehicle and whether the vehicle can be parked in.

[0103] In actual applications, when there is a certain height at the entrance of the parking space, the vehicle needs a larger torque to move up. Generally, in the PAS parking assistance system, for parking safety, an upper limit value is set for the torque. The parking space height is slightly higher (such as on the curb). If the torque issued by the control reaches the upper limit value, it is not enough to drive the vehicle over the curb. After a period of stuck, the PAS system will exit and execute the 3D information detection method of the parking space described in this application to obtain the parking space 3D information including the height information, and send the parking space 3D information including the height information to the control end, clearly informing the PAS system that the vehicle is parked in a parking space with a height. Therefore, the on-board PAS system relaxes the torque upper limit, and the vehicle control appropriately increases the torque according to the parking space height to allow the vehicle to park smoothly in the parking space.

[0104] Therefore, when the method of the present application is specifically applied to a parking control scenario, for parking spaces with a height z that is basically 0, the vehicle can be controlled to park in accordance with traditional strategies. For parking spaces with a height, the system is clearly informed that the vehicle is parking in a parking space with a height, rather than other obstacles, and the torque needs to be increased appropriately to park the vehicle in the parking space.

[0105] In practical applications, the present application can collect the training data and train the parking space analysis model on a computer host, and deploy the trained and optimized parking space analysis model on the vehicle's tensor processing unit TPU (Tensor Processing Unit) after quantization processing, and use TPU to complete the model's reasoning application and parking space detection.

[0106] The protection scope of the 3D information detection method of the parking space described in the embodiment of the present application is not limited to the execution order of the steps listed in this embodiment. All solutions implemented by adding, reducing or replacing steps in the prior art based on the principles of the present application are included in the protection scope of the present application.

[0107] An embodiment of the present application further provides a 3D information detection device for a parking space, which can implement the 3D information detection method for a parking space described in the present application. However, the implementation device of the 3D information detection method for a parking space described in the present application includes but is not limited to the structure of the 3D information detection device for a parking space listed in the present embodiment. All structural deformations and replacements of the prior art made according to the principles of the present application are included in the protection scope of the present application.

[0108] See also Figure 8 , which is a schematic diagram of the structure of the 3D information detection device for parking spaces according to an embodiment of the present application. Figure 8 As shown, this embodiment provides a 3D information detection device 8 for a parking space, including: a data acquisition module 81, a model analysis module 82, a threshold screening module 83, a corner point processing module 84 and a parking space information determination module 85.

[0109] The data acquisition module 81 is configured to acquire image data and lidar point cloud data generated in real time.

[0110] The model analysis module 82 is configured to input the image data and the lidar point cloud data into a pre-trained parking space analysis model, and output each group of parking space information; the parking space information includes different predicted parking spaces, and each predicted parking space includes the 3D corner point information of the parking space and the confidence of the parking space.

[0111] The threshold screening module 83 is configured to filter out predicted parking spaces whose confidence is less than the parking space screening threshold according to the relationship between the confidence and the parking space screening threshold.

[0112] The corner point processing module 84 is configured to expand the circumscribed cuboid of the parking space corner points according to the 3D corner point information of the parking space.

[0113] The parking space information determination module 85 is configured to perform non-maximum suppression screening on the circumscribed cuboid of the predicted parking space after confidence screening, and determine the final 3D information of the parking space based on the predicted parking space left after the screening.

[0114] In the several embodiments provided in the present application, it should be understood that the disclosed device or method can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules / units is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or units can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules or units, which can be electrical, mechanical or other forms.

[0115] The modules / units described as separate components may or may not be physically separated, and the components displayed as modules / units may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules / units may be selected according to actual needs to achieve the purpose of the embodiments of the present application. For example, the functional modules / units in the various embodiments of the present application may be integrated into one processing module, or each module / unit may exist physically separately, or two or more modules / units may be integrated into one module / unit.

[0116] Those of ordinary skill in the art should further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0117] See also Fig. 9 , which is a schematic diagram showing the structural connection of the electronic device described in the embodiment of the present application. Fig. 9 As shown, the present application provides an electronic device 1, comprising: a processor 11 and a memory 12; the memory 12 is used to store computer programs, and the processor 11 is used to execute the computer programs stored in the memory 12, so that the electronic device 1 executes the 3D information detection method of the parking space.

[0118] The above-mentioned processor 71 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0119] The memory 72 may include a random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory.

[0120] See also Fig.10 , which is a schematic diagram of the structure of the 3D information detection system for parking spaces according to an embodiment of the present application. Fig.10 As shown, this embodiment provides a 3D information detection system for a parking space, including: the above-mentioned electronic device 1 and a parking control device 2; the electronic device 1 is communicatively connected with the parking control device 2.

[0121] The electronic device 1 transmits the 3D information of the parking space detected and output to the parking control device 2, and the parking control device 2 performs parking control on the vehicle according to the 3D information of the parking space.

[0122] In one embodiment, the system further includes: an image acquisition device and a point cloud acquisition device.

[0123] The image acquisition device is used to acquire image data in real time, and the point cloud acquisition device is used to acquire laser radar point cloud data in real time.

[0124] Specifically, the image acquisition device is a surround view camera, and the point cloud acquisition device is a laser radar. The image data is collected and uploaded by the surround view cameras arranged at the four positions of the vehicle, and the point cloud data is collected and uploaded by the laser radar; the laser radar includes a main laser radar arranged in the middle of the vehicle and blind spot radars arranged at the four positions of the vehicle.

[0125] In actual applications, the electronic device can be the vehicle's own hardware processing device, which obtains the image data generated and uploaded in real time by the surround view camera and the point cloud data generated and uploaded in real time by the laser radar, executes the 3D information detection method of the parking space, and outputs the 3D information of the final parking space. The parking control device can be a domain controller on the vehicle responsible for intelligent driving control. The domain controller receives the 3D information of the final parking space output by the electronic device and performs parking control on the vehicle according to the 3D information of the parking space.

[0126] The descriptions of the processes or structures corresponding to the above-mentioned figures have different emphases. For parts that are not described in detail in a certain process or structure, please refer to the relevant descriptions of other processes or structures.

[0127] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.

Claims

1. A method for detecting 3D information of a parking space, characterized in that: The method comprises: Obtain real-time generated image data and LiDAR point cloud data; Inputting the image data and the laser radar point cloud data into a pre-trained parking space analysis model, and outputting each group of parking space information; the parking space information includes different predicted parking spaces, each predicted parking space includes 3D corner point information of the parking space and a confidence level of the parking space; According to the relationship between the confidence and the parking space screening threshold, filtering out predicted parking spaces whose confidence is less than the parking space screening threshold; Expanding a circumscribed cuboid of the parking space corner points according to the 3D corner point information of the parking space; The circumscribed cuboid of the predicted parking space after confidence screening is subjected to non-maximum suppression screening, and the final 3D information of the parking space is determined based on the predicted parking space left after screening.

2. The method according to claim 1, characterized in that Before the step of acquiring the image data and point cloud data generated in real time, the method further includes: training the parking space analysis model based on training data; the training data includes the spliced ​​laser radar point cloud data, the image data collected by a single camera, and the labels between the two, the labels include the coordinates (X, Y, Z) of each corner point in the marked parking space and the reliability of the labeled vehicle position, wherein the anchor point corresponding to the center point of the marked parking space is taken as the center of the circle, the preset length is taken as the radius, and the label confidence of the parking space corresponding to the anchor point falling within the circle is set to 1, otherwise it is 0; Extract 2D image features from each image in the training data, convert the extracted 2D image features into 3D cone features, fuse the 3D cone features to form image BEV features, perform convolution processing on the image BEV features to extract semantic features, and obtain 3D features of the parking space at the image angle; After voxelizing the point cloud data, an encoder is used to extract spatial features of the point cloud data, and the extracted spatial features are converted into point cloud BEV features to obtain 3D features of the parking space at the point cloud angle; Generate a fusion feature according to the 3D feature of the parking space at the image angle and the 3D feature of the parking space at the point cloud angle; The fused features are input into the parking space detection decoder to output each group of parking space prediction information in the model training stage, wherein the parking space prediction information includes multiple predicted parking spaces, and each predicted parking space includes the x, y information of the four predicted corner points, the height information z and the parking position reliability; the parking space analysis model is optimized by performing multiple iterative training on the parking space analysis model through the loss function and weight value of each branch using the label and the parking space prediction information.

3. The method according to claim 2, characterized in that The fusion feature is input into the parking space detection decoder to output each group of parking space prediction information in the model training stage, wherein the parking space prediction information includes multiple predicted parking spaces, each predicted parking space includes the x, y information of the predicted four corner points, the height information z and the parking position reliability, including the following steps: Extracting semantic features from the fused features; Combined with the semantic features, the image features in the fusion features are subjected to a first convolution process, and the coordinate offsets of the four corner points of the 3D parking space are outputted, and the coordinate offsets are inputted into a coordinate conversion module to obtain a combination with the preset anchor point coordinates, and finally the x, y information of the four corner points of the 3D parking space is determined; Combined with the semantic features, a second convolution process is performed on the image features in the fusion features to extract features related to the height information of the corner points, the features related to the height information of the corner points are further decoded to obtain the height information representation of the 3D parking space detection corner points, an e-exponential operation is performed on the height information representation, and finally the height information z of the four corner points of the 3D parking space is determined; In combination with the semantic features, a third convolution process is performed on the image features in the fused features to extract features related to corner point confidence, the features related to confidence are further decoded to obtain a 3D parking space detection confidence factor, and a function activation is performed on the confidence factor to obtain prediction confidence.

4. The method according to claim 3, characterized in that The steps of performing multiple iterations of training on the parking space analysis model by using the label and the parking space prediction information through the loss function and weight value of each branch to optimize the parking space analysis model include: During training, the X and Y of the marked parking space are converted into label offsets based on the corresponding anchor points of the marked parking space, and the loss between the label offset and the predicted coordinate offset is calculated; the loss is calculated based on the e-index operation result and the value of the label height Z; the loss is calculated based on the predicted vehicle position confidence and the label confidence to optimize the parking space analysis model.

5. The method according to claim 2, characterized in that: The acquisition of the coordinates (X, Y, Z) of each corner point in the marked parking space includes the following steps: The laser radar point cloud data is transformed into vehicle coordinate system data by using a first coordinate transformation, wherein the laser radar point cloud data is obtained by splicing the original radar point cloud data, and the vehicle coordinate system data includes four corner points of the parking space; Mark the coordinate information (X, Y, Z) of the four corner points of the parking space on the vehicle coordinate system data; The coordinate information of the four corner points is respectively transformed into camera coordinate system data by using a second coordinate transformation; The four camera coordinate system data are respectively transformed into image coordinate system data using camera intrinsic parameters; The four image coordinate system data are respectively visualized on the image data collected by a single camera, and the parking space is marked according to the degree of overlap between the image coordinate system data and the corner points in the image data. The marked parking space includes the four corner point coordinate information (X, Y, Z).

6. The method according to claim 4, characterized in that The step of completing the marking of the parking space according to the degree of overlap between the image coordinate system data and the corner points existing in the image data comprises: In response to the image coordinate system data and the collected image data being coincident, completing the marking of the parking space; In response to the image coordinate system data not coinciding with the collected image data, the coordinate information of the four corner points of the marked parking space is fine-tuned on the vehicle coordinate system data until the image coordinate system data coincides with the collected image data, thereby completing the marking of the parking space.

7. The method according to claim 1, characterized in that The step of extending the circumscribed cuboid of the parking space corner points according to the 3D corner point information of the parking space comprises: Determine the inclined plane formed by the four parking space corner points according to the 3D corner point information of the parking space; Projecting the inclined plane onto a plane with a preset fixed height value to determine a horizontal projection plane; The circumscribed cuboid is determined by combining the inclined plane and the horizontal projection plane.

8. A 3D information detection device for a parking space, characterized in that: The device comprises: A data acquisition module configured to acquire image data and lidar point cloud data generated in real time; A model analysis module is configured to input the image data and the laser radar point cloud data into a pre-trained parking space analysis model, and output each group of parking space information; the parking space information includes different predicted parking spaces, each predicted parking space includes 3D corner point information of the parking space and a confidence level of the parking space; A threshold screening module is configured to filter out predicted parking spaces whose confidence is less than the parking space screening threshold according to the relationship between the confidence and the parking space screening threshold; A corner point processing module is configured to expand a circumscribed cuboid of the corner points of the parking space according to the 3D corner point information of the parking space; The parking space information determination module is configured to perform non-maximum suppression screening on the circumscribed cuboid of the predicted parking space after confidence screening, and determine the final 3D information of the parking space based on the predicted parking space left after the screening.

9. An electronic device, characterized in that: The electronic device comprises: a processor and a memory; The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the electronic device executes the method according to any one of claims 1 to 7.

10. A 3D information detection system for a parking space, characterized in that: The system comprises: the electronic device and the parking control device as claimed in claim 8; the electronic device is communicatively connected with the parking control device; The electronic device transmits the 3D information of the parking space detected and output to the parking control device, and the parking control device performs parking control on the vehicle according to the 3D information of the parking space.