A parking space corner point fusion method based on vision and ultrasonic radar
Through the parking space corner point fusion method of vision and ultrasonic radar, combined with a variety of fusion strategies, it solves the problem that existing technology cannot detect open line parking spaces, undrawn space parking spaces and line parking space encroachment, and achieves a more accurate parking area. Detection expands the application scenarios of automatic parking.
Patent Information
- Application Number
- CN202210918462.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-01
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-08-01
AI Technical Summary
Existing technology cannot effectively detect empty linear parking spaces, unmarked spatial parking spaces, and linear parking spaces occupied by other vehicles in the parking lot, resulting in the inability to obtain current effective parking space information.
A parking space corner fusion method based on vision and ultrasonic radar is used to obtain line parking space information through cameras and spatial parking space information through ultrasonic radar, combined with geometric relationships and multiple fusion strategies (proximity principle, line parking space corner priority principle, entrance corner parallelism Alignment principle, conditional deletion principle of line parking spaces, priority principle of line parking spaces) to reconstruct the parking area.
It effectively and reasonably covers various situations in which spatial parking spaces encroach on linear parking spaces, avoiding missed detections and expanding the application scenarios of automatic parking.
Smart Images

Figure CN115320604B
Abstract
Description
Technical Field
[0001] The technology of the present invention relates to the field of autonomous driving, and specifically to a parking space corner point fusion method based on vision and ultrasonic radar. Background Art
[0002] As a key technology for automatic parking, the accuracy of the parking space detection algorithm and the accuracy of the parking space corners it perceives directly affect the safety of parking and the user experience of the overall function. At present, the mainstream methods of parking space detection usually include simply detecting the space between obstacles based on ultrasonic radar sensors, or line parking space detection based on vision.
[0003] Both of the above methods have their limited usage scenarios. Ultrasonic parking space detection technology cannot detect empty linear parking spaces in parking lots (such as Figure 5 The upper left image vs1), while the vision-based parking space detection technology cannot detect the parking spaces without lines in the space (such as Figure 5 and Figure 7 The space parking spaces composed of ps3 and pe3), and the situation where the current parking spaces are "occupied" by other vehicles (such as Figure 5 Top right picture, Figure 7 The above situation makes it impossible to obtain the current valid parking spaces in the parking lot. Therefore, a multi-sensor parking space detection method that can detect both spatial parking spaces and linear parking spaces comes into being.
[0004] The difficulty of this technology lies in how to deal with the overlapping areas of spatial parking spaces and linear parking spaces to integrate more reasonable and accurate parking areas. Summary of the invention
[0005] In order to solve the problems existing in the prior art, the present invention proposes a parking space corner point fusion method based on vision and ultrasonic radar, with the purpose of solving the problem that both methods in the prior art have their limited usage scenarios, resulting in the inability of ultrasonic-based parking space detection technology to perceive empty linear parking spaces in the parking lot, the inability of vision-based parking space detection technology to detect unlined spatial parking spaces in the space, and the current linear parking space being "occupied" by other vehicles.
[0006] In order to solve the technical problems, the present invention proposes the following technical solutions:
[0007] A parking space corner point fusion method based on vision and ultrasonic radar is characterized by comprising the following steps:
[0008] Step 1: Use the camera to obtain the linear parking space category information and parking space location information around the vehicle; use the ultrasonic radar to obtain the spatial parking space category information and parking space location information around the vehicle; according to the parking control requirements, set the minimum fused parking space width that can meet the parking requirements;
[0009] The method of using a camera to obtain the line parking space category information and parking space position information around the vehicle is to detect the line parking space on the ground with a camera to obtain the corner point position and parking space category information of the parking space; the method of using an ultrasonic radar to obtain the spatial parking space category information and parking space position information around the vehicle is to detect the distance between obstacles with an ultrasonic radar sensor to obtain the corner point position and parking space type information of the parking space, wherein the spatial parking space category information also includes the real and virtual attribute information of the parking space entrance corner point, which means that the spatial parking space corner point is generated by the boundary of a physical obstacle or generated according to a fixed parking space width;
[0010] Step 2: Determine the binding relationship between the line parking space and the corner point of the spatial parking space based on the geometric relationship between the relative positions of the points and lines;
[0011] The corner points include the entrance corner points ps and pe of the line parking spaces, and the entrance corner points ps and pe of the spatial parking spaces; the binding relationship between the line parking spaces and the corner points of the spatial parking spaces includes the binding relationship between the spatial parking space ps point and a line parking space; the binding relationship between the spatial parking space pe point and a line parking space; the entrance corner points ps and pe of the spatial parking space are bound to the same line parking space; the entrance corner points ps and pe of the spatial parking space are bound to different line parking spaces; the binding relationship is that the ps point and pe point of the line parking space and the ps point and pe point of the spatial parking space have an interlaced and superimposed relationship;
[0012] Step 3: According to the number of line parking spaces bound to the corner points of the spatial parking space entrances, a corresponding corner point fusion strategy is selected; the fusion strategy includes:
[0013] 1) Integration strategy based on the principle of “proximity”;
[0014] 2) Fusion strategy based on the principle of “line parking space corner point priority”;
[0015] 3) Fusion strategy based on the principle of “parallel alignment of entry corners”;
[0016] 4) Fusion strategy based on the principle of “conditional deletion of line parking spaces”;
[0017] 5) Integration strategy based on the principle of “line parking space priority”;
[0018] Step 4: According to the corresponding corner point fusion strategy, the spatial parking space corner points and the linear parking space corner points are reconstructed to obtain an accurate parking area. The parking area is as follows:
[0019] 1) The parking area obtained when only the spatial parking space entrance corner point ps point and the line parking space are bound;
[0020] 2) The parking area obtained when only the spatial parking space entrance corner point pe is bound to the line parking space;
[0021] 3) The parking area obtained when the entrance corner points ps and pe of the spatial parking space are bound to the same linear parking space;
[0022] 4) The parking area obtained when the entrance corner points ps and pe of the spatial parking space are bound to different linear parking spaces.
[0023] Furthermore, the fusion strategy based on the "proximity" principle is: when a certain entrance corner point of a spatial parking space is bound to a linear parking space, only the entrance corner point closest to the two entrance corner points of the linear parking space is fused;
[0024] Furthermore, the fusion strategy based on the principle of "line parking space corner point priority" is that when the entrance corner point of the spatial parking space invading the line parking space is a virtual boundary point, or if the physical entrance boundary corner point of the spatial parking space is different from the start or end attribute of the "nearest" entrance corner point of the bound line parking space, then during the fusion processing, the entrance corner point of the line parking space that is "nearest" to the entrance corner point of the spatial parking space will be given priority as the fusion corner point.
[0025] Furthermore, the fusion strategy based on the principle of "parallel alignment of entrance corner points" means that no matter the entrance corner points of the spatial parking spaces are not flush with the entrance corner points of the linear parking spaces after the invasion due to irregular parking of obstacle vehicles, the entrance corner points of the parking areas after the fusion will always be parallel aligned with the entrance corner points of the linear parking spaces.
[0026] Furthermore, the fusion strategy based on the principle of "conditional deletion of line parking spaces" is that if and only if the physical entrance corner point of the spatial parking space has the same start or end attribute as the "nearest" entrance corner point of the line parking space to which it is bound, and the width of the fused parking space meets the parking requirements, the line parking space will be deleted and the corresponding parking area will be replaced by the fused parking space.
[0027] Furthermore, the fusion strategy based on the "line parking space priority" principle is divided into two situations. The first situation is that during the fusion process, when the starting or ending attribute of the entrance corner point of the spatial parking space of the virtual boundary is the same as the starting or ending attribute of the "nearest" entrance corner point of the line parking space to which it is bound, and the entrance corner point on the other side of the spatial parking space is not bound to the same line parking space as the entrance corner point of the virtual boundary, the spatial parking space is deleted, and the line parking space bound to the entrance corner point of the virtual boundary of the spatial parking space is prioritized as the fused parking area; the second situation is that after the fusion operation is completed, if the fused parking area overlaps with the remaining line parking spaces, the line parking spaces are prioritized as the parking area output, and the fused area and the corresponding spatial parking spaces are deleted.
[0028] Furthermore, in the process 1) of step 4, the parking area obtained when only the spatial parking space entrance corner point ps is bound to the line parking space is as follows:
[0029] 1) Determine whether the spatial parking space type is the same as the linear parking space type. If they are not the same, delete the spatial parking space and use the linear parking space to express the parking area. If they are the same, continue with process 2);
[0030] 2) Determine whether the distance from the spatial parking space ps point to the line parking space ps is less than the distance to the line parking space pe point; if the distance is less than the distance from the spatial parking space ps point to the line parking space pe point, continue with process 3); if the distance is greater than the distance from the spatial parking space ps point to the line parking space pe point, then the line parking space pe point is the ps point of the fused parking space, and the fused parking space pe point is updated by the intersection method through the spatial parking space pe point and the line parking space bound to its ps point, and then proceed to process 7);
[0031] 3) Determine whether the ps point of the spatial parking space is a physical boundary. If so, the ps and pe points of the fused parking space are calculated by the ps and pe points of the spatial parking space and the line parking space bound to its ps point using the intersection method, and continue with process 4); if not, proceed to process 8);
[0032] 4) Determine whether the spatial parking space type is the same as the linear parking space type. If the types are the same, continue with process 5). If the types are different, proceed to process 8);
[0033] 5) Delete the line parking space bound to the spatial parking space PS point;
[0034] 6) Delete the spatial parking spaces and use the merged new parking spaces to express the overlapping areas of parking spaces;
[0035] 7) Determine whether the distance of the new entrance corner point of the fused parking space meets the parking width requirement. If the parking width meets the requirement, return to process 6); if not, proceed to process 8);
[0036] 8) Delete spatial parking spaces and use line parking spaces to express parking areas.
[0037] Furthermore, in the step 4 process 2), the parking area obtained when only the spatial parking space entrance corner point pe is bound to the line parking space is as follows:
[0038] 1) Determine whether the spatial parking space type is the same as the linear parking space type. If they are not the same, delete the spatial parking space and use the linear parking space to express the parking area. If they are the same, continue with process 2);
[0039] 2) Determine whether the distance between the spatial parking space pe point and the line parking space pe point is less than the distance to the line parking space ps point. If yes, continue with process 3). If not, the ps point of the line parking space is the pe point of the fused parking space. The ps point of the fused parking space is updated by the intersection method through the ps point of the spatial parking space and the line parking space bound to its pe point, and then proceed to process 6);
[0040] 3) Determine whether the pe point of the spatial parking space is a physical boundary. If so, the ps and pe points of the fused parking space are calculated by the ps and pe points of the spatial parking space and the line parking space bound to its pe point using the intersection method, and continue with process 4); if not, proceed to process 7);
[0041] 4) Delete the line parking space bound to the spatial parking space pe point and continue with process 5);
[0042] 5) Delete the spatial parking spaces and use the merged new parking spaces to express the overlapping areas of parking spaces;
[0043] 6) Determine whether the distance of the new entrance corner point of the fused parking space meets the parking width requirement. If the parking width meets the requirement, return to process 5); if not, proceed to process 7);
[0044] 7) Delete spatial parking spaces and use line parking spaces to express parking areas.
[0045] Furthermore, in the step 4 process 3), the parking area obtained when the entrance corner points ps and pe of the spatial parking space are bound to the same linear parking space is as follows:
[0046] 1) Determine whether the spatial parking space type is the same as the linear parking space type. If they are not the same, delete the spatial parking space and use the linear parking space to express the parking area. If they are the same, continue with process 2);
[0047] 2) Determine whether the ps point and pe point of the spatial parking space are physical boundary points. If they are both physical boundary points, the ps point of the fused parking space is updated by the intersection method through the ps point of the spatial parking space and the line parking space bound to its ps point, and the pe point of the fused parking space is updated by the pe point of the spatial parking space and the line parking space bound to its pe point; proceed to process 4);
[0048] 2) If the ps point of the spatial parking space bound to the same line parking space is a physical boundary point and the pe point is a virtual boundary point, then the ps point of the fused parking space is updated by the intersection method through the ps point of the spatial parking space and the line parking space bound to its ps point, and the pe point of the fused parking space is the pe point of the line parking space; proceed to process 4);
[0049] 3) If the pe point of the spatial parking space bound to the same linear parking space is a physical boundary point and the ps point is a virtual boundary point, the pe point of the fused parking space is updated by the intersection method through the pe point of the spatial parking space and the linear parking space bound to its pe point, and the ps point of the fused parking space is the ps point of the linear parking space; proceed to process 4);
[0050] 4) Delete the line parking spaces and space parking spaces, and use the merged new parking spaces to express the overlapping areas of parking spaces.
[0051] Furthermore, the parking area obtained by the fusion strategy of binding different line parking spaces according to the entrance corner points ps and pe of the spatial parking spaces in step 4) is specifically as follows:
[0052] 1) Determine whether the spatial parking space type is the same as the linear parking space type. If they are not the same, delete the spatial parking space and use the linear parking space to express the parking area. If they are the same, continue with process 2);
[0053] 2) Determine whether the ps point of the spatial parking space is close to the pe point of the line parking space it is bound to, and whether the pe point is close to the ps point of the line parking space it is bound to. If the ps point of the spatial parking space is close to the pe point of the line parking space it is bound to; the pe point of the spatial parking space is close to the ps point of the line parking space it is bound to, then the ps point of the fusion vehicle positioning is updated to the pe point of the line parking space bound to the ps point of the spatial parking space; the pe point of the fusion vehicle positioning is updated to the ps point of the line parking space bound to the pe point of the spatial parking space; proceed to process 8);
[0054] 3) If the ps point of the spatial parking space is close to the pe point of the line parking space bound to it, but the pe point of the spatial parking space is far from the ps point of the line parking space bound to it, and the pe point of the spatial parking space is not a virtual boundary point, then the ps point of the fused parking space is updated to the pe point of the line parking space bound to it; the pe point of the fused parking space is updated by the intersection method through the pe point of the spatial parking space and the line parking space bound to the pe point; and proceed to process 8);
[0055] 4) If the ps point of the spatial parking space is far from the pe point of the line parking space bound to it, and the ps point of the spatial parking space is not a virtual boundary point; the pe point of the spatial parking space is close to the ps point of the line parking space bound to it, then the ps point of the fused parking space is updated by the intersection method through the ps point of the spatial parking space and the line parking space bound to the ps point; the pe point of the fused parking space is updated to the pe point of the line parking space bound to it; and proceed to process 8);
[0056] 5) If the ps point of the spatial parking space is far from the pe point of the line parking space bound to it, and the ps point of the spatial parking space is not a virtual boundary point; the pe point of the spatial parking space is far from the ps point of the line parking space bound to it, and the pe point of the spatial parking space is not a virtual boundary point, then the ps point of the fused parking space is updated by the intersection method through the ps point of the spatial parking space and the line parking space bound to the ps point; the pe point of the fused parking space is updated by the pe point of the spatial parking space and the line parking space bound to the pe point; proceed to process 8);
[0057] 6) If the ps point of the spatial parking space is far from the pe point of the bound line parking space, and the ps point of the spatial parking space is a virtual boundary point; or the pe point of the spatial parking space is far from the ps point of the bound line parking space, and the pe point of the spatial parking space is a virtual boundary point; continue with process 7),
[0058] 7) Delete spatial parking spaces and use line parking spaces to express overlapping parking areas;
[0059] 8) Determine whether the distance of the new entrance corner point of the fused parking space meets the parking width requirement. If so, continue with process 9); otherwise, proceed to process 7);
[0060] 9) If the spatial parking space ps point is close to the bound line parking space ps point and the ps point is a physical boundary point, then proceed to process 10); otherwise, proceed to process 12);
[0061] 10) If the spatial parking space pe point is close to the bound line parking space pe point and the pe point is a physical boundary point, then proceed to process 11); otherwise, proceed to process 13);
[0062] 11) Use the fused new corner points to express the parking area and delete the overlapping parking spaces;
[0063] 12) Delete the line parking space bound to the space parking space PS point and jump to process 10).
[0064] 13) Delete the line parking space bound to the spatial parking space pe point and jump to process 11).
[0065] Advantages and effects of the present invention
[0066] The present invention can effectively and reasonably cover various situations in which spatial parking spaces encroach on linear parking spaces through a fusion strategy based on the "proximity" principle, a fusion strategy based on the "line parking space corner point priority" principle, a fusion strategy based on the "entrance corner point parallel alignment" principle, a fusion strategy based on the "line parking space conditional deletion" principle, and a fusion strategy based on the "line parking space priority" principle, thereby avoiding missed detection of spatial parking spaces or line parking spaces due to fusion operations and expanding the application scenarios of automatic parking. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] Figure 1 This is a flow chart of the parking space fusion algorithm of the present invention;
[0068] Figure 2 Schematic diagram of line parking space category information and location information;
[0069] Figure 3 A schematic diagram illustrating the category information and location information of parking spaces;
[0070] Figure 4 A schematic diagram illustrating the determination of parking spaces to be merged;
[0071] Figure 5 This is a schematic diagram illustrating the integration of parking spaces in the first category;
[0072] Figure 6 This is the flow chart of the first type of spatial parking space fusion algorithm;
[0073] Figure 7 This is a schematic diagram illustrating the integration of the second type of space parking spaces;
[0074] Figure 8 This is the flow chart of the second type of space parking fusion algorithm;
[0075] Fig. 9 This is a schematic diagram illustrating the integration of parking spaces in the third category of space;
[0076] Fig.10 A flow chart is provided to illustrate the integration of parking spaces in the third category of space;
[0077] Fig.11 This is a schematic diagram illustrating the integration of the third and fourth types of parking spaces;
[0078] Fig.12 The flowchart for explaining the integration of parking spaces for the fourth category of spaces is provided. DETAILED DESCRIPTION
[0079] Corner point fusion rule of the present invention
[0080] 1. "Nearest" principle: when a certain entrance corner of a space parking space is bound to a line parking space, only the entrance corner closest to the two entrance corners of the bound line parking space will be merged. For example, the entrance corner of the space parking space "nearest" to the PS point of the bound line parking space has Figure 5 ps1 and ps2 in Figure 7 pe3 in Fig. 9 ps1 and ps2 in Fig.11 pe3 in; the corner points of the space parking space entrance that are "close" to the pe point of the binding line parking space are Figure 5 PS3 in Figure 7 pe1 and pe2 in Fig. 9 pe1 and pe2 in Fig.11 ps1, pe1, ps2, pe2, ps3 in it.
[0081] 2. The principle of "priority for line parking space corner points" means that when the entrance corner point of the spatial parking space invading the line parking space is a virtual boundary point, or if the physical entrance boundary corner point of the spatial parking space is different from the start or end attribute of the "nearest" entrance corner point of the bound line parking space, the entrance corner point of the line parking space that is "nearest" to the spatial parking space entrance corner point will be given priority as the fusion corner point during the fusion processing.
[0082] 1) For the case where the corner point of the parking space entrance is a virtual boundary point, for example: Figure 5 The ps3 point of the spatial parking space is the virtual boundary point, which is replaced by the pe point of the line parking space vs3; Figure 7 The pe3 point of the spatial parking space is a virtual boundary point, which is replaced by the pe point of the line parking space vs3; Fig. 9The pe2 point of the spatial parking space is a virtual boundary point, which is replaced by the pe point of the line parking space vs2; Fig.11 The pe2 point of the spatial parking space is a virtual boundary point and is replaced by the pe point of the line parking space vs2.
[0083] 2) If the physical entrance boundary corner of the space parking space has different starting or ending attributes from the "nearest" entrance corner of the bounding line parking space, such as Fig.11 The attributes of ps3, pe3, pe point of vs4 and ps point of vs6 are different, so the corresponding corner points of the space parking space are replaced by the corner points of the corresponding line parking space as the corner points of the final fused parking space; Fig.11 The ps1 point and the bound pe point of vs1 are close. Due to the different attributes, the pe point of vs1 is used instead of the ps1 point as the ps point of the fused parking space.
[0084] 3. The principle of "parallel alignment of entrance corners" means that no matter how the entrance corners of the spatial parking spaces are not aligned with the entrance corners of the linear parking spaces after the invasion due to irregular parking of the obstructing vehicles, the entrance corners of the merged parking areas will always be aligned parallel to the entrance corners of the linear parking spaces. Figure 5 fs2 and fs3 are the fused parking spaces, and their entrance corner points are flush with the lines connecting the ps points and pe points of the line parking spaces vs2 and vs3. Figure 7 fs2, fs3, Fig. 9 fs1, fs2, Fig.11 The same is true for fs1.
[0085] 4. The principle of "conditional deletion of line parking spaces" means that if and only if the physical entrance corner of the spatial parking space has the same start or end attribute as the "nearest" entrance corner of the bound line parking space, and the width of the merged parking space meets the parking requirements, the line parking space will be deleted and the corresponding parking area will be replaced by the merged parking space. Figure 5 If the physical entrance boundary corner point ps2 of the spatial parking space has the same starting point attribute as the "nearest" entrance corner point of the bound line parking space vs2, the line parking space will be deleted, and the corresponding fused parking space will be used to express the overlapping parking area; Figure 7 If the physical entrance boundary corner point pe2 of the spatial parking space and the "nearest" entrance corner point of the bound line parking space vs2 have the same end point attribute, the line parking space will be deleted, and the corresponding fused parking space will be used to express the overlapping parking area; Fig. 9 If the physical entrance corner points ps1 and pe1 of the spatial parking space are the same as the start or end attributes of the "nearest" entrance corner points of the bound line parking space vs1, then delete the line parking space vs1 and use the corresponding fused parking space to express the overlapping parking area; Fig. 9If the physical entrance corner point ps2 of the spatial parking space and the "nearest" entrance corner point of the bound linear parking space vs2 have the same starting point attribute, then vs2 is deleted and the corresponding fused parking space is used to express the overlapping parking area; Fig.11 If the spatial parking space entity entrance corner point pe1 and the "nearest" entrance corner point of the bound line parking space vs2 have the same end point attribute, then vs2 will be deleted.
[0086] 5. The principle of "line parking spaces priority". The fusion strategy based on the principle of "line parking spaces priority" is divided into two situations. The first situation is that during the fusion process, when the starting or ending attributes of the entrance corner point of the spatial parking space of the virtual boundary are the same as the starting or ending attributes of the "nearest" entrance corner point of the line parking space to which it is bound, and the entrance corner point on the other side of the spatial parking space is not bound to the same line parking space as the entrance corner point of the virtual boundary, the spatial parking space will be deleted, and the line parking space bound to the entrance corner point of the virtual boundary of the spatial parking space will be prioritized as the fused parking area; the second situation is that after the fusion operation is completed, if the fused parking area overlaps with the remaining line parking spaces, the line parking spaces will be prioritized as the parking area output, and the fused area and the corresponding spatial parking spaces will be deleted. Figure 5 If the virtual boundary entrance corner point ps1 of the spatial parking space in the example has the same starting point attribute as the “nearest” corner point of the bound line parking space vs1, and pe1 has no bound line parking space, then the spatial parking space is deleted and the bound line parking space of ps1 is used as the final fused parking space. Figure 7 If the virtual boundary entrance corner point pe1 of the spatial parking space in the example has the same end point attribute as the "nearest" corner point of the bound line parking space vs1, and there is no bound line parking space in ps1, then the spatial parking space is deleted and the bound line parking space of pe1 is used as the final fused parking space. Fig.11 If the virtual boundary entrance corner point pe2 of the spatial parking space and the "nearest" corner point of the bound line parking space vs3 have the same termination point attribute, and ps2 is bound to the line parking space vs7, then the spatial parking space is deleted and the line parking space vs3 bound to pe2 is used as the final fused parking space.
[0087] 6. Update the corner point based on the intersection method of a certain spatial parking space entrance corner point and line parking space
[0088] A straight line is drawn through the entrance corner point of the space parking space and is parallel to the line parking space dividing line vector. The corner point of the line connecting the straight line and the two entrance corner points of the line parking space is the updated intersection point.
[0089] Based on the above rules, the present invention designs a parking space corner point fusion method based on vision and ultrasonic radar.
[0090] A parking space corner point fusion method based on vision and ultrasonic radar Figure 1 , including the following steps:
[0091] Step 1: Use the camera to obtain the linear parking space category information and parking space location information around the vehicle; use the ultrasonic radar to obtain the spatial parking space category information and parking space location information around the vehicle; according to the parking control requirements, set the minimum fused parking space width that can meet the parking requirements;
[0092] The method of using a camera to obtain the line parking space category information and parking space position information around the vehicle is to detect the line parking space on the ground with a camera to obtain the corner point position and parking space category information of the parking space; the method of using an ultrasonic radar to obtain the spatial parking space category information and parking space position information around the vehicle is to detect the distance between obstacles with an ultrasonic radar sensor to obtain the corner point position and parking space type information of the parking space, wherein the spatial parking space category information also includes the real and virtual attribute information of the parking space entrance corner point, which means that the spatial parking space corner point is generated by the boundary of a physical obstacle or generated according to a fixed parking space width;
[0093] Supplementary Note 1
[0094] The specific information of the parking spaces on the line is as follows: Figure 2 As shown, the parking space position information includes the coordinates of the two end points (ps, pe) of the parking space entrance, and the origin of the coordinates is the center point of the rear axle when the vehicle is powered on, such as Figure 2 The first parking space entrance endpoint that appears when the vehicle moves forward is defined as the entrance starting point, recorded as point ps, and the other endpoint is the entrance end point, recorded as point pe. The vector from point ps or point pe to the far end is recorded as the parking space dividing line vector, such as Figure 2 As indicated by the arrow in the middle.
[0095] The space parking information is as follows: Figure 3 As shown in the figure, the difference between spatial parking spaces and linear parking spaces is that the corner points of spatial parking spaces are obtained by sensing the distance of obstacles through ultrasonic radar. Therefore, at least one side of the two sides of the spatial parking space is composed of a solid boundary, such as Figure 3 The thick dashed line in Figure 3 The thin dotted line in the figure represents the virtual boundary of the spatial parking space, which is calculated from the physical boundary at a fixed distance. The spatial parking space location information includes the coordinates of the two endpoints of the parking space entrance, which are in the same coordinate system as the linear parking space. When the vehicle moves forward, the first parking space entrance endpoint is defined as the entrance starting point, recorded as point ps, and the other endpoint is the entrance end point, recorded as point pe. The vector from point ps or point pe to the far end is recorded as the parking space dividing line vector, such as Figure 3 Indicated by the arrow.
[0096] Step 2: Determine the binding relationship between the line parking space and the corner point of the spatial parking space based on the geometric relationship between the relative positions of the points and lines;
[0097] The corner points include the entrance corner points ps and pe of the line parking spaces, and the entrance corner points ps and pe of the spatial parking spaces; the binding relationship between the line parking spaces and the corner points of the spatial parking spaces includes the binding relationship between the spatial parking space ps point and a line parking space; the binding relationship between the spatial parking space pe point and a line parking space; the entrance corner points ps and pe of the spatial parking space are bound to the same line parking space; the entrance corner points ps and pe of the spatial parking space are bound to different line parking spaces; the binding relationship is that the ps point and pe point of the line parking space and the ps point and pe point of the spatial parking space have an interlaced and superimposed relationship;
[0098] Supplementary Note 2:
[0099] like Figure 4 As shown, the binding relationship between the corner points of the linear parking spaces and the spatial parking spaces is determined by traversing the ps points and pe points of each spatial parking space in turn through all the linear parking spaces on the same side until it is determined whether the two entrance corner points of the spatial parking space are located between the dividing lines of one of the linear parking spaces. It is worth mentioning that since the parking position of each obstacle vehicle is fixed, but it cannot be ensured that all vehicles are parked in the linear parking space, it is impossible to ensure that the corner points of the spatial parking spaces sensed by the ultrasonic radar can be completely located within the quadrilateral frame of the linear parking space. Figure 4 As shown in the figure, among the six spatial parking space entrance corner points, only point pe1 can be completely located within the quadrilateral frame of the line parking space, while the other spatial parking space entrance corner points are all beyond the line parking space. This is because the front of the obstacle vehicle in the line parking space vs4 has exceeded the line parking space, resulting in the entrance corner points ps2, pe2 and ps3, pe3 of the spatial parking space not being completely located within the wireframe of the line parking space.
[0100] Therefore, when the ps or pe point in the spatial parking space is located between the two dividing line vectors of the line parking space on the same side of the vehicle, the line parking space is bound to the spatial parking space and used as the input for the subsequent parking space reconstruction in the fusion algorithm. Figure 4 As shown in the figure, the vectors from the line parking space point ps and point pe to a corner point of the spatial parking space entrance are respectively vector The acute angles between the two vectors and the dividing line vector of the line parking space are denoted as β1 and β2 respectively; the angle between the two vectors is denoted as β3; then the necessary and sufficient conditions for the line parking space and the entrance corner point of the space parking space to satisfy the binding are:
[0101] β1≤β3
[0102] β2≤β3
[0103] like Figure 4 , the three dotted boxes from left to right represent three spatial parking spaces, among which ps1 and pe3 are not bound to any line parking space, while the line parking space vs1 is bound to the spatial parking space corner point pe1, the line parking space vs2 is bound to the spatial parking space corner point ps2, and the line parking space vs4 is bound to the spatial parking space corner points pe2 and ps3.
[0104] Step 3: According to the number of line parking spaces bound to the corner points of the spatial parking space entrances, a corresponding corner point fusion strategy is selected; the fusion strategy includes:
[0105] 1) Integration strategy based on the principle of “proximity”;
[0106] 2) Fusion strategy based on the principle of “line parking space corner point priority”;
[0107] 3) Fusion strategy based on the principle of “parallel alignment of entry corners”;
[0108] 4) Fusion strategy based on the principle of “conditional deletion of line parking spaces”;
[0109] 5) Integration strategy based on the principle of “line parking space priority”;
[0110] Step 4: According to the corresponding corner point fusion strategy, the spatial parking space corner points and the linear parking space corner points are reconstructed to obtain an accurate parking area. The parking area is as follows:
[0111] 1) The parking area obtained when only the spatial parking space entrance corner point ps point and the line parking space are bound;
[0112] 2) The parking area obtained when only the spatial parking space entrance corner point pe is bound to the line parking space;
[0113] 3) The parking area obtained when the entrance corner points ps and pe of the spatial parking space are bound to the same linear parking space;
[0114] 4) The parking area obtained when the entrance corner points ps and pe of the spatial parking space are bound to different linear parking spaces.
[0115] Furthermore, the fusion strategy based on the "proximity" principle is: when a certain entrance corner point of a spatial parking space is bound to a linear parking space, only the entrance corner point closest to the two entrance corner points of the linear parking space is fused;
[0116] Furthermore, the fusion strategy based on the principle of "line parking space corner point priority" is that when the entrance corner point of the spatial parking space invading the line parking space is a virtual boundary point, or if the physical entrance boundary corner point of the spatial parking space is different from the start or end attribute of the "nearest" entrance corner point of the bound line parking space, then during the fusion processing, the entrance corner point of the line parking space that is "nearest" to the entrance corner point of the spatial parking space will be given priority as the fusion corner point.
[0117] Furthermore, the fusion strategy based on the principle of "parallel alignment of entrance corner points" means that no matter the entrance corner points of the spatial parking spaces are not flush with the entrance corner points of the linear parking spaces after the invasion due to irregular parking of obstacle vehicles, the entrance corner points of the parking areas after the fusion will always be parallel aligned with the entrance corner points of the linear parking spaces.
[0118] Furthermore, the fusion strategy based on the principle of "conditional deletion of line parking spaces" is that if and only if the physical entrance corner point of the spatial parking space has the same start or end attribute as the "nearest" entrance corner point of the line parking space to which it is bound, and the width of the fused parking space meets the parking requirements, the line parking space will be deleted and the corresponding parking area will be replaced by the fused parking space.
[0119] Furthermore, the fusion strategy based on the "line parking space priority" principle is divided into two situations. The first situation is that during the fusion process, when the starting or ending attribute of the entrance corner point of the spatial parking space of the virtual boundary is the same as the starting or ending attribute of the "nearest" entrance corner point of the line parking space to which it is bound, and the entrance corner point on the other side of the spatial parking space is not bound to the same line parking space as the entrance corner point of the virtual boundary, the spatial parking space is deleted, and the line parking space bound to the entrance corner point of the virtual boundary of the spatial parking space is prioritized as the fused parking area; the second situation is that after the fusion operation is completed, if the fused parking area overlaps with the remaining line parking spaces, the line parking spaces are prioritized as the parking area output, and the fused area and the corresponding spatial parking spaces are deleted.
[0120] Furthermore, in the process 1) of step 4, when only the spatial parking space entrance corner point ps is bound to the line parking space, the parking area obtained is as follows: Figure 5 , Figure 6 As shown, the details are as follows:
[0121] 1) Determine whether the spatial parking space type is the same as the linear parking space type. If they are not the same, delete the spatial parking space and use the linear parking space to express the parking area. If they are the same, continue with process 2);
[0122] 2) Determine whether the distance from the spatial parking space ps point to the line parking space ps is less than the distance to the line parking space pe point; if the distance is less than the distance from the spatial parking space ps point to the line parking space pe point, continue with process 3); if the distance is greater than the distance from the spatial parking space ps point to the line parking space pe point, then the line parking space pe point is the ps point of the fused parking space, and the fused parking space pe point is updated by the intersection method through the spatial parking space pe point and the line parking space bound to its ps point, and then proceed to process 7);
[0123] 3) Determine whether the ps point of the spatial parking space is a physical boundary. If so, the ps and pe points of the fused parking space are calculated by the ps and pe points of the spatial parking space and the line parking space bound to the ps points using the intersection method, and continue with process 4); if not, proceed to process 8);
[0124] 4) Determine whether the spatial parking space type is the same as the linear parking space type. If the types are the same, continue with process 5). If the types are different, proceed to process 8);
[0125] 5) Delete the line parking space bound to the spatial parking space PS point;
[0126] 6) Delete the spatial parking spaces and use the merged new parking spaces to express the overlapping areas of parking spaces;
[0127] 7) Determine whether the distance of the new entrance corner point of the fused parking space meets the parking width requirement. If the parking width meets the requirement, return to process 6). If not, proceed to process 8).
[0128] 8) Delete spatial parking spaces and use line parking spaces to express parking areas;
[0129] Supplementary Note 3
[0130] The parking area obtained when only the spatial parking space entrance corner point ps point and the line parking space are bound is as follows Figure 5 As shown, the spatial parking spaces in the three figures are all bound to a linear parking space at their ps point, while there is no linear parking space bound to the pe point.
[0131] Figure 5 Fusion method for the upper left parking space: This fusion method uses fusion rules twice: "Line parking space corner point priority" and "Line parking space priority".
[0132] According to the principle of "line parking space corner point priority", when the spatial parking space entrance corner point that invades the line parking space is a virtual boundary point, the line parking space entrance corner point that is "close" to the spatial parking space entrance corner point will be processed as the fusion corner point first during the fusion process. Since the spatial parking space entrance corner point ps1 that invades the line parking space vs1 is a virtual boundary point, the new entrance corner point ps of the fusion parking space is replaced with the ps point of the line parking space vs1.
[0133] According to the "line parking space priority" principle, during the fusion process, when the starting or ending attributes of the entrance corner point of the spatial parking space of the virtual boundary are the same as the starting or ending attributes of the "nearest" entrance corner point of the line parking space to which it is bound, and the entrance corner point on the other side of the spatial parking space is not bound to the same line parking space as the virtual boundary entrance corner point, the spatial parking space will be deleted, and the line parking space bound to the virtual boundary entrance corner point of the spatial car will be prioritized as the fused parking area. Figure 5 The entrance corner point ps1 of the middle spatial parking space is a virtual boundary point, and has the same starting point attribute as the "nearest" entrance corner point of the bound line parking space vs1; and if there is no bound line parking space for the spatial parking space pe1, the line parking space vs1 bound to ps1 is prioritized as the fused parking area, and the spatial parking space composed of ps1 and pe1 is deleted.
[0134] Figure 5The fusion method of the spatial parking space composed of ps2 and pe2 and the line parking space vs2 bound by ps2. The ps and pe points of the fused parking space are updated by the intersection method through the spatial parking space ps2, pe2 points and the line parking space vs2 bound to ps2, and the gray filled area fs2 is the newly fused parking area. According to the principle of "conditional deletion of line parking spaces", that is, if and only if the physical entrance corner point of the spatial parking space is the same as the start or end attribute of the "nearest" entrance corner point of the line parking space to which it is bound, and the width of the fused parking space meets the parking requirements, the line parking space will be deleted and the corresponding parking area will be replaced by the fused parking space. Figure 5 The physical entrance corner point ps2 of the spatial parking space in the upper right picture has the same starting point attribute as the "nearest" entrance corner point of the bound line parking space vs2. Therefore, delete the line parking space vs2, use the fused new parking space entrance corner point to express the overlapping parking area, and delete the spatial parking space composed of ps2 and pe2.
[0135] Figure 5 The fusion method of the spatial parking spaces composed of ps3 and pe3 and the line parking spaces bound by ps3 vs3. According to the principle of "line parking space corner point priority", when the entrance corner point of the spatial parking space invading the line parking space is a virtual boundary point, the "nearest" entrance corner point of the line parking space bound to the spatial parking space entrance corner point will be processed as the fusion corner point first during the fusion process. Figure 5 The entrance corner point ps3 of the spatial parking space is a virtual boundary point. The ps point of the fused parking space is replaced by the pe point of the line parking space vs3. The pe point of the fused parking space is updated using the intersection method through the pe3 of the spatial parking space and the line parking space vs3 bound to ps3. Figure 5 The gray filled area fs3 in the figure is the newly merged parking area, and the parking spaces composed of ps3 and pe3 are deleted.
[0136] judge Figure 5 Width of fused parking space fs3: When the vehicle on the right side of fs3 moves to the left and there is still a virtual boundary point ps3 of the space parking space that is "close" to the pe point of the bound line parking space vs3, the physical entrance boundary point pe3 of the space parking space still has no bound line parking space. According to the principle of "line parking space corner point priority", the entrance corner point ps of the newly fused parking space is always the entrance corner point pe of the line parking space vs3, and the entrance corner point pe of the newly fused parking space is updated by the intersection method using the pe3 point and the line parking space vs3 bound to ps3, so the updated corner point will move with the movement of the obstacle vehicle, resulting in the situation that the distance between the two entrance corner points of the fused parking space fs3 is too small to park. Therefore, the fused parking space width of fs3 needs to be determined. When the width of the newly fused parking space is not less than the preset minimum fused parking space width, the fused parking space is generated successfully; otherwise, the fused parking space generation fails, and the line parking space vs3 bound to ps3 is used to express the overlapping area of parking.
[0137] The parking area obtained in the process 2) of step 4 when only the spatial parking space entrance corner point pe is bound to the line parking space is as follows Figure 7 , Figure 8 As shown, the details are as follows:
[0138] 1) Determine whether the spatial parking space type is the same as the linear parking space type. If they are not the same, delete the spatial parking space and use the linear parking space to express the parking area. If they are the same, continue with process 2);
[0139] 2) Determine whether the distance between the spatial parking space pe point and the line parking space pe point is less than the distance to the line parking space ps point. If yes, continue with process 3). If not, the ps point of the line parking space is the pe point of the fused parking space. The ps point of the fused parking space is updated by the intersection method through the ps point of the spatial parking space and the line parking space bound to its pe point, and then proceed to process 6);
[0140] 3) Determine whether the pe point of the spatial parking space is a physical boundary. If so, the ps and pe points of the fused parking space are calculated by the ps and pe points of the spatial parking space and the line parking space bound to its pe point using the intersection method, and continue with process 4); if not, proceed to process 7);
[0141] 4) Delete the line parking space bound to the spatial parking space pe point and continue with process 5);
[0142] 5) Delete the spatial parking spaces and use the merged new parking spaces to express the overlapping areas of parking spaces;
[0143] 6) Determine whether the distance of the new entrance corner point of the fused parking space meets the parking width requirement. If the parking width meets the requirement, return to process 5); if not, proceed to process 7);
[0144] 7) Delete spatial parking spaces and use line parking spaces to express parking areas.
[0145] Supplementary Note 4
[0146] The parking area obtained when only the spatial parking space entrance corner point pe is bound to the line parking space is as follows Figure 7 As shown, the ps point has no line parking space bound to it.
[0147] Figure 7 Fusion method for the upper left parking space: This fusion method uses fusion rules twice: "Line parking space corner point priority" and "Line parking space priority".
[0148] According to the principle of "line parking space corner point priority", when the spatial parking space entrance corner point that invades the line parking space is a virtual boundary point, the line parking space entrance corner point that is "close" to the spatial parking space entrance corner point will be treated as the fusion corner point first during the fusion process. Since the spatial parking space entrance corner point pe1 that invades the line parking space vs1 is a virtual boundary point, the new entrance corner point pe of the fused parking space is replaced with the pe point of the line parking space vs1.
[0149] According to the "line parking space priority" fusion rule: during the fusion process, when the starting or ending attributes of the entrance corner point of the spatial parking space of the virtual boundary are the same as the starting or ending attributes of the "nearest" entrance corner point of the line parking space to which it is bound, and the entrance corner point on the other side of the spatial parking space is not bound to the same line parking space as the virtual boundary entrance corner point, the spatial parking space will be deleted, and the line parking space bound to the virtual boundary entrance corner point of the spatial parking space will be prioritized as the fused parking area. Figure 7 The entrance corner point pe1 of the middle spatial parking space is a virtual boundary point, and its bound “nearest” entrance corner point of the line parking space vs1 has the same end point attribute; and if there is no bound line parking space for the spatial parking space ps1, the line parking space vs1 bound to pe1 is prioritized as the fused parking area, and the spatial parking space composed of ps1 and pe1 is deleted.
[0150] Figure 7 The fusion method of the spatial parking space composed of ps2 and pe2 and the line parking space vs2 bound by pe2. The ps and pe points of the fused parking space are respectively updated through the spatial parking space ps2, pe2 points and the line parking space vs2 bound to pe2 using the intersection method (intersection method: a straight line parallel to the dividing line vector of the line parking space is made through the entrance corner point of the spatial parking space, and the corner point of the line connecting the two entrance corner points of the line parking space is the updated corner point), and the gray filled area fs2 is the newly fused parking area. According to the principle of "conditional deletion of line parking spaces", that is, if and only if the physical entrance corner point of the spatial parking space is the same as the start or end attribute of the "nearest" entrance corner point of the line parking space to which it is bound, the line parking space will be deleted, and the corresponding parking area will be replaced by the fused parking space. For example Figure 7 The pe2 point of the spatial parking space and the "nearest" entrance corner point of the bound line parking space vs2 have the same end point attribute; therefore, delete the line parking space vs2, use the fused new parking space entrance corner point to express the overlapping parking area, and delete the spatial parking space composed of ps2 and pe2.
[0151] Figure 7The fusion method of the spatial parking spaces composed of ps3 and pe3 and the line parking spaces bound by pe3 vs3. According to the principle of "line parking space corner point priority", when the entrance corner point of the spatial parking space invading the line parking space is a virtual boundary point, and the width of the fused parking space meets the parking requirements, the "nearest" entrance corner point of the line parking space bound to the spatial parking space entrance corner point will be processed as the fusion corner point first during the fusion process. Figure 7 The spatial parking space entrance corner point pe3 is a virtual boundary point, the pe point of the fused parking space fs3 is replaced by the ps point of the line parking space vs3, and the ps point of the fused parking space fs3 is updated through the ps3 of the spatial parking space and the line parking space vs3 bound to pe3 using the intersection method (intersection method: draw a straight line through the entrance corner point of the spatial parking space parallel to the dividing line vector of the line parking space, then the corner point of the line connecting the two entrance corner points of the line parking space is the updated corner point). Figure 7 The gray filled area fs3 in the figure is the newly merged parking area, and the parking spaces composed of ps3 and pe3 are deleted.
[0152] judge Figure 7 Width of fused parking space fs3: When the vehicle on the left side of fs3 moves to the right and there is still a virtual boundary point pe3 of the space parking space that is "close" to the ps point of the bound line parking space vs3, the physical entrance boundary point ps3 of the space parking space still has no bound line parking space. According to the principle of "line parking space corner point priority", the entrance corner point pe of the newly fused parking space is always the entrance corner point ps of the line parking space vs3, and the entrance corner point ps of the newly fused parking space is updated by the ps3 point and the line parking space vs3 bound to pe3 using the intersection method, so the updated corner point will move with the movement of the obstacle vehicle, resulting in the situation that the distance between the two entrance corner points of the fused parking space fs3 is too small to park in. Therefore, the fused parking space width of fs3 needs to be determined. When the width of the newly fused parking space is not less than the preset minimum fused parking space width, the fused parking space is generated successfully; otherwise, the fused parking space generation fails, and the line parking space vs3 bound to pe3 is used to express the overlapping area of parking.
[0153] In the process 3) of step 4, when the entrance corner points ps and pe of the spatial parking space are bound to the same linear parking space, the parking area obtained is as follows: Fig. 9 , Fig.10 As shown, the details are as follows:
[0154] 1) Determine whether the spatial parking space type is the same as the linear parking space type. If they are not the same, delete the spatial parking space and use the linear parking space to express the parking area. If they are the same, continue with process 2);
[0155] 2) Determine whether the ps point and pe point of the spatial parking space are physical boundary points. If they are both physical boundary points, the ps point of the fused parking space is updated by the intersection method through the ps point of the spatial parking space and the line parking space bound to its ps point, and the pe point of the fused parking space is updated by the pe point of the spatial parking space and the line parking space bound to its pe point; proceed to process 4);
[0156] 2) If the ps point of the spatial parking space bound to the same line parking space is a physical boundary point and the pe point is a virtual boundary point, then the ps point of the fused parking space is updated by the intersection method through the ps point of the spatial parking space and the line parking space bound to its ps point, and the pe point of the fused parking space is the pe point of the line parking space; proceed to process 4);
[0157] 3) If the pe point of the spatial parking space bound to the same linear parking space is a physical boundary point and the ps point is a virtual boundary point, the pe point of the fused parking space is updated by the intersection method through the pe point of the spatial parking space and the linear parking space bound to its pe point, and the ps point of the fused parking space is the ps point of the linear parking space; proceed to process 4);
[0158] 4) Delete the line parking spaces and space parking spaces, and use the merged new parking spaces to express the overlapping areas of parking spaces.
[0159] Supplementary Note 5
[0160] Fig. 9 The fusion method of the spatial parking space composed of ps1 and pe1, where both entrance corner points are bound to the same line parking space vs1: the ps and pe points of the fused parking space fs1 are updated by the spatial parking space entrance corner points ps1 and pe1 and the line parking space vs1 bound to them using the intersection method. According to the principle of "conditional deletion of line parking spaces", that is, if and only if the physical entrance corner point of the spatial parking space has the same start or end attribute as the "nearest" entrance corner point of the line parking space to which it is bound, and the width of the fused parking space meets the parking requirements, then the line parking space will be deleted and the corresponding parking area will be replaced by the fused parking space. Fig. 9 If the physical entrance corner points ps1 and pe1 of the spatial parking space have the same start and end attributes as the "nearest" entrance corner points of the bound line parking space vs1, then delete the line parking space vs1 and use the newly merged entrance corner points to express the overlapping area of parking, such as Fig. 9 Fill area fs1 with medium gray.
[0161] Fig. 9 The fusion method of vs2 in which the two entrance corner points of the spatial parking spaces composed of ps2 and pe2 are bound to the same line parking space: this method uses the fusion rules twice: "line parking space corner point priority" and "line parking space conditional deletion".
[0162] According to the principle of "priority for corner points of line parking spaces", when the corner point of the entrance of a spatial parking space invading a line parking space is a virtual boundary point, the corner point of the entrance of a line parking space that is "closest" to the corner point of the entrance of the spatial parking space will be given priority as a fusion corner point during the fusion processing. Fig. 9 If pe2 of the middle space parking space is a virtual boundary point, the pe point of the fused parking space is replaced by the "nearest" entrance corner point of the line parking space vs2 bound to pe2.
[0163] According to the principle of "conditional deletion of line parking spaces", that is, if and only if the physical entrance corner point of the spatial parking space is the same as the start or end attribute of the "nearest" entrance corner point of the line parking space to which it is bound, and the width of the merged parking space meets the parking requirements, the line parking space will be deleted and the corresponding parking area will be replaced by the merged parking space. Fig. 9 If the physical entrance corner point ps2 of the spatial parking space has the same starting point attribute as the "nearest" entrance corner point of the bound line parking space vs2, then delete the line parking space vs2 and use the merged new parking space entrance corner point to express the overlapping parking area, such as Fig. 9 The gray filled area fs2 in the figure is deleted, and the parking spaces composed of ps2 and pe2 are deleted.
[0164] The ps point of the fused parking space fs2 is updated through the spatial parking space ps2 and the line parking space vs2 bound to ps2 using the intersection method (intersection method: draw a straight line parallel to the dividing line vector of the line parking space through the entrance corner point of the spatial parking space, then the corner point of the line connecting the two entrance corner points of the line parking space is the updated corner point).
[0165] The parking area obtained by the fusion strategy of binding different line parking spaces according to the entrance corner points ps and pe of the space parking space in step 4 (4) is specifically as follows:
[0166] 1) Determine whether the spatial parking space type is the same as the linear parking space type. If they are not the same, delete the spatial parking space and use the linear parking space to express the parking area. If they are the same, continue with process 2);
[0167] 2) Determine whether the ps point of the spatial parking space is close to the pe point of the line parking space it is bound to, and whether the pe point is close to the ps point of the line parking space it is bound to. If the ps point of the spatial parking space is close to the pe point of the line parking space it is bound to; the pe point of the spatial parking space is close to the ps point of the line parking space it is bound to. Then the ps point of the fusion vehicle positioning is updated to the pe point of the line parking space bound to the ps point of the spatial parking space; the pe point of the fusion vehicle positioning is updated to the ps point of the line parking space bound to the pe point of the spatial parking space; proceed to process 8);
[0168] 3) If the ps point of the spatial parking space is close to the pe point of the line parking space bound to it; but the pe point of the spatial parking space is far from the ps point of the line parking space bound to it, and the pe point of the spatial parking space is not a virtual boundary point. Then the ps point of the fused parking space is updated to the pe point of the line parking space bound to it; the pe point of the fused parking space is updated by the intersection method through the pe point of the spatial parking space and the line parking space bound to the pe point; and then proceed to process 8);
[0169] 4) If the ps point of the spatial parking space is far from the pe point of the line parking space bound to it, and the ps point of the spatial parking space is not a virtual boundary point; the pe point of the spatial parking space is close to the ps point of the line parking space bound to it. Then the ps point of the fused parking space is updated by the intersection method through the ps point of the spatial parking space and the line parking space bound to the ps point; the pe point of the fused parking space is updated to the pe point of the line parking space bound to it; and proceed to process 8);
[0170] 5) If the ps point of the spatial parking space is far from the pe point of the line parking space bound to it, and the ps point of the spatial parking space is not a virtual boundary point; the pe point of the spatial parking space is far from the ps point of the line parking space bound to it, and the pe point of the spatial parking space is not a virtual boundary point. Then the ps point of the fused parking space is updated by the intersection method through the ps point of the spatial parking space and the line parking space bound to the ps point; the pe point of the fused parking space is updated by the pe point of the spatial parking space and the line parking space bound to the pe point; and proceed to process 8);
[0171] 6) If the ps point of the spatial parking space is far from the pe point of the bound line parking space, and the ps point of the spatial parking space is a virtual boundary point; or the pe point of the spatial parking space is far from the ps point of the bound line parking space, and the pe point of the spatial parking space is a virtual boundary point; continue with process 7);
[0172] 7) Delete spatial parking spaces and use line parking spaces to express overlapping parking areas;
[0173] 8) Determine whether the distance of the new entrance corner point of the fused parking space meets the parking width requirement; if so, continue with process 9); otherwise, proceed to process 7);
[0174] 9) If the spatial parking space ps point is close to the bound line parking space ps point and the ps point is a physical boundary point, then proceed to process 10); otherwise, proceed to process 12);
[0175] 10) If the spatial parking space pe point is close to the bound line parking space pe point and the pe point is a physical boundary point, then proceed to process 11); otherwise, proceed to process 13);
[0176] 11) Use the fused new corner points to express the parking area and delete the overlapping parking spaces;
[0177] 12) Delete the line parking space bound to the space parking space PS point and jump to process 10);
[0178] 13) Delete the line parking space bound to the spatial parking space pe point and jump to process 11);
[0179] Supplementary Note 6
[0180] The two entrance corners of the fourth type of space parking space are bound to two different linear parking spaces, such as Fig.11 shown.
[0181] Fig.11 The fusion method of the two entrance corner points of the spatial parking space composed of ps1 and pe1 are bound to different line parking spaces vs1 and vs2: According to the principle of "line parking space corner point priority", if the physical entrance boundary corner point of the spatial parking space is different from the start or end attribute of the "nearest" entrance corner point of the bound line parking space, then the line parking space entrance corner point that is "nearest" to the spatial parking space entrance corner point will be given priority as the fusion corner point during the fusion processing. Figure 7 The starting and ending attributes of the entrance corner point ps1 of the spatial parking space and the "nearest" entrance corner point of the bound line parking space vs1 are different, so the pe point of the line parking space vs1 is used as the ps point of the fused parking space fs1; the pe point of the fused parking space is updated using the intersection method through the entrance corner point pe1 of the spatial parking space and the line parking space vs2 bound to pe1. Fig.11 The gray filled area fs1 in the figure is the new parking space after fusion.
[0182] Fig.11 The fusion method of the spatial parking spaces composed of ps2 and pe2, where both entrance corners are bound to different line parking spaces vs7 and vs3: According to the principle of "line parking spaces first", during the fusion process, when the starting or ending attribute of the entrance corner of the spatial parking space of the virtual boundary is the same as the starting or ending attribute of the "nearest" entrance corner of the line parking space to which it is bound, and the entrance corner on the other side of the spatial parking space is not bound to the same line parking space as the virtual boundary entrance corner, the spatial parking space is deleted, and the line parking space bound to the virtual boundary entrance corner of the spatial parking space is prioritized as the fused parking area. Since the virtual boundary entrance corner pe2 of the spatial parking space and the "nearest" entrance corner of the bound line parking space vs3 have the same termination attribute, and ps2 and pe2 are bound to different line parking spaces, the spatial parking space composed of ps2 and pe2 is deleted, and the line parking space vs3 bound to pe2 is used as the final fused parking space.
[0183] Fig.11 The fusion method in the figure below: This fusion method uses fusion rules twice: "Line parking space corner point priority" and "Line parking space priority".
[0184] According to the principle of "line parking space corner point priority", if the physical entrance boundary corner point of the spatial parking space is different from the starting or ending attributes of the "nearest" entrance corner point of the bound line parking space, the line parking space entrance corner point "nearest" to the spatial parking space entrance corner point will be treated as the fusion corner point first during the fusion process. Since the starting and ending attributes of the spatial parking space entrance corner point ps3 are different from the "nearest" entrance corner point of its bound line parking space vs4, the new entrance corner point ps of the fused parking space fs3 is replaced with the pe point of the line parking space vs4. Similarly, the new entrance corner point pe of the fused parking space fs3 is replaced with the ps point of the line parking space vs6. Fig.11 The gray filled area fs3 in the figure is the new parking space after fusion.
[0185] According to the principle of "line parking spaces first", after the fusion operation is completed, if the fused parking area overlaps with the remaining line parking spaces, the line parking spaces are prioritized as the parking area output, and the fused area and the corresponding spatial parking spaces are deleted. Because the remaining line parking space vs5 does not participate in the fusion of any spatial parking spaces, vs5 will overlap with fs3. At this time, the newly fused parking space fs3 and the spatial parking spaces composed of ps3 and pe3 are deleted, and the final overlapping parking area is expressed by the line parking space vs5.
[0186] judge Fig.11 Width of fused parking space fs1: When the vehicle on the right side of fs1 moves to the left and there is still a space parking space whose physical boundary point pe1 is "close" to the bound line parking space vs2, the physical entrance boundary point pe1 of the space parking space is "close" to the bound line parking space vs1. Although the width of the space parking space composed of ps1 and pe1 can meet the parking width requirements, according to the principle of "line parking space corner point priority", the entrance corner point ps of the newly fused parking space is always the entrance corner point pe of the line parking space vs1. Since the entrance corner point pe of the newly fused parking space is updated by the intersection method using pe1 and the line parking space vs2 bound to pe1, the updated corner point will move with the movement of the obstacle vehicle, resulting in the situation where the distance between the two entrance corner points of the fused parking space fs1 is too small to park in. Therefore, it is necessary to determine the width of the fused parking space of fs3. When the width of the newly fused parking space is not less than the preset minimum fused parking space width, the fused parking space is generated successfully; otherwise, the fused parking space generation fails, and the line parking space vs2 bound by pe1 is used to express the overlapping parking area.
[0187] It should be emphasized that the above specific embodiments are merely explanations of the present invention, and they are not limitations of the present invention. After reading this specification, those skilled in the art can make modifications to the above embodiments without any creative contribution as needed, but as long as they are within the scope of the claims of the present invention, they are protected by patent law.
Claims
1. A parking space corner point fusion method based on vision and ultrasonic radar, characterized in that: The following steps are involved: Step 1: Use the camera to obtain the parking space category information and parking space location information around the vehicle; Use ultrasonic radar to obtain the parking space category information and parking space location information around the vehicle; According to parking control requirements, set the minimum merging parking space width that can meet parking requirements; The method of using a camera to obtain the line parking space category information and parking space position information around the vehicle is to detect the line parking space on the ground with a camera to obtain the corner point position and parking space category information of the parking space; the method of using an ultrasonic radar to obtain the spatial parking space category information and parking space position information around the vehicle is to detect the distance between obstacles with an ultrasonic radar sensor to obtain the corner point position and parking space type information of the parking space, wherein the spatial parking space category information also includes the real and virtual attribute information of the parking space entrance corner point, which means that the spatial parking space corner point is generated by the boundary of a physical obstacle or generated according to a fixed parking space width; Step 2: Determine the binding relationship between the line parking space and the corner point of the spatial parking space based on the geometric relationship between the relative positions of the points and lines; The corner points include the entrance corner points ps and pe of the line parking spaces, and the entrance corner points ps and pe of the spatial parking spaces; the binding relationship between the line parking spaces and the spatial parking space corner points includes the binding relationship between the spatial parking space ps point and a line parking space; the binding relationship between the spatial parking space pe point and a line parking space; the entrance corner points ps and pe of the spatial parking space are bound to the same line parking space; the entrance corner points ps and pe of the spatial parking space are bound to different line parking spaces; the binding relationship is that the ps point and pe point of the line parking space and the ps point and pe point of the spatial parking space have an interlaced and superimposed relationship; Step 3: Select the corresponding corner point fusion strategy according to the number of line parking spaces bound to the corner points of the spatial parking space entrances; The fusion strategy includes: 1) Integration strategy based on the principle of "proximity"; 2) Fusion strategy based on the principle of "line parking space corner point priority"; 3) Fusion strategy based on the principle of "parallel alignment of entry corners"; 4) Fusion strategy based on the principle of "conditional deletion of line parking spaces"; 5) Integration strategy based on the principle of "line parking space priority"; Step 4: According to the corresponding corner point fusion strategy, the spatial parking space corner points and the linear parking space corner points are reconstructed to obtain an accurate parking area. The parking area is as follows: 1) The parking area obtained when only the spatial parking space entrance corner point ps point and the line parking space are bound; 2) The parking area obtained when only the spatial parking space entrance corner point pe is bound to the line parking space; 3) The parking area obtained when the entrance corner points ps and pe of the spatial parking space are bound to the same linear parking space; 4) The parking area obtained when the entrance corner points ps and pe of the spatial parking space are bound to different linear parking spaces.
2. The parking space corner point fusion method based on vision and ultrasonic radar according to claim 1 is characterized by: The fusion strategy based on the "proximity" principle is that when a certain entrance corner point of a spatial parking space is bound to a linear parking space, only the entrance corner point closest to the two entrance corner points of the linear parking space is fused.
3. The parking space corner point fusion method based on vision and ultrasonic radar according to claim 1 is characterized by: The fusion strategy based on the principle of "priority for line parking space corner points" is that when the entrance corner point of the spatial parking space invading the line parking space is a virtual boundary point, or if the physical entrance boundary corner point of the spatial parking space is different from the start or end attribute of the "nearest" entrance corner point of the bound line parking space, then during the fusion processing, the entrance corner point of the line parking space that is "nearest" to the entrance corner point of the spatial parking space will be processed as the fusion corner point first.
4. The parking space corner point fusion method based on vision and ultrasonic radar according to claim 1 is characterized by: The fusion strategy based on the principle of "parallel alignment of entrance corners" means that no matter the entrance corners of the spatial parking spaces are not flush with the entrance corners of the linear parking spaces after the invasion due to irregular parking of obstacle vehicles, the entrance corners of the fused parking areas will always be aligned parallel to the entrance corners of the linear parking spaces.
5. The parking space corner point fusion method based on vision and ultrasonic radar according to claim 1 is characterized by: The fusion strategy based on the principle of "conditional deletion of line parking spaces" is that if and only if the physical entrance corner point of the spatial parking space is the same as the start or end attribute of the "nearest" entrance corner point of the bound line parking space, and the width of the fused parking space meets the parking requirements, the line parking space will be deleted and the corresponding parking area will be replaced by the fused parking space.
6. The parking space corner point fusion method based on vision and ultrasonic radar according to claim 1 is characterized by: The fusion strategy based on the "line parking space priority" principle is divided into two situations. The first situation is that during the fusion process, when the starting or ending attribute of the entrance corner point of the spatial parking space of the virtual boundary is the same as the starting or ending attribute of the "nearest" entrance corner point of the line parking space to which it is bound, and the entrance corner point on the other side of the spatial parking space is not bound to the same line parking space as the entrance corner point of the virtual boundary, the spatial parking space is deleted, and the line parking space bound to the entrance corner point of the virtual boundary of the spatial parking space is prioritized as the fused parking area; the second situation is that after the fusion operation is completed, if the fused parking area overlaps with the remaining line parking spaces, the line parking space is prioritized as the parking area output, and the fused area and the corresponding spatial parking space are deleted.
7. The parking space corner point fusion method based on vision and ultrasonic radar according to claim 1 is characterized by: The parking area 1) of step 4 is obtained when only the spatial parking space entrance corner point ps point and the line parking space are bound, specifically as follows: Process 1) Determine whether the spatial parking space type is the same as the linear parking space type. If not, delete the spatial parking space and use the linear parking space to express the parking area; if they are the same, continue with process 2); Process 2) Determine whether the distance from the spatial parking space ps point to the line parking space ps is less than the distance to the line parking space pe point; if the distance is less than the distance from the spatial parking space ps point to the line parking space pe point, continue with process 3); if the distance is greater than the distance from the spatial parking space ps point to the line parking space pe point, then the line parking space pe point is the fused parking space ps point, and the fused parking space pe point is updated by the intersection method through the spatial parking space pe point and the line parking space bound to its ps point, and then proceed to process 7); Process 3) Determine whether the ps point of the spatial parking space is a physical boundary. If so, the ps and pe points of the fused parking space are calculated using the intersection method through the ps and pe points of the spatial parking space and the line parking space bound to its ps point, and continue with process 4); if not, proceed to process 8); Process 4) Determine whether the spatial parking space type is the same as the linear parking space type. If the types are the same, continue with process 5). If the types are different, proceed to process 8); Process 5) Delete the line parking space bound to the spatial parking space PS point; Process 6) Delete the spatial parking spaces and use the fused new parking spaces to express the overlapping areas of the parking spaces; Process 7) Determine whether the distance of the new entrance corner point of the fused parking space meets the parking width requirement. If the parking width meets the requirement, return to process 6). If not, proceed to process 8); Process 8) Delete spatial parking spaces and use line parking spaces to express the parking area.
8. The parking space corner point fusion method based on vision and ultrasonic radar according to claim 1 is characterized by: The parking area obtained in step 4 parking area 2) when only the spatial parking space entrance corner point pe point and the line parking space are bound is as follows: Process 1) Determine whether the spatial parking space type is the same as the linear parking space type. If not, delete the spatial parking space and use the linear parking space to express the parking area; if they are the same, continue with process 2); Process 2) Determine whether the distance between the spatial parking space pe point and the line parking space pe point is less than the distance to the line parking space ps point. If yes, continue with process 3). If not, the ps point of the line parking space is the pe point of the fused parking space. The ps point of the fused parking space is updated by the intersection method through the ps point of the spatial parking space and the line parking space bound to its pe point, and then proceed to process 6); Process 3) Determine whether the pe point of the spatial parking space is a physical boundary. If so, the ps and pe points of the fused parking space are calculated using the intersection method through the ps and pe points of the spatial parking space and the line parking space bound to its pe point, and continue with process 4); if not, proceed to process 7); Process 4) Delete the line parking space bound to the spatial parking space pe point and continue with process 5); Process 5) Delete the spatial parking spaces and use the fused new parking spaces to express the overlapping areas of the parking spaces; Process 6) Determine whether the distance of the new entrance corner point of the fused parking space meets the parking width requirement. If the parking width meets the requirement, return to process 5). If not, proceed to process 7); Process 7) Delete spatial parking spaces and use line parking spaces to express the parking area.
9. The parking space corner point fusion method based on vision and ultrasonic radar according to claim 1, characterized in that: The parking area obtained when the entrance corner points ps and pe of the spatial parking spaces in step 4 (parking area 3) are bound to the same linear parking space is as follows: Process 1) Determine whether the spatial parking space type is the same as the linear parking space type. If not, delete the spatial parking space and use the linear parking space to express the parking area; if they are the same, continue with process 2); Process 2) Determine whether the ps point and pe point of the spatial parking space are physical boundary points. If they are both physical boundary points, the ps point of the fused parking space is updated by the intersection method through the ps point of the spatial parking space and the line parking space bound to its ps point, and the pe point of the fused parking space is updated by the intersection method through the pe point of the spatial parking space and the line parking space bound to its pe point; proceed to process 4); Process 2) If the ps point of the spatial parking space bound to the same line parking space is a physical boundary point and the pe point is a virtual boundary point, the ps point of the fused parking space is updated by the intersection method through the ps point of the spatial parking space and the line parking space bound to its ps point, and the pe point of the fused parking space is the pe point of the line parking space; proceed to process 4); Process 3) If the pe point of the spatial parking space bound to the same line parking space is a physical boundary point and the ps point is a virtual boundary point, the pe point of the fused parking space is updated by the intersection method through the pe point of the spatial parking space and the line parking space bound to its pe point, and the ps point of the fused parking space is the ps point of the line parking space; proceed to process 4); Process 4) Delete the line parking spaces and the space parking spaces, and use the merged new parking spaces to express the overlapping areas of the parking spaces.
10. The parking space corner point fusion method based on vision and ultrasonic radar according to claim 1, characterized in that: The parking area obtained by the fusion strategy of binding different line parking spaces according to the entrance corner points ps and pe of the space parking space in step 4 (parking area 4) is as follows: Process 1) Determine whether the spatial parking space type is the same as the linear parking space type. If not, delete the spatial parking space and use the linear parking space to express the parking area; if they are the same, continue with process 2); Process 2) Determine whether the ps point of the spatial parking space is close to the pe point of the bound line parking space, and whether the pe point is close to the ps point of the bound line parking space. If the ps point of the spatial parking space is close to the pe point of the bound line parking space, and the pe point of the spatial parking space is close to the ps point of the bound line parking space, then the ps point of the fusion vehicle positioning is updated to the pe point of the line parking space bound to the ps point of the spatial parking space; the pe point of the fusion vehicle positioning is updated to the ps point of the line parking space bound to the pe point of the spatial parking space; proceed to process 8); Process 3) If the ps point of the spatial parking space is close to the pe point of the line parking space bound to it, but the pe point of the spatial parking space is far from the ps point of the line parking space bound to it, and the pe point of the spatial parking space is not a virtual boundary point, then the ps point of the fused parking space is updated to the pe point of the line parking space bound to it; the pe point of the fused parking space is updated by the intersection method through the pe point of the spatial parking space and the line parking space bound to the pe point; proceed to process 8); Process 4) If the ps point of the spatial parking space is far from the pe point of the line parking space bound to it, and the ps point of the spatial parking space is not a virtual boundary point; the pe point of the spatial parking space is close to the ps point of the line parking space bound to it, then the ps point of the fused parking space is updated by the intersection method through the ps point of the spatial parking space and the line parking space bound to the ps point; the pe point of the fused parking space is updated to the pe point of the line parking space bound to it; proceed to process 8); Process 5) If the ps point of the spatial parking space is far from the pe point of the line parking space bound to it, and the ps point of the spatial parking space is not a virtual boundary point; the pe point of the spatial parking space is far from the ps point of the line parking space bound to it, and the pe point of the spatial parking space is not a virtual boundary point, then the ps point of the fused parking space is updated by the intersection method through the ps point of the spatial parking space and the line parking space bound to the ps point; the pe point of the fused parking space is updated by the pe point of the spatial parking space and the line parking space bound to the pe point; proceed to process 8); Process 6) If the ps point of the spatial parking space is far from the pe point of the line parking space bound to it, and the ps point of the spatial parking space is a virtual boundary point; or the pe point of the spatial parking space is far from the ps point of the line parking space bound to it, and the pe point of the spatial parking space is a virtual boundary point; continue with process 7), Process 7) Delete spatial parking spaces and use line parking spaces to express overlapping parking areas; Process 8) Determine whether the distance of the new entrance corner point of the fused parking space meets the parking width requirement. If so, continue with process 9); otherwise, proceed to process 7); Process 9) If the spatial parking space ps point is close to the bound line parking space ps point and the ps point is a physical boundary point, then proceed to process 10); otherwise, proceed to process 12); Process 10) If the spatial parking space pe point is close to the bound line parking space pe point and the pe point is a physical boundary point, then proceed to process 11); otherwise, proceed to process 13); Process 11) Use the fused new corner points to express the parking area and delete the overlapping parking spaces; Process 12) Delete the line parking space bound to the space parking space PS point and jump to process 10). Process 13) Delete the line parking space bound to the spatial parking space pe point and jump to process 11).
