Surround view image parking space detection method and device based on graph attention

Through the graph attention-based surround image parking space detection method, the graph attention neural network is used to fuse the surround image features and vehicle information to achieve efficient and accurate parking space detection, which solves the problem of inaccurate and time-consuming detection in the existing technology. question.

CN116259042BActive Publication Date: 2024-09-27SIRUNTIANLANG (BEIJING) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310330519.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-31
Publication Date
2024-09-27
Estimated Expiration
2043-03-31

AI Technical Summary

Technical Problem

Existing parking space detection methods based on surround-view images have problems such as insufficient detection accuracy and time-consuming detection. Especially under different weather and lighting conditions, traditional methods are difficult to meet the robustness and efficiency requirements.

Method used

The surrounding image parking space detection method based on graph attention is used to obtain a bird's-eye view for target point detection and surround image feature extraction, fuse the marker point position information and features, use the graph attention neural network for identification, and combine vehicle detection to determine the parking space. Whether it is occupied or not, end-to-end parking space detection is implemented.

Benefits of technology

It achieves high-precision, fast and robust parking space detection, avoids manual design and complex post-processing, and has stability and efficiency in different environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116259042B
    Figure CN116259042B
Patent Text Reader

Abstract

The present invention relates to a method and device for detecting parking spaces based on a surround view image based on graph attention, the method comprising obtaining a bird's-eye view, performing target point detection, surround view feature extraction, and vehicle detection based on the bird's-eye view; obtaining marker point position information based on target point detection, obtaining marker point features based on surround view feature extraction, fusing marker point position information and marker point features, and obtaining a fused parking space feature map; inputting the parking space feature map into a pre-built graph attention neural network for recognition to obtain a parking space detection frame; obtaining vehicle position information based on vehicle detection, and determining whether the parking space is occupied by combining the vehicle position information and the parking space detection frame. The method provided by the present invention does not require manual design and complex post-processing, and simultaneously performs parking space detection and occupancy classification, fully realizing end-to-end, and has the characteristics of high accuracy, high speed, and good robustness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of autonomous driving, and in particular relates to a method and device for detecting parking spaces using surround view images based on graph attention. Background Art

[0002] The most common methods for parking space detection are distance measurement and image measurement. For example, ultrasonic sensors are used to detect the distance to determine whether there is an empty parking space, or surround image recognition is used to determine whether there is an empty parking space. A more common method is to use a combination of the two. Among the methods for identifying parking spaces based on surround image, the more traditional ones, such as grayscale histograms, time slot features, support vector machines to identify parking space occupancy, or local binary patterns (LBP) as extracted parking space features, are more susceptible to environmental changes. In order to further improve the robustness of parking space occupancy classification under different lighting conditions, a mAlexNet network designed for smart cameras was proposed, and then a generalized parking space classification method based on dilated convolutional neural networks for different images taken from different camera perspectives was proposed. However, both methods are designed for monitoring images of parking lots. In order to make vacant parking space detection unaffected by any weather and lighting conditions, a method of using thermal imaging cameras to detect vehicles and train improved faterRCNN to detect vacant parking spaces was proposed. However, when the vehicle temperature decreases, the detection accuracy drops sharply.

[0003] In the related art, the current parking space detection methods based on surround view images can be mainly divided into three categories: line-based methods, point-based methods and semantic segmentation-based methods.

[0004] Among them, the line feature-based methods have evolved from the initial Hough transform and Randon transform to the DBSCAN line-level feature clustering algorithm and then to the combination of line clustering and multi-view features. However, these original methods are not robust to actual complex environments.

[0005] Point feature-based methods range from the Harris corner detector to the machine learning-based PSD_L method to the DCNN-based DeepPS method. These methods have increasingly higher computing speed and accuracy, but they still require manual design and complex post-processing and cannot detect empty parking spaces.

[0006] Semantic segmentation-based methods From the first semantic segmentation-based method to the VH-HFCN network and then to the DFNet network, these semantic segmentation methods require post-processing to obtain parking spaces, which is time-consuming and inaccurate.

[0007] Therefore, existing parking space detection methods based on surround view images all have the problems of inaccurate detection and time-consuming. Summary of the invention

[0008] In view of this, the purpose of the present invention is to overcome the shortcomings of the prior art and provide a surround view image parking space detection method and device based on image attention, so as to solve the problems of inaccurate and time-consuming detection in the prior art.

[0009] To achieve the above objectives, the present invention adopts the following technical solution: a surround view image parking space detection method based on graph attention, comprising:

[0010] Acquire a bird's-eye view, and perform target point detection, surround view feature extraction, and vehicle detection based on the bird's-eye view;

[0011] The position information of the marking point is obtained according to the target point detection, the features of the marking point are obtained according to the surround view feature extraction, and the position information of the marking point and the features of the marking point are fused to obtain a fused parking lot feature map;

[0012] Input the parking space feature map into a pre-built graph attention neural network for recognition to obtain a parking space detection frame;

[0013] The vehicle position information is obtained according to the vehicle detection, and whether the parking space is occupied is determined by combining the vehicle position information and the parking space detection frame, and the determination result is output.

[0014] Furthermore, obtaining the marker point position information according to the target point detection includes:

[0015] Adjusting the bird's-eye view image to an RGB image of a preset size;

[0016] Input the RGB image into a backbone network with a CBMA attention mechanism to obtain attention features; wherein the CBMA attention mechanism uses a channel attention mechanism and a spatial attention mechanism in series;

[0017] According to the attention features, three layers of feature maps of different sizes are obtained;

[0018] Output predicted marker point position information according to the feature map.

[0019] Furthermore, the step of extracting the marker point features according to the surround view features includes:

[0020] Inputting the bird's-eye view image into a pre-constructed marker feature encoding network to obtain a ring view feature;

[0021] The bilinear interpolation method is used to calculate the point-level features of the ring view feature map to obtain the marked point features;

[0022] The marker feature encoding network adopts a convolutional encoder, which is composed of four convolutional layers and outputs a feature map of size 16*16*64.

[0023] Furthermore, the marking point position information and the marking point features are integrated, including:

[0024] The following method is used to use the multi-layer perceptron MLP to encode the marker point position information P into a high-dimensional vector and fuse it into the marker point feature F:

[0025]

[0026] Indicates the first i features, where the marked point position information is the position information in world coordinates obtained by perspective transformation of the parking spot detection.

[0027] Furthermore, the step of inputting the parking lot feature map into a pre-built graph attention neural network for recognition includes:

[0028] Based on the parking lot feature graph, construct a fully connected graph; wherein the fully connected graph includes a plurality of nodes and a plurality of edges;

[0029] Determine a feature vector of the fully connected graph, and obtain a new feature vector of each node after performing an aggregation operation based on an attention mechanism on the feature vector;

[0030] Calculate the weight coefficient between each node and all neighboring nodes based on the new feature vector of each node;

[0031] All weight coefficients are normalized, processed by the attention mechanism, and averaged to obtain a parking space detection box consisting of nodes and edges.

[0032] Furthermore, it also includes: identifying the parking space entrance line; including:

[0033] Concatenate the feature vectors of any two nodes into a 128-dimensional vector;

[0034] The 128-dimensional vector is input into the pre-built parking space entrance line discrimination network to obtain the two parking space entrance points and the probability of whether the two entrance points constitute a parking space entrance.

[0035] Further, obtaining vehicle position information according to vehicle detection, and determining whether the parking space is occupied in combination with the vehicle position information and the parking space detection frame, includes:

[0036] According to the parking space detection frame and the vehicle position information, four adjacent vehicle detection frame positions are selected to determine the coverage rate between the rectangular frame of the vehicle and the rectangular frame of the parking space. When the sum of the four coverage rates is less than a preset threshold, it is determined that the parking space is not occupied.

[0037] The embodiment of the present application provides a surround view image parking space detection device based on image attention, comprising:

[0038] An acquisition module, used to acquire a bird's-eye view, and perform target point detection, surround view feature extraction, and vehicle detection based on the bird's-eye view;

[0039] A fusion module is used to obtain the position information of the marking point according to the target point detection, obtain the features of the marking point according to the surrounding view feature extraction, and fuse the position information of the marking point and the features of the marking point to obtain a fused parking lot feature map;

[0040] A recognition module, used for inputting the parking space feature map into a pre-built graph attention neural network for recognition to obtain a parking space detection frame;

[0041] The judgment module is used to obtain vehicle position information according to vehicle detection, judge whether the parking space is occupied in combination with the vehicle position information and the parking space detection frame, and output the judgment result.

[0042] The present invention adopts the above technical solution, and the beneficial effects that can be achieved include:

[0043] The present invention provides a method and device for parking space detection in surround view images based on graph attention. The present application adopts a graph attention neural network, without manual design and complex post-processing, and performs parking space detection and occupancy classification simultaneously, fully realizing end-to-end, with high accuracy, fast speed and good robustness. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0045] Figure 1 A schematic diagram of the steps of the surround view image parking space detection method based on graph attention of the present invention;

[0046] Figure 2 Schematic diagram of the flow of the method for detecting parking spaces in surround view images based on graph attention of the present invention;

[0047] Figure 3It is a structural schematic diagram of the surround view image parking space detection device based on image attention of the present invention. DETAILED DESCRIPTION

[0048] To make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be described in detail below. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other implementation methods obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.

[0049] A specific method and device for detecting parking spaces using surround view images based on image attention provided in an embodiment of the present application will be described below in conjunction with the accompanying drawings.

[0050] like Figure 1 As shown, the method for detecting parking spaces in surround view images based on graph attention provided in the embodiment of the present application includes:

[0051] S101, obtaining a bird's-eye view, and performing target point detection, surround view feature extraction, and vehicle detection according to the bird's-eye view;

[0052] It can be understood that in this application, a convolutional neural network (Resnet, VGG, etc.) is used to extract parking space line features from a bird's-eye view.

[0053] S102, obtaining the position information of the marking point according to the target point detection, obtaining the features of the marking point according to the surround view feature extraction, and fusing the position information of the marking point and the features of the marking point to obtain a fused parking lot feature map;

[0054] In some embodiments, obtaining the marker point position information according to the target point detection includes:

[0055] Adjusting the bird's-eye view image to an RGB image of a preset size;

[0056] Input the RGB image into a backbone network with a CBMA attention mechanism to obtain attention features; wherein the CBMA attention mechanism uses a channel attention mechanism and a spatial attention mechanism in series;

[0057] According to the attention features, three layers of feature maps of different sizes are obtained;

[0058] Output predicted marker point position information according to the feature map.

[0059] Specifically, the specific method for target point detection in this application is:

[0060] 1. Resize the input image to a 640*640*3 RGB image;

[0061] 2. Input the result obtained in step 1 into the backbone network and add the CBAM (Convolutional Block Attention Module) attention mechanism. In parking line detection, the parking line only occupies a small part of the image and most of the pixel content is background. In order to remove redundant feature information irrelevant to the parking line, the CBAM attention mechanism is added. The CBAM attention mechanism uses the channel attention mechanism and the spatial attention mechanism in series, focusing on important features in the channel and space respectively.

[0062] 3. Input the results in 2 into the prediction layer (head layer), and the head layer network outputs three layers of feature maps of different sizes. The head layer is a path aggregation feature pyramid network (pafpn) structure, which is a network that obtains the output content of the network. It uses the features extracted by the backbone network (backbone) and the head uses these features to make predictions. In this method, the head layer refers to the core network structure of the YOLOX series. In YOLOv7, the head layer is a fusion of the neck layer and the head layer. The neck layer is placed between the backbone and the head to better utilize the features extracted by the backbone.

[0063] 4. Output the prediction results after the structure reparameterization network (RepVGG) and convolution layer (Conv).

[0064] In some embodiments, extracting the marker features based on the surround view features includes:

[0065] Inputting the bird's-eye view image into a pre-constructed marker feature encoding network to obtain a ring view feature;

[0066] The bilinear interpolation method is used to calculate the point-level features of the ring view feature map to obtain the marked point features;

[0067] The marker feature encoding network adopts a convolutional encoder, which is composed of four convolutional layers and outputs a feature map of size 16*16*64.

[0068] Specifically, the target detection model is used in the implementation. First, it is pre-trained on the public dataset VOC, and then the target detector based on the target detection model is fine-tuned on the public dataset, adjusting the parameters such as batch_size, learning_rate, epoch, decay, momentum, etc. The training set should be manually annotated with detection points (parking space line intersections) in advance in the target detection annotation tool LabelImg.

[0069] It can be understood that for vehicle detection, the present application uses the above-mentioned target detection model in its implementation and performs training on a public data set, and the obtained training project can be directly used for vehicle detection in a parking lot.

[0070] In one embodiment, extracting the marker point features according to the surround view features includes:

[0071] Inputting the bird's-eye view image into a pre-constructed marker feature encoding network to obtain a ring view feature;

[0072] The bilinear interpolation method is used to calculate the point-level features of the ring view feature map to obtain the marked point features;

[0073] The marker feature encoding network adopts a convolutional encoder, which is composed of four convolutional layers and outputs a feature map of size 16*16*64.

[0074] Specifically, in this application, the output result of the bird's-eye view feature extraction network is first passed through the marked point feature encoding network, and the bilinear interpolation method is used to calculate the point-level features of the feature map, that is, the output result of the marked point feature encoding network and the marked point position information are output as the marked point feature F through bilinear interpolation. The marked point feature encoding network uses a convolutional encoder, which is composed of four convolutional layers and outputs a feature map of size 16*16*64. It downsamples the input features to provide a smaller dimensional potential representation and forces the autoencoder to learn a compressed version of the feature.

[0075] Then, the location information of the marking points and the features of the marking points are fused. The purpose is to improve the feature representation capability. The multi-layer perceptron MLP is used to encode the position P into a high-dimensional vector, and then fused to the parking lot feature F:

[0076]

[0077] Indicates the first i The position of the marking point is obtained by perspective transformation from the parking spot detection in S101 to obtain the position information in the world coordinates.

[0078] S103, inputting the parking space feature map into a pre-built graph attention neural network for recognition to obtain a parking space detection frame;

[0079] Based on the fused parking lot feature map V, a fully connected graph is constructed , the fully connected graph G contains N nodes ,and Strip edge . In the first layer feature points The corresponding eigenvector is ( ), Indicates The length of the feature vector of the layer node. After an aggregation operation with the attention mechanism as the core, the output is the new feature vector of each node. ( ), is the length of the output feature vector ( The length of the layer node feature vector).

[0080] The method for updating the features of the markers in each layer of the graph neural network is as follows: in It is the feature combination operation, i.e. matrix concatenation.

[0081] Calculate new eigenvectors Need to calculate node features first and its neighbor nodes The weight coefficient of:

[0082]

[0083] Apparently yes The inner product of is the correlation between the two. is the weight parameter of the feature change (dimensional transformation) of the node in this layer. In principle, we can calculate the distance from any node to any node in the graph. , but in order to simplify the calculation, it is limited to the first-order neighbors (directly connected by edges). It should be noted that each node itself is also considered as its own neighbor.

[0084] At the same time, in order to better distribute the weights, it is necessary to uniformly normalize the correlations calculated between the current central node and all its neighboring nodes. The specific form is softmax normalization:

[0085]

[0086] in, is the weight coefficient. The above formula ensures that the sum of the weight coefficients of all neighbors of the current central node is 1. The following formula gives the complete weight coefficient calculation formula:

[0087]

[0088] According to the idea of ​​weighted summation of attention mechanism, node The new eigenvector of is:

[0089]

[0090] In order to further improve the expressive power of the attention layer, a multi-head attention mechanism is added, that is, k groups of independent attention mechanisms are called for the above formula, and then the output results are averaged:

[0091] in, is the weight coefficient calculated by the k-th group of attention mechanism, is the learning parameter corresponding to the kth group of attention mechanism.

[0092] In summary, after processing the feature points of the graph, a parking space detection frame consisting of graph points and edges is obtained;

[0093] After obtaining the parking space detection frame, further identify the parking space entrance line:

[0094] The features of any two nodes are concatenated into a 128-dimensional vector, that is, the features of two graph nodes are combined to obtain a The input features are sent to the parking space entrance line discrimination network, which consists of MLP and dropout layers. The output of the model is a The matrix of , represented as a pair of marked points. Each pair of marked points contains 5 elements: .in is the mark point position, Represents the probability of forming a parking space entry line.

[0095] S104, obtaining vehicle position information according to vehicle detection, combining the vehicle position information and the parking space detection frame to determine whether the parking space is occupied, and outputting a determination result.

[0096] Finally, the parking space occupancy type is determined by obtaining the parking space detection frame and the vehicle position information detected in S101 according to the output result in S103, and selecting four adjacent vehicle detection frame positions for determination. If the sum is less than the set threshold, it means the parking space is not occupied. The calculation method is as follows:

[0097] 1. Parking status is divided into two types: occupied (flag = 1) and free (flag = 0);

[0098] 2, is the coordinate of the center point of the current vehicle, Identify the frame for the current vehicle;

[0099] 3. is the coordinate of the center point of the current i-th parking space, are the length and width of the current parking space recognition frame respectively;

[0100] 4. is the coverage ratio between the rectangular frame of the vehicle and the rectangular frame of the i-th parking space.

[0101] The working principle of the surround view image parking space detection method based on graph attention is as follows: Figure 2 First, a bird's-eye view is obtained, and then target point detection, surround view feature extraction and vehicle detection are performed through the bird's-eye view. Among them, the target point detection is used to obtain the mark point position information, and the mark point feature is obtained through the surround view feature extraction. The mark point feature and the mark point position information are fused, and the fused parking spot feature is input into the graph attention neural network, referred to as the graph neural network, to obtain the parking space detection frame, and further identify the parking space entrance line; the vehicle position obtained by vehicle detection is combined with the parking space detection frame to calculate the overlap between the parking space area and the vehicle area, that is, the coverage calculation, and the coverage is compared with the preset threshold to determine whether the parking space is occupied. If it is occupied, other empty parking space frames are output. If it is not occupied, the parking space frame is output.

[0102] In summary, it can be understood that both the target detection method and the semantic segmentation in the prior art require complex post-processing or manual design parts, and end-to-end detection is not possible. In addition, the traditional parking spot detection method needs to first classify the local pattern of the surround view, and then detect the corner information based on it, and use the corner information to infer the parking space, which involves complex mathematical processing. The present application models the parking spots on the surround view as graph structure data, and designs a graph attention neural network to aggregate the neighbor information between parking spots to solve this problem; in addition, most traditional point-based parking spot detection methods need to mark the direction (clockwise or counterclockwise) and shape (horizontal, vertical or inclined) of the parking spot. The network model proposed in the present invention does not need to mark the direction and shape of the parking spot, thereby reducing training costs.

[0103] like Figure 3 As shown, the embodiment of the present application provides a surround view image parking space detection device based on image attention, comprising:

[0104] An acquisition module 201 is used to acquire a bird's-eye view, and perform target point detection, surround view feature extraction, and vehicle detection according to the bird's-eye view;

[0105] A fusion module 202 is used to obtain the position information of the marking point according to the target point detection, obtain the features of the marking point according to the surrounding view feature extraction, and fuse the position information of the marking point and the features of the marking point to obtain a fused parking lot feature map;

[0106] A recognition module 203 is used to input the parking space feature map into a pre-built graph attention neural network for recognition to obtain a parking space detection frame;

[0107] The judgment module 204 is used to obtain the vehicle position information according to the vehicle detection, and judge whether the parking space is occupied by combining the vehicle position information and the parking space detection frame, and output the judgment result.

[0108] The working principle of the surround view parking space detection device based on graph attention provided by the embodiment of the present application is as follows: the acquisition module 201 acquires a bird's-eye view, and performs target point detection, surround view feature extraction and vehicle detection according to the bird's-eye view; the fusion module 202 obtains the marker point position information according to the target point detection, obtains the marker point feature according to the surround view feature extraction, and fuses the marker point position information and the marker point feature to obtain a fused parking space feature map; the recognition module 203 inputs the parking space feature map into a pre-built graph attention neural network for recognition to obtain a parking space detection frame; the judgment module 204 obtains the vehicle position information according to the vehicle detection, and judges whether the parking space is occupied in combination with the vehicle position information and the parking space detection frame, and outputs the judgment result.

[0109] In summary, the present invention provides a method and device for parking space detection based on surround view images based on graph attention, the method comprising obtaining a bird's-eye view, performing target point detection, surround view feature extraction and vehicle detection based on the bird's-eye view; obtaining marker point position information based on target point detection, obtaining marker point features based on surround view feature extraction, fusing marker point position information and marker point features, and obtaining a fused parking space feature map; inputting the parking space feature map into a pre-built graph attention neural network for recognition to obtain a parking space detection frame; obtaining vehicle position information based on vehicle detection, and judging whether the parking space is occupied by combining the vehicle position information and the parking space detection frame. The method provided by the present invention does not require manual design and complex post-processing, and performs parking space detection and occupancy classification simultaneously, achieving full end-to-end, and has the characteristics of high accuracy, high speed and good robustness.

[0110] It can be understood that the method embodiment provided above corresponds to the device embodiment described above, and the corresponding specific contents can be referenced to each other and will not be repeated here.

[0111] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program codes.

[0112] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0113] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction method, which is implemented in the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0114] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0115] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A parking space detection method based on surround view image based on graph attention, characterized in that: include: Acquire a bird's-eye view, and perform target point detection, surround view feature extraction, and vehicle detection based on the bird's-eye view; The position information of the marking point is obtained according to the target point detection, the features of the marking point are obtained according to the surround view feature extraction, and the position information of the marking point and the features of the marking point are fused to obtain a fused parking lot feature map; The fusing of the marker point position information and the marker point feature includes: using a multi-layer perceptron MLP to encode the marker point position information P into a high-dimensional vector, and fusing it into the marker point feature F in the following manner: Indicates the first i Features, where the position information of the marking point is the position information of the parking spot detected in the world coordinates after perspective transformation; Input the parking lot feature map into a pre-built graph attention neural network for identification, and obtain a parking space detection frame; the inputting the parking lot feature map into the pre-built graph attention neural network for identification includes: constructing a fully connected graph based on the parking lot feature map; wherein the fully connected graph includes multiple nodes and multiple edges; determining a feature vector of the fully connected graph, and performing an aggregation operation with an attention mechanism as the core on the feature vector to obtain a new feature vector of each node; calculating a weight coefficient between the node and all neighboring nodes according to the new feature vector of each node; performing normalization, attention mechanism processing and averaging operation on all weight coefficients to obtain a parking space detection frame composed of nodes and edges; Obtaining vehicle position information according to vehicle detection, combining the vehicle position information and the parking space detection frame to determine whether the parking space is occupied, and outputting a determination result, including: According to the parking space detection frame and the vehicle position information, four adjacent vehicle detection frame positions are selected to determine the coverage rate between the rectangular frame of the vehicle and the rectangular frame of the parking space. When the sum of the four coverage rates is less than a preset threshold, it is determined that the parking space is not occupied.

2. The method according to claim 1, characterized in that The step of obtaining the position information of the marking point according to the target point detection includes: Adjusting the bird's-eye view image to an RGB image of a preset size; Input the RGB image into a backbone network with a CBMA attention mechanism to obtain attention features; wherein the CBMA attention mechanism uses a channel attention mechanism and a spatial attention mechanism in series; According to the attention features, three layers of feature maps of different sizes are obtained; Output predicted marker point position information according to the feature map.

3. The method according to claim 1 or 2, characterized in that: The step of extracting the marker features according to the surround view features includes: Inputting the bird's-eye view into a pre-constructed marker feature encoding network to obtain a ring view feature; The bilinear interpolation method is used to calculate the point-level features of the ring view features to obtain the marked point features; The marker feature encoding network adopts a convolutional encoder, which is composed of four convolutional layers and outputs a feature map of size 16*16*64.

4. The method according to claim 1, characterized in that: Also includes: Identify parking space entrance lines; including: Concatenate the feature vectors of any two nodes into a 128-dimensional vector; The 128-dimensional vector is input into the pre-built parking space entrance line discrimination network to obtain the two parking space entrance points and the probability of whether the two entrance points constitute a parking space entrance.

5. A parking space detection device based on surround view image based on graph attention, characterized in that: include: An acquisition module, used to acquire a bird's-eye view, and perform target point detection, surround view feature extraction, and vehicle detection based on the bird's-eye view; A fusion module is used to obtain the position information of the marking point according to the target point detection, obtain the features of the marking point according to the surrounding view feature extraction, and fuse the position information of the marking point and the features of the marking point to obtain a fused parking lot feature map; The fusing of the marker point position information and the marker point feature includes: using a multi-layer perceptron MLP to encode the marker point position information P into a high-dimensional vector, and fusing it into the marker point feature F in the following manner: Indicates the first i Features, where the position information of the marking point is the position information of the parking spot detected in the world coordinates after perspective transformation; A recognition module, used for inputting the parking lot feature map into a pre-built graph attention neural network for recognition, and obtaining a parking space detection frame; the inputting the parking lot feature map into the pre-built graph attention neural network for recognition, including: constructing a fully connected graph based on the parking lot feature map; wherein the fully connected graph includes multiple nodes and multiple edges; determining a feature vector of the fully connected graph, and performing an aggregation operation with an attention mechanism as the core on the feature vector to obtain a new feature vector of each node; calculating a weight coefficient between the node and all neighboring nodes according to the new feature vector of each node; performing normalization, attention mechanism processing and average operation on all weight coefficients to obtain a parking space detection frame composed of nodes and edges; The judgment module is used to obtain vehicle position information according to vehicle detection, judge whether the parking space is occupied in combination with the vehicle position information and the parking space detection frame, and output the judgment result, including: According to the parking space detection frame and the vehicle position information, four adjacent vehicle detection frame positions are selected to determine the coverage rate between the rectangular frame of the vehicle and the rectangular frame of the parking space. When the sum of the four coverage rates is less than a preset threshold, it is determined that the parking space is not occupied.