Parking assisting method and device, equipment and storage medium
The vehicle-mounted camera and neural network model identify parking space information and generate a parking map, which solves the problems of high visual perception cost and poor performance in the existing technology, realizes a low-cost, high-performance parking assistance system, and improves parking efficiency. and security.
Patent Information
- Application Number
- CN202410877422.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-10-01
AI Technical Summary
Existing parking assistance systems have high cost and poor performance in visual perception technology, making it difficult to achieve low-cost, high-performance parking assistance solutions.
An on-board camera is used to acquire images, and a preset neural network model is used to identify parking space information and other target objects, and the fusion processing is used to generate a parking map, avoiding the use of expensive sensors and improving system performance and reliability.
It achieves low-cost, high-performance parking assistance, improves parking efficiency and safety, reduces the overall system cost, and enhances user experience.
Smart Images

Figure CN118722598A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to parking assistance technology, and relate to but are not limited to a parking assistance method and apparatus, device, and storage medium. Background Art
[0002] With the development of automobile intelligence and autonomous driving technology, the demand for parking assistance systems is increasing. However, vision-based perception technologies are emerging in an endless stream, and different algorithms have very different adaptability to scenarios and computing power requirements, which directly affects the user experience and vehicle price. In order to solve this problem, a low-cost and high-performance vision perception parking solution is needed.
[0003] Therefore, how to achieve low-cost, high-performance parking assistance is an urgent problem to be solved. Summary of the invention
[0004] In view of this, the parking assistance method, device, equipment, and storage medium provided in the embodiments of the present application can realize low-cost, high-performance parking assistance. The parking assistance method, device, equipment, and storage medium provided in the embodiments of the present application are implemented as follows:
[0005] An embodiment of the present application provides a parking assistance method, including:
[0006] When the speed of the vehicle is lower than a preset speed threshold, a plurality of current images are acquired through the vehicle-mounted camera;
[0007] According to the multiple current images and the preset neural network model, a plurality of target recognition results corresponding to the multiple current images are obtained, the multiple target recognition results include target recognition results of parking space information and target recognition results of other information, the other information includes at least one of target object and driving area information, the preset neural network model is obtained by training an initial neural network model according to sample data collected in historical parking scenarios, the sample data includes a plurality of historical images collected in the historical parking scenarios and a plurality of historical parking space information and historical other information in the historical parking scenarios;
[0008] The multiple target recognition results are fused to obtain a parking map, and the parking map is used to assist parking.
[0009] In some embodiments, the preset neural network model includes a parking space information recognition submodule and other information recognition submodules, and the multiple target recognition results corresponding to the multiple current images are obtained according to the multiple images and the preset neural network model, including:
[0010] According to the multiple current images, a panoramic view BEV image and four-way fisheye images corresponding to the multiple current images are obtained;
[0011] According to the panoramic view BEV image and the parking space information recognition submodule, a target recognition result of the parking space information is obtained, wherein the parking space information includes a parking space number and a parking space location;
[0012] According to the four fisheye images and the other information recognition submodule, a target recognition result of other information is obtained.
[0013] In some embodiments, the other information includes the target object and the driving area information, the other information recognition submodule includes an automatic parking assistance APA multi-task perception model, the APA multi-task perception model includes a multi-task perception neural network, an object detection submodel and a driving area detection submodel, and the target recognition result of the other information is obtained according to the four-way fisheye image and the other information recognition submodule, including:
[0014] Obtaining camera calibration information of the vehicle-mounted camera and DR information of the vehicle;
[0015] The four fisheye images, the camera calibration information of the vehicle-mounted camera, and the DR information of the vehicle are processed by the multi-task perception neural network to obtain target image features and target key point features;
[0016] Processing the target image features and target key point features through the object detection sub-model to obtain a target recognition result of the target object, wherein the target object includes pedestrians, obstacles and vehicles;
[0017] The target image features and target key point features are processed by the driving area detection sub-model to obtain a target recognition result of the driving area information.
[0018] In some embodiments, the driving area information includes parking area information and road sign information, the driving area detection sub-model is used to obtain a target recognition result of the parking area information, the preset neural network model also includes a road sign recognition sub-module, and the multiple target recognition results corresponding to the multiple current images are obtained according to the multiple images and the preset neural network model, including:
[0019] According to the panoramic view BEV image and the road surface marking recognition submodule, a target recognition result of the road surface marking information is obtained.
[0020] In some embodiments, the road sign recognition submodule is a self-learning parking HPA multi-task perception model, and the HPA multi-task perception model includes a first feature extraction submodel, a semantic segmentation submodel, a semantic key point detection submodel, and a first post-processing submodel. The target recognition result of the road sign information is obtained according to the panoramic view BEV image and the road sign recognition submodule, including:
[0021] Processing the BEV image by using the first feature extraction sub-model to obtain feature information of the BEV image;
[0022] Processing the feature information of the BEV image by the semantic segmentation sub-model to obtain a semantic segmentation result;
[0023] Processing the feature information of the BEV image by the semantic key point detection sub-model to obtain a key point recognition result, wherein the key point recognition result includes key point coordinates, key point type and confidence;
[0024] The semantic segmentation result and the key point recognition result are processed by the first post-processing sub-model to obtain a target recognition result of the road surface marking information, wherein the road surface marking information includes at least one of guide arrow marking information, lane line information, stop line information and speed bump information.
[0025] In some embodiments, the parking space information recognition submodule includes a storage space detection model, and the storage space detection model includes a second feature extraction submodel, a storage space detection submodel, and a second post-processing submodel. The target recognition result of the parking space information is obtained according to the panoramic view BEV image and the parking space information recognition submodule, including:
[0026] Preprocessing the BEV image to obtain a preprocessed BEV image, wherein the preprocessing includes at least one of normalization, format conversion, and affine transformation;
[0027] Processing the preprocessed BEV image by the second feature extraction sub-model to obtain feature information of the BEV image;
[0028] Processing the feature information of the preprocessed BEV image by the storage location detection sub-model to obtain an initial storage location recognition result;
[0029] The initial storage location identification result is processed by the second post-processing sub-model to obtain a target identification result of the storage location in the parking space information, wherein the target identification result of the storage location in the parking space information includes storage location coordinates, storage location type and occupation status.
[0030] In some embodiments, the other information further includes dirt information, the other information recognition submodule further includes a dirt detection model, the dirt detection model includes a third feature extraction submodel, a texture detection submodel and a third post-processing submodel, and the target recognition result of the other information is obtained according to the four fisheye images and the other information recognition submodule, further comprising:
[0031] Processing the four fisheye images by using the third feature extraction sub-model to obtain feature information of the four fisheye images;
[0032] Processing the feature information of the preprocessed four-way fisheye image by the texture detection sub-model to obtain a texture detection result;
[0033] The texture detection result is processed by the third post-processing sub-model to obtain dirt information in the other information, where the dirt information includes at least one of normal, muddy, and rainwater.
[0034] An embodiment of the present application provides a parking assistance device, comprising:
[0035] An acquisition module, used for acquiring a plurality of current images through a vehicle camera when the speed of the vehicle is lower than a preset speed threshold;
[0036] The acquisition module is further used to obtain a plurality of target recognition results corresponding to the plurality of current images according to the plurality of current images and a preset neural network model, the plurality of target recognition results including a target recognition result of parking space information and a target recognition result of other information, the other information including at least one of target object and driving area information, the preset neural network model is obtained by training an initial neural network model according to sample data collected under historical parking scenarios, the sample data including a plurality of historical images collected under the historical parking scenarios and a plurality of historical parking space information under the historical parking scenarios and historical other information;
[0037] The fusion module is used to fuse the multiple target recognition results to obtain a parking map, and the parking map is used to assist parking.
[0038] The computer device provided in the embodiment of the present application includes a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, the method described in the embodiment of the present application is implemented.
[0039] The computer-readable storage medium provided in the embodiment of the present application stores a computer program thereon, and when the computer program is executed by a processor, the method provided in the embodiment of the present application is implemented.
[0040] The parking assistance method, device, computer equipment and computer-readable storage medium provided in the embodiments of the present application acquire multiple current images through a vehicle-mounted camera when the speed of the vehicle is lower than a preset speed threshold, obtain multiple target recognition results corresponding to the multiple current images based on the multiple current images and a preset neural network model, and perform fusion processing on the multiple target recognition results to obtain a parking map. In this way, parking assistance is performed using the obtained parking map, achieving low-cost and high-performance parking assistance, and solving the technical problems raised in the background technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.
[0042] Figure 1 It is a schematic diagram of the implementation process of a parking assistance method disclosed in an embodiment of the present application;
[0043] Figure 2 is a schematic diagram of an implementation flow of another parking assistance method disclosed in an embodiment of the present application;
[0044] Figure 3 is a schematic diagram of an implementation flow of another parking assistance method disclosed in an embodiment of the present application;
[0045] Figure 4 is a work flow chart of a parking assistance method disclosed in an embodiment of the present application;
[0046] Figure 5 is a network structure diagram of a parking assistance method disclosed in an embodiment of the present application;
[0047] Figure 6 An algorithm flow chart of a parking assistance method disclosed in an embodiment of the present application;
[0048] Figure 7 This is an algorithm flow chart of another parking assistance method disclosed in an embodiment of the present application;
[0049] Figure 8 This is an algorithm flow chart of another parking assistance method disclosed in an embodiment of the present application;
[0050] Fig. 9 A schematic diagram of coordinate conversion of a parking assistance method disclosed in an embodiment of the present application;
[0051] Fig. 10A A schematic diagram of parking space number fusion of a parking assistance method disclosed in an embodiment of the present application;
[0052] Fig. 10BA schematic diagram of parking space number fusion of another parking assistance method disclosed in an embodiment of the present application;
[0053] Fig.11 A schematic diagram of the structure of a parking assistance method disclosed in an embodiment of the present application;
[0054] Fig.12 A schematic diagram of the structure of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0055] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the specific technical solution of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but are not used to limit the scope of the present application.
[0056] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0057] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0058] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are used to distinguish similar or different objects, and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0059] Figure 1 The following is a schematic diagram of the implementation process of a parking assistance method provided in an embodiment of the present application. Figure 1 As shown, the method may include the following steps 101 to 103:
[0060] Step 101, when the speed of the vehicle is lower than a preset speed threshold, a plurality of current images are acquired through a vehicle-mounted camera.
[0061] In an embodiment of the present application, when the driver starts the vehicle, the parking assistance system enters a standby state. A vehicle speed sensor or a GPS module is installed on the vehicle to monitor the vehicle speed in real time. The sensor collects vehicle speed data in real time and transmits it to the parking assistance system through a control unit (such as an ECU). If the sensor detects that the vehicle speed is lower than a preset threshold (such as 10km / h), the system enters parking mode. The parking assistance system is activated and begins to prepare for image acquisition and processing.
[0062] Install multiple high-definition cameras on the front, back, left and right sides of the vehicle to cover a 360-degree field of view around the vehicle. Ensure that all cameras are strictly calibrated to ensure image accuracy and consistency. Set the camera's image capture frame rate (such as 30 frames per second) to ensure sufficient image data to process dynamic scenes. The camera continuously captures environmental images around the vehicle and generates multiple images with time and space intervals. The captured images are transmitted to the central processing unit via a high-speed data bus (such as CAN bus or Ethernet).
[0063] Step 102: obtaining a plurality of target recognition results corresponding to the plurality of current images based on the plurality of current images and a preset neural network model.
[0064] In an embodiment of the present application, an image denoising algorithm (such as Gaussian filtering) is used to remove noise from the image and improve image quality. Use contrast enhancement, brightness adjustment and other techniques to improve image clarity. Select a deep convolutional neural network (such as YOLO, Mask R-CNN) suitable for parking scenarios. Load the pre-trained neural network model into the central processing unit. Use the neural network model to extract feature vectors from the image. Perform target classification based on the feature vectors to identify different types of objects (such as parking spaces, pedestrians, obstacles). Determine the specific location and bounding box information of each target. Evaluate the confidence of each recognition result, filter out low-confidence results, and retain high-confidence recognition results.
[0065] In this application, when training the neural network model, a large amount of historical image data is collected in different parking scenarios. Parking space information in these scenarios is collected, such as the location and status of free parking spaces (free or occupied). Other relevant information is collected, including target objects (such as pedestrians, vehicles, etc.) and information on driving areas (such as lane boundaries, no parking areas, etc.). The collected historical images are annotated, and the annotation content includes parking space information and other information (target objects and driving areas). Ensure the accuracy and diversity of the annotated data to cover various possible parking scenarios. Design and initialize a deep neural network model that will be used for target recognition in images. Select a suitable network architecture, such as a convolutional neural network (CNN) to process image data. Use the annotated sample data to train the initial neural network model. During the training process, the input includes historical images, and the output is the corresponding parking space information and other relevant information (target objects and driving areas). Common training methods, such as back propagation and gradient descent, are used to optimize model parameters. The trained model is tested on an independent validation data set to evaluate its recognition accuracy and robustness. According to the verification results, the model is tuned and improved, including adjusting the network architecture, optimizing hyperparameters, adding more sample data, etc. The trained neural network model is deployed to the actual parking scenario.
[0066] The system receives images transmitted by real-time cameras and analyzes them through neural network models to identify parking space information and other related information. The recognition results are used in practical applications, such as intelligent parking guidance systems, parking management systems, etc. The system continues to collect new image data and corresponding parking space information and other related information during the actual application process. The neural network model is regularly retrained and updated with newly collected data to ensure its recognition accuracy and adaptability.
[0067] Step 103: fusing the multiple target recognition results to obtain a parking map.
[0068] In an embodiment of the present application, the recognition results of different cameras are converted into a unified coordinate system of the vehicle. The recognition results are spatially aligned according to the position and angle parameters of the camera. The overlapping parts in the recognition results of different cameras are detected. The non-maximum suppression (NMS) method is used to eliminate the targets of repeated recognition. The recognition results of the same target are weighted averaged according to the recognition confidence of different cameras. A comprehensive, high-confidence recognition result list is generated. The fused recognition results are integrated into the parking map. The recognition results are converted into a visual parking map using graphics rendering technology. The location, size and shape of the vacant parking spaces are marked. The locations of pedestrians, obstacles and other vehicles are marked. Safe driving paths and recommended parking routes are marked. The generated parking map is displayed to the driver through the on-board display screen. Concise parking suggestions (such as arrow instructions) are provided on the dashboard. Real-time parking guidance (such as "Please turn the steering wheel to the left") is provided through the voice system. The driver selects the best parking position and path according to the parking map. The system continues to provide auxiliary prompts during the parking process to help the driver park safely.
[0069] In the embodiment of the present application, by using a vehicle-mounted camera to obtain multiple current images, the use of expensive sensors such as lidar or high-end millimeter-wave radar is avoided. The overall cost of the system is reduced. The preset neural network model is used for image processing and target recognition, which can efficiently and accurately identify parking space information and other target objects, thereby improving the performance and reliability of the system. Multiple target recognition results are fused to generate a parking map. Different types of information (such as parking space information, target object information, and driving area information) are integrated to provide the driver or the autonomous driving system with a comprehensive environmental perception view, thereby effectively improving parking efficiency and safety.
[0070] In the above Figure 1 In the case shown, the embodiment of the present application also provides a schematic diagram of the implementation process of the parking assistance method. Figure 2 As shown, the method may include the following steps 201 to 205:
[0071] Step 201, when the speed of the vehicle is lower than a preset speed threshold, a plurality of current images are acquired through a vehicle-mounted camera.
[0072] The implementation process of step 201 is consistent with the above-mentioned step 101, and this application will not repeat it here.
[0073] Step 202 : Obtain, according to the multiple current images, panoramic view BEV images and four-way fisheye images corresponding to the multiple current images.
[0074] In an embodiment of the present application, the images captured by each camera are preprocessed, including color correction, brightness adjustment and noise removal. Feature points are extracted from each image using algorithms such as SIFT (Scale-Invariant Feature Transform), SURF (Speeded-Up Robust Features) or ORB (Oriented FAST and Rotated BRIEF). Feature points of images from adjacent cameras are matched to find common feature point pairs. RANSAC (Random Sample Consensus) algorithm is used to filter out mismatches to ensure the accuracy of feature point matching. Homography matrix is calculated between images to align adjacent images. Multiple images are stitched together into a 360-degree panoramic view using image stitching algorithms (such as multi-band cropping, multi-band mixing, etc.). Distortion correction is performed on the stitched panoramic image to eliminate geometric distortion caused by different camera viewing angles. Advanced methods such as bilinear interpolation or Laplace pyramid fusion are used to improve the quality of stitched images. Further optimize the panoramic image, such as edge smoothing and color consistency adjustment, and output high-quality 360-degree panoramic views for subsequent processing.
[0075] Get the intrinsic and extrinsic parameters of each camera, including focal length, optical center, distortion coefficient, etc. Use camera calibration algorithm (such as fisheye module in OpenCV) to correct the original fisheye image. Convert the fisheye image to a standard view image to eliminate the distortion caused by the wide-angle lens. Adjust the color and brightness of the corrected image to ensure image consistency and clarity. Apply image sharpening and noise reduction algorithms to further improve image quality. Output the fisheye corrected image for subsequent target recognition processing.
[0076] Step 203 : obtaining a target recognition result of the parking space information according to the panoramic view BEV image and the parking space information recognition submodule.
[0077] In an embodiment of the present application, the input panoramic view BEV image is preprocessed, including normalization, size adjustment, etc. A convolutional neural network (CNN) model is used, such as YOLO (You Only Look Once, real-time target detection), SSD (Single Shot MultiBox Detector, single-shot detection multi-box detector) or Faster R-CNN (Faster Region-based Convolutional Neural Network, fast regional convolutional neural network). The model is trained on a large number of image data sets annotated with parking space information to improve the recognition ability and accuracy of the model. The trained CNN model is used to process the panoramic view to detect and identify the specific location and number of the parking space. The non-maximum suppression (NMS) algorithm is used to filter out redundant detection frames to ensure that each parking space corresponds to only one detection frame. The recognition result is output, including the coordinate position, number and other information of the parking space.
[0078] Furthermore, the parking space information recognition submodule includes a storage space detection model, and the storage space detection model includes a second feature extraction submodel, a storage space detection submodel and a second post-processing submodel. The target recognition result of the parking space information is obtained based on the panoramic view BEV image and the parking space information recognition submodule, including: preprocessing the BEV image to obtain a preprocessed BEV image, and the preprocessing includes at least one of normalization, format conversion, and affine transformation.
[0079] Specifically, the panoramic view BEV image is normalized so that its pixel value is between 0 and 1, so as to better fit the input range of the neural network. The format of the BEV image is converted to the format required by the neural network, such as converting the image from RGB to a grayscale image. According to the calibration parameters of the camera, the BEV image is perspective transformed to eliminate the distortion in the image and map the parking area to the horizontal plane.
[0080] The preprocessed BEV image is processed by the second feature extraction sub-model to obtain feature information of the BEV image.
[0081] Specifically, a convolutional neural network (CNN) or other deep learning models is used to extract features from the preprocessed BEV image. Features can be local and global information in the image such as edges, textures, shapes, etc., which are not limited here.
[0082] The feature information of the preprocessed BEV image is processed by the storage location detection sub-model to obtain an initial storage location recognition result.
[0083] Specifically, the feature map obtained by the feature extraction sub-model is processed using an object detection algorithm (such as a region-based convolutional neural network) to detect the storage locations in the image. The algorithm for detecting the storage locations can be a single-stage or two-stage object detector, such as YOLO, SSD, or Faster R-CNN. The storage location detection sub-model can output the location coordinates of each detected storage location, the storage location type (such as a standard parking space, a disabled parking space, etc.), and whether the storage location is occupied by a vehicle.
[0084] The initial storage location identification result is processed by the second post-processing sub-model to obtain a target identification result of the storage location in the parking space information, wherein the target identification result of the storage location in the parking space information includes storage location coordinates, storage location type and occupation status.
[0085] Specifically, the output results of the parking space detection sub-model are post-processed to further optimize the accuracy and reliability of recognition. The post-processing step may include non-maximum suppression (NMS) to eliminate overlapping parking space detection boxes, filter out recognition results with low confidence, and perform further verification and screening based on the shape and standards of the parking space.
[0086] In the embodiment of the present application, by using a neural network model and image data obtained by multiple cameras, the parking space information in the parking scene can be accurately identified, including the parking space number and the storage space information. Through the multi-task perception model, different target objects, such as pedestrians, obstacles and other vehicles, as well as driving area information, such as parking areas and road sign information, can be identified and distinguished. The generated parking map can effectively assist the driver in parking, including guiding the parking direction and avoiding obstacles, while providing real-time parking space status and driving area information. Each submodule, such as parking space information recognition, other information recognition and road sign recognition, undergoes multi-level feature extraction and post-processing, which improves the system's adaptability to complex scenes and the accuracy of parking operations. It can detect the occupation of parking spaces, and promptly remind the driver or the automatic system to make corresponding adjustments to ensure the rational use of parking spaces and the smooth progress of parking. It improves parking efficiency, reduces driver stress and enhances driving safety.
[0087] Step 204: Obtain target recognition results of other information according to the four fisheye images and the other information recognition submodule.
[0088] In an embodiment of the present application, a fisheye corrected image is input. The input image is preprocessed, including normalization, resizing, data enhancement, etc. Advanced target detection and segmentation models are used, such as YOLO, Mask R-CNN (MaskRegion-based Convolutional Neural Network), EfficientDet (Efficient Detection), etc. The model is trained on a labeled data set containing various targets (pedestrians, obstacles, other vehicles, etc.) to ensure the generalization ability of the model. The fisheye corrected image is processed using the trained model to detect and identify the target object. The category, position, and bounding box information of the target object are extracted. The recognition result is output, including the category label, coordinate position, and bounding box of each target object.
[0089] Among them, step 203 and step 204 are in a parallel processing relationship, and there is no order relationship between the steps.
[0090] Step 205: fusing the multiple target recognition results to obtain a parking map.
[0091] The implementation process of step 205 is consistent with the above-mentioned step 103, and this application will not repeat it here.
[0092] The embodiments of the present application improve the comprehensiveness and accuracy of environmental perception and reduce blind spots and misjudgments through multi-view image fusion and optimization of dedicated submodules. Parallel processing and neural network model optimization improve the processing efficiency of the system, making target recognition faster and enhancing real-time performance. Panoramic view generation and multi-dimensional information fusion provide 360-degree environmental perception without blind spots, better understand complex parking scenarios, and assist in safe decision-making. Parking map generation and accurate parking space information recognition provide users with intuitive and clear parking instructions, simplify the parking process, and improve the user experience.
[0093] In the above Figure 2 In the case shown, the embodiment of the present application also provides a schematic diagram of the implementation process of the parking assistance method. Figure 3 As shown, the method may include the following steps 301 to 308:
[0094] Step 301, when the speed of the vehicle is lower than a preset speed threshold, a plurality of current images are acquired through the vehicle-mounted camera.
[0095] The implementation process of step 301 is consistent with the above-mentioned step 201, and this application will not repeat it here.
[0096] Step 302 : Obtain, according to the multiple current images, panoramic view BEV images and four-way fisheye images corresponding to the multiple current images.
[0097] The implementation process of step 302 is consistent with the above-mentioned step 202, and will not be repeated here in this application.
[0098] Step 303: Obtain a target recognition result of the parking space information according to the panoramic view BEV image and the parking space information recognition submodule.
[0099] The implementation process of step 303 is consistent with the above-mentioned step 203, and this application will not repeat it here.
[0100] Step 304, obtaining camera calibration information of the vehicle-mounted camera and DR information of the vehicle.
[0101] In the embodiment of the present application, the camera calibration information is obtained, wherein the camera calibration information includes internal parameter information: focal length, principal point coordinates, distortion coefficients, etc. It is used to map points in a two-dimensional image to a three-dimensional space. External parameter information: describes the position and orientation of the camera in the vehicle coordinate system, and is used to determine the relationship between the camera viewing angle and the actual environment.
[0102] Get vehicle dynamic driving information (DR information), including the vehicle's current GPS location information. Vehicle speed data provided by the vehicle speed sensor. Current steering angle provided by the steering wheel angle sensor. Vehicle acceleration and deceleration provided by the accelerometer and decelerator. Vehicle roll, pitch and yaw angles provided by the gyroscope.
[0103] Step 305: Process the four fisheye images, the camera calibration information of the vehicle-mounted camera, and the DR information of the vehicle through the multi-task perception neural network to obtain target image features and target key point features.
[0104] In an embodiment of the present application, four fisheye images (front, rear, left, and right) are used as input image data. Camera calibration information and vehicle DR information are input as auxiliary data into a multi-task perception neural network. A convolutional neural network (CNN) is used to extract high-level visual features from fisheye images. Combined with the camera calibration information and vehicle DR information, the extracted features are fused to improve the accuracy and robustness of feature representation. The neural network generates target image features and target key point features by processing fisheye images and auxiliary information.
[0105] Step 306: Process the target image features and target key point features through the object detection sub-model to obtain a target recognition result of the target object, where the target object includes pedestrians, obstacles and vehicles.
[0106] In the embodiment of the present application, an object detection sub-model (such as YOLO, Faster R-CNN, etc.) is used to process the target image features and target key point features. Various target objects in the image are detected, including pedestrians, obstacles, and other vehicles. The location information (bounding box coordinates), category information (pedestrians, obstacles, or vehicles), and confidence score of each target object are output.
[0107] Step 307: Process the target image features and target key point features through the driving area detection sub-model to obtain a target recognition result of the driving area information.
[0108] In the embodiment of the present application, a driving area detection sub-model (such as a model based on semantic segmentation) is used to process the target image features and target key point features. The drivable area and non-drivable area in the image are identified. The contour information (polygon coordinates) of the driving area and other related attribute information (such as road type, traffic markings, etc.) are output.
[0109] Step 308: fusing the multiple target recognition results to obtain a parking map.
[0110] The implementation process of step 308 is consistent with that of the above-mentioned step 205, and will not be repeated herein.
[0111] The embodiment of the present application uses a multi-task perception model to simultaneously identify parking space information, target objects, and driving area information, provide comprehensive environmental perception data, and enhance the reliability and safety of the parking assistance system. The multi-task perception neural network combines camera calibration information and vehicle DR information to improve the accuracy of target recognition results, and completes the detection and recognition of multiple information in a short time to meet real-time requirements. The multi-task perception neural network comprehensively processes different types of information, enhances the ability to understand the parking environment, optimizes parking path planning and decision-making, and improves safety.
[0112] Furthermore, the other information also includes dirt information, the other information identification submodule also includes a dirt detection model, the dirt detection model includes a third feature extraction submodel, a texture detection submodel and a third post-processing submodel, and the target recognition result of other information is obtained based on the four fisheye images and the other information identification submodule, and also includes: processing the four fisheye images through the third feature extraction submodel to obtain feature information of the four fisheye images.
[0113] Specifically, the four-way fisheye image is processed using a convolutional neural network (CNN) or other technology. Low-level and high-level features of the image are extracted through multiple convolutional layers and pooling layers. Features may include color histograms, texture features (such as local binary patterns), edge features, etc.
[0114] The feature information of the preprocessed four-way fisheye images is processed by the texture detection sub-model to obtain a texture detection result.
[0115] Specifically, a convolutional neural network (CNN) or other applicable model structure is used for training. When training the model, a labeled image dataset is used, which contains samples of texture patterns such as normal, muddy, and rainy. The model can determine whether there is dirt in the image by learning the statistical features of the texture pattern.
[0116] The texture detection result is processed by the third post-processing sub-model to obtain dirt information in the other information, where the dirt information includes at least one of normal, muddy, and rainwater.
[0117] Specifically, traditional image processing techniques such as morphological operations, filters, etc. can be used for post-processing. Some rules and thresholds are applied to further screen and confirm the dirt information. Pixel-level segmentation or region detection methods can be used to refine the location and range of dirt. The ultimate goal is to generate a target recognition result of dirt information. This result can be a classification label, such as "normal", "mud", "rain", etc. The result can also include the confidence or probability of dirt to indicate the reliability of the recognition result.
[0118] The embodiments of the present application can improve parking efficiency, reduce accidents and inconveniences during parking, and enhance driving comfort and safety by detecting and identifying the dirtiness of the parking area.
[0119] Furthermore, the driving area information includes parking area information and road sign information, the driving area detection submodel is used to obtain a target recognition result of the parking area information, the preset neural network model also includes a road sign recognition submodule, and the multiple target recognition results corresponding to the multiple current images are obtained based on the multiple images and the preset neural network model, including: obtaining a target recognition result of the road sign information based on the panoramic view BEV image and the road sign recognition submodule.
[0120] Specifically, CNN is used to extract high-level features from the panoramic view BEV image. Object detection is performed on the feature map to generate candidate detection boxes, and the position of the road surface markings is accurately located through the regressor. The detected areas are classified using the Softmax layer to identify the specific road surface marking types. Optionally, the road surface marking information detected from the panoramic view BEV image is fused with data from other sensors (such as lidar, GPS, etc.) to improve the accuracy of the recognition results. The detection results are converted to the global coordinate system of the vehicle so that the recognition results of different perspectives and times can be consistently mapped to the same coordinate system. The detection results in consecutive frames are tracked to ensure the consistency and stability of the recognition results. If the results detected in a certain frame are significantly different from those of the previous and next frames, further verification and adjustment are performed. The detection results are checked for rationality using semantic segmentation or other high-level semantic information. For example, confirm whether the speed limit sign is located next to the road instead of appearing in an abnormal position.
[0121] The embodiments of the present application can accurately divide the parking area and identify road sign information, so that vehicles can be parked in a standardized manner, improve parking accuracy and efficiency, and enhance the safety, precision, intelligence and adaptability of parking.
[0122] Furthermore, the road surface marking recognition submodule is a self-learning parking HPA multi-task perception model, and the HPA multi-task perception model includes a first feature extraction submodel, a semantic segmentation submodel, a semantic key point detection submodel and a first post-processing submodel. The target recognition result of the road surface marking information is obtained according to the panoramic view BEV image and the road surface marking recognition submodule, including: processing the BEV image through the first feature extraction submodel to obtain feature information of the BEV image.
[0123] Specifically, a deep convolutional neural network (such as ResNet, VGG, etc.) is used to extract low-level and high-level features of the image. The extracted features can be multi-scale features to capture road sign information at different scales. The output of feature extraction is a set of feature maps, which contain rich spatial and semantic information.
[0124] The feature information of the BEV image is processed by the semantic segmentation sub-model to obtain a semantic segmentation result.
[0125] Specifically, the feature map obtained from the first feature extraction sub-model is input to the semantic segmentation sub-model for processing. The semantic segmentation sub-model can use a fully convolutional network (FCNs) or a U-Net architecture. The output is a segmented image of the same size as the original image, and each pixel is assigned a category label (such as a guide arrow, lane line, stop line, speed bump, etc.).
[0126] The feature information of the BEV image is processed by the semantic key point detection sub-model to obtain a key point recognition result, which includes key point coordinates, key point types and confidence levels.
[0127] Specifically, the feature map is input into the semantic key point detection sub-model. The semantic key point detection sub-model can use a convolutional neural network (CNN) or a heatmap-based detection method to detect key points in the image. The model outputs the coordinates, type, and confidence of the key points. The types of key points include the tip of an arrow, the intersection of a lane line, the start and end points of a stop line, etc. The output can be a two-dimensional coordinate list, with each coordinate point accompanied by a type label and a confidence score.
[0128] Specifically, the semantic segmentation result and the key point recognition result are processed by the first post-processing sub-model to obtain the target recognition result of the road surface marking information, and the road surface marking information includes at least one of guide arrow marking information, lane line information, stop line information and speed bump information. The semantic segmentation result and the key point recognition result are input into the post-processing sub-model. The post-processing sub-model performs further logical judgment and filtering by fusing the segmentation result and the key point information to enhance the accuracy and robustness of the recognition. Based on the fused data, the final road surface marking target recognition result is generated. The results include different types of road surface marking information, such as the location and attributes of guide arrows, lane lines, stop lines, speed bumps, etc. Post-processing may also include denoising, smoothing, and converting the results into a format suitable for practical applications (such as vector graphics or other data structures).
[0129] The embodiment of the present application combines a multi-task perception model and semantic segmentation with key point detection to extract richer features and accurately locate road signs, improve boundary clarity and reduce misjudgment. It supports a variety of road signs, and can expand the model to recognize new sign types, suitable for different scenarios and complex environments.
[0130] The present application embodiment provides a specific implementation of a parking assistance method, which is applied to the above Figure 1 , Figure 2 as well as Figure 3 The schematic diagram of the implementation process of a parking assistance method shown in FIG. 1 includes:
[0131] Preprocessing module, reasoning module and post-processing module. The purpose of the preprocessing module is to parse the target data to adapt to each reasoning model. The preprocessing module mainly includes a data parsing module, which is used to obtain the fisheye image data, DR information, and image calibration information of the vehicle, and then perform timestamp alignment on the above information to ensure the consistency of multi-source information in the time dimension.
[0132] The format conversion module is mainly responsible for converting the original image data format into a data format that meets the input requirements of each inference model.
[0133] The BEV image generation module is used to project the four fisheye images onto the BEV based on the image calibration information after IPM (Inverse Perspective Mapping) processing, and then generate a surround view BEV large image through fusion and stitching.
[0134] The inference module is used to achieve all-round and accurate perception of parking scenarios based on different neural network models, mainly including:
[0135] The FM (Failure Mode) module is used to monitor the contamination of the fisheye lens and issue an alarm or downgrade the function in a timely manner.
[0136] The APA (Auto Parking Assist) multi-task neural network module is a multi-task network structure used to perform target detection and movable area detection respectively. The target detection task head is responsible for the detection of human, vehicle and other obstacle targets, and the movable area detection task head has a safety protection function to deal with the problems of missed detection and detection of uncommon obstacles.
[0137] The HPA (Home-zone Parking Assist) multi-task neural network module is a multi-task network structure used for ground sign segmentation and key point detection respectively. The semantic segmentation task head realizes the segmentation processing of ground signs, and the semantic key point task head extracts the corner points of ground signs.
[0138] The VPLD (Vision Parking Lot Detection) module is used to identify parking spaces on the BEV map.
[0139] The PND (Parking Number Detection) module is used to identify the parking number on the BEV map.
[0140] The status detection module is used to detect some targets such as the opening and closing of ground locks and the switch status of tail lights.
[0141] The post-processing module is used to build and update the BEV map, mainly including:
[0142] The fusion module is used to fuse the detection results of the overlapping areas of the four fisheye images in space and the target detection results of multiple consecutive frames in time.
[0143] The tracking module is used to track dynamic targets and predict the target's motion state parameters, such as speed, direction of movement, etc. It can also suppress abnormal jitter in the detection results.
[0144] The mapping module is used to map all detection results in the BEV coordinate system and update the map by calculating the relationship between the vehicle coordinates and the world coordinates.
[0145] Control the output module, which is used to format the output of the perception results.
[0146] Based on the above modules, the present application also provides a parking assistance method workflow diagram, such as Figure 4 As shown, the complete algorithm can run in the controller or cockpit domain.
[0147] In the preprocessing stage, the original fisheye data and vehicle computer data are acquired and parsed, and the data are integrated into an adaptive format according to the data input requirements of different models.
[0148] During the model inference stage, fisheye images and BEV images are perceived and processed through multiple perception models to obtain various target elements in the current parking scene.
[0149] In the post-processing stage, various target elements in the reasoning stage are reconstructed in time and space in the BEV field of view to assist the downstream regulation and control modules, which mainly involves target fusion, tracking and mapping processing.
[0150] When the vehicle enters the parking state or is within the limited low speed range, the parking function is automatically turned on, the target in the scene is sensed, the detection result of each frame is obtained, and the category, position, confidence level, etc. are input to the post-processing module for post-processing fusion calculation, including:
[0151] Step 1: Data parsing, obtaining the input data and synchronization timestamps required by the system. The data types mainly include four-way fisheye image data, DR wheel pulse data, camera calibration data, and GPS positioning data. Among them, the camera calibration data is static data and does not change with time, while the other three types of data are dynamic data, which will change with time during the movement of the vehicle. In order to reduce the negative impact of this change, it is necessary to synchronize the above dynamic information in the time dimension. The main steps are as follows:
[0152] 1) Determine the timestamps that need to be synchronized, and use the timestamps of the four fisheye images currently acquired (denoted as ts) as the synchronization reference;
[0153] 2) The bilinear interpolation method is used to determine the GPS position and DR value at the target timestamp. GPS is two-dimensional information, and DR is three-dimensional information. Approximate decoupling is performed in the dimensions, and the results of each dimension are interpolated separately to facilitate parallel computing, as shown below:
[0154] Get the GPS two historical location information, recorded as (x_1 GPS ,y_1 GPS ,t_1 GPS ) and (x_2 GPS ,y_2 GPS ,t_2 GPS ), taking the result of the x dimension as an example, calculate the result of x at the current timestamp, recorded as x_ts GPS ,The calculation process obtained by the definition of bilinear interpolation is as follows:
[0155]
[0156] Without considering the physical meaning, the above formula can be simplified into the following form:
[0157]
[0158] m represents a vector with no physical meaning and its value changes with time t. Let m be the following vector:
[0159]
[0160] Among them, x, y are GPS historical information, h, v, ω are track historical information, which respectively represent the horizontal movement distance, vertical movement distance and heading value of the vehicle at a certain moment. By substituting them into the general calculation formula, the interpolation value at the same timestamp ts can be quickly calculated.
[0161] Step 2: The format conversion module converts the original image data format into a data format that meets the input requirements of each inference model. Different inference models have different input designs. In principle, the input image should meet a specific size. In addition, the number of channels will also be different. There are single-channel grayscale images and multi-channel color images. Therefore, the fisheye image needs to be converted according to the input format requirements of the inference model. This includes the conversion of the original image NV12 format to RGB or BGR to meet the model's strict requirements for channel order. In addition, the image input size requirements of each module must be met, so the image needs to be resized.
[0162] Step 3: BEV image generation module directly performs parking space and parking space number recognition, ground sign segmentation and ground sign key point detection on BEV. By fusing four fisheye images, the overlapping areas are eliminated, which is more efficient than separately detecting the front, back, left and right four-way images. In addition, the problem of target position fusion is easier to solve at the same timestamp.
[0163] In addition, considering that image distortion may lead to recognition failure, BEV is also an ideal detection output. Because the BEV projection plane uses the ground as a reference, the distortion of the plane target on the ground can be basically eliminated, and the above-mentioned ground target layout fully meets this assumption. Therefore, it can effectively suppress the recognition inaccuracy caused by lens distortion and significantly improve the recognition accuracy of such targets.
[0164] Step 4: Lens dirt detection, namely FM module. Lens dirt will affect the accuracy of subsequent perception modules and reduce the safety of assisted driving. Therefore, before the environmental perception module runs, lens dirt detection will be performed. This module is based on the classification network design and performs detection on fisheye images. It mainly distinguishes between normal, muddy, and rain splashed states. Once the lens is detected to be contaminated, the car will pop up a box to remind the user or automatically perform function downgrade processing. The specific process includes:
[0165] Construct a classification network model, such as Figure 5 As shown, Figure 5 A network structure diagram of a parking assistance method provided in the present application, comprising a convolutional layer in the first layer, a maximum pooling layer in the second layer, a first downsampling module and a first basic module layer in the third layer, a second downsampling module and three basic module layers in the fourth layer, a third downsampling module and a fifth basic module layer in the fifth layer, a convolutional layer in the sixth layer, a global pooling layer in the seventh layer, and a fully connected layer in the last layer; wherein the basic module outputs a scale-invariant feature map through a residual convolutional layer, and the downsampling module is used to output a feature map whose two-dimensional size is reduced by half.
[0166] The failure image is obtained and input into each layer of the classification network model for processing in turn to obtain the predicted probability, which is used to construct the cross entropy loss function.
[0167] The classification network model is trained using a gradient descent method, and the cross entropy loss function is calculated to update model parameters until the cross entropy loss function converges, thereby obtaining a trained classification network model.
[0168] The trained classification network model is used to predict the preprocessed image of the Nth frame corresponding to the failure area A to obtain the predicted failure probability.
[0169] Based on the powerful feature fitting ability of the deep learning network, a large amount of real vehicle test data is used to train the network model. The data set consists of 40,000 normal scenes and 60,000 various failure scene data. Currently, six categories have been collected, including stains, splashes, full occlusion, blur, low illumination and normal. The data is divided into training set and test set in a ratio of 4:1.
[0170] Step 5: APA multi-task perception. The algorithm flow of APA multi-task perception module is as follows: Figure 6 As shown, Figure 6 The algorithm flow chart of a parking assistance method provided for this application utilizes the technology of multi-task neural network in the field of artificial intelligence to give the results of multiple tasks at one time, avoiding the waste of a large amount of invalid computing power caused by a single-task solution, while making full use of the correlation information between tasks to tap the potential accuracy improvement capabilities of deep learning algorithms. The purpose of the APA multi-task module is to meet the perception requirements of APA parking, mainly involving three functions: target recognition, positioning, and safety protection. Based on the needs of target recognition, this application designs an instance segmentation task head; based on the needs of target positioning, the multi-task network adds a task head for key point detection; based on the needs of safety protection, the multi-task network designs the needs of drivable area detection.
[0171] The network structure of the APA multi-task perception neural network uses the EfficientNet-Lite0 network, which is well supported by the Horizon J3 platform, as the backbone network. A decoupled head structure is adopted, and a branch is added to the backbone P3 layer to output the passable area; rectangular boxes, categories, instance segmentation, and key points are simultaneously output at the three feature scales of the FPN+PAN structure, and the calibration information is the camera calibration information.
[0172] Step 6: HPA multi-task perception. The workflow of the HPA multi-task perception module is as follows: Figure 7 As shown, Figure 7 The algorithm flow chart of another parking assistance method provided for this application is that the SLAM module downstream of the HPA multi-task perception service provides accurate mapping elements, mainly including the segmentation results of ground signs and the key point detection results of ground signs.
[0173] This application proposes an adaptive, real-time and lightweight multi-task model designed to handle keypoint detection and semantic segmentation tasks simultaneously.
[0174] The Bev image is obtained by splicing 4 fisheye images and input into the multi-task HPA multi-task perception model. The HPA multi-task perception model uses a shared Backbone to extract features and implements key point detection and semantic segmentation tasks based on multiple task heads. The key point detection branch uses a decoupled head structure to output key point coordinates, categories, and confidence; the semantic branch restores multi-layer semantic information to the original image size by upsampling to achieve pixel-level classification of the image.
[0175] Step 7: Storage location detection. The algorithm VPLD-Yolox used in this application is improved based on YOLOX. It draws on YOLOX's anchor free idea and decoupled detection head to build the VPLD model. YOLOX-based Darknet53 is used as the backbone of the network, and PAFPN is used for effective feature extraction. The effective feature layer obtained by 32 times downsampling is input into the decoupled detection head for prediction output.
[0176] The process and functions of the VPLD storage location detection module are as follows Figure 8 As shown, Figure 8 The algorithm flow chart of another parking assistance method provided in this application, input 4-way fisheye camera images, and obtain BEV images after splicing by AVM (around view monitor, surround image system). After normalization and warpaffine processing, the BEV images are input into the model for forward reasoning, and the storage location detection results are obtained after post-processing decoding, including storage location coordinates, whether the storage location is occupied, and storage location type. Once the storage location is detected, it can be provided to the decision module for further processing using path planning, SLAM scene modeling, etc.
[0177] Step 8: Parking space number detection. This module is used to identify all parking space number information on the BEV map. The entire processing process is divided into three steps. The first step is to detect the location of the parking space number, which is implemented by the segmentation network; the second step is to adjust the parking space number to the normal writing position, which is recognized by the classification network; the third step is to recognize the parking space number result, which is implemented by the target recognition network. It involves the position segmentation model, direction classification model and character recognition model. The details are as follows:
[0178] Locate the text area in the image. This application uses advanced text detection algorithms such as DB (Differentiable Binarization) to accurately identify the text area in the image and separate it from the background.
[0179] Specifically, the detection algorithm traverses the entire image, uses a deep learning model to determine which areas may contain text, and generates candidate text boxes. These text boxes will closely surround the text content and provide accurate input for the subsequent recognition step.
[0180] In some cases, the text may be tilted or upside down, which will affect the accuracy of recognition. Therefore, this application introduces a direction classifier to determine the direction of the text.
[0181] The direction classifier analyzes the detected text area and determines the direction of the text (such as horizontal, vertical, tilted, etc.) so that corresponding corrections can be made during recognition.
[0182] Recognition is the core step of OCR, which converts the detected text area into editable text. This application uses a sequence recognition algorithm based on deep learning.
[0183] In the recognition phase, the model will identify the detected text areas one by one and convert the text in the image into a sequence of characters. During this process, the model will take into account multiple factors such as the direction, font, size, etc. of the text to ensure the accuracy of recognition.
[0184] Through the above three steps, the storage location number perception module can accurately extract the storage location number information from the complex image background and convert it into editable text form, which provides convenience for subsequent post-fusion processing.
[0185] Step 9: Status detection module. The status detection network is designed to be passively called. This module is called only when a target such as a ground lock or taillight is sensed and the switch status needs to be judged. In the parking scenario, it is mainly used to distinguish whether the storage space is a parking space, judge the status of the storage space in advance, and prevent parking failure caused by an open ground lock during parking.
[0186] Step 10: Fusion module. The purpose of the fusion module is to improve the recognition accuracy and positioning accuracy.
[0187] Fusion is used to improve recognition accuracy. Taking the parking space number detection result as an example, the lens continuously obtains scene information around the vehicle body during the driving process. The parking space number at the same position will be captured by multiple consecutive frames of images, which will result in multiple detection results. These results need to be clustered and fused to obtain the final parking space number result. The most important purpose of position fusion is to eliminate the problem of false alarms caused by partial occlusion of the parking space number. The most common occlusions are field of view occlusion and reflective occlusion. For field of view occlusion, such as obstacles such as cones and columns, the complete parking space number cannot be recognized at certain angles and directions, but by fusing the image results of multiple consecutive frames, complete parking space number information can be given. For reflective occlusion, this type of scene is particularly common in underground garages. The lights in underground garages are point sources and the ground is relatively smooth, which easily produces mirror reflections. This scene is manifested in the image as a very strong light saturated area in the scene. When the saturated area just covers all or part of the parking space number position, it will lead to unrecognition. However, when the vehicle is moving, the light saturated area will also move or disappear. By fusing the results of multiple frames, the parking space number information can be completed.
[0188] The fusion process is divided into three steps: clustering, edit distance alignment, and fusion decision.
[0189] Regarding clustering, different parking space numbers in actual scenarios are spatially independent of each other. Therefore, the parking space number detection results that carry location information can be quickly distinguished using distance clustering. The specific strategy is as follows:
[0190] The parking space number recognition result is recorded as: PR i =(PND,confidence,Obj X ,Obj Y ) i .
[0191] The input of the clustering module is a series of parking space number calculation results, recorded as:
[0192]
[0193] When i=1, calculate the distance between the parking spaces from i=2 to i=N and the parking space i=1, and compare it with the designed clustering distance threshold (D_cluster), and retain the final clustering result, which is recorded as:
[0194]
[0195] After completing a clustering, the results greater than D_cluster constitute the new clustering module input, and the above clustering process is continuously iterated until all the parking space number calculation results are clustered, and the results with less than 3 clustering targets are discarded as outliers.
[0196] Regarding edit distance alignment, in theory, there will only be one correct parking space number for a position. However, in the actual recognition process, the vehicle body camera will recognize the same position multiple times. In this way, the clustering module will output a set of detection results at the same position. These results are affected by reflections at different angles, image blur, and false detections of the recognition model, and therefore require further error correction. We have optimized the edit distance and text alignment strategies to solve the above problems.
[0197] We define the edit distance between string a and string b as follows:
[0198]
[0199] Among them, 1(a i ≠b j ) means a i =b j 0 when med a,b (i,j) represents the distance from the first i bytes of a to the first j bytes of b.
[0200] Compared with the change from a to b, med a,b (i-1,j)+1, means a deletes one byte to match b; med a,b (i,j-1)+1 means a adds one byte to match b; med a,b (i-1,j-1)+1(a i ≠b j ) represents a match or a mismatch, depending on whether the individual symbols are the same.
[0201] Through the edit distance algorithm, the minimum number and position required for adding, deleting and replacing between strings can be determined, represented by @. Assume that a set of parking space identification data calculated by the existing fusion module is: B1-F-168, BF-16, 1-F-168, B1-F-, A1-F-16, B1-F-18. The results of the above strings after edit distance and fusion alignment are as follows:
[0202] B1-F-168
[0203] B@-F-16@
[0204] @1-F-168
[0205] A1-F-@@@
[0206] @1-F-16@
[0207] B1-F-1@8.
[0208] For fusion decision, since there are missed detections and false detections in the detection results, and the real parking space number target position is unique, it is necessary to suppress the output of false targets through fusion means. This invention designs a voting mechanism to ensure the accuracy of the output results by weighing the target confidence and frequency of occurrence. The above clustering result statistics can obtain the frequency F and confidence of different targets at the same position. The frequency is expressed in the form of probability: F = f n / f N , where f N represents the total number of detections at a specific location, f n Indicates the number of times a specific target appears at a specific location. The comprehensive judgment index C can be obtained by weighted summation. The complete mathematical model is as follows:
[0209] C=w1*F+w2*Confidenc (7).
[0210] w1+w2=1 (8).
[0211] Considering the key influence of confidence in the detection model, according to the empirical value, w2 is set to 0.7 and w1=0.3, which can also be dynamically adjusted according to the actual situation.
[0212] By fusion, positioning accuracy is improved. Taking the target detection result as an example, a local map is built on the BEV. The relationship between the world coordinate system, the vehicle coordinate system and the image coordinate system is established through the camera calibration result. The movement changes of the vehicle can be calculated by DR, so that the positions of the three coordinate systems can be continuously updated. Fig. 9 As shown, Fig. 9 A schematic diagram of coordinate conversion of a parking assistance method provided in this application is provided. By converting the position coordinates of the initial target detection results in the image coordinate system to the vehicle coordinate system, and then converting them to the world coordinate system, all the detection results can have an independent coordinate in the world coordinate system to form a target map. The result is as follows: Fig. 10A Then all the information on the map is integrated. First, outliers are removed through cluster analysis, and then the best positioning result is predicted through the location distribution model. The final result is as follows: Fig. 10B As shown, Fig. 10A and Fig. 10B A schematic diagram of parking space number fusion for a parking assistance method provided in this application.
[0213] Step 11: Tracking module. The tracking module mainly tracks dynamic targets and uses Kalman filtering to predict the target's position and improve the accuracy of target speed prediction.
[0214] Step 12: Build a global map, represent all fused perception targets on the BEV, and use DR to drive map generation to form a global map to assist subsequent planning and control modules.
[0215] Step 12: Control the output module, which uniformly manages the output requirements of various downstream modules for perception and forms standardized output.
[0216] It should be understood that, although the steps in the above-mentioned flowcharts are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above-mentioned flowcharts may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0217] Based on the foregoing embodiments, an embodiment of the present application provides a parking assistance device, which includes the modules included and the units included in the modules, which can be implemented by a processor; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.
[0218] Fig.11 A schematic diagram of the structure of a parking assistance device provided in an embodiment of the present application is shown in FIG. Fig.11 As shown, the device 1100 includes an acquisition module 1101 and a fusion module 1102, wherein:
[0219] The acquisition module 1101 is used to acquire multiple current images through the vehicle camera when the speed of the vehicle is lower than a preset speed threshold;
[0220] The acquisition module 1101 is further configured to obtain, according to the multiple current images and a preset neural network model, multiple target recognition results corresponding to the multiple current images, the multiple target recognition results including target recognition results of parking space information and target recognition results of other information, the other information including at least one of target object and driving area information, the preset neural network model is obtained by training an initial neural network model according to sample data collected in historical parking scenarios, the sample data including multiple historical images collected in the historical parking scenarios and multiple historical parking space information and historical other information in the historical parking scenarios;
[0221] The fusion module 1102 is used to perform fusion processing on the multiple target recognition results to obtain a parking map, and the parking map is used to assist parking.
[0222] In some embodiments, the acquisition module 1101 is further configured to obtain, according to the multiple current images, a panoramic view BEV image and four-way fisheye images corresponding to the multiple current images;
[0223] The acquisition module 1101 is further used to obtain the target recognition result of the parking space information according to the panoramic view BEV image and the parking space information recognition submodule, wherein the parking space information includes a parking space number and a parking space location;
[0224] The acquisition module 1101 is further used to obtain target recognition results of other information according to the four fisheye images and the other information recognition submodule.
[0225] In some embodiments, the acquisition module 1101 is further used to acquire the camera calibration information of the vehicle-mounted camera and the DR information of the vehicle;
[0226] The acquisition module 1101 is further used to process the four fisheye images, the camera calibration information of the vehicle-mounted camera and the DR information of the vehicle through the multi-task perception neural network to obtain target image features and target key point features;
[0227] The acquisition module 1101 is further used to process the target image features and target key point features through the object detection sub-model to obtain the target recognition result of the target object, where the target object includes pedestrians, obstacles and vehicles;
[0228] The acquisition module 1101 is further used to process the target image features and target key point features through the driving area detection sub-model to obtain the target recognition result of the driving area information.
[0229] In some embodiments, the acquisition module 1101 is further used to obtain a target recognition result of the road surface marking information according to the panoramic view BEV image and the road surface marking recognition submodule.
[0230] In some embodiments, the acquisition module 1101 is further used to process the BEV image through the first feature extraction sub-model to obtain feature information of the BEV image;
[0231] The acquisition module 1101 is further used to process the feature information of the BEV image through the semantic segmentation sub-model to obtain a semantic segmentation result;
[0232] The acquisition module 1101 is further used to process the feature information of the BEV image through the semantic key point detection sub-model to obtain a key point recognition result, wherein the key point recognition result includes key point coordinates, key point type and confidence level;
[0233] The acquisition module 1101 is also used to process the semantic segmentation results and the key point recognition results through the first post-processing sub-model to obtain the target recognition results of the road surface marking information, and the road surface marking information includes at least one of guide arrow marking information, lane line information, stop line information and speed bump information.
[0234] In some embodiments, the acquisition module 1101 is further used to preprocess the BEV image to obtain a preprocessed BEV image, wherein the preprocessing includes at least one of normalization, format conversion, and affine transformation;
[0235] The acquisition module 1101 is further used to process the preprocessed BEV image through the second feature extraction sub-model to obtain feature information of the BEV image;
[0236] The acquisition module 1101 is further used to process the feature information of the pre-processed BEV image through the storage location detection sub-model to obtain an initial storage location recognition result;
[0237] The acquisition module 1101 is also used to process the initial storage location identification result through the second post-processing sub-model to obtain the target identification result of the storage location in the parking space information, and the target identification result of the storage location in the parking space information includes the storage location coordinates, storage location type and occupation status.
[0238] In some embodiments, the acquisition module 1101 is further used to process the four fisheye images through the third feature extraction sub-model to obtain feature information of the four fisheye images;
[0239] The acquisition module 1101 is further used to process the feature information of the preprocessed four-way fisheye image through the texture detection sub-model to obtain a texture detection result;
[0240] The acquisition module 1101 is further used to process the texture detection result through the third post-processing sub-model to obtain dirt information in the other information, where the dirt information includes at least one of normal, muddy, and rainwater.
[0241] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.
[0242] It should be noted that in the embodiments of this application Fig.11 The division of modules in the parking assistance device shown is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units. It may also be implemented in the form of a combination of software and hardware.
[0243] It should be noted that in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.
[0244] The embodiment of the present application provides a computer device, which may be a server, and its internal structure diagram may be as follows: Fig.12 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the above method is implemented.
[0245] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the method provided in the above embodiment are implemented.
[0246] An embodiment of the present application provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps of the method provided in the above method embodiment.
[0247] Those skilled in the art will understand that Fig.12 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0248] In one embodiment, a parking assistance device provided by the present application can be implemented in the form of a computer program. The computer program can be Fig.12 The computer device shown in the figure is run. The memory of the computer device can store various program modules constituting the above-mentioned device. The computer program composed of various program modules enables the processor to execute the steps in the method of each embodiment of the present application described in this specification.
[0249] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0250] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in one embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above description of each embodiment tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. For the sake of brevity, this article will not repeat them.
[0251] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist at the same time, and object B exists alone.
[0252] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0253] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical, mechanical or other forms.
[0254] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed on multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0255] In addition, all functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may be a separate unit, or two or more modules may be integrated into one unit; the above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0256] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.
[0257] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0258] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0259] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0260] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0261] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A parking assistance method, characterized in that: The method comprises: When the speed of the vehicle is lower than a preset speed threshold, a plurality of current images are acquired through the vehicle-mounted camera; According to the multiple current images and the preset neural network model, a plurality of target recognition results corresponding to the multiple current images are obtained, the multiple target recognition results include target recognition results of parking space information and target recognition results of other information, the other information includes at least one of target object and driving area information, the preset neural network model is obtained by training an initial neural network model according to sample data collected in historical parking scenarios, the sample data includes a plurality of historical images collected in the historical parking scenarios and a plurality of historical parking space information and historical other information in the historical parking scenarios; The multiple target recognition results are fused to obtain a parking map, and the parking map is used to assist parking.
2. The method according to claim 1, characterized in that The preset neural network model includes a parking space information recognition submodule and other information recognition submodules. The multiple target recognition results corresponding to the multiple current images are obtained according to the multiple current images and the preset neural network model, including: According to the multiple current images, a panoramic view BEV image and four-way fisheye images corresponding to the multiple current images are obtained; According to the panoramic view BEV image and the parking space information recognition submodule, a target recognition result of the parking space information is obtained, wherein the parking space information includes a parking space number and a parking space location; According to the four fisheye images and the other information recognition submodule, a target recognition result of other information is obtained.
3. The method according to claim 2, characterized in that The other information includes the target object and the driving area information, the other information recognition submodule includes an automatic parking assistance APA multi-task perception model, the APA multi-task perception model includes a multi-task perception neural network, an object detection submodel and a driving area detection submodel, and the target recognition result of the other information is obtained according to the four-way fisheye image and the other information recognition submodule, including: Obtaining camera calibration information of the vehicle-mounted camera and DR information of the vehicle; The four fisheye images, the camera calibration information of the vehicle-mounted camera, and the DR information of the vehicle are processed by the multi-task perception neural network to obtain target image features and target key point features; Processing the target image features and target key point features through the object detection sub-model to obtain a target recognition result of the target object, wherein the target object includes pedestrians, obstacles and vehicles; The target image features and target key point features are processed by the driving area detection sub-model to obtain a target recognition result of the driving area information.
4. The method according to claim 3, characterized in that The driving area information includes parking area information and road sign information, the driving area detection sub-model is used to obtain a target recognition result of the parking area information, the preset neural network model also includes a road sign recognition sub-module, and the multiple target recognition results corresponding to the multiple current images are obtained according to the multiple images and the preset neural network model, including: According to the panoramic view BEV image and the road surface marking recognition submodule, a target recognition result of the road surface marking information is obtained.
5. The method according to claim 4, characterized in that The road sign recognition submodule is a self-learning parking HPA multi-task perception model, which includes a first feature extraction submodel, a semantic segmentation submodel, a semantic key point detection submodel, and a first post-processing submodel. The target recognition result of the road sign information is obtained according to the panoramic view BEV image and the road sign recognition submodule, including: Processing the BEV image by using the first feature extraction sub-model to obtain feature information of the BEV image; Processing the feature information of the BEV image by the semantic segmentation sub-model to obtain a semantic segmentation result; Processing the feature information of the BEV image by the semantic key point detection sub-model to obtain a key point recognition result, wherein the key point recognition result includes key point coordinates, key point type and confidence; The semantic segmentation result and the key point recognition result are processed by the first post-processing sub-model to obtain a target recognition result of the road surface marking information, wherein the road surface marking information includes at least one of guide arrow marking information, lane line information, stop line information and speed bump information.
6. The method according to claim 2, characterized in that The parking space information recognition submodule includes a storage space detection model, and the storage space detection model includes a second feature extraction submodel, a storage space detection submodel, and a second post-processing submodel. The target recognition result of the parking space information is obtained according to the panoramic view BEV image and the parking space information recognition submodule, including: Preprocessing the BEV image to obtain a preprocessed BEV image, wherein the preprocessing includes at least one of normalization, format conversion, and affine transformation; Processing the preprocessed BEV image by the second feature extraction sub-model to obtain feature information of the BEV image; Processing the feature information of the preprocessed BEV image by the storage location detection sub-model to obtain an initial storage location recognition result; The initial storage location identification result is processed by the second post-processing sub-model to obtain a target identification result of the storage location in the parking space information, wherein the target identification result of the storage location in the parking space information includes storage location coordinates, storage location type and occupation status.
7. The method according to claim 3, characterized in that The other information also includes dirt information, the other information recognition submodule also includes a dirt detection model, the dirt detection model includes a third feature extraction submodel, a texture detection submodel and a third post-processing submodel, and the target recognition result of the other information is obtained according to the four fisheye images and the other information recognition submodule, and further includes: Processing the four fisheye images by using the third feature extraction sub-model to obtain feature information of the four fisheye images; Processing the feature information of the preprocessed four-way fisheye image by the texture detection sub-model to obtain a texture detection result; The texture detection result is processed by the third post-processing sub-model to obtain dirt information in the other information, where the dirt information includes at least one of normal, muddy, and rainwater.
8. A parking assistance device, characterized in that: include: An acquisition module, used for acquiring a plurality of current images through a vehicle camera when the speed of the vehicle is lower than a preset speed threshold; The acquisition module is further used to obtain a plurality of target recognition results corresponding to the plurality of current images according to the plurality of current images and a preset neural network model, the plurality of target recognition results including a target recognition result of parking space information and a target recognition result of other information, the other information including at least one of target object and driving area information, the preset neural network model is obtained by training an initial neural network model according to sample data collected under historical parking scenarios, the sample data including a plurality of historical images collected under the historical parking scenarios and a plurality of historical parking space information under the historical parking scenarios and historical other information; The fusion module is used to fuse the multiple target recognition results to obtain a parking map, and the parking map is used to assist parking.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, wherein: When the processor executes the program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Priori knowledge fused end-to-end automatic driving decision-making method
CN119975417A
An end-to-end autonomous driving decision-making method integrating prior knowledge
CN119975417B
