WO2023207845A1 - Parking space detection method and apparatus, and electronic device and machine-readable storage medium - Google Patents

Parking space detection method and apparatus, and electronic device and machine-readable storage medium Download PDF

Info

Publication number
WO2023207845A1
WO2023207845A1 PCT/CN2023/090064 CN2023090064W WO2023207845A1 WO 2023207845 A1 WO2023207845 A1 WO 2023207845A1 CN 2023090064 W CN2023090064 W CN 2023090064W WO 2023207845 A1 WO2023207845 A1 WO 2023207845A1
Authority
WO
WIPO (PCT)
Prior art keywords
parking space
frame
detection
area
vehicle
Prior art date
Application number
PCT/CN2023/090064
Other languages
French (fr)
Chinese (zh)
Inventor
张经纬
方梓成
赵显�
Original Assignee
上海高德威智能交通系统有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海高德威智能交通系统有限公司 filed Critical 上海高德威智能交通系统有限公司
Publication of WO2023207845A1 publication Critical patent/WO2023207845A1/en

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S13/00Systems using the reflection or reradiation of radio waves, e.g. radar systems; Analogous systems using reflection or reradiation of waves whose nature or wavelength is irrelevant or unspecified
    • G01S13/88Radar or analogous systems specially adapted for specific applications
    • G01S13/89Radar or analogous systems specially adapted for specific applications for mapping or imaging
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S13/00Systems using the reflection or reradiation of radio waves, e.g. radar systems; Analogous systems using reflection or reradiation of waves whose nature or wavelength is irrelevant or unspecified
    • G01S13/88Radar or analogous systems specially adapted for specific applications
    • G01S13/93Radar or analogous systems specially adapted for specific applications for anti-collision purposes
    • G01S13/931Radar or analogous systems specially adapted for specific applications for anti-collision purposes of land vehicles
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/14Traffic control systems for road vehicles indicating individual free spaces in parking areas
    • G08G1/141Traffic control systems for road vehicles indicating individual free spaces in parking areas with means giving the indication of available parking spaces
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/16Anti-collision systems
    • G08G1/165Anti-collision systems for passive traffic, e.g. including static obstacles, trees
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/16Anti-collision systems
    • G08G1/168Driving aids for parking, e.g. acoustic or visual feedback on parking space
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/10Internal combustion engine [ICE] based vehicles
    • Y02T10/40Engine management systems

Definitions

  • the present application relates to the field of target detection technology, and in particular to a parking space detection method, device, electronic equipment and machine-readable storage medium.
  • the detection performance of parking space targets is very critical to the realization of automatic parking.
  • sensors for parking space detection include cameras, ultrasonic radar and millimeter wave radar.
  • Cameras are one of the most widely used sensors for autonomous driving. Vision-based parking space detection is currently relatively mature, and many are based on deep learning methods.
  • the deep learning network is used to detect the parking space lines on the images obtained by the camera, and then perform post-processing of the parking spaces.
  • the images acquired by the camera are susceptible to weather interference, and different lighting conditions have a greater impact on the detection results.
  • Ultrasonic radar is also a commonly used sensor for parking.
  • the detection range of ultrasonic radar is short and the detection point cloud is relatively sparse, which restricts product application.
  • Millimeter wave radar overcomes the disadvantage of cameras being susceptible to environmental interference and has strong robustness.
  • millimeter wave radar can generate denser point clouds than ultrasonic radar, has a longer detection range, and has greater potential in parking space detection.
  • Embodiments of the present application provide a parking space detection method, device, electronic device, and machine-readable storage medium.
  • a parking space detection method including:
  • a deep learning algorithm is used for target detection to obtain parking space detection results and vehicle detection results;
  • the parking space detection results and the parking space analysis results are fused to obtain the final parking space detection result.
  • a parking space detection device including:
  • a data preprocessing unit is used to obtain point cloud data around the vehicle body using a vehicle-mounted millimeter wave radar, and rasterize the point cloud data to obtain a raster density map;
  • a target detection unit used to perform target detection using a deep learning algorithm based on the grid density map, and obtain parking space detection results and vehicle detection results;
  • An analysis unit is used to analyze the size of the area between adjacent vehicles based on the vehicle detection results to obtain parking space analysis results
  • a fusion unit is used to fuse the parking space detection results and the parking space analysis results to obtain the final parking space detection result.
  • an electronic device including a processor and a memory.
  • the memory stores machine-executable instructions that can be executed by the processor.
  • the processor is configured to execute the machine-executable instructions. Execute instructions to implement the method provided by the first aspect.
  • a machine-readable storage medium is provided.
  • Machine-executable instructions are stored in the machine-readable storage medium.
  • the processor When the machine-executable instructions are executed by a processor, the processor Implement the method provided in the first aspect.
  • a raster density map is obtained, and a deep learning algorithm is used to perform target detection on the raster density map to obtain parking space detection results and vehicle detection.
  • the accuracy of the target detection results based on the point cloud data of the millimeter wave radar is improved; in addition, the area size between adjacent vehicles can be analyzed based on the vehicle detection results obtained by the target detection, and the parking space analysis results can be obtained , and fuse the parking space analysis results with the parking space detection results obtained from target detection to obtain the final parking space detection result, which improves the reliability and accuracy of parking space detection.
  • Figure 1 is a schematic flowchart of a parking space detection method according to an exemplary embodiment of the present application.
  • Figure 2 is a schematic diagram of installing millimeter wave radars at the four corners of a vehicle according to an exemplary embodiment of the present application.
  • Figure 3 is a schematic diagram of a parking space detection system framework according to an exemplary embodiment of the present application.
  • Figure 4 is a schematic diagram showing the effect of a detection model according to an exemplary embodiment of the present application.
  • Figure 5 is a schematic structural diagram of a parking space analysis module according to an exemplary embodiment of the present application.
  • FIG. 6 is a schematic diagram of determining a matching pair of adjacent targets according to an exemplary embodiment of the present application.
  • FIG. 7 is a schematic diagram of a candidate area according to an exemplary embodiment of the present application.
  • Figure 8 is a schematic structural diagram of a parking space fusion module according to an exemplary embodiment of the present application.
  • Figure 9 is a schematic diagram of removing obstacles according to an exemplary embodiment of the present application.
  • Figure 10 is a schematic structural diagram of a parking space detection device according to an exemplary embodiment of the present application.
  • Figure 11 is a schematic diagram of the hardware structure of an electronic device according to an exemplary embodiment of the present application.
  • sequence number of each step in the embodiment of the present application does not mean the order of execution.
  • the execution order of each process should be determined by its function and internal logic, and should not constitute any influence on the implementation process of the embodiment of the present application. limited.
  • Figure 1 is a schematic flow chart of a parking space detection method provided by an embodiment of the present application.
  • the parking space detection method may include the following steps S100-S130.
  • Step S100 Use the vehicle-mounted millimeter wave radar to obtain point cloud data around the vehicle body, and rasterize the point cloud data to obtain a raster density map.
  • multiple millimeter wave radars (which can be called vehicle-mounted millimeter wave radars) can be deployed on the vehicle, and the scanning range of the multiple millimeter wave radars can cover the surroundings of the vehicle body.
  • millimeter wave radars can be installed at the four corners of the vehicle (which can be called vehicle-mounted angular millimeter wave radars), or millimeter wave radars can be installed at the front, rear, left and right of the vehicle.
  • the point cloud data around the car body can be obtained through millimeter wave radar, and based on the millimeter wave radar and the vehicle Calibration parameters of the body coordinate system, convert point cloud data to the body coordinate system, and obtain object information around the body.
  • the point cloud data can be rasterized to obtain a raster density map.
  • Step S110 Use a deep learning algorithm to perform target detection based on the grid density map, and obtain parking space detection results and vehicle detection results.
  • a deep learning algorithm can be used for target detection to obtain parking space detection results and vehicle detection results.
  • the raster density map can be input into a pre-trained deep learning network model to obtain parking space detection results and vehicle detection results.
  • the parking space detection results may include parking space location information and parking space size information.
  • the parking space location information may include the center point position of the parking space detection frame, or the corner point position of the parking space detection frame.
  • the parking space size information may include the length and width of the parking space detection frame.
  • the vehicle detection results may include vehicle location information and vehicle size information.
  • the vehicle position information may include the center point position of the vehicle detection frame, or the corner point position of the vehicle detection frame.
  • the vehicle size information may include the length and width of the vehicle detection frame.
  • the parking space detection/analysis mentioned refers to the detection/analysis of free parking spaces.
  • Step S120 Based on the vehicle detection results, analyze the size of the area between adjacent vehicles to obtain the parking space analysis result.
  • Step S130 Fusion of the parking space detection results and the parking space analysis results to obtain the final parking space detection result.
  • the vehicle detection results can be used , analyze the size of the area between adjacent vehicles to analyze the free parking space information.
  • the area size may include, but is not limited to, one or more of area length, area width, and area area.
  • the free parking space information can be more accurately analyzed based on the vehicle detection results. Information, and then, by fusing the detected parking space information (i.e., parking space detection results) and the analyzed parking space information (i.e., parking space analysis results), the reliability and accuracy of parking space detection can be effectively improved.
  • the parking space analysis can be performed based on the vehicle detection results, the parking space analysis results can be obtained, and the parking space detection results and the parking space analysis results can be fused, Get the final result of parking space detection.
  • the point cloud data around the car body obtained by using the vehicle-mounted millimeter wave radar is rasterized to obtain a raster density map, and a deep learning algorithm is used to obtain the raster density map.
  • Carry out target detection to obtain parking space detection results and vehicle detection results which improves the accuracy of target detection results based on point cloud data of millimeter wave radar; in addition, based on the vehicle detection results obtained from target detection, it is also possible to detect adjacent vehicles based on the vehicle detection results.
  • the area size between the two is analyzed to obtain the parking space analysis results, and the parking space analysis results are fused with the parking space detection results obtained from target detection to obtain the final parking space detection result, which improves the reliability and accuracy of parking space detection.
  • the vehicle detection results may include position information, size information, and rotation angle information of the vehicle target frame.
  • the parking space detection results may include position information, size information, and rotation angle information of the parking space detection frame.
  • parking spaces are not all parallel or perpendicular to the road, and there are also inclined parking spaces.
  • the vehicle When the vehicle is parked in a parking space, the vehicle is not parallel or perpendicular to the road, but has a certain rotation angle (relative to the situation of being parallel or perpendicular to the road).
  • the vehicle/parking space detection frame can also be detected. Rotation angle information of the parking space.
  • a classification method can be used to obtain the rotation angle of the vehicle/parking space.
  • the detection of rotation angle can be completed through two steps: direction classification and angle classification.
  • Direction classification can include dividing the vehicle rotation angle into 0 to 180 degrees (positive direction) and -180 degrees to 0 degrees (negative direction), using a binary branch to predict the direction, and using a binary cross-entropy loss for supervision.
  • Angle classification refers to k degrees as the resolution, which can be divided into 180/k categories.
  • Use classification loss such as cross entropy for supervision, and calculate the rotation angle of the vehicle/parking space based on the category with the highest probability. If the direction prediction is positive and the angle prediction probability of type i is the highest, then the rotation angle is 180/k*i.
  • the positive or negative rotation angle may be predefined.
  • step S120 based on the vehicle detection results, the area size between adjacent vehicles is analyzed to obtain parking space analysis results, which may include:
  • the parking space analysis result is obtained based on the size of the area between adjacent sides of the two vehicle target frames.
  • step S110 other vehicle target frames that match the rotation angle of the vehicle target frame can be searched based on the rotation angle of the vehicle target frame, and the rotation angle of the vehicle target frame can be compared with the rotation angle of the vehicle target frame.
  • the vehicle target frame closest to the center of the vehicle target frame is determined as the adjacent vehicle target frame of the vehicle target frame, based on the proximity between the vehicle target frame and the adjacent vehicle target frame.
  • the size of the area between the edges is used to analyze the parking space analysis results between the two vehicle target frames.
  • the rotation angle matching of the two vehicle target frames may include the rotation angles of the two vehicle target frames being the same, or the rotation angles of the two vehicle target frames being different, but the rotation angles of the two vehicle target frames are different.
  • the difference in the rotation angles of the boxes is within the preset angle range.
  • the parking space analysis result obtained based on the size of the area between adjacent sides of the two vehicle target frames may include:
  • the larger area of the candidate parking space analysis frames corresponding to the two vehicle target frames meets the preset size requirements, the larger area of the candidate parking space analysis frames corresponding to the two vehicle target frames is determined as the parking space. Analysis box.
  • the side of the vehicle target frame adjacent to the other vehicle target frame can be used as the side to generate a vehicle target frame corresponding to the vehicle target frame.
  • the largest rectangular frame that does not overlap with another vehicle target frame is used as the candidate parking space analysis frame.
  • the two vehicle target frames are frame 1 and frame 2 respectively
  • the side of frame 1 adjacent to frame 2 is side A1B1
  • the side of frame 2 adjacent to frame 1 is side A2B2
  • Two rays perpendicular to side A1B1 can be drawn from points A1 and B1 respectively (assumed to be rays S1 and S2), and the intersection point of S1 and straight line A2B2 (assumed to be C1), and the intersection point of S2 and straight line A2B2 (assumed to be C1) can be obtained.
  • two candidate parking space analysis frames can be determined (the two candidate parking space analysis frames can completely overlap), and the areas of the two candidate parking space analysis frames can be compared to obtain A candidate parking space analysis frame with a larger area is determined, and it is determined whether the candidate parking space analysis frame meets the preset size requirements. If the candidate parking space analysis frame meets the preset size requirements, the candidate parking space analysis frame is determined to be a parking space analysis frame.
  • the candidate parking space analysis frame may include that one or more of the length, width, and area of the candidate parking space analysis frame meets the preset size requirements (that is, it may be based on one or more of the length, width, and area). setting requirements, such as thresholds).
  • the area of the candidate parking space analysis box meeting the preset area requirements may include the area of the candidate parking space analysis box being greater than the first area threshold and less than the second area threshold, and the first area threshold being less than the second area threshold.
  • the parking space detection result may include at least one parking space detection frame
  • the parking space analysis result may include at least one parking space analysis frame.
  • the parking space detection result and the parking space analysis result are fused to obtain the parking space detection result.
  • Final results include:
  • the larger area of the parking space analysis frame and the target parking space detection frame is determined as the candidate parking space area.
  • each parking space detection frame can be traversed in turn, and the intersection of each parking space detection frame and the parking space analysis frame can be determined respectively.
  • IOU Intersection over Union
  • the larger area of the parking space analysis frame and the target parking space detection frame is determined as the candidate parking space area.
  • any parking space analysis frame if it is determined that there is a target parking space detection frame whose intersection-to-union ratio with the parking space analysis frame is greater than a preset threshold, for other parking space analysis frames, there may be no need to interact with the target parking space.
  • the detection frame performs intersection and union ratio calculation.
  • the implementation method of fusing the parking space detection results and the parking space analysis results to obtain the final parking space detection result is not limited to the method described in the above embodiments.
  • the area of the parking space is usually known. Therefore, for any parking space analysis frame, the area of the overlapping area of each parking space detection frame and the parking space analysis frame can be determined respectively, and when there is an overlapping area with the parking space analysis frame, the area is larger than the predetermined area.
  • a threshold target parking space detection frame is set, the larger area of the parking space analysis frame and the target parking space detection frame is determined as the candidate parking space area.
  • the distance between the center points of the parking space detection result and the parking space analysis result will not be different. is too large. Therefore, for any parking space analysis frame, the distance between each parking space detection frame and the center point of the parking space analysis frame can be determined separately. If the distance between the parking space detection frame and the center point of the parking space analysis frame is less than the preset threshold In the case of a target parking space detection frame, the larger area of the parking space analysis frame and the target parking space detection frame is determined as the candidate parking space area.
  • the parking space detection method may also include:
  • the parking space detection frame For any parking space detection frame, if there is no target parking space analysis frame whose intersection-to-union ratio with the parking space detection frame is greater than the preset threshold, the parking space detection frame is determined as a candidate parking space area, and the setting for the candidate parking space area is third confidence label;
  • the confidence corresponding to the first confidence label, the second confidence label and the third confidence label decreases in sequence.
  • the reliability of the vehicle detection results obtained based on the point cloud data of the millimeter wave radar will be higher than the reliability of the parking space detection results.
  • the reliability of the parking space analysis results obtained by analyzing the vehicle detection results in the above manner is usually higher than the reliability of the parking space detection results.
  • the larger area of the parking space analysis frame and the target parking space detection frame can be is determined as a candidate parking space area, and a first confidence label is set for the candidate parking space area.
  • the parking space analysis frame can be determined as a candidate parking space area, and the candidate parking space area can be set up Second confidence label.
  • the parking space detection frame For any parking space detection frame, if there is no target parking space analysis frame whose intersection-to-union ratio with the parking space detection frame is greater than the preset threshold, the parking space detection frame is determined as a candidate parking space area, and the setting for the candidate parking space area is Third confidence label.
  • the confidence corresponding to the first confidence label, the second confidence label and the third confidence label decreases in sequence, that is, the candidate parking space area obtained by the fusion process, the candidate parking space area obtained by analysis, and the candidate parking space area obtained by detection. Confidence levels gradually decrease.
  • the parking space detection method provided by the embodiment of the present application may also include:
  • the candidate parking space area is deleted.
  • the determined parking space area can also be adjusted based on the detected obstacle information.
  • the key edge to be adjusted for the candidate parking space area can be determined based on the detection position information of the obstacle.
  • the width of the parking space is usually significantly larger than the width of the vehicle, but the length of the parking space usually matches the length of the vehicle, therefore, in the case of obstacles, the candidate parking space area close to the obstacle can be The long side is used as the key side to be adjusted.
  • the key edges to be adjusted in the candidate parking area can be translated to obtain a rectangular frame that does not cover the obstacle. For example, the largest rectangular frame that does not cover the obstacle is obtained. Rectangle.
  • the candidate parking space area is deleted.
  • millimeter wave radars can be installed at the four corners of the vehicle respectively, and the schematic diagram thereof can be shown in Figure 2 .
  • the parking space detection system framework can include a radar preprocessing module, a target detection module, a parking space analysis module, a parking space fusion module and a parking space tracking module.
  • the radar preprocessing module can use the vehicle-mounted millimeter wave radar to obtain point cloud data and unify the point cloud data into the body coordinate system (the body coordinate system can take the center of the vehicle's rear axle as the origin, the forward direction as the y-axis, and the right direction as the x-axis. The top is the z-axis), and the point cloud data is rasterized to generate a raster density map.
  • the target detection module can obtain the category and location information of vehicle targets, parking space targets and general obstacle targets based on the grid density map.
  • the parking space analysis module analyzes the location of the vehicle target and obtains free parking space information.
  • the parking space position obtained through analysis and the parking space position obtained by the detection model are sent to the parking space fusion module for processing to obtain the fusion detection parking space (i.e., the final result of the above-mentioned parking space detection).
  • the fusion detected parking space is input into the parking space tracking module for multi-frame stabilization to obtain the final parking space detection result.
  • the four angular millimeter-wave radars are calibrated with the body coordinate system (the body coordinate system has the center of the rear axle of the vehicle as the origin, the forward direction is the y-axis, the right direction is the x-axis, and the upper direction is the z-axis), and is converted to the body coordinates through the calibration parameters system to obtain surrounding obstacle information.
  • the calibration parameters system For the point cloud data of a single frame or multiple frames superimposed, through rasterization processing, the number of data points falling into each raster is counted, and a raster density map is generated.
  • deep learning network is used for target detection.
  • the yolov3 network model can be used for target detection.
  • the yolov3 network is an anchor-based target detection network.
  • the traditional yolov3 network model is usually used in the image coordinate system, and the detected targets are all positive Cross rectangular frame.
  • the vehicle target frame and the parking space target frame may not be orthogonal frames. Therefore, the yolov3 network needs to be improved to adapt to the detection of rotating target frames.
  • the traditional yolov3 network model when the traditional yolov3 network model returns the position of the target frame, it generally returns the center point (x, y) of the target frame, as well as the width and height (w, h) of the target frame (which can also be called length and width). ).
  • the improved yolov3 network model also needs to obtain rotation angle information in addition to the parameters of the orthogonal frame.
  • the detection of rotation angle can be completed through two steps: direction classification and angle classification.
  • Direction classification can include dividing the vehicle rotation angle into 0 to 180 degrees and -180 degrees to 0 degrees, using a binary branch to predict the direction, and using a binary cross-entropy loss for supervision.
  • Angle classification refers to k degrees as the resolution, which can be divided into 180/k categories.
  • Use classification loss such as cross entropy for supervision, and calculate the rotation angle of the vehicle/parking space based on the category with the highest probability. If the direction prediction is positive and the angle prediction probability of type i is the highest, then the rotation angle is 180/k*i.
  • the detection model effect can be shown in Figure 4.
  • the types of detection targets include vehicles, parking spaces and general obstacles. Limited by the quality of radar imaging, sometimes point cloud features are not obvious, which may affect the detection of parking spaces. Therefore, vehicle targets can be used to perform analysis on parking space targets to supplement the analysis.
  • the parking space analysis module can estimate available parking spaces based on vehicle detection results.
  • the parking space analysis module may include a neighboring target matching submodule, a neighboring corner point acquisition submodule, a candidate area generation submodule, and a candidate area selection submodule, and its schematic diagram can be shown in Figure 5.
  • Neighboring target matching submodule Matches neighboring vehicle targets. For each vehicle target, look for candidate vehicle targets that are similar to its status (the heading angle deviation is less than a certain threshold, that is, the difference in rotation angle is less than a certain threshold), and then select the vehicle target with the closest center distance to form a matching pair of adjacent targets, such as A and B, B and C, etc. in Figure 6.
  • Adjacent corner point acquisition sub-module Match pairs of adjacent targets, find their two adjacent edges, and select the corresponding corner points, such as the solid corner points of A and B and the hollow corner points of B and C in Figure 6.
  • Candidate area generation sub-module Match pairs of adjacent targets, and generate rectangular boxes with adjacent edges and corners as boundaries. In this way, each vehicle target will generate a candidate parking area, as shown in Figure 7.
  • Candidate region selection submodule Each neighboring target matching pair will generate two candidate regions. Candidate areas can be evaluated, such as selecting the candidate area with the largest area. Subsequently, certain restrictions are placed on the length, width and/or area of the candidate areas (ie, the above-mentioned preset size requirements), and candidate areas that are too large or too small are removed.
  • the candidate regions generated by A and B have smaller width and area and should be deleted.
  • the parking space fusion module merges the parking spaces obtained by the detection model (i.e., the above-mentioned parking space detection results) and the parking spaces obtained by analysis (i.e., the above-mentioned parking space analysis results) to eliminate abnormal parking spaces.
  • the parking space fusion module may include a parking space target merging sub-module and an obstacle elimination sub-module, the schematic diagram of which can be shown in Figure 8.
  • Parking space target merging sub-module Merges the parking space target obtained by the detection model (which can be called “detected parking space”) and the parking space target obtained by analysis (which can be called “analyzed parking space”).
  • the IOU intersection over union ratio, A and B are the parking space target positions. If the IOU is greater than a certain threshold, it means that the detected parking space and the analyzed parking space match. Select the parking space with the largest area among the detected parking space and the analyzed parking space, and add the confidence label 1 (that is, the first confidence level mentioned above Label).
  • Obstacle elimination sub-module Considering that there may be obstacles such as triangular cones and pillars in free parking spaces, the candidate parking space area can be fine-tuned based on the detected obstacle information.
  • the key edge to be adjusted can be selected, the key edge can be translated, and the obstacle area is excluded. As shown in Figure 9, the key boundary of the parking space is adjusted to below the obstacle. . Finally, the size requirements of the adjusted candidate parking space areas are judged, unreasonable candidate parking space areas are deleted, and the final result of the parking space detection is obtained.
  • the parking space tracking module can stabilize the parking space detection results in multiple frames and reduce the chance of single-frame detection results.
  • the parking space detection method provided by the embodiment of the present application has been described above.
  • the parking space detection device provided by the embodiment of the present application is described below.
  • the parking space detection device may include a data preprocessing unit 1010, a target detection unit 1020, an analysis unit 1030 and a fusion unit. 1040.
  • the data preprocessing unit 1010 is used to obtain point cloud data around the vehicle body using a vehicle-mounted millimeter wave radar, and rasterize the point cloud data to obtain a raster density map.
  • the target detection unit 1020 is configured to use a deep learning algorithm to perform target detection based on the grid density map, and obtain parking space detection results and vehicle detection results.
  • the analysis unit 1030 is configured to analyze the size of the area between adjacent vehicles based on the vehicle detection results to obtain parking space analysis results.
  • the fusion unit 1040 is used to fuse the parking space detection results and the parking space analysis results to obtain the final parking space detection result.
  • the vehicle detection results include position information, size information and rotation angle information of the vehicle target frame
  • the analysis unit 1030 analyzes the size of the area between adjacent vehicles based on the vehicle detection results. When obtaining the parking space analysis results, it is further used to:
  • the parking space analysis result is obtained based on the size of the area between adjacent sides of the two vehicle target frames.
  • the analysis unit 1030 when obtaining the parking space analysis result based on the size of the area between adjacent sides of the two vehicle target frames, the analysis unit 1030 is further used to:
  • the larger area of the candidate parking space analysis frames corresponding to the two vehicle target frames meets the preset size requirements, the larger area of the candidate parking space analysis frames corresponding to the two vehicle target frames is determined as the parking space. Analysis box.
  • the parking space detection result may include at least one parking space detection frame
  • the parking space analysis result may include at least one parking space analysis frame
  • the fusion unit 1040 performs on the parking space detection result and the parking space analysis result. After fusion, when the final result of parking space detection is obtained, it is further used for:
  • the larger area of the parking space analysis frame and the target parking space detection frame is determined as the candidate parking space area.
  • the fusion unit 1040 is also configured to combine the parking space analysis frame and the target parking space detection frame when there is a target parking space detection frame whose intersection-to-union ratio with the parking space analysis frame is greater than a preset threshold.
  • the one with the larger area is set as the first confidence label;
  • the fusion unit 1040 is also used to:
  • the parking space detection frame For any parking space detection frame, if there is no target parking space analysis frame whose intersection-to-union ratio with the parking space detection frame is greater than the preset threshold, the parking space detection frame is determined as a candidate parking space area, and the setting for the candidate parking space area is third confidence label;
  • the confidences corresponding to the first confidence label, the second confidence label and the third confidence label decrease in sequence.
  • the fusion unit 1040 is also configured to: for any candidate parking space area, if there is an obstacle detection result in the candidate parking space area, determine the candidate parking space based on the detection position information of the obstacle.
  • the key edges to be adjusted in the area; the key edges to be adjusted in the candidate parking space area are translated to obtain a rectangular frame that does not cover the obstacle; when the rectangular frame meets the preset size requirements, the candidate parking space area is updated to The rectangular frame area; if the rectangular frame does not meet the preset size requirements, delete the candidate parking space area.
  • An embodiment of the present application provides an electronic device, including a processor and a memory, wherein the memory stores machine-executable instructions that can be executed by the processor, and the processor is used to execute the machine-executable instructions to implement the parking space described above. Detection method.
  • FIG 11 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application.
  • the electronic device may include a processor 1101 and a memory 1102 storing machine-executable instructions.
  • Processor 1101 and memory 1102 may communicate via system bus 1103 .
  • the processor 1101 can execute the parking space detection method described above.
  • Memory 1102 as referred to herein may be any electronic, magnetic, optical, or other physical storage device that may contain or store information, such as executable instructions, data, and the like.
  • machine-readable storage media can be: RAM (Radom Access Memory, random access memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard drive), solid state drive, any type of storage disk (such as optical discs, DVDs, etc.), or similar storage media, or a combination thereof.
  • Embodiments of the present application also provide a machine-readable storage medium, such as the memory 1102 in Figure 11.
  • the machine-readable storage medium stores machine-executable instructions.
  • the The processor implements the parking space detection method described above.
  • the machine-readable storage medium may be ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Remote Sensing (AREA)
  • Radar, Positioning & Navigation (AREA)
  • General Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Traffic Control Systems (AREA)
  • Radar Systems Or Details Thereof (AREA)

Abstract

A parking space detection method and apparatus, and an electronic device and a machine-readable storage medium. The parking space detection method comprises: acquiring point cloud data around a vehicle body by using a vehicle-mounted millimeter-wave radar, and performing rasterization processing on the point cloud data, so as to obtain a raster density map (S100); according to the raster density map, performing target detection by using a deep learning algorithm, so as to obtain a parking space detection result and a vehicle detection result (S110); analyzing an area size between adjacent vehicles according to the vehicle detection result, so as to obtain a parking space analysis result (S120); and fusing the parking space detection result with the parking space analysis result, so as to obtain a final parking space detection result (S130).

Description

车位检测方法、装置、电子设备及机器可读存储介质Parking space detection method, device, electronic equipment and machine-readable storage medium 技术领域Technical field
本申请涉及目标检测技术领域,尤其涉及一种车位检测方法、装置、电子设备及机器可读存储介质。The present application relates to the field of target detection technology, and in particular to a parking space detection method, device, electronic equipment and machine-readable storage medium.
背景技术Background technique
车位目标的检测性能对于自动泊车的实现十分关键。目前,车位检测常用的传感器包含相机、超声波雷达和毫米波雷达。The detection performance of parking space targets is very critical to the realization of automatic parking. Currently, commonly used sensors for parking space detection include cameras, ultrasonic radar and millimeter wave radar.
相机是自动驾驶应用最广泛的传感器之一。基于视觉的车位检测目前较为成熟,很多是基于深度学习方法。利用深度学习网络对相机获取到的图像进行车位线检测,再进行车位的后处理。但相机获取图像易受天气的干扰,不同的光照条件对检测结果影响较大。Cameras are one of the most widely used sensors for autonomous driving. Vision-based parking space detection is currently relatively mature, and many are based on deep learning methods. The deep learning network is used to detect the parking space lines on the images obtained by the camera, and then perform post-processing of the parking spaces. However, the images acquired by the camera are susceptible to weather interference, and different lighting conditions have a greater impact on the detection results.
超声波雷达也是泊车常用传感器。但超声波雷达的探测距离较短,探测点云较为稀疏,制约了产品应用。Ultrasonic radar is also a commonly used sensor for parking. However, the detection range of ultrasonic radar is short and the detection point cloud is relatively sparse, which restricts product application.
毫米波雷达克服了相机易受环境干扰的缺点,鲁棒性较强。此外,毫米波雷达可以生成较超声波雷达更稠密的点云,探测距离远,在车位检测上的潜力更大。Millimeter wave radar overcomes the disadvantage of cameras being susceptible to environmental interference and has strong robustness. In addition, millimeter wave radar can generate denser point clouds than ultrasonic radar, has a longer detection range, and has greater potential in parking space detection.
发明内容Contents of the invention
本申请实施例提供一种车位检测方法、装置、电子设备及机器可读存储介质。Embodiments of the present application provide a parking space detection method, device, electronic device, and machine-readable storage medium.
根据本申请实施例的第一方面,提供一种车位检测方法,包括:According to a first aspect of the embodiment of the present application, a parking space detection method is provided, including:
利用车载毫米波雷达获取车身四周的点云数据,并对所述点云数据进行栅格化处理,得到栅格密度图;Use vehicle-mounted millimeter wave radar to obtain point cloud data around the vehicle body, and rasterize the point cloud data to obtain a raster density map;
依据所述栅格密度图,利用深度学习算法进行目标检测,得到车位检测结果和车辆检测结果;Based on the grid density map, a deep learning algorithm is used for target detection to obtain parking space detection results and vehicle detection results;
依据所述车辆检测结果,对相邻车辆之间的区域尺寸进行分析,得到车位分析结果;Based on the vehicle detection results, analyze the size of the area between adjacent vehicles to obtain parking space analysis results;
对所述车位检测结果和所述车位分析结果进行融合,得到车位检测最终结果。The parking space detection results and the parking space analysis results are fused to obtain the final parking space detection result.
根据本申请实施例的第二方面,提供一种车位检测装置,包括: According to a second aspect of the embodiment of the present application, a parking space detection device is provided, including:
数据预处理单元,用于利用车载毫米波雷达获取车身四周的点云数据,并对所述点云数据进行栅格化处理,得到栅格密度图;A data preprocessing unit is used to obtain point cloud data around the vehicle body using a vehicle-mounted millimeter wave radar, and rasterize the point cloud data to obtain a raster density map;
目标检测单元,用于依据所述栅格密度图,利用深度学习算法进行目标检测,得到车位检测结果和车辆检测结果;A target detection unit, used to perform target detection using a deep learning algorithm based on the grid density map, and obtain parking space detection results and vehicle detection results;
分析单元,用于依据所述车辆检测结果,对相邻车辆之间的区域尺寸进行分析,得到车位分析结果;An analysis unit is used to analyze the size of the area between adjacent vehicles based on the vehicle detection results to obtain parking space analysis results;
融合单元,用于对所述车位检测结果和所述车位分析结果进行融合,得到车位检测最终结果。A fusion unit is used to fuse the parking space detection results and the parking space analysis results to obtain the final parking space detection result.
根据本申请实施例的第三方面,提供一种电子设备,包括处理器和存储器,所述存储器存储有能够被所述处理器执行的机器可执行指令,所述处理器用于执行所述机器可执行指令,以实现第一方面提供的方法。According to a third aspect of the embodiment of the present application, an electronic device is provided, including a processor and a memory. The memory stores machine-executable instructions that can be executed by the processor. The processor is configured to execute the machine-executable instructions. Execute instructions to implement the method provided by the first aspect.
根据本申请实施例的第四方面,提供一种机器可读存储介质,所述机器可读存储介质内存储有机器可执行指令,所述机器可执行指令被处理器执行时使所述处理器实现第一方面提供的方法。According to a fourth aspect of the embodiment of the present application, a machine-readable storage medium is provided. Machine-executable instructions are stored in the machine-readable storage medium. When the machine-executable instructions are executed by a processor, the processor Implement the method provided in the first aspect.
通过对利用车载毫米波雷达获取到的车身四周的点云数据进行栅格化处理,得到栅格密度图,并利用深度学习算法,对栅格密度图进行目标检测,得到车位检测结果和车辆检测结果,提高了依据毫米波雷达的点云数据进行目标检测的结果的准确性;此外,还可以依据目标检测得到的车辆检测结果,对相邻车辆之间的区域尺寸进行分析,得到车位分析结果,并对该车位分析结果与目标检测得到的车位检测结果进行融合,得到车位检测最终结果,提高了车位检测的可靠性和准确性。By rasterizing the point cloud data around the car body obtained by the vehicle-mounted millimeter wave radar, a raster density map is obtained, and a deep learning algorithm is used to perform target detection on the raster density map to obtain parking space detection results and vehicle detection. As a result, the accuracy of the target detection results based on the point cloud data of the millimeter wave radar is improved; in addition, the area size between adjacent vehicles can be analyzed based on the vehicle detection results obtained by the target detection, and the parking space analysis results can be obtained , and fuse the parking space analysis results with the parking space detection results obtained from target detection to obtain the final parking space detection result, which improves the reliability and accuracy of parking space detection.
附图说明Description of the drawings
图1是本申请示例性实施例示出的一种车位检测方法的流程示意图。Figure 1 is a schematic flowchart of a parking space detection method according to an exemplary embodiment of the present application.
图2是本申请示例性实施例示出的在车辆四角安装毫米波雷达的示意图。Figure 2 is a schematic diagram of installing millimeter wave radars at the four corners of a vehicle according to an exemplary embodiment of the present application.
图3是本申请示例性实施例示出的一种车位检测系统框架的示意图。Figure 3 is a schematic diagram of a parking space detection system framework according to an exemplary embodiment of the present application.
图4是本申请示例性实施例示出的一种检测模型效果示意图。Figure 4 is a schematic diagram showing the effect of a detection model according to an exemplary embodiment of the present application.
图5是本申请示例性实施例示出的一种车位分析模块的结构示意图。Figure 5 is a schematic structural diagram of a parking space analysis module according to an exemplary embodiment of the present application.
图6是本申请示例性实施例示出的一种邻近目标匹配对的确定示意图。 FIG. 6 is a schematic diagram of determining a matching pair of adjacent targets according to an exemplary embodiment of the present application.
图7是本申请示例性实施例示出的一种候选区域的示意图。FIG. 7 is a schematic diagram of a candidate area according to an exemplary embodiment of the present application.
图8是本申请示例性实施例示出的一种车位融合模块的结构示意图。Figure 8 is a schematic structural diagram of a parking space fusion module according to an exemplary embodiment of the present application.
图9是本申请示例性实施例示出的一种排除障碍物的示意图。Figure 9 is a schematic diagram of removing obstacles according to an exemplary embodiment of the present application.
图10是本申请示例性实施例示出的一种车位检测装置的结构示意图。Figure 10 is a schematic structural diagram of a parking space detection device according to an exemplary embodiment of the present application.
图11是本申请示例性实施例示出的一种电子设备的硬件结构示意图。Figure 11 is a schematic diagram of the hardware structure of an electronic device according to an exemplary embodiment of the present application.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the appended claims.
在本申请使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a," "the" and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise.
为了使本领域技术人员更好地理解本申请实施例,并使本申请实施例的上述目的、特征和优点能够更加明显易懂,下面结合附图对本申请实施例作进一步详细的说明。In order to enable those skilled in the art to better understand the embodiments of the present application, and to make the above purposes, features and advantages of the embodiments of the present application more obvious and understandable, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
需要说明的是,本申请实施例中各步骤的序号大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be noted that the sequence number of each step in the embodiment of the present application does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any influence on the implementation process of the embodiment of the present application. limited.
请参见图1,为本申请实施例提供的一种车位检测方法的流程示意图,如图1所示,该车位检测方法可以包括以下步骤S100-S130。Please refer to Figure 1, which is a schematic flow chart of a parking space detection method provided by an embodiment of the present application. As shown in Figure 1, the parking space detection method may include the following steps S100-S130.
步骤S100、利用车载毫米波雷达获取车身四周的点云数据,并对点云数据进行栅格化处理,得到栅格密度图。Step S100: Use the vehicle-mounted millimeter wave radar to obtain point cloud data around the vehicle body, and rasterize the point cloud data to obtain a raster density map.
本申请实施例中,为了实现车位检测,可以在车辆上部署多个毫米波雷达(可以称为车载毫米波雷达),该多个毫米波雷达的扫描范围可以覆盖车身四周。In the embodiment of the present application, in order to realize parking space detection, multiple millimeter wave radars (which can be called vehicle-mounted millimeter wave radars) can be deployed on the vehicle, and the scanning range of the multiple millimeter wave radars can cover the surroundings of the vehicle body.
例如,可以在车辆四个角分别安装毫米波雷达(可以称为车载角毫米波雷达),或者,可以在车辆前后左右分别安装毫米波雷达。For example, millimeter wave radars can be installed at the four corners of the vehicle (which can be called vehicle-mounted angular millimeter wave radars), or millimeter wave radars can be installed at the front, rear, left and right of the vehicle.
示例性的,可以通过毫米波雷达获取车身四周的点云数据,并依据毫米波雷达与车 身坐标系的标定参数,将点云数据转换到车身坐标系,得到车身周围的物体信息。For example, the point cloud data around the car body can be obtained through millimeter wave radar, and based on the millimeter wave radar and the vehicle Calibration parameters of the body coordinate system, convert point cloud data to the body coordinate system, and obtain object information around the body.
本申请实施例中,对于利用车载毫米波雷达获取到的车身四周的点云数据,可以通过对点云数据进行栅格化处理,得到栅格密度图。In the embodiment of the present application, for the point cloud data around the vehicle body obtained by using the vehicle-mounted millimeter wave radar, the point cloud data can be rasterized to obtain a raster density map.
步骤S110、依据栅格密度图,利用深度学习算法进行目标检测,得到车位检测结果和车辆检测结果。Step S110: Use a deep learning algorithm to perform target detection based on the grid density map, and obtain parking space detection results and vehicle detection results.
本申请实施例中,对于步骤S100中得到的栅格密度图,可以利用深度学习算法进行目标检测,得到车位检测结果和车辆检测结果。In the embodiment of the present application, for the grid density map obtained in step S100, a deep learning algorithm can be used for target detection to obtain parking space detection results and vehicle detection results.
例如,可以将栅格密度图输入到预先训练的深度学习网络模型,得到车位检测结果和车辆检测结果。For example, the raster density map can be input into a pre-trained deep learning network model to obtain parking space detection results and vehicle detection results.
示例性的,车位检测结果可以包括车位位置信息和车位尺寸信息。For example, the parking space detection results may include parking space location information and parking space size information.
示例性的,车位位置信息可以包括车位检测框的中心点位置,或,车位检测框的角点位置。车位尺寸信息可以包括车位检测框的长和宽。For example, the parking space location information may include the center point position of the parking space detection frame, or the corner point position of the parking space detection frame. The parking space size information may include the length and width of the parking space detection frame.
示例性的,车辆检测结果可以包括车辆位置信息和车辆尺寸信息。For example, the vehicle detection results may include vehicle location information and vehicle size information.
示例性的,车辆位置信息可以包括车辆检测框的中心点位置,或,车辆检测框的角点位置。车辆尺寸信息可以包括车辆检测框的长和宽。For example, the vehicle position information may include the center point position of the vehicle detection frame, or the corner point position of the vehicle detection frame. The vehicle size information may include the length and width of the vehicle detection frame.
需要说明的是,在本申请实施例中,若未特殊说明,所提及的车位检测/分析均指针对空闲车位的检测/分析。It should be noted that in the embodiments of this application, unless otherwise specified, the parking space detection/analysis mentioned refers to the detection/analysis of free parking spaces.
步骤S120、依据车辆检测结果,对相邻车辆之间的区域尺寸进行分析,得到车位分析结果。Step S120: Based on the vehicle detection results, analyze the size of the area between adjacent vehicles to obtain the parking space analysis result.
步骤S130、对车位检测结果和车位分析结果进行融合,得到车位检测最终结果。Step S130: Fusion of the parking space detection results and the parking space analysis results to obtain the final parking space detection result.
本申请实施例中,考虑到实际场景中,在停车位上停放的相邻车辆之间存在较大空闲区域的情况下,该相邻车辆之间可能会存在空闲车位,即可以依据车辆检测结果,对相邻车辆之间的区域尺寸进行分析,以分析出空闲车位信息。In the embodiment of this application, considering that in actual scenarios, when there is a large free area between adjacent vehicles parked in a parking space, there may be free parking spaces between the adjacent vehicles, that is, the vehicle detection results can be used , analyze the size of the area between adjacent vehicles to analyze the free parking space information.
示例性的,区域尺寸可以包括但不限于区域长度、区域宽度以及区域面积之中的一个或多个。For example, the area size may include, but is not limited to, one or more of area length, area width, and area area.
此外,由于通过毫米波雷达扫描出的车辆的可靠性通常会高于通过毫米波雷达扫描得到的空闲车位的可靠性,因此,依据车辆检测结果可以较为准确地分析出空闲车位信 息,进而,通过对检测出的车位信息(即车位检测结果)和分析出的车位信息(即车位分析结果)进行融合,可以有效提升车位检测的可靠性和准确性。In addition, since the reliability of vehicles scanned by millimeter wave radar is usually higher than the reliability of free parking spaces scanned by millimeter wave radar, the free parking space information can be more accurately analyzed based on the vehicle detection results. Information, and then, by fusing the detected parking space information (i.e., parking space detection results) and the analyzed parking space information (i.e., parking space analysis results), the reliability and accuracy of parking space detection can be effectively improved.
相应地,在按照步骤S110中描述的方式得到了车位检测结果和车辆检测结果的情况下,可以依据车辆检测结果进行车位分析,得到车位分析结果,并对车位检测结果和车位分析结果进行融合,得到车位检测最终结果。Correspondingly, when the parking space detection results and the vehicle detection results are obtained in the manner described in step S110, the parking space analysis can be performed based on the vehicle detection results, the parking space analysis results can be obtained, and the parking space detection results and the parking space analysis results can be fused, Get the final result of parking space detection.
可见,在图1所示方法流程中,通过对利用车载毫米波雷达获取到的车身四周的点云数据进行栅格化处理,得到栅格密度图,并利用深度学习算法,对栅格密度图进行目标检测,得到车位检测结果和车辆检测结果,提高了依据毫米波雷达的点云数据进行目标检测的结果的准确性;此外,还可以依据目标检测得到的车辆检测结果,对相邻车辆之间的区域尺寸进行分析,得到车位分析结果,并对该车位分析结果与目标检测得到的车位检测结果进行融合,得到车位检测最终结果,提高了车位检测的可靠性和准确性。It can be seen that in the method process shown in Figure 1, the point cloud data around the car body obtained by using the vehicle-mounted millimeter wave radar is rasterized to obtain a raster density map, and a deep learning algorithm is used to obtain the raster density map. Carry out target detection to obtain parking space detection results and vehicle detection results, which improves the accuracy of target detection results based on point cloud data of millimeter wave radar; in addition, based on the vehicle detection results obtained from target detection, it is also possible to detect adjacent vehicles based on the vehicle detection results. The area size between the two is analyzed to obtain the parking space analysis results, and the parking space analysis results are fused with the parking space detection results obtained from target detection to obtain the final parking space detection result, which improves the reliability and accuracy of parking space detection.
在一些实施例中,车辆检测结果可以包括车辆目标框的位置信息、尺寸信息以及旋转角度信息。车位检测结果可以包括车位检测框的位置信息、尺寸信息以及旋转角度信息。In some embodiments, the vehicle detection results may include position information, size information, and rotation angle information of the vehicle target frame. The parking space detection results may include position information, size information, and rotation angle information of the parking space detection frame.
示例性的,考虑到实际场景中,车位并不是均与道路平行或垂直,也存在倾斜车位。车辆停在车位上的情况下,车辆也不是与道路平行或垂直的,而是存在一定的旋转角度(相对于与道路平行或垂直的情况)。For example, considering that in actual scenarios, parking spaces are not all parallel or perpendicular to the road, and there are also inclined parking spaces. When the vehicle is parked in a parking space, the vehicle is not parallel or perpendicular to the road, but has a certain rotation angle (relative to the situation of being parallel or perpendicular to the road).
相应地,为了提高车位检测的准确性和扩展方案的适用场景,在进行车辆目标检测和车位目标检测时,除了可以检测出车辆/车位检测框的位置和尺寸之外,还可以检测出车辆/车位的旋转角度信息。Correspondingly, in order to improve the accuracy of parking space detection and the applicable scenarios of the extended solution, when performing vehicle target detection and parking space target detection, in addition to detecting the position and size of the vehicle/parking space detection frame, the vehicle/parking space detection frame can also be detected. Rotation angle information of the parking space.
示例性的,可以采用分类的方法得到车辆/车位的旋转角度。For example, a classification method can be used to obtain the rotation angle of the vehicle/parking space.
例如,旋转角度的检测可以通过方向分类和角度分类两个环节完成。方向分类可以包括将车辆旋转角划分为0到180度(正方向)和-180度到0度(负方向),用二分类分支预测方向,使用二分类交叉熵loss(损失)进行监督。角度分类指的是以k度为分辨率,可以分为180/k类。For example, the detection of rotation angle can be completed through two steps: direction classification and angle classification. Direction classification can include dividing the vehicle rotation angle into 0 to 180 degrees (positive direction) and -180 degrees to 0 degrees (negative direction), using a binary branch to predict the direction, and using a binary cross-entropy loss for supervision. Angle classification refers to k degrees as the resolution, which can be divided into 180/k categories.
使用分类loss如交叉熵等进行监督,基于概率最大的类别求出车辆/车位的旋转角度。如方向预测为正,角度预测第i类概率最大,则旋转角度为180/k*i。Use classification loss such as cross entropy for supervision, and calculate the rotation angle of the vehicle/parking space based on the category with the highest probability. If the direction prediction is positive and the angle prediction probability of type i is the highest, then the rotation angle is 180/k*i.
示例性的,旋转角度的正或负可以预先定义。 For example, the positive or negative rotation angle may be predefined.
以道路为南北方向,车位在道路两侧为例,可以定义车位在道路左侧(西向)的情况下,旋转角度为负;车位在道路右侧(东向)的情况下,旋转角度为正。Taking the road as a north-south direction and parking spaces on both sides of the road as an example, it can be defined that when the parking space is on the left side of the road (west direction), the rotation angle is negative; when the parking space is on the right side of the road (east direction), the rotation angle is positive. .
步骤S120中,依据车辆检测结果,对相邻车辆之间的区域尺寸进行分析,得到车位分析结果,可以包括:In step S120, based on the vehicle detection results, the area size between adjacent vehicles is analyzed to obtain parking space analysis results, which may include:
对于旋转角度匹配,且中心距离最近的两个车辆目标框,依据该两个车辆目标框的相邻边之间的区域的尺寸,得到车位分析结果。For the two vehicle target frames with matching rotation angles and the closest center distance, the parking space analysis result is obtained based on the size of the area between adjacent sides of the two vehicle target frames.
示例性的,对于步骤S110中检测到的任一车辆,可以依据车辆目标框的旋转角度,搜索与该车辆目标框的旋转角度匹配的其它车辆目标框,并将与该车辆目标框的旋转角度匹配的其它车辆目标框中,与该车辆目标框的中心距离最近的车辆目标框,确定为该车辆目标框的相邻车辆目标框,依据该车辆目标框与该相邻车辆目标框的相邻边之间的区域的尺寸,分析出这两个车辆目标框之间的车位分析结果。For example, for any vehicle detected in step S110, other vehicle target frames that match the rotation angle of the vehicle target frame can be searched based on the rotation angle of the vehicle target frame, and the rotation angle of the vehicle target frame can be compared with the rotation angle of the vehicle target frame. Among the other matching vehicle target frames, the vehicle target frame closest to the center of the vehicle target frame is determined as the adjacent vehicle target frame of the vehicle target frame, based on the proximity between the vehicle target frame and the adjacent vehicle target frame. The size of the area between the edges is used to analyze the parking space analysis results between the two vehicle target frames.
需要说明的是,在本申请实施例中,两个车辆目标框的旋转角度匹配可以包括两个车辆目标框的旋转角度相同,或者,两个车辆目标框的旋转角度不同,但是两个车辆目标框的旋转角度的差值在预设角度范围内。It should be noted that in the embodiment of the present application, the rotation angle matching of the two vehicle target frames may include the rotation angles of the two vehicle target frames being the same, or the rotation angles of the two vehicle target frames being different, but the rotation angles of the two vehicle target frames are different. The difference in the rotation angles of the boxes is within the preset angle range.
在一个示例中,上述依据该两个车辆目标框的相邻边之间的区域的尺寸,得到车位分析结果,可以包括:In one example, the parking space analysis result obtained based on the size of the area between adjacent sides of the two vehicle target frames may include:
对于该两个车辆目标框中的任一车辆目标框,生成以该车辆目标框的与另一车辆目标框相邻的边为边,且与该另一车辆目标框不重叠的最大矩形框,并以该最大矩形框作为候选车位分析框;For any one of the two vehicle target frames, generate the largest rectangular frame with the side of the vehicle target frame adjacent to the other vehicle target frame as an edge and not overlapping with the other vehicle target frame, And use the largest rectangular frame as the candidate parking space analysis frame;
在该两个车辆目标框对应的候选车位分析框中的面积较大者满足预设尺寸要求的情况下,将该两个车辆目标框对应的候选车位分析框中的面积较大者确定为车位分析框。When the larger area of the candidate parking space analysis frames corresponding to the two vehicle target frames meets the preset size requirements, the larger area of the candidate parking space analysis frames corresponding to the two vehicle target frames is determined as the parking space. Analysis box.
示例性的,对于旋转角度匹配,且中心距离最近的两个车辆目标框中的任一车辆目标框,可以以该车辆目标框的与另一车辆目标框相邻的边为边,生成与该另一车辆目标框不重叠的最大矩形框,将该最大矩形框作为候选车位分析框。For example, for any one of the two vehicle target frames with matching rotation angles and the closest center distance, the side of the vehicle target frame adjacent to the other vehicle target frame can be used as the side to generate a vehicle target frame corresponding to the vehicle target frame. The largest rectangular frame that does not overlap with another vehicle target frame is used as the candidate parking space analysis frame.
举例来说,假设该两个车辆目标框分别为框1和框2,框1的与框2相邻的边为边A1B1,框2的与框1相邻的边为边A2B2,则对于框1,可以分别从点A1和B1引出与边A1B1垂直的两条射线(假设为射线S1和S2),并得到S1与直线A2B2的交点(假设为C1),以及,S2与直线A2B2的交点(假设为C2),确定出线段A1C1与B1C2中的较短者(假设为A1C1),将以线段A1C1和线段A1B1为边的矩形框,确定为候 选车位分析框。For example, assuming that the two vehicle target frames are frame 1 and frame 2 respectively, the side of frame 1 adjacent to frame 2 is side A1B1, and the side of frame 2 adjacent to frame 1 is side A2B2, then for the frame 1. Two rays perpendicular to side A1B1 can be drawn from points A1 and B1 respectively (assumed to be rays S1 and S2), and the intersection point of S1 and straight line A2B2 (assumed to be C1), and the intersection point of S2 and straight line A2B2 (assumed to be C1) can be obtained. Assume it is C2), determine the shorter of the line segments A1C1 and B1C2 (assume it is A1C1), and determine the rectangular box with the line segment A1C1 and the line segment A1B1 as the candidate. Select the parking space analysis box.
示例性的,按照上述方式,对于该两个车辆目标框,可以确定出两个候选车位分析框(该两个候选车位分析框可以完全重叠),比较该两个候选车位分析框的面积,得到面积较大的候选车位分析框,并确定该候选车位分析框是否满足预设尺寸要求,在该候选车位分析框满足预设尺寸要求的情况下,将该候选车位分析框确定为车位分析框。For example, according to the above method, for the two vehicle target frames, two candidate parking space analysis frames can be determined (the two candidate parking space analysis frames can completely overlap), and the areas of the two candidate parking space analysis frames can be compared to obtain A candidate parking space analysis frame with a larger area is determined, and it is determined whether the candidate parking space analysis frame meets the preset size requirements. If the candidate parking space analysis frame meets the preset size requirements, the candidate parking space analysis frame is determined to be a parking space analysis frame.
示例性的,候选车位分析框满足预设尺寸要求可以包括候选车位分析框的长、宽以及面积中的一个或多个满足预设尺寸要求(即可以针对长、宽以及面积中的一个或多个设置要求,如阈值)。For example, if the candidate parking space analysis frame meets the preset size requirements, it may include that one or more of the length, width, and area of the candidate parking space analysis frame meets the preset size requirements (that is, it may be based on one or more of the length, width, and area). setting requirements, such as thresholds).
示例性的,以面积为例,候选车位分析框的面积满足预设面积要求可以包括候选车位分析框的面积大于第一面积阈值,且小于第二面积阈值,第一面积阈值小于第二面积阈值。For example, taking the area as an example, the area of the candidate parking space analysis box meeting the preset area requirements may include the area of the candidate parking space analysis box being greater than the first area threshold and less than the second area threshold, and the first area threshold being less than the second area threshold. .
在一些实施例中,所述车位检测结果可以包括至少一个车位检测框,所述车位分析结果可以包括至少一个车位分析框,步骤S130中,对车位检测结果和车位分析结果进行融合,得到车位检测最终结果,包括:In some embodiments, the parking space detection result may include at least one parking space detection frame, and the parking space analysis result may include at least one parking space analysis frame. In step S130, the parking space detection result and the parking space analysis result are fused to obtain the parking space detection result. Final results include:
对于任一车位分析框,分别确定各车位检测框与该车位分析框的交并比;For any parking space analysis frame, determine the intersection ratio of each parking space detection frame and the parking space analysis frame;
在存在与该车位分析框的交并比大于预设阈值的目标车位检测框的情况下,将该车位分析框与该目标车位检测框中面积较大者确定为候选车位区域。When there is a target parking space detection frame whose intersection-to-union ratio with the parking space analysis frame is greater than a preset threshold, the larger area of the parking space analysis frame and the target parking space detection frame is determined as the candidate parking space area.
示例性的,在按照上述方式得到了车位检测框和车位分析框的情况下,对于任一车位分析框,可以依次遍历各车位检测框,分别确定各车位检测框与该车位分析框的交并比(Intersection over Union,简称IOU),并确定是否存在与该车位分析框的交并比大于预设阈值的目标车位检测框。For example, when the parking space detection frame and the parking space analysis frame are obtained in the above manner, for any parking space analysis frame, each parking space detection frame can be traversed in turn, and the intersection of each parking space detection frame and the parking space analysis frame can be determined respectively. (Intersection over Union, referred to as IOU), and determine whether there is a target parking space detection frame whose intersection and union ratio with the parking space analysis frame is greater than the preset threshold.
在存在与该车位分析框的交并比大于预设阈值的目标车位检测框的情况下,将该车位分析框与该目标车位检测框中面积较大者确定为候选车位区域。When there is a target parking space detection frame whose intersection-to-union ratio with the parking space analysis frame is greater than a preset threshold, the larger area of the parking space analysis frame and the target parking space detection frame is determined as the candidate parking space area.
示例性的,对于任一车位分析框,在确定存在与该车位分析框的交并比大于预设阈值的目标车位检测框的情况下,对于其它车位分析框,可以不需要再与该目标车位检测框进行交并比计算。For example, for any parking space analysis frame, if it is determined that there is a target parking space detection frame whose intersection-to-union ratio with the parking space analysis frame is greater than a preset threshold, for other parking space analysis frames, there may be no need to interact with the target parking space. The detection frame performs intersection and union ratio calculation.
需要说明的是,在本申请实施例中,对车位检测结果和车位分析结果进行融合得到车位检测最终结果的实现方式并不限于上述实施例中描述的方式。例如,由于实际场景 中车位面积通常是已知的,因此,对于任一车位分析框,可以分别确定各车位检测框与该车位分析框重叠区域的面积,并在存在与该车位分析框的重叠区域的面积大于预设阈值的目标车位检测框的情况下,将该车位分析框与该目标车位检测框中面积较大者确定为候选车位区域。或者,由于对于某一个真实存在的车位,在按照上述方式得到了该车位的车位检测结果和车位分析结果的情况下,该车位检测结果和车位分析结果的中心点之间的距离也不会相差太大,因此,对于任一车位分析框,可以分别确定各车位检测框与该车位分析框的中心点之间的距离,在存在与该车位分析框的中心点之间的距离小于预设阈值的目标车位检测框的情况下,将该车位分析框与该目标车位检测框中面积较大者确定为候选车位区域。It should be noted that in the embodiments of the present application, the implementation method of fusing the parking space detection results and the parking space analysis results to obtain the final parking space detection result is not limited to the method described in the above embodiments. For example, due to actual scenarios The area of the parking space is usually known. Therefore, for any parking space analysis frame, the area of the overlapping area of each parking space detection frame and the parking space analysis frame can be determined respectively, and when there is an overlapping area with the parking space analysis frame, the area is larger than the predetermined area. When a threshold target parking space detection frame is set, the larger area of the parking space analysis frame and the target parking space detection frame is determined as the candidate parking space area. Or, because for a real parking space, when the parking space detection result and parking space analysis result of the parking space are obtained in the above manner, the distance between the center points of the parking space detection result and the parking space analysis result will not be different. is too large. Therefore, for any parking space analysis frame, the distance between each parking space detection frame and the center point of the parking space analysis frame can be determined separately. If the distance between the parking space detection frame and the center point of the parking space analysis frame is less than the preset threshold In the case of a target parking space detection frame, the larger area of the parking space analysis frame and the target parking space detection frame is determined as the candidate parking space area.
在一个示例中,在存在与该车位分析框的交并比大于预设阈值的目标车位检测框的情况下,本申请实施例提供的车位检测方法还可以包括:In one example, when there is a target parking space detection frame whose intersection-to-union ratio with the parking space analysis frame is greater than a preset threshold, the parking space detection method provided by the embodiment of the present application may also include:
为该车位分析框与该目标车位检测框中面积较大者设置第一置信度标签;Set the first confidence label for the one with the larger area between the parking space analysis frame and the target parking space detection frame;
本申请实施例提供的车位检测方法还可以包括:The parking space detection method provided by the embodiment of this application may also include:
在不存在与该车位分析框的交并比大于预设阈值的目标车位检测框的情况下,将该车位分析框确定为候选车位区域,并为该候选车位区域设置第二置信度标签;When there is no target parking space detection frame whose intersection-to-union ratio with the parking space analysis frame is greater than the preset threshold, determine the parking space analysis frame as a candidate parking space area, and set a second confidence label for the candidate parking space area;
对于任一车位检测框,在不存在与该车位检测框的交并比大于预设阈值的目标车位分析框的情况下,将该车位检测框确定为候选车位区域,并为该候选车位区域设置第三置信度标签;For any parking space detection frame, if there is no target parking space analysis frame whose intersection-to-union ratio with the parking space detection frame is greater than the preset threshold, the parking space detection frame is determined as a candidate parking space area, and the setting for the candidate parking space area is third confidence label;
其中,第一置信度标签、第二置信度标签以及第三置信度标签对应的置信度依次降低。Among them, the confidence corresponding to the first confidence label, the second confidence label and the third confidence label decreases in sequence.
示例性的,考虑到毫米波雷达对实际存在的物体的扫描准确率更高,依据毫米波雷达的点云数据得到的车辆检测结果的可靠性会高于车位检测结果的可靠性。按照上述方式依据车辆检测结果分析得到的车位分析结果的可靠性通常会高于车位检测结果的可靠性。For example, considering that millimeter wave radar has a higher scanning accuracy for actually existing objects, the reliability of the vehicle detection results obtained based on the point cloud data of the millimeter wave radar will be higher than the reliability of the parking space detection results. The reliability of the parking space analysis results obtained by analyzing the vehicle detection results in the above manner is usually higher than the reliability of the parking space detection results.
相应地,对于任一车位分析框,在存在与该车位分析框的交并比大于预设阈值的目标车位检测框的情况下,可以将该车位分析框与该目标车位检测框中面积较大者确定为候选车位区域,并为该候选车位区域设置第一置信度标签。Correspondingly, for any parking space analysis frame, if there is a target parking space detection frame whose intersection-to-union ratio with the parking space analysis frame is greater than the preset threshold, the larger area of the parking space analysis frame and the target parking space detection frame can be is determined as a candidate parking space area, and a first confidence label is set for the candidate parking space area.
对于任一车位分析框,在不存在与该车位分析框的交并比大于预设阈值的目标车位检测框的情况下,可以将该车位分析框确定为候选车位区域,并为该候选车位区域设置 第二置信度标签。For any parking space analysis frame, if there is no target parking space detection frame whose intersection and union ratio with the parking space analysis frame is greater than the preset threshold, the parking space analysis frame can be determined as a candidate parking space area, and the candidate parking space area can be set up Second confidence label.
对于任一车位检测框,在不存在与该车位检测框的交并比大于预设阈值的目标车位分析框的情况下,将该车位检测框确定为候选车位区域,并为该候选车位区域设置第三置信度标签。For any parking space detection frame, if there is no target parking space analysis frame whose intersection-to-union ratio with the parking space detection frame is greater than the preset threshold, the parking space detection frame is determined as a candidate parking space area, and the setting for the candidate parking space area is Third confidence label.
其中,第一置信度标签、第二置信度标签以及第三置信度标签对应的置信度依次降低,即融合处理得到的候选车位区域、分析得到的候选车位区域,以及检测得到的候选车位区域的置信度依次降低。Among them, the confidence corresponding to the first confidence label, the second confidence label and the third confidence label decreases in sequence, that is, the candidate parking space area obtained by the fusion process, the candidate parking space area obtained by analysis, and the candidate parking space area obtained by detection. Confidence levels gradually decrease.
在一个示例中,本申请实施例提供的车位检测方法还可以包括:In one example, the parking space detection method provided by the embodiment of the present application may also include:
对于任一候选车位区域,在该候选车位区域中存在障碍物检测结果的情况下,依据障碍物的检测位置信息,确定该候选车位区域的待调整关键边;For any candidate parking space area, if there is an obstacle detection result in the candidate parking space area, determine the key edge to be adjusted for the candidate parking space area based on the detection position information of the obstacle;
对该候选车位区域的待调整关键边进行平移,得到不覆盖该障碍物的矩形框;Translate the key edges to be adjusted in the candidate parking space area to obtain a rectangular frame that does not cover the obstacle;
在该矩形框满足预设尺寸要求的情况下,将该候选车位区域更新为该矩形框区域;When the rectangular frame meets the preset size requirements, update the candidate parking space area to the rectangular frame area;
在该矩形框不满足预设尺寸要求的情况下,删除该候选车位区域。If the rectangular frame does not meet the preset size requirements, the candidate parking space area is deleted.
示例性的,考虑到实际场景中,空闲车位中可能会存在一些障碍物,如三角锥、柱子等。为了避免自动泊车过程中车辆碰撞到障碍物,还可以依据检测出的障碍物信息对所确定的车位区域进行调整。For example, considering the actual scenario, there may be some obstacles in the free parking space, such as triangular pyramids, pillars, etc. In order to prevent the vehicle from colliding with obstacles during automatic parking, the determined parking space area can also be adjusted based on the detected obstacle information.
示例性的,对于任一候选车位区域,在该候选车位区域中存在障碍物检测结果的情况下,可以依据障碍物的检测位置信息,确定该候选车位区域的待调整关键边。For example, for any candidate parking space area, if there is an obstacle detection result in the candidate parking space area, the key edge to be adjusted for the candidate parking space area can be determined based on the detection position information of the obstacle.
示例性的,考虑到实际场景中,车位的宽度通常会明显大于车辆宽度,但是车位长度通常会与车辆长度较为匹配,因此,对于存在障碍物的情况,可以将候选车位区域中靠近障碍物的长边作为待调整关键边。For example, considering that in actual scenarios, the width of the parking space is usually significantly larger than the width of the vehicle, but the length of the parking space usually matches the length of the vehicle, therefore, in the case of obstacles, the candidate parking space area close to the obstacle can be The long side is used as the key side to be adjusted.
示例性的,在确定了待调整关键边的情况下,可以对该候选车位区域的待调整关键边进行平移,得到不覆盖该障碍物的矩形框,例如,得到不覆盖该障碍物的最大的矩形框。For example, when the key edges to be adjusted are determined, the key edges to be adjusted in the candidate parking area can be translated to obtain a rectangular frame that does not cover the obstacle. For example, the largest rectangular frame that does not cover the obstacle is obtained. Rectangle.
在完成候选车位区域调整的情况下,可以确定调整后的矩形框是否满足预设尺寸要求。After completing the adjustment of the candidate parking space area, it can be determined whether the adjusted rectangular frame meets the preset size requirements.
在该矩形框满足预设尺寸要求的情况下,将该候选车位区域更新为该矩形框区域; When the rectangular frame meets the preset size requirements, update the candidate parking space area to the rectangular frame area;
在该矩形框不满足预设尺寸要求的情况下,删除该候选车位区域。If the rectangular frame does not meet the preset size requirements, the candidate parking space area is deleted.
为了使本领域技术人员更好地理解本申请实施例,下面结合具体实例对本申请实施例进行说明。In order to enable those skilled in the art to better understand the embodiments of the present application, the embodiments of the present application are described below with reference to specific examples.
在该实施例中,为了实现车位检测,可以分别在车辆四角安装毫米波雷达,其示意图可以如图2所示。In this embodiment, in order to realize parking space detection, millimeter wave radars can be installed at the four corners of the vehicle respectively, and the schematic diagram thereof can be shown in Figure 2 .
在该实施例中,车位检测系统框架的示意图可以参见图3。如图3所示,该车位检测系统框架可以包括雷达预处理模块、目标检测模块、车位分析模块、车位融合模块和车位跟踪模块。In this embodiment, a schematic diagram of the parking space detection system framework can be seen in Figure 3 . As shown in Figure 3, the parking space detection system framework can include a radar preprocessing module, a target detection module, a parking space analysis module, a parking space fusion module and a parking space tracking module.
雷达预处理模块可以利用车载毫米波雷达获取点云数据,将点云数据统一到车身坐标系下(车身坐标系可以以车辆后轴中心为原点,前向为y轴,右向为x轴,上边为z轴),并对点云数据进行栅格化处理,生成栅格密度图。The radar preprocessing module can use the vehicle-mounted millimeter wave radar to obtain point cloud data and unify the point cloud data into the body coordinate system (the body coordinate system can take the center of the vehicle's rear axle as the origin, the forward direction as the y-axis, and the right direction as the x-axis. The top is the z-axis), and the point cloud data is rasterized to generate a raster density map.
目标检测模块可以依据栅格密度图,获取车辆目标、车位目标和通用障碍物目标的类别和位置信息。The target detection module can obtain the category and location information of vehicle targets, parking space targets and general obstacle targets based on the grid density map.
车位分析模块对车辆目标的位置进行分析,获取空闲车位信息。经过分析得到的车位位置和检测模型得到的车位位置送入车位融合模块进行处理得到融合检测车位(即上述车位检测最终结果)。最后把融合检测车位输入车位跟踪模块进行多帧的稳定,得到最终的车位检测结果。The parking space analysis module analyzes the location of the vehicle target and obtains free parking space information. The parking space position obtained through analysis and the parking space position obtained by the detection model are sent to the parking space fusion module for processing to obtain the fusion detection parking space (i.e., the final result of the above-mentioned parking space detection). Finally, the fusion detected parking space is input into the parking space tracking module for multi-frame stabilization to obtain the final parking space detection result.
下面对各模块进行详细描述。Each module is described in detail below.
1、雷达预处理模块1. Radar preprocessing module
4个角毫米波雷达分别与车身坐标系(车身坐标系以车辆后轴中心为原点,前向为y轴,右向为x轴,上边为z轴)进行标定,通过标定参数转换到车身坐标系,得到周围障碍物信息。针对单帧或多帧叠加的点云数据,通过栅格化处理,统计落入每个栅格的数据点的个数,生成栅格密度图。The four angular millimeter-wave radars are calibrated with the body coordinate system (the body coordinate system has the center of the rear axle of the vehicle as the origin, the forward direction is the y-axis, the right direction is the x-axis, and the upper direction is the z-axis), and is converted to the body coordinates through the calibration parameters system to obtain surrounding obstacle information. For the point cloud data of a single frame or multiple frames superimposed, through rasterization processing, the number of data points falling into each raster is counted, and a raster density map is generated.
2、目标检测模块2. Target detection module
基于栅格密度图,利用深度学习网络进行目标检测。Based on the raster density map, deep learning network is used for target detection.
示例性的,可以使用yolov3网络模型进行目标检测。yolov3网络是一种基于anchor的目标检测网络。For example, the yolov3 network model can be used for target detection. The yolov3 network is an anchor-based target detection network.
示例性的,传统的yolov3网络模型通常在图像坐标系下使用,检测的目标均为正 交矩形框。但是在车身坐标系下,车辆目标框和车位目标框可能并非正交框。因此,需要对yolov3网络进行改进,以适应旋转目标框的检测。For example, the traditional yolov3 network model is usually used in the image coordinate system, and the detected targets are all positive Cross rectangular frame. However, in the vehicle body coordinate system, the vehicle target frame and the parking space target frame may not be orthogonal frames. Therefore, the yolov3 network needs to be improved to adapt to the detection of rotating target frames.
示例性的,传统的yolov3网络模型,回归目标框的位置时,一般回归目标框的中心点(x,y),以及目标框的宽和高(w,h)(也可以称为长和宽)。该实施例中改进后的yolov3网络模型除了正交框的参数之外,还需要获取旋转角度信息。For example, when the traditional yolov3 network model returns the position of the target frame, it generally returns the center point (x, y) of the target frame, as well as the width and height (w, h) of the target frame (which can also be called length and width). ). In this embodiment, the improved yolov3 network model also needs to obtain rotation angle information in addition to the parameters of the orthogonal frame.
示例性的,旋转角度的检测可以通过方向分类和角度分类两个环节完成。方向分类可以包括将车辆旋转角划分为0到180度和-180度到0度,用二分类分支预测方向,使用二分类交叉熵loss进行监督。角度分类指的是以k度为分辨率,可以分为180/k类。For example, the detection of rotation angle can be completed through two steps: direction classification and angle classification. Direction classification can include dividing the vehicle rotation angle into 0 to 180 degrees and -180 degrees to 0 degrees, using a binary branch to predict the direction, and using a binary cross-entropy loss for supervision. Angle classification refers to k degrees as the resolution, which can be divided into 180/k categories.
使用分类loss如交叉熵等进行监督,基于概率最大的类别求出车辆/车位的旋转角度。如方向预测为正,角度预测第i类概率最大,则旋转角度为180/k*i。Use classification loss such as cross entropy for supervision, and calculate the rotation angle of the vehicle/parking space based on the category with the highest probability. If the direction prediction is positive and the angle prediction probability of type i is the highest, then the rotation angle is 180/k*i.
其中,检测模型效果可以如图4所示。检测目标的种类包含车辆、车位和通用障碍物。受限于雷达成像质量,有时候点云特征并不明显,可能会影响车位的检测。因此,可以利用车辆目标进行车位目标的分析,以做补充。Among them, the detection model effect can be shown in Figure 4. The types of detection targets include vehicles, parking spaces and general obstacles. Limited by the quality of radar imaging, sometimes point cloud features are not obvious, which may affect the detection of parking spaces. Therefore, vehicle targets can be used to perform analysis on parking space targets to supplement the analysis.
3、车位分析模块3. Parking space analysis module
车位分析模块可依据车辆检测结果,推测空闲的停车位。车位分析模块可包含邻近目标匹配子模块、邻近角点获取子模块、候选区域生成子模块、候选区域选取子模块,其示意图可以如图5所示。The parking space analysis module can estimate available parking spaces based on vehicle detection results. The parking space analysis module may include a neighboring target matching submodule, a neighboring corner point acquisition submodule, a candidate area generation submodule, and a candidate area selection submodule, and its schematic diagram can be shown in Figure 5.
邻近目标匹配子模块:进行邻近车辆目标的匹配。对于每个车辆目标,寻找与其状态相似(航向角偏差小于一定阈值,即旋转角度的差值小于一定阈值)的候选车辆目标,再从中选取中心距离最近的车辆目标,形成邻近目标匹配对,如图6中的A和B、B和C等。Neighboring target matching submodule: Matches neighboring vehicle targets. For each vehicle target, look for candidate vehicle targets that are similar to its status (the heading angle deviation is less than a certain threshold, that is, the difference in rotation angle is less than a certain threshold), and then select the vehicle target with the closest center distance to form a matching pair of adjacent targets, such as A and B, B and C, etc. in Figure 6.
邻近角点获取子模块:对邻近目标匹配对,寻找其相邻的两条边,选取相应的角点,如图6中A和B的实心角点,B和C的空心角点。Adjacent corner point acquisition sub-module: Match pairs of adjacent targets, find their two adjacent edges, and select the corresponding corner points, such as the solid corner points of A and B and the hollow corner points of B and C in Figure 6.
候选区域生成子模块:对邻近目标匹配对,以邻近边和角点为界,生成矩形框。这样,每个车辆目标都会产生一个候选车位区域,如图7所示。Candidate area generation sub-module: Match pairs of adjacent targets, and generate rectangular boxes with adjacent edges and corners as boundaries. In this way, each vehicle target will generate a candidate parking area, as shown in Figure 7.
候选区域选取子模块:每个邻近目标匹配对都会产生两个候选区域。可以对候选区域进行评估,如选取面积最大的候选区域。随后,再对候选区域的长、宽和/或面积进行一定的限制(即上述预设尺寸要求),去除过大或者过小的候选区域。 Candidate region selection submodule: Each neighboring target matching pair will generate two candidate regions. Candidate areas can be evaluated, such as selecting the candidate area with the largest area. Subsequently, certain restrictions are placed on the length, width and/or area of the candidate areas (ie, the above-mentioned preset size requirements), and candidate areas that are too large or too small are removed.
例如,如图7所示,A和B产生的候选区域的宽和面积较小,应该删除。For example, as shown in Figure 7, the candidate regions generated by A and B have smaller width and area and should be deleted.
4、车位融合模块4. Parking space integration module
车位融合模块是对检测模型得到的车位(即上述车位检测结果)和分析得到的车位(即上述车位分析结果)进行合并处理,排除异常车位。车位融合模块可以包括车位目标合并子模块和障碍物排除子模块,其示意图可以如图8所示。The parking space fusion module merges the parking spaces obtained by the detection model (i.e., the above-mentioned parking space detection results) and the parking spaces obtained by analysis (i.e., the above-mentioned parking space analysis results) to eliminate abnormal parking spaces. The parking space fusion module may include a parking space target merging sub-module and an obstacle elimination sub-module, the schematic diagram of which can be shown in Figure 8.
车位目标合并子模块:对检测模型得到的车位目标(可以称为“检测车位”)和分析得到的车位目标(可以称为“分析车位”)进行合并。Parking space target merging sub-module: Merges the parking space target obtained by the detection model (which can be called "detected parking space") and the parking space target obtained by analysis (which can be called "analyzed parking space").
示例性的,可以计算检测车位和分析车位的IOU(交并比,A和B为车位目标位置),若IOU大于一定阈值,则说明检测车位和分析车位两者匹配,选择检测车位和分析车位中面积最大的车位,添加置信度标签1(即上述第一置信度标签)。For example, the IOU (intersection over union ratio, A and B are the parking space target positions). If the IOU is greater than a certain threshold, it means that the detected parking space and the analyzed parking space match. Select the parking space with the largest area among the detected parking space and the analyzed parking space, and add the confidence label 1 (that is, the first confidence level mentioned above Label).
对未匹配有检测车位的分析车位,添加置信度标签2(即上述第二置信度标签)。对未匹配有分析车位的检测车位,添加置信度标签3(即上述第三置信度标签)。For the analyzed parking spaces that do not match the detected parking spaces, add confidence label 2 (that is, the above-mentioned second confidence label). For the detected parking spaces that do not match the analyzed parking spaces, add confidence label 3 (that is, the third confidence label mentioned above).
障碍物排除子模块:考虑到空闲车位中可能会存在三角锥、柱子等障碍物,因此,可以依据检测出的障碍物信息对候选车位区域进行微调。Obstacle elimination sub-module: Considering that there may be obstacles such as triangular cones and pillars in free parking spaces, the candidate parking space area can be fine-tuned based on the detected obstacle information.
示例性的,可以依据候选车位区域的位置信息和障碍物的位置信息,选择待调整关键边,对关键边进行平移,排除障碍物区域,如图9所示,车位关键边界调整到障碍物下方。最后,再对调整后的候选车位区域,进行尺寸要求判断,删除不合理的候选车位区域,得到车位检测的最终结果。For example, based on the location information of the candidate parking area and the location information of the obstacle, the key edge to be adjusted can be selected, the key edge can be translated, and the obstacle area is excluded. As shown in Figure 9, the key boundary of the parking space is adjusted to below the obstacle. . Finally, the size requirements of the adjusted candidate parking space areas are judged, unreasonable candidate parking space areas are deleted, and the final result of the parking space detection is obtained.
5、车位跟踪模块5. Parking space tracking module
车位跟踪模块可以对车位检测结果进行多帧稳定,减少单帧检测结果的偶然性。The parking space tracking module can stabilize the parking space detection results in multiple frames and reduce the chance of single-frame detection results.
以上对本申请实施例提供的车位检测方法进行了描述。下面对本申请实施例提供的车位检测装置进行描述。The parking space detection method provided by the embodiment of the present application has been described above. The parking space detection device provided by the embodiment of the present application is described below.
请参见图10,为本申请实施例提供的一种车位检测装置的结构示意图,如图10所示,该车位检测装置可以包括数据预处理单元1010、目标检测单元1020、分析单元1030和融合单元1040。Please refer to Figure 10, which is a schematic structural diagram of a parking space detection device provided by an embodiment of the present application. As shown in Figure 10, the parking space detection device may include a data preprocessing unit 1010, a target detection unit 1020, an analysis unit 1030 and a fusion unit. 1040.
数据预处理单元1010,用于利用车载毫米波雷达获取车身四周的点云数据,并对所述点云数据进行栅格化处理,得到栅格密度图。 The data preprocessing unit 1010 is used to obtain point cloud data around the vehicle body using a vehicle-mounted millimeter wave radar, and rasterize the point cloud data to obtain a raster density map.
目标检测单元1020,用于依据所述栅格密度图,利用深度学习算法进行目标检测,得到车位检测结果和车辆检测结果。The target detection unit 1020 is configured to use a deep learning algorithm to perform target detection based on the grid density map, and obtain parking space detection results and vehicle detection results.
分析单元1030,用于依据所述车辆检测结果,对相邻车辆之间的区域尺寸进行分析,得到车位分析结果。The analysis unit 1030 is configured to analyze the size of the area between adjacent vehicles based on the vehicle detection results to obtain parking space analysis results.
融合单元1040,用于对所述车位检测结果和所述车位分析结果进行融合,得到车位检测最终结果。The fusion unit 1040 is used to fuse the parking space detection results and the parking space analysis results to obtain the final parking space detection result.
在一些实施例中,所述车辆检测结果包括车辆目标框的位置信息、尺寸信息以及旋转角度信息;In some embodiments, the vehicle detection results include position information, size information and rotation angle information of the vehicle target frame;
所述分析单元1030依据所述车辆检测结果,对相邻车辆之间的区域尺寸进行分析,得到车位分析结果时,进一步用于:The analysis unit 1030 analyzes the size of the area between adjacent vehicles based on the vehicle detection results. When obtaining the parking space analysis results, it is further used to:
对于旋转角度匹配,且中心距离最近的两个车辆目标框,依据该两个车辆目标框的相邻边之间的区域的尺寸,得到车位分析结果。For the two vehicle target frames with matching rotation angles and the closest center distance, the parking space analysis result is obtained based on the size of the area between adjacent sides of the two vehicle target frames.
在一些实施例中,所述分析单元1030依据该两个车辆目标框的相邻边之间的区域的尺寸,得到车位分析结果时,进一步用于:In some embodiments, when obtaining the parking space analysis result based on the size of the area between adjacent sides of the two vehicle target frames, the analysis unit 1030 is further used to:
对于该两个车辆目标框中的任一车辆目标框,生成以该车辆目标框的与另一车辆目标框相邻的边为边,且与该另一车辆目标框不重叠的最大矩形框,并以该最大矩形框作为候选车位分析框;For any one of the two vehicle target frames, generate the largest rectangular frame with the side of the vehicle target frame adjacent to the other vehicle target frame as an edge and not overlapping with the other vehicle target frame, And use the largest rectangular frame as the candidate parking space analysis frame;
在该两个车辆目标框对应的候选车位分析框中的面积较大者满足预设尺寸要求的情况下,将该两个车辆目标框对应的候选车位分析框中的面积较大者确定为车位分析框。When the larger area of the candidate parking space analysis frames corresponding to the two vehicle target frames meets the preset size requirements, the larger area of the candidate parking space analysis frames corresponding to the two vehicle target frames is determined as the parking space. Analysis box.
在一些实施例中,所述车位检测结果可以包括至少一个车位检测框,所述车位分析结果可以包括至少一个车位分析框,所述融合单元1040对所述车位检测结果和所述车位分析结果进行融合,得到车位检测最终结果时,进一步用于:In some embodiments, the parking space detection result may include at least one parking space detection frame, and the parking space analysis result may include at least one parking space analysis frame, and the fusion unit 1040 performs on the parking space detection result and the parking space analysis result. After fusion, when the final result of parking space detection is obtained, it is further used for:
对于任一车位分析框,分别确定各车位检测框与该车位分析框的交并比;For any parking space analysis frame, determine the intersection ratio of each parking space detection frame and the parking space analysis frame;
在存在与该车位分析框的交并比大于预设阈值的目标车位检测框的情况下,将该车位分析框与该目标车位检测框中面积较大者确定为候选车位区域。When there is a target parking space detection frame whose intersection-to-union ratio with the parking space analysis frame is greater than a preset threshold, the larger area of the parking space analysis frame and the target parking space detection frame is determined as the candidate parking space area.
在一些实施例中,所述融合单元1040,还用于在存在与该车位分析框的交并比大于预设阈值的目标车位检测框的情况下,为该车位分析框与该目标车位检测框中面积较大者设置第一置信度标签; In some embodiments, the fusion unit 1040 is also configured to combine the parking space analysis frame and the target parking space detection frame when there is a target parking space detection frame whose intersection-to-union ratio with the parking space analysis frame is greater than a preset threshold. The one with the larger area is set as the first confidence label;
所述融合单元1040,还用于:The fusion unit 1040 is also used to:
在不存在与该车位分析框的交并比大于预设阈值的目标车位检测框的情况下,将该车位分析框确定为候选车位区域,并为该候选车位区域设置第二置信度标签;When there is no target parking space detection frame whose intersection-to-union ratio with the parking space analysis frame is greater than the preset threshold, determine the parking space analysis frame as a candidate parking space area, and set a second confidence label for the candidate parking space area;
对于任一车位检测框,在不存在与该车位检测框的交并比大于预设阈值的目标车位分析框的情况下,将该车位检测框确定为候选车位区域,并为该候选车位区域设置第三置信度标签;For any parking space detection frame, if there is no target parking space analysis frame whose intersection-to-union ratio with the parking space detection frame is greater than the preset threshold, the parking space detection frame is determined as a candidate parking space area, and the setting for the candidate parking space area is third confidence label;
其中,所述第一置信度标签、所述第二置信度标签以及所述第三置信度标签对应的置信度依次降低。Wherein, the confidences corresponding to the first confidence label, the second confidence label and the third confidence label decrease in sequence.
在一些实施例中,所述融合单元1040,还用于:对于任一候选车位区域,在该候选车位区域中存在障碍物检测结果的情况下,依据障碍物的检测位置信息,确定该候选车位区域的待调整关键边;对该候选车位区域的待调整关键边进行平移,得到不覆盖该障碍物的矩形框;在该矩形框满足预设尺寸要求的情况下,将该候选车位区域更新为该矩形框区域;在该矩形框不满足预设尺寸要求的情况下,删除该候选车位区域。In some embodiments, the fusion unit 1040 is also configured to: for any candidate parking space area, if there is an obstacle detection result in the candidate parking space area, determine the candidate parking space based on the detection position information of the obstacle. The key edges to be adjusted in the area; the key edges to be adjusted in the candidate parking space area are translated to obtain a rectangular frame that does not cover the obstacle; when the rectangular frame meets the preset size requirements, the candidate parking space area is updated to The rectangular frame area; if the rectangular frame does not meet the preset size requirements, delete the candidate parking space area.
本申请实施例提供一种电子设备,包括处理器和存储器,其中,存储器存储有能够被所述处理器执行的机器可执行指令,处理器用于执行机器可执行指令,以实现上文描述的车位检测方法。An embodiment of the present application provides an electronic device, including a processor and a memory, wherein the memory stores machine-executable instructions that can be executed by the processor, and the processor is used to execute the machine-executable instructions to implement the parking space described above. Detection method.
请参见图11,为本申请实施例提供的一种电子设备的硬件结构示意图。该电子设备可包括处理器1101、存储有机器可执行指令的存储器1102。处理器1101与存储器1102可经由系统总线1103通信。并且,通过读取并执行存储器1102中与车位检测逻辑对应的机器可执行指令,处理器1101可执行上文描述的车位检测方法。Please refer to Figure 11, which is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application. The electronic device may include a processor 1101 and a memory 1102 storing machine-executable instructions. Processor 1101 and memory 1102 may communicate via system bus 1103 . Furthermore, by reading and executing machine-executable instructions corresponding to the parking space detection logic in the memory 1102, the processor 1101 can execute the parking space detection method described above.
本文中提到的存储器1102可以是任何电子、磁性、光学或其它物理存储装置,可以包含或存储信息,如可执行指令、数据,等等。例如,机器可读存储介质可以是:RAM(Radom Access Memory,随机存取存储器)、易失存储器、非易失性存储器、闪存、存储驱动器(如硬盘驱动器)、固态硬盘、任何类型的存储盘(如光盘、DVD等),或者类似的存储介质,或者它们的组合。Memory 1102 as referred to herein may be any electronic, magnetic, optical, or other physical storage device that may contain or store information, such as executable instructions, data, and the like. For example, machine-readable storage media can be: RAM (Radom Access Memory, random access memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard drive), solid state drive, any type of storage disk (such as optical discs, DVDs, etc.), or similar storage media, or a combination thereof.
本申请实施例还提供了一种机器可读存储介质,如图11中的存储器1102,该机器可读存储介质内存储有机器可执行指令,所述机器可执行指令被处理器执行时使所述处理器实现上文描述的车位检测方法。例如,所述机器可读存储介质可以是ROM、RAM、CD-ROM、磁带、软盘和光数据存储设备等。 Embodiments of the present application also provide a machine-readable storage medium, such as the memory 1102 in Figure 11. The machine-readable storage medium stores machine-executable instructions. When the machine-executable instructions are executed by the processor, the The processor implements the parking space detection method described above. For example, the machine-readable storage medium may be ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or operations are mutually exclusive. any such actual relationship or sequence exists between them. Furthermore, the terms "comprises," "comprises," or any other variations thereof are intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus that includes a list of elements includes not only those elements, but also those not expressly listed other elements, or elements inherent to the process, method, article or equipment. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article, or apparatus that includes the stated element.
以上所述仅为本申请的一些实施例而已,并不用以限制本申请。凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。 The above are only some embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application shall be included in the scope of protection of this application.

Claims (14)

  1. 一种车位检测方法,包括:A parking space detection method includes:
    利用车载毫米波雷达获取车身四周的点云数据,并对所述点云数据进行栅格化处理,得到栅格密度图;Use vehicle-mounted millimeter wave radar to obtain point cloud data around the vehicle body, and rasterize the point cloud data to obtain a raster density map;
    依据所述栅格密度图,利用深度学习算法进行目标检测,得到车位检测结果和车辆检测结果;Based on the grid density map, a deep learning algorithm is used for target detection to obtain parking space detection results and vehicle detection results;
    依据所述车辆检测结果,对相邻车辆之间的区域尺寸进行分析,得到车位分析结果;Based on the vehicle detection results, analyze the size of the area between adjacent vehicles to obtain parking space analysis results;
    对所述车位检测结果和所述车位分析结果进行融合,得到车位检测最终结果。The parking space detection results and the parking space analysis results are fused to obtain the final parking space detection result.
  2. 根据权利要求1所述的方法,其中,所述车辆检测结果包括车辆目标框的位置信息、尺寸信息以及旋转角度信息;The method according to claim 1, wherein the vehicle detection result includes position information, size information and rotation angle information of the vehicle target frame;
    所述依据所述车辆检测结果,对相邻车辆之间的区域尺寸进行分析,得到车位分析结果,包括:Based on the vehicle detection results, the area size between adjacent vehicles is analyzed to obtain parking space analysis results, including:
    对于旋转角度匹配,且中心距离最近的两个车辆目标框,依据该两个车辆目标框的相邻边之间的区域的尺寸,得到车位分析结果。For the two vehicle target frames with matching rotation angles and the closest center distance, the parking space analysis result is obtained based on the size of the area between adjacent sides of the two vehicle target frames.
  3. 根据权利要求2所述的方法,其中,所述依据该两个车辆目标框的相邻边之间的区域的尺寸,得到车位分析结果,包括:The method according to claim 2, wherein obtaining the parking space analysis result based on the size of the area between adjacent sides of the two vehicle target frames includes:
    对于该两个车辆目标框中的任一车辆目标框,生成以该车辆目标框的与另一车辆目标框相邻的边为边,且与该另一车辆目标框不重叠的最大矩形框,并以该最大矩形框作为候选车位分析框;For any one of the two vehicle target frames, generate the largest rectangular frame with the side of the vehicle target frame adjacent to the other vehicle target frame as an edge and not overlapping with the other vehicle target frame, And use the largest rectangular frame as the candidate parking space analysis frame;
    在该两个车辆目标框对应的候选车位分析框中的面积较大者满足预设尺寸要求的情况下,将该两个车辆目标框对应的候选车位分析框中的面积较大者确定为车位分析框。When the larger area of the candidate parking space analysis frames corresponding to the two vehicle target frames meets the preset size requirements, the larger area of the candidate parking space analysis frames corresponding to the two vehicle target frames is determined as the parking space. Analysis box.
  4. 根据权利要求1所述的方法,其中,所述车位检测结果包括至少一个车位检测框,所述车位分析结果包括至少一个车位分析框,The method according to claim 1, wherein the parking space detection result includes at least one parking space detection frame, and the parking space analysis result includes at least one parking space analysis frame,
    所述对所述车位检测结果和所述车位分析结果进行融合,得到车位检测最终结果,包括:The parking space detection results and the parking space analysis results are fused to obtain the final parking space detection results, including:
    对于任一车位分析框,分别确定各车位检测框与该车位分析框的交并比;For any parking space analysis frame, determine the intersection ratio of each parking space detection frame and the parking space analysis frame;
    在存在与该车位分析框的交并比大于预设阈值的目标车位检测框的情况下,将该车位分析框与该目标车位检测框中面积较大者确定为候选车位区域。When there is a target parking space detection frame whose intersection-to-union ratio with the parking space analysis frame is greater than a preset threshold, the larger area of the parking space analysis frame and the target parking space detection frame is determined as the candidate parking space area.
  5. 根据权利要求4所述的方法,所述方法还包括:The method of claim 4, further comprising:
    在存在与该车位分析框的交并比大于预设阈值的目标车位检测框的情况下,为该车位分析框与该目标车位检测框中面积较大者设置第一置信度标签; In the case where there is a target parking space detection frame whose intersection-to-union ratio with the parking space analysis frame is greater than the preset threshold, set a first confidence label for the larger area of the parking space analysis frame and the target parking space detection frame;
    在不存在与该车位分析框的交并比大于预设阈值的目标车位检测框的情况下,将该车位分析框确定为候选车位区域,并为该候选车位区域设置第二置信度标签;When there is no target parking space detection frame whose intersection-to-union ratio with the parking space analysis frame is greater than the preset threshold, determine the parking space analysis frame as a candidate parking space area, and set a second confidence label for the candidate parking space area;
    对于任一车位检测框,在不存在与该车位检测框的交并比大于预设阈值的目标车位分析框的情况下,将该车位检测框确定为候选车位区域,并为该候选车位区域设置第三置信度标签;For any parking space detection frame, if there is no target parking space analysis frame whose intersection-to-union ratio with the parking space detection frame is greater than the preset threshold, the parking space detection frame is determined as a candidate parking space area, and the setting for the candidate parking space area is third confidence label;
    其中,所述第一置信度标签、所述第二置信度标签以及所述第三置信度标签对应的置信度依次降低。Wherein, the confidences corresponding to the first confidence label, the second confidence label and the third confidence label decrease in sequence.
  6. 根据权利要求4或5所述的方法,所述方法还包括:The method according to claim 4 or 5, further comprising:
    对于任一候选车位区域,在该候选车位区域中存在障碍物检测结果的情况下,依据障碍物的检测位置信息,确定该候选车位区域的待调整关键边;For any candidate parking space area, if there is an obstacle detection result in the candidate parking space area, determine the key edge to be adjusted for the candidate parking space area based on the detection position information of the obstacle;
    对该候选车位区域的待调整关键边进行平移,得到不覆盖该障碍物的矩形框;Translate the key edges to be adjusted in the candidate parking space area to obtain a rectangular frame that does not cover the obstacle;
    在该矩形框满足预设尺寸要求的情况下,将该候选车位区域更新为该矩形框区域;When the rectangular frame meets the preset size requirements, update the candidate parking space area to the rectangular frame area;
    在该矩形框不满足预设尺寸要求的情况下,删除该候选车位区域。If the rectangular frame does not meet the preset size requirements, the candidate parking space area is deleted.
  7. 一种车位检测装置,包括:A parking space detection device includes:
    数据预处理单元,用于利用车载毫米波雷达获取车身四周的点云数据,并对所述点云数据进行栅格化处理,得到栅格密度图;A data preprocessing unit is used to obtain point cloud data around the vehicle body using a vehicle-mounted millimeter wave radar, and rasterize the point cloud data to obtain a raster density map;
    目标检测单元,用于依据所述栅格密度图,利用深度学习算法进行目标检测,得到车位检测结果和车辆检测结果;A target detection unit, used to perform target detection using a deep learning algorithm based on the grid density map, and obtain parking space detection results and vehicle detection results;
    分析单元,用于依据所述车辆检测结果,对相邻车辆之间的区域尺寸进行分析,得到车位分析结果;An analysis unit is used to analyze the size of the area between adjacent vehicles based on the vehicle detection results to obtain parking space analysis results;
    融合单元,用于对所述车位检测结果和所述车位分析结果进行融合,得到车位检测最终结果。A fusion unit is used to fuse the parking space detection results and the parking space analysis results to obtain the final parking space detection result.
  8. 根据权利要求7所述的装置,其中,所述车辆检测结果包括车辆目标框的位置信息、尺寸信息以及旋转角度信息;The device according to claim 7, wherein the vehicle detection result includes position information, size information and rotation angle information of the vehicle target frame;
    所述分析单元进一步用于:The analysis unit is further used for:
    对于旋转角度匹配,且中心距离最近的两个车辆目标框,依据该两个车辆目标框的相邻边之间的区域的尺寸,得到车位分析结果。For the two vehicle target frames with matching rotation angles and the closest center distance, the parking space analysis result is obtained based on the size of the area between adjacent sides of the two vehicle target frames.
  9. 根据权利要求8所述的装置,其中,所述分析单元依据该两个车辆目标框的相邻边之间的区域的尺寸,得到车位分析结果时,进一步用于:The device according to claim 8, wherein when the analysis unit obtains the parking space analysis result based on the size of the area between adjacent sides of the two vehicle target frames, it is further used to:
    对于该两个车辆目标框中的任一车辆目标框,生成以该车辆目标框的与另一车辆目标框相邻的边为边,且与该另一车辆目标框不重叠的最大矩形框,并以该最大矩形框作 为候选车位分析框;For any one of the two vehicle target frames, generate the largest rectangular frame with the side of the vehicle target frame adjacent to the other vehicle target frame as an edge and not overlapping with the other vehicle target frame, And use the maximum rectangular frame as Analysis box for candidate parking spaces;
    在该两个车辆目标框对应的候选车位分析框中的面积较大者满足预设尺寸要求的情况下,将该两个车辆目标框对应的候选车位分析框中的面积较大者确定为车位分析框。When the larger area of the candidate parking space analysis frames corresponding to the two vehicle target frames meets the preset size requirements, the larger area of the candidate parking space analysis frames corresponding to the two vehicle target frames is determined as the parking space. Analysis box.
  10. 根据权利要求7所述的装置,其中,所述车位检测结果包括至少一个车位检测框,所述车位分析结果包括至少一个车位分析框,The device according to claim 7, wherein the parking space detection result includes at least one parking space detection frame, and the parking space analysis result includes at least one parking space analysis frame,
    所述融合单元进一步用于:The fusion unit is further used for:
    对于任一车位分析框,分别确定各车位检测框与该车位分析框的交并比;For any parking space analysis frame, determine the intersection ratio of each parking space detection frame and the parking space analysis frame;
    在存在与该车位分析框的交并比大于预设阈值的目标车位检测框的情况下,将该车位分析框与该目标车位检测框中面积较大者确定为候选车位区域。When there is a target parking space detection frame whose intersection-to-union ratio with the parking space analysis frame is greater than a preset threshold, the larger area of the parking space analysis frame and the target parking space detection frame is determined as the candidate parking space area.
  11. 根据权利要求10所述的装置,其中,所述融合单元,还用于:The device according to claim 10, wherein the fusion unit is also used for:
    在存在与该车位分析框的交并比大于预设阈值的目标车位检测框的情况下,为该车位分析框与该目标车位检测框中面积较大者设置第一置信度标签;In the case where there is a target parking space detection frame whose intersection-to-union ratio with the parking space analysis frame is greater than the preset threshold, set a first confidence label for the larger area of the parking space analysis frame and the target parking space detection frame;
    在不存在与该车位分析框的交并比大于预设阈值的目标车位检测框的情况下,将该车位分析框确定为候选车位区域,并为该候选车位区域设置第二置信度标签;When there is no target parking space detection frame whose intersection-to-union ratio with the parking space analysis frame is greater than the preset threshold, determine the parking space analysis frame as a candidate parking space area, and set a second confidence label for the candidate parking space area;
    对于任一车位检测框,在不存在与该车位检测框的交并比大于预设阈值的目标车位分析框的情况下,将该车位检测框确定为候选车位区域,并为该候选车位区域设置第三置信度标签;For any parking space detection frame, if there is no target parking space analysis frame whose intersection-to-union ratio with the parking space detection frame is greater than the preset threshold, the parking space detection frame is determined as a candidate parking space area, and the setting for the candidate parking space area is third confidence label;
    其中,所述第一置信度标签、所述第二置信度标签以及所述第三置信度标签对应的置信度依次降低。Wherein, the confidences corresponding to the first confidence label, the second confidence label and the third confidence label decrease in sequence.
  12. 根据权利要求10或11所述的装置,其中,所述融合单元,还用于:The device according to claim 10 or 11, wherein the fusion unit is also used for:
    对于任一候选车位区域,在该候选车位区域中存在障碍物检测结果的情况下,依据障碍物的检测位置信息,确定该候选车位区域的待调整关键边;For any candidate parking space area, if there is an obstacle detection result in the candidate parking space area, determine the key edge to be adjusted for the candidate parking space area based on the detection position information of the obstacle;
    对该候选车位区域的待调整关键边进行平移,得到不覆盖该障碍物的矩形框;Translate the key edges to be adjusted in the candidate parking space area to obtain a rectangular frame that does not cover the obstacle;
    在该矩形框满足预设尺寸要求的情况下,将该候选车位区域更新为该矩形框区域;When the rectangular frame meets the preset size requirements, update the candidate parking space area to the rectangular frame area;
    在该矩形框不满足预设尺寸要求的情况下,删除该候选车位区域。If the rectangular frame does not meet the preset size requirements, the candidate parking space area is deleted.
  13. 一种电子设备,包括处理器和存储器,所述存储器存储有能够被所述处理器执行的机器可执行指令,所述处理器用于执行所述机器可执行指令,以实现如权利要求1-6任一项所述的方法。An electronic device includes a processor and a memory, the memory stores machine-executable instructions that can be executed by the processor, and the processor is used to execute the machine-executable instructions to implement claims 1-6 any of the methods described.
  14. 一种机器可读存储介质,所述机器可读存储介质内存储有机器可执行指令,其中,所述机器可执行指令被处理器执行时使所述处理器实现如权利要求1-6任一项所述的方法。 A machine-readable storage medium in which machine-executable instructions are stored, wherein when executed by a processor, the machine-executable instructions cause the processor to implement any one of claims 1-6 method described in the item.
PCT/CN2023/090064 2022-04-28 2023-04-23 Parking space detection method and apparatus, and electronic device and machine-readable storage medium WO2023207845A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210470203.1A CN114882701B (en) 2022-04-28 2022-04-28 Parking space detection method and device, electronic equipment and machine readable storage medium
CN202210470203.1 2022-04-28

Publications (1)

Publication Number Publication Date
WO2023207845A1 true WO2023207845A1 (en) 2023-11-02

Family

ID=82673155

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/090064 WO2023207845A1 (en) 2022-04-28 2023-04-23 Parking space detection method and apparatus, and electronic device and machine-readable storage medium

Country Status (2)

Country Link
CN (1) CN114882701B (en)
WO (1) WO2023207845A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117590371A (en) * 2024-01-18 2024-02-23 上海几何伙伴智能驾驶有限公司 Method for realizing global parking space state detection based on 4D millimeter wave imaging radar

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114882701B (en) * 2022-04-28 2023-01-24 上海高德威智能交通系统有限公司 Parking space detection method and device, electronic equipment and machine readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020057081A (en) * 2018-09-28 2020-04-09 パナソニックIpマネジメント株式会社 Vacant parking space finding device and vacant parking space finding method
CN111325858A (en) * 2020-03-06 2020-06-23 赛特斯信息科技股份有限公司 Method for realizing automatic charging management aiming at roadside temporary parking space
CN111367252A (en) * 2018-12-26 2020-07-03 北京图森智途科技有限公司 Parking control method, equipment and system
CN112180373A (en) * 2020-09-18 2021-01-05 纵目科技(上海)股份有限公司 Multi-sensor fusion intelligent parking system and method
CN112417926A (en) * 2019-08-22 2021-02-26 广州汽车集团股份有限公司 Parking space identification method and device, computer equipment and readable storage medium
CN113076824A (en) * 2021-03-19 2021-07-06 上海欧菲智能车联科技有限公司 Parking space acquisition method and device, vehicle-mounted terminal and storage medium
CN113920778A (en) * 2021-12-15 2022-01-11 深圳佑驾创新科技有限公司 Image acquisition method and device
CN114267180A (en) * 2022-03-03 2022-04-01 科大天工智能装备技术(天津)有限公司 Parking management method and system based on computer vision
CN114882701A (en) * 2022-04-28 2022-08-09 上海高德威智能交通系统有限公司 Parking space detection method and device, electronic equipment and machine readable storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3366524B1 (en) * 2015-10-22 2020-01-08 Nissan Motor Co., Ltd. Parking space detection method and device
JP6700216B2 (en) * 2017-05-09 2020-05-27 株式会社デンソー Parking space detector
CN110766979A (en) * 2019-11-13 2020-02-07 奥特酷智能科技(南京)有限公司 Parking space detection method for automatic driving vehicle
CN112633152B (en) * 2020-12-22 2021-11-26 深圳佑驾创新科技有限公司 Parking space detection method and device, computer equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020057081A (en) * 2018-09-28 2020-04-09 パナソニックIpマネジメント株式会社 Vacant parking space finding device and vacant parking space finding method
CN111367252A (en) * 2018-12-26 2020-07-03 北京图森智途科技有限公司 Parking control method, equipment and system
CN112417926A (en) * 2019-08-22 2021-02-26 广州汽车集团股份有限公司 Parking space identification method and device, computer equipment and readable storage medium
CN111325858A (en) * 2020-03-06 2020-06-23 赛特斯信息科技股份有限公司 Method for realizing automatic charging management aiming at roadside temporary parking space
CN112180373A (en) * 2020-09-18 2021-01-05 纵目科技(上海)股份有限公司 Multi-sensor fusion intelligent parking system and method
CN113076824A (en) * 2021-03-19 2021-07-06 上海欧菲智能车联科技有限公司 Parking space acquisition method and device, vehicle-mounted terminal and storage medium
CN113920778A (en) * 2021-12-15 2022-01-11 深圳佑驾创新科技有限公司 Image acquisition method and device
CN114267180A (en) * 2022-03-03 2022-04-01 科大天工智能装备技术(天津)有限公司 Parking management method and system based on computer vision
CN114882701A (en) * 2022-04-28 2022-08-09 上海高德威智能交通系统有限公司 Parking space detection method and device, electronic equipment and machine readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117590371A (en) * 2024-01-18 2024-02-23 上海几何伙伴智能驾驶有限公司 Method for realizing global parking space state detection based on 4D millimeter wave imaging radar
CN117590371B (en) * 2024-01-18 2024-03-29 上海几何伙伴智能驾驶有限公司 Method for realizing global parking space state detection based on 4D millimeter wave imaging radar

Also Published As

Publication number Publication date
CN114882701A (en) 2022-08-09
CN114882701B (en) 2023-01-24

Similar Documents

Publication Publication Date Title
US10025997B2 (en) Device and method for recognizing obstacle and parking slot to support unmanned autonomous parking function
WO2023207845A1 (en) Parking space detection method and apparatus, and electronic device and machine-readable storage medium
CN106951879B (en) Multi-feature fusion vehicle detection method based on camera and millimeter wave radar
Wang et al. Real-time vehicle detection algorithm based on vision and lidar point cloud fusion
JP3367170B2 (en) Obstacle detection device
US20210350149A1 (en) Lane detection method and apparatus,lane detection device,and movable platform
CN111712731A (en) Target detection method and system and movable platform
WO2022188663A1 (en) Target detection method and apparatus
CN116129376A (en) Road edge detection method and device
CN113192091B (en) Long-distance target sensing method based on laser radar and camera fusion
CN110794406B (en) Multi-source sensor data fusion system and method
CN110674705A (en) Small-sized obstacle detection method and device based on multi-line laser radar
Youjin et al. A robust lane detection method based on vanishing point estimation
CN114118252A (en) Vehicle detection method and detection device based on sensor multivariate information fusion
Ponsa et al. On-board image-based vehicle detection and tracking
CN116109601A (en) Real-time target detection method based on three-dimensional laser radar point cloud
CN107220632B (en) Road surface image segmentation method based on normal characteristic
US20220171975A1 (en) Method for Determining a Semantic Free Space
Fu et al. Camera-based semantic enhanced vehicle segmentation for planar lidar
JP7418476B2 (en) Method and apparatus for determining operable area information
CN113111707A (en) Preceding vehicle detection and distance measurement method based on convolutional neural network
Chang et al. Using spatiotemporal stacks for precise vehicle tracking from roadside 3D LiDAR data
Zhao et al. Omni-Directional Obstacle Detection for Vehicles Based on Depth Camera
CN115327572A (en) Method for detecting obstacle in front of vehicle
Morales Rosales et al. On-road obstacle detection video system for traffic accident prevention

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23795278

Country of ref document: EP

Kind code of ref document: A1

WD Withdrawal of designations after international publication