Map construction method and device, equipment and storage medium

By determining the types of new parking spaces and current parking areas during the construction of the automatic parking map and optimizing the display, the problem of inconsistent parking spaces in the construction of the automatic parking map is solved and the efficiency and accuracy of automatic parking are improved.

CN118570406APending Publication Date: 2024-08-30DONGFENG MOTOR CO LTD DONGFENG NISSAN PASSENGER VEHICLE CO
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410701091.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

During the construction process of the automatic parking map, due to factors such as road conditions, environmental complexity, and vehicle-mounted sensor accuracy, the garage is inconsistent with the actual situation, and problems such as misalignment, deviation, overlap, and lane encroachment occur, affecting the efficiency of automatic parking and valet parking. , and may even cause functional failure.

Method used

When a new parking space is detected, determine whether it is of the same type as the parking space recorded in the current parking space area. If it is not of the same type, set the end point of the area, optimize the map display, and create a new parking space area in the map, using the new parking space as The first recorded parking space is to check whether the map construction is completed. If it is completed, the detection will be terminated.

Benefits of technology

By merging parking spaces that are close and of the same type into the same parking space area, it is ensured that the parking spaces in the map fit the actual situation, which facilitates automatic parking, improves the efficiency and accuracy of automatic parking, and avoids functional failure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570406A
    Figure CN118570406A
Patent Text Reader

Abstract

The invention belongs to the technical field of automatic driving, and discloses a map construction method and device, equipment and a storage medium. According to the invention, when the new parking space is detected, whether the new parking space and the recorded parking space in the current parking space area are the same type of parking space is determined; if the parking spaces are not the same type, setting a district end point for the current parking space district according to the parking space position corresponding to the new parking space; performing display optimization on the recorded parking spaces of the current parking space district in the map according to the district end point; creating a new parking space area in the map, taking the new parking space as a first recorded parking space corresponding to the new parking space area, and detecting whether the map construction is completed or not; and if the map construction is completed, stopping the detection of the parking space. When the map is constructed, the parking spaces which are close to the same type in the same parking space area are merged into the same parking space area, so that display optimization can be performed according to the information characteristics of the same type of parking space area, the parking spaces in the constructed map are ensured to fit the actual condition, and automatic parking is facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of autonomous driving technology, and in particular to a map construction method, device, equipment and storage medium. Background Art

[0002] With the in-depth development of the intelligent network field, more and more cars are equipped with advanced driver assistance functions (ADAS). ADAS can realize valet parking (AVP) and memory parking (HPA) through information perception and fusion of multiple sensors (lidar / millimeter wave radar / ultrasonic radar / camera), that is, the vehicle can autonomously cruise to the vicinity of the parking space and park automatically under automatic driving.

[0003] Automatic parking relies on pre-built maps, in which existing parking spaces need to be marked. During the map-building process, problems may arise due to road conditions, complex environment, accuracy of on-board sensors, and functional system errors. The following are some of the possible problems: the garages found during map-building are inconsistent with the actual situation, and there may be misalignment, deviation, overlap, or lane encroachment. This will affect path planning during memory parking / valet parking, and may even cause functional failure in severe cases. The scene utilization is low, different parking spaces are detected and displayed separately, and the information characteristics of the same type of parking spaces in the parking lot are not fully utilized. As a result, some parking spaces may be misdetected or missed. Summary of the invention

[0004] The main purpose of the present invention is to provide a map construction method, device, equipment and storage medium, aiming to solve the technical problem that problems easily occur when creating maps for automatic parking in the prior art, resulting in low efficiency of automatic parking or even failure.

[0005] To achieve the above object, the present invention provides a map construction method, which comprises the following steps:

[0006] When a new parking space is detected, determining whether the new parking space is of the same type as a parking space already recorded in the current parking space area;

[0007] If they are not the same type of parking spaces, setting an area end point for the current parking area according to the parking space position corresponding to the new parking space;

[0008] Optimizing the display of the recorded parking spaces in the current parking space area in the map according to the end point of the area;

[0009] Creating a new parking space area in the map, and using the new parking space as the first recorded parking space corresponding to the new parking space area, and detecting whether the map construction is completed;

[0010] If the map is built, the detection of parking spaces is terminated.

[0011] Optionally, when a new parking space is detected, the step of determining whether the new parking space and a parking space recorded in the current parking space area are of the same type of parking space includes:

[0012] When a new parking space is detected, determining whether the new parking space is in a new parking space area;

[0013] If the new parking space is not in the new parking space area, it is determined whether the new parking space and the recorded parking space in the current parking space area are of the same type.

[0014] Optionally, when a new parking space is detected, the step of determining whether the new parking space is in a new parking space area includes:

[0015] When a new parking space is detected, the previous recorded parking space corresponding to the new parking space is obtained, where the previous recorded parking space is the parking space closest to the new parking space and has been recorded;

[0016] Constructing a search area based on the far corner point of the previously recorded parking space and a preset length;

[0017] Detect whether the parking space corner point corresponding to the new parking space is within the search area, and determine whether the new parking space is within the new parking space area according to the detection result.

[0018] Optionally, the step of determining whether the new parking space and the recorded parking space in the current parking space area are of the same type of parking space includes:

[0019] Determine the size difference according to the parking space size corresponding to the new parking space and the parking space size corresponding to the recorded parking space in the current parking space area;

[0020] If the size difference is greater than or equal to a preset difference threshold, it is determined that the new parking space and the recorded parking space in the current parking space area are not of the same type.

[0021] Optionally, after the step of determining the size difference according to the parking space size corresponding to the new parking space and the parking space size corresponding to the recorded parking space in the current parking space area, the step further includes:

[0022] If the size difference is less than a preset difference threshold, then checking whether the new parking space is consistent with the parking space category recorded in the current parking space area, wherein the parking space category is determined according to the angle between the parking space and the driving lane;

[0023] If they are consistent, it is determined that the new parking space is of the same type as the parking space recorded in the current parking space area.

[0024] Optionally, when a new parking space is detected, the step of determining whether the new parking space and a parking space recorded in the current parking space area are of the same type of parking space includes:

[0025] When a new parking space is detected, the parking space corner point and parking space marking line corresponding to the new parking space are obtained;

[0026] Detecting whether the new parking space is a valid parking space according to the parking space corner point and the parking space marking line;

[0027] If it is a valid parking space, it is determined whether the new parking space is of the same type as the parking space recorded in the current parking space area.

[0028] Optionally, the step of optimizing the display of the recorded parking spaces in the current parking space area in the map according to the area endpoint includes:

[0029] Determine the length of the area according to the end point of the area and the starting point of the area corresponding to the current parking area;

[0030] Determine the edge distance between the edge parking spaces in the current parking space area and the edge of the area based on the area length, and obtain parking space feature data corresponding to each recorded parking space in the current parking space area;

[0031] Generate a uniform parking space size, parking space spacing, and parking space road distance according to the parking space characteristic data;

[0032] The recorded parking spaces in the current parking space area in the map are displayed in an optimized manner according to the uniform parking space size, the parking space spacing, the parking space road distance and the edge spacing.

[0033] In addition, to achieve the above-mentioned purpose, the present invention further proposes a map construction device, the map construction device comprising:

[0034] A determination module, used to determine whether the new parking space is of the same type as the parking space recorded in the current parking space area when a new parking space is detected;

[0035] A setting module, for setting an area end point for the current parking area according to the parking position corresponding to the new parking area if the parking spaces are not of the same type;

[0036] An optimization module, used for optimizing the display of the recorded parking spaces in the current parking space area in the map according to the end point of the area;

[0037] A creation module, used to create a new parking space area in the map, and use the new parking space as the first recorded parking space corresponding to the new parking space area, and detect whether the map construction is completed;

[0038] The control module is used to terminate the detection of parking spaces if the map construction is completed.

[0039] In addition, to achieve the above-mentioned purpose, the present invention also proposes a map construction device, which includes: a processor, a memory, and a map construction program stored in the memory and executable on the processor, and the map construction program implements the steps of the map construction method described above when executed by the processor.

[0040] In addition, to achieve the above-mentioned purpose, the present invention further proposes a computer-readable storage medium, on which a map construction program is stored, and when the map construction program is executed, the steps of the map construction method described above are implemented.

[0041] The present invention determines whether the new parking space is of the same type as the recorded parking space in the current parking space area when a new parking space is detected; if they are not of the same type, the area end point is set for the current parking space area according to the parking space position corresponding to the new parking space; the recorded parking spaces in the current parking space area in the map are displayed and optimized according to the area end point; a new parking space area is created in the map, and the new parking space is used as the first recorded parking space corresponding to the new parking space area, and the map construction is detected to be complete; if the map construction is complete, the parking space detection is terminated. Since parking spaces of the same type and close to each other are incorporated into the same parking space area when the map is constructed, it is ensured that the display optimization can be performed according to the information characteristics of the same type of parking space area, and the parking spaces in the constructed map are in line with the actual situation, which is convenient for automatic parking. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a schematic diagram of the structure of an electronic device in a hardware operating environment involved in an embodiment of the present invention;

[0043] Figure 2 This is a flow chart of a first embodiment of a map construction method of the present invention;

[0044] Figure 3 A flowchart of parking space sensing transformation according to an embodiment of the present invention;

[0045] Figure 4 A schematic diagram of a parking space according to an embodiment of the present invention;

[0046] Figure 5 This is a flow chart of a second embodiment of a map construction method according to the present invention;

[0047] Figure 6 This is a flow chart of a third embodiment of a map construction method according to the present invention;

[0048] Figure 7 A schematic diagram of display optimization according to an embodiment of the present invention;

[0049] Figure 8 This is a structural block diagram of the first embodiment of the map construction device of the present invention.

[0050] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0051] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0052] Reference Figure 1 , Figure 1 A schematic diagram of the structure of a map construction device for a hardware operating environment involved in an embodiment of the present invention.

[0053] like Figure 1 As shown, the electronic device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0054] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0055] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a map building program.

[0056] exist Figure 1In the electronic device shown, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the electronic device of the present invention can be set in a map building device, and the electronic device calls the map building program stored in the memory 1005 through the processor 1001, and executes the map building method provided by an embodiment of the present invention.

[0057] The embodiment of the present invention provides a map construction method, referring to Figure 2 , Figure 2 The figure is a flowchart of a first embodiment of a map construction method of the present invention.

[0058] In this embodiment, the map construction method includes the following steps:

[0059] Step S10: When a new parking space is detected, determine whether the new parking space is of the same type as the parking spaces recorded in the current parking space area.

[0060] It should be noted that the execution subject of this embodiment can be the vehicle itself or a map construction device arranged in the vehicle. The map construction device can be a controller arranged in the vehicle, such as an ECU controller, or other devices that can achieve the same or similar functions. This embodiment is not limited to this. In this embodiment and the following embodiments, the map construction method of the present invention is described by taking the map construction device as an example.

[0061] It should be noted that in order to ensure that the environment around the vehicle can be detected and parking spaces can be identified, at least one on-board sensor (such as lidar, millimeter-wave radar, ultrasonic radar, camera and other sensors) can be pre-installed in the vehicle, and based on the information perception and information fusion of the on-board sensor, it can detect and search for parking spaces around the vehicle.

[0062] In actual use, before automatic parking, the vehicle needs to build a map in advance. At this time, the vehicle driver can drive the vehicle to cruise, or the vehicle ADAS system can control the vehicle to cruise automatically. At this time, the vehicle will detect the surrounding environment, draw a map, and detect the parking spaces around the vehicle, and mark the parking spaces in the constructed map.

[0063] In actual application, if a new parking space is detected, it means that a parking space that has not been detected before is detected. At this time, in order to ensure that a better map can be drawn in the future by combining parking spaces of the same type and the same area, it is possible to first detect whether the new parking space is of the same type as the recorded parking spaces in the current parking area.

[0064] It should be noted that the current parking area may be the area where the vehicle was located before the new parking space was detected, and the recorded vehicle may be a vehicle that has been detected in the area. At this time, in order to determine whether the newly detected parking space and the previously detected parking space can be classified into the same category for processing when constructing the map, it is necessary to first determine whether the new parking space and the recorded parking space in the current parking area are of the same type.

[0065] For ease of understanding, now combined Figure 3 This is for illustration only, but not for limitation. Figure 3 This is a flow chart of the parking space sensing transformation in this embodiment, as shown in FIG. Figure 3 As shown, the vehicle can be provided with an on-board sensor, which detects the surrounding parking spaces. When a parking space is detected, the world coordinate system coordinates of the parking space can be converted into image coordinate system coordinates through a series of transformations (projection transformation, imaging model, coordinate transformation, etc.) through multi-level transformations. After that, the detected parking space can be drawn in the map constructed by the vehicle according to the image coordinate system coordinates.

[0066] Among them, the projection transformation relationship between the world coordinates and the camera coordinates can be expressed by a steamed dumpling rotation matrix and a translation transformation matrix:

[0067]

[0068] Among them, the dumpling matrix R actually only includes three independent variables, namely the yaw angle α, roll angle β and pitch angle θ of the camera installation, and then considering the three parameters tx, ty, and tz of the translation transformation, these six parameters are the external parameters of the camera to be calibrated.

[0069] The linear imaging model assumes that the space point, the projection center and the imaging point are in a straight line. Let f be the focal length of the camera, then the following equation holds:

[0070] x=f*x c / v0

[0071] y=f*y c / z c

[0072] The matrix form is:

[0073]

[0074] If the distances between the x-axis and y-axis ringing pixels of the imaging surface are represented by dx and dy respectively, the relationship between the image coordinate system and the imaging surface coordinate system is:

[0075] μ=μ0+x / dx

[0076] v=v0+y / dy

[0077] The matrix form is:

[0078]

[0079] Based on the above description, it can be determined that the linear transformation formula between image coordinates and spatial position is:

[0080]

[0081] Among them, dx, dy, μ0, v0 and f are the intrinsic parameters of the camera. Combined with the above 6 external parameters, a total of 11 parameters need to be calibrated.

[0082] In a specific implementation, in order to reduce unnecessary judgments, step S10 in this embodiment may include:

[0083] When a new parking space is detected, the parking space corner point and parking space marking line corresponding to the new parking space are obtained;

[0084] Detecting whether the new parking space is a valid parking space according to the parking space corner point and the parking space marking line;

[0085] If it is a valid parking space, it is determined whether the new parking space is of the same type as the parking space recorded in the current parking space area.

[0086] It should be noted that a parking space is generally a rectangular area, the sides of which are parking space markings, and a parking space corner point may be a portion of an intersection of parking space markings of the parking space close to a lane side.

[0087] In actual use, it can be determined in many ways. For ease of understanding, we will now combine Figure 4 This is for illustration only, but not for limitation. Figure 4 is a schematic diagram of the parking space structure. Figure 4 As shown, the lane is Lg, Figure 4 There are three parking spaces, namely n, m and q, wherein the parking space corner points of parking space n include A and B, and the parking space marking lines include n1, n2 and n3; the parking space corner points of parking space m include C and D, and the parking space marking lines include m1, m2 and m3; the parking space corner points of parking space q include E and F, and the parking space marking lines include q1, q2 and q3;

[0088] At this time, if the detected new parking space is n, at least one of the following methods can be used to determine whether the new parking space n is a valid parking space:

[0089] Confirm the length of the parking space marking line n1 between the parking space corner points A and B, and compare it with the preset parking space size. If the length n1 is greater than or equal to the preset parking space size, the parking space is determined to be a valid parking space, otherwise, it is an invalid parking space;

[0090] Record the angle θ between the extended line of line segment AB and the edge of the lane line Lg, and compare it with the preset angle threshold θ0. If the absolute value of the angle |θ|<θ0, the parking space is considered to be valid near the boundary of the lane end, and the parking space is determined to be a valid parking space; if |θ|≥θ0, the parking space is considered to be an invalid parking space;

[0091] Confirm the angles between the marking lines n1 and n2 with the corner points A and B as endpoints and the line segment AB. If the angle between the marking line n2 and the perpendicular direction of the line segment AB is γ1, compare it with the preset angle threshold γ0. If the absolute value of the angle |γ1|<γ0, it is considered that the boundary of the parking space close to the lane end is valid and the parking space is determined to be a valid parking space; if |γ2|≥γ0, the parking space is determined to be an invalid parking space;

[0092] Determine the angles between the markings n1 and n2 with the parking space corner points A and B as endpoints and the line segment AB. For example, the angle between the parking space marking n2 and the perpendicular direction of the line segment AB is γ1, and the angle between the parking space marking n3 and the perpendicular direction of the line segment AB is γ2. If the absolute value of the angle |γ1-γ2| < γ 00 , then the parking space close to the lane end is considered valid and is determined to be a valid parking space; if |γ1-γ2|≥γ 00 , then the parking space is considered to be an invalid parking space, where γ 00 is the second preset angle threshold.

[0093] Step S20: If the parking spaces are not of the same type, then setting an area end point for the current parking area according to the parking space position corresponding to the new parking space.

[0094] It can be understood that if the new parking space is not the same type as the recorded parking space in the current parking area, it means that the new parking space detected at this time is different from the recorded parking space detected previously and cannot be classified as one. However, since a parking space of a different type from that in the current parking area has appeared at this time, it can be determined that one has left a parking area and entered a new parking area. Therefore, the area end point can be set for the current parking area according to the parking space position corresponding to the new parking space.

[0095] Step S30: optimizing the display of the recorded parking spaces in the current parking space area in the map according to the end point of the area.

[0096] In actual use, since it has been determined that the current parking area has been left and entered a new parking area, it can be considered that all parking spaces in the current parking area have been recorded. At this time, in order to ensure the display effect of each parking space corresponding to the current parking area in the map, the display of the recorded parking spaces in the current parking area in the map can be optimized according to the end point of the area.

[0097] Step S40: creating a new parking space area in the map, and taking the new parking space as the first recorded parking space corresponding to the new parking space area, and detecting whether the map construction is completed.

[0098] Step S50: If the map is constructed, the detection of the parking space is terminated.

[0099] It can be understood that since it has been determined that the current parking area has been left and a new parking area has been entered, it can be considered that the new parking space is actually the first parking space detected in the new area. Therefore, a new parking area can be created in the map, and the new parking space can be used as the first recorded parking space corresponding to the new parking area. At this time, since it is uncertain whether the new parking space is the last parking space that needs to be detected, it is possible to check whether the map construction is completed.

[0100] If the vehicle driver is cruising while the map is being constructed, then it can be determined whether the map is constructed by detecting whether the driver has triggered a corresponding termination function. For example, if the driver clicks a termination button or sends a termination command to the vehicle through a user terminal, it can be determined that the map is constructed.

[0101] If automatic driving is used when the map is built, and the vehicle's ADAS system controls the vehicle's automatic cruising, it can be detected at this time whether the automatic cruising has reached the conditions pre-set by the user, or whether the exit conditions are met. For example: if it is detected that the vehicle has completed automatic cruising along the route specified by the user, or if it is detected that the vehicle has completed cruising in the area specified by the user, then it can be determined that the map is built.

[0102] It can be understood that if the map construction is completed, it means that the map construction is now completed, and the detection of parking spaces can be terminated at this time. If necessary, the end point of the newly constructed new parking space area can be set, and the display of the recorded parking spaces in the newly constructed new parking space area can be optimized; if the map construction is not completed, the detection of surrounding parking spaces can continue, and when a new parking space is detected, return to execute step S10 of this embodiment.

[0103] In a specific implementation, if the new parking space is of the same type as the recorded parking space in the current parking area, it means that the new parking space detected at this time is similar or basically the same as the previously detected recorded parking space, and can be classified into the same category for processing. At this time, the new parking space can be used as a new recorded parking space in the current parking area. Afterwards, it can be detected whether the map construction is completed. If the map construction is not completed, the detection of the surrounding parking spaces can continue, and when a new parking space is detected, return to execute step S10 of this embodiment; if the map construction is completed, the detection of the parking space can be terminated. At the same time, the area end point can be set for the current parking area, and the display of the recorded parking spaces in the current parking area described in the map of the current parking area can be optimized.

[0104] This embodiment determines whether the new parking space is of the same type as the recorded parking space in the current parking space area when a new parking space is detected; if they are not of the same type, the area end point is set for the current parking space area according to the parking space position corresponding to the new parking space; the recorded parking spaces in the current parking space area in the map are displayed and optimized according to the area end point; a new parking space area is created in the map, and the new parking space is used as the first recorded parking space corresponding to the new parking space area, and the map construction is detected to be complete; if the map construction is complete, the parking space detection is terminated. Since parking spaces of the same type and close to each other are incorporated into the same parking space area when the map is constructed, it is ensured that the display can be optimized according to the information characteristics of the same type of parking space area, and the parking spaces in the constructed map are in line with the actual situation, which is convenient for automatic parking.

[0105] refer to Figure 5 , Figure 5 FIG. 4 is a flow chart of a second embodiment of a map construction method according to the present invention.

[0106] Based on the first embodiment, step S10 of the map construction method of this embodiment includes:

[0107] Step S101: when a new parking space is detected, determining whether the new parking space is in a new parking space area.

[0108] It should be noted that when a new parking space is detected, the movement information of the vehicle before the new parking space is detected can be combined to determine whether the vehicle has moved to a new parking area. For example, if the new parking space is detected only after the vehicle has made a large turn or other operations during its movement, then it can be directly determined that the new parking space is in the new parking area.

[0109] In a specific implementation, it is also possible to assist in determining whether the new parking space is in the new parking space area based on previously recorded parking spaces. In this case, step S101 of this embodiment may include:

[0110] When a new parking space is detected, obtaining the previously recorded parking space corresponding to the new parking space;

[0111] Constructing a search area based on the far corner point of the previously recorded parking space and a preset length;

[0112] Detect whether the parking space corner point corresponding to the new parking space is within the search area, and determine whether the new parking space is within the new parking space area according to the detection result.

[0113] It should be noted that the previously recorded parking space can be the parking space that is closest to the detected new parking space and has been recorded. The parking space far point corner point can be determined according to the moving direction of the vehicle when building the map. For example, if the vehicle moves from left to right along the lane, there will be two corner points (i.e., the intersection of the parking space lines) on the lane side of the previously recorded parking space. In this case, the corner point on the right side is the parking space far point corner point.

[0114] In actual use, the preset length can be set in advance by the administrator of the map construction device, for example, the preset length is set to 50 centimeters. Constructing the search area based on the parking far corner point of the previously recorded parking space and the preset length can be to construct a circular area with the parking far corner point of the previously recorded parking space as the center and the preset length as the radius, and use the constructed circular area as the search area. Of course, if necessary, the search area can also be rectangular or other shapes, and this embodiment is not limited to this.

[0115] In actual application, it is detected whether the parking corner point corresponding to the new parking space is within the search area. Judging whether the new parking space is within the new parking space area according to the detection result can be to detect whether the parking corner point corresponding to the new parking space is within the search area. If at least one of the parking corner points corresponding to the new parking space is within the search area, it means that the new parking space is very close to the previously recorded parking space. In this case, it is determined that the new parking space is not within the new parking space area. If none of the parking corner points corresponding to the new parking space are within the search area, it means that the new parking space is far away from the previously recorded parking space, which may be separated by obstacles or there may be buildings in between. In this case, it can be determined that the new parking space is within the new parking space area.

[0116] For ease of understanding, now combined with the above Figure 4 This is for illustration only, but not for limitation. Figure 4 Where n is the previously recorded parking space, m is the newly detected parking space, and the vehicle moves from left to right. At this time, the parking corner point B is the far corner point of the previously recorded parking space. At this time, a search area is constructed with a preset length R as the radius. If the parking corner point C of parking space m is within the search area, it can be determined that the new parking space is not in the new parking space area; if both the parking corner points C and D of parking space m are not within the search area, it can be determined that the new parking space is in the new parking space area.

[0117] Among them, if the parking space corner point C is in the search area corresponding to the parking space corner point B, then at this time, the corresponding corner point confidence can be set for the parking space corner point C according to the distance between the parking space corner point C and the parking space corner point B. For example: assuming that the distance between the parking space corner point C and the parking space corner point B is r, then at this time, r can be matched with multiple preset length intervals, and the confidence corresponding to the length interval to which r belongs can be used as the corner point confidence of the parking space corner point C; or the difference between r and R is calculated. If the difference between r and R is less than the preset distance threshold, the ratio of r to R is used as the corner point confidence of the parking space corner point C.

[0118] Of course, other methods may be used to set the corresponding corner point confidence for the parking space corner point C according to the distance between the parking space corner point C and the parking space corner point B, and this embodiment does not limit this.

[0119] Step S102: If the new parking space is not in the new parking space area, determine whether the new parking space and the recorded parking spaces in the current parking space area are of the same type.

[0120] It is understandable that if it is determined that the new parking space is not in the new parking space area, then further analysis is required to determine whether the new parking space is the same type of parking space as the parking space recorded in the current parking space area.

[0121] For ease of understanding, an example is given below, but this solution is not limited thereto. The execution process of the map construction method in this embodiment may include:

[0122] 1) The user activates memory parking, the system parameters (A, N, K, W) are initialized, and the vehicle sensor returns the surrounding scene information, where A is the parking area number, N is the number of the recorded parking spaces in the parking area, K is the parking space feature, and W is the feature of the same type of parking spaces in the parking area, W = f(K);

[0123] 2) The vehicle starts to build a map, the driver controls the vehicle to move and find a garage, and the system records the path information that the vehicle has passed;

[0124] 3) Assuming that the parking lot area number of the current parking lot area is A1, and the number of the last recorded parking lot is N1, the vehicle sensor finds a new parking lot, and it can be determined whether the parking lot is in the new parking lot area;

[0125] 4) Based on 3), if the vehicle is in a new parking area, the area number of the parking area is A+1, the parking space number is 1, the feature K1 of the new parking space is extracted, and the area starting point PAs is recorded. The new parking space is recorded as (A+1, 1, K1), that is, the first parking space in the A+1 parking area, and its parking space feature is K. At this time, we can return to 2) and the vehicle continues to move and search for parking spaces;

[0126] 5) Based on 3), if the vehicle is not in the new area, extract the parking space features and compare them to determine whether the newly discovered parking space is of the same type as the currently known area; if so, count the parking space N1+1, record the newly discovered parking space as (A1, N1, K), iterate the parking space features of this type W=f(K), and return to 2) The vehicle continues to move and search for parking spaces;

[0127] 6) Based on 5), when the vehicle is not in a new area and the newly discovered parking space is different from the parking space in the known area, the previous (same type of parking space) parking space area is determined to be over, and the end point PAe of the area is recorded. The parking spaces in the area between the area start point PAs and the area end point PAe are the same type of parking space area;

[0128] 7) Based on 6), it can be determined that the previous (same type of parking space) area has ended. After the system has finished processing, it returns to step 4), determines that the newly discovered parking space is the first parking space in the new area, the parking space area number is A1+1, the parking space number is 1, the parking space feature K is extracted, and the parking space area starting point PAs is recorded. Return to 2) The vehicle continues to move and search for parking spaces;

[0129] If the vehicle map is completed, the vehicle computer records have been divided into various areas, the garage location information is cached and the garage map is rebuilt, the function ends.

[0130] When judging whether a new parking space is of the same type as a recorded parking space in the current parking area, this embodiment combines vehicle movements, parking space spacing distances, etc. for comprehensive judgment, thereby ensuring the accuracy of the judgment, being more conducive to map construction, and ensuring the validity of the map.

[0131] refer to Figure 6 , Figure 6 It is a flowchart diagram of a third embodiment of a map construction method of the present invention.

[0132] Based on the first embodiment, step S10 of the map construction method of this embodiment includes:

[0133] Step S101 ′: when a new parking space is detected, the size difference is determined according to the parking space size corresponding to the new parking space and the parking space size corresponding to the recorded parking spaces in the current parking space area.

[0134] It should be noted that the parking space size may include size information such as the length of each parking space marking line.

[0135] In actual use, the size difference can be determined according to the parking space size corresponding to the new parking space and the parking space size corresponding to the recorded parking space in the current parking space area by subtracting the parking space markings at the same position in the new parking space and the current parking space area, thereby obtaining the size difference;

[0136] Alternatively, the angle between the new parking space and the parking space marking line at the same position in the current parking space area may be obtained, and the angle may be used as the size difference.

[0137] Step S102': if the size difference is greater than or equal to a preset difference threshold, it is determined that the new parking space and the recorded parking space in the current parking space area are not of the same type.

[0138] It should be noted that the preset difference threshold may be set in advance by a manager of the map building device.

[0139] It can be understood that if the size difference is greater than the preset difference threshold, it means that the length and / or width of the new parking space and the recorded parking spaces in the current parking area are quite different. Therefore, it can be determined that the new parking space and the recorded parking spaces in the current parking area are not the same type of parking spaces.

[0140] For ease of understanding, now combined Figure 4 This is for illustration only, but not for limitation. Figure 4 Parking space n is a recorded parking space in the current parking space area, parking space m is a new parking space, and the preset difference threshold is L0. Since the length collection on the side far from the lane line may be inaccurate, the size difference between the parking space marking line n1 of parking space n and the parking space marking line m1 of parking space m can be calculated at this time. At this time, the size difference = |n1-m1|. If |n1-m1|<L0, it can be determined that the new parking space and the recorded parking space in the current parking space area are of the same type; and if |n1-m1|≥L0, it can be determined that the new parking space and the recorded parking space in the current parking space area are of different types.

[0141] Alternatively, the preset difference threshold is set to β0 to calculate the angle |β| between the parking space marking line n1 of parking space n and the parking space marking line m1 of parking space m. If the angle |β| between the two parking space marking lines is less than β0, it can be determined that the new parking space is of the same type as the parking space already recorded in the current parking space area; and if |β|≥β0, it can be determined that the new parking space is of a different type than the parking space already recorded in the current parking space area.

[0142] Of course, the size difference can also include the difference in angle and marking line length. In this case, if |n1-m1|<L0 and |β|<β0, it can be determined that the new parking space and the recorded parking space in the current parking area are of the same type; if |n1-m1|≥L0, or |β|≥β0, it can be determined that the new parking space and the recorded parking space in the current parking area are of different types.

[0143] In a specific implementation, in order to accurately determine whether the new parking space and the parking space recorded in the current parking space area are of the same type, after step S101' described in this embodiment, the following may also be included:

[0144] If the size difference is less than a preset difference threshold, detecting whether the new parking space is consistent with the parking space category recorded in the current parking space area;

[0145] If they are consistent, it is determined that the new parking space is of the same type as the parking space recorded in the current parking space area.

[0146] It should be noted that the parking space category is determined based on the angle between the parking space and the lane. For example, if the parking space is perpendicular to the lane, the parking space category can be a perpendicular category; if the parking space is parallel to the lane, the parking space category can be a parallel category; if the parking space is inclined relative to the lane, the parking space category can be an oblique category. Depending on the inclination angle, it can be further subdivided (such as 30°, 45°, 60°). Specifically, since it may be difficult to distinguish the parking space category directly based on the lane line (for example, it may be difficult to distinguish between the perpendicular category and the parallel category because the distance measurement may not be accurate enough), when distinguishing the parking space category, it can also be determined based on the discharge method of the vehicles parked in the parking space relative to the lane line (or the placement method of the parked vehicles in the same type of parking space relative to the lane line).

[0147] It can be understood that if the size difference is less than the preset difference threshold, it means that the size of the new parking space is basically the same as the parking space recorded in the current parking area. If the parking space categories of the two parking spaces are also the same, it can be determined that the new parking space and the parking space recorded in the current parking area are the same type of parking space.

[0148] Among them, when there is actual need, it is also possible to not combine the size difference, but instead compare the parking space categories of the two parking spaces, and determine whether the new parking space is the same type of parking space as the recorded parking space in the current parking area based on whether the parking space categories of the two parking spaces are consistent.

[0149] Furthermore, in order to ensure the display effect of the parking spaces in the map, step S30 in this embodiment may include:

[0150] Determine the edge distance between the edge parking spaces in the current parking space area and the edge of the area based on the area length, and obtain parking space feature data corresponding to each recorded parking space in the current parking space area;

[0151] Generate a uniform parking space size, parking space spacing, and parking space road distance according to the parking space characteristic data;

[0152] Determine the length of the area according to the end point of the area and the starting point of the area corresponding to the current parking area;

[0153] The recorded parking spaces in the current parking space area in the map are displayed in an optimized manner according to the uniform parking space size, the parking space spacing, the parking space road distance and the edge spacing.

[0154] It should be noted that the edge spacing can be the distance between the outermost parking space in the current parking area and the edge of the parking area, the same parking space size can be the parking space size of each parking space in the current parking area after optimization, the parking space spacing can be the distance between each parking space in the current parking area after optimization, and the parking space-road distance can be the distance between each parking space and the lane line in the current parking area after optimization.

[0155] For ease of understanding, now combined Figure 7 For example, the parking spaces in the current parking area before optimization are as follows: Figure 7 As shown in a, in this embodiment, display optimization may include the following steps:

[0156] 1) Obtain the area starting point PAe, area end point PAs and area parking space set corresponding to the current parking area (the area parking space set includes all recorded parking spaces corresponding to the current parking area, and each recorded parking space is represented by (A, N, K)). At this time, the area length is LA.

[0157] 2) In actual use, the above Figure 4 Based on the example in , assuming that the parking space set in the area includes parking spaces n, m and q, the unified parking space size can be calculated as follows:

[0158] X = (n1*w1+m1*w2+q1*w3) / N;

[0159] Y=(n2*w1+n3*w1+m2*w2+m3*w2+q2*w3+q3*w3) / 2N;

[0160] Where X is the length of the parking space marking line of the parking space close to the driving lane in the same parking space size, Y is the length of the parking space marking line perpendicular to the driving lane or compared with the driving lane, n1, n2, n3 are the lengths of the parking space marking lines of parking space n, m1, m2, m3 are the lengths of the parking space marking lines of parking space m, q1, q2, q3 are the lengths of the parking space marking lines of parking space q, w1, w2, w3 are the confidence levels of parking space n, parking space m, and parking space q respectively;

[0161] 3) For a set of parking spaces in a certain area, mark the tangent line between it and the overall outline of the road (i.e., the driving lane) as Lg, then the unified distance from each parking space to the tangent line Lg is:

[0162] d=(LA*WA+LB*WB+LC*WC+LD*WD) / 2N,

[0163] Where LA, LB, LC, and LD are the distances from parking space corner points A, B, C, and D to Lg, respectively; WA, WB, WC, and WD are the corner point confidences corresponding to parking space corner points A, B, C, and D, respectively;

[0164] 4) If the corner of a parking space intrudes into the lane, the distance information of the corner point relative to the reference tangent line Lg is discarded and unified based on the distance d of other parking spaces, such as Figure 4 If the corner points E and F of the middle parking space invade the lane, but the overall parking space is valid, the distance information of the corner points E and F relative to the baseline Lg will be discarded to reduce the impact of sensor drift or misidentification.

[0165] 5) The distance between parking spaces n and m is the projection component of r in the Lg direction, then the distance a = rcosθ, and the distance b between parking spaces m and q is obtained in the same way;

[0166] The parking space spacing in the area is obtained uniformly as s = (a*w1+b*w2) / N, where w1 and w2 are the confidence levels of parking space n and parking space m respectively (the values ​​are as follows Figure 7 as shown in b).

[0167] 6) When s<s0, the parking space set is considered to be compact and no parking space spacing is set;

[0168] When s≥s0, the parking space set is considered to be uniform, and the corresponding pixel distance is allocated according to the projection of the spacing s on the screen. s0 is the threshold preset by the manager of the map construction equipment.

[0169] 7) Obtain the optimized parking space set T, with the starting points TAs and TAe respectively, and its length is LTA. Align the center point of T close to the lane end with the normal direction of the tangent line of the lane geometric area, and the spacing is d;

[0170] 8) Arrange the parking spaces in the overall area L;

[0171] In the overall area, the distance between the edge of the compact parking spaces and their edge parking spaces and the edge of the parking area (such as edge obstacles) is l = (LA-LTA) / 2. The final optimized effect is as follows: Figure 7 As shown in d;

[0172] In the overall area, for uniform parking spaces, the distance between the edge of the parking space and the edge of the parking area (such as edge obstacles) is l = (LA-LTA) / 2. If l> distance l0, the distance can be rearranged, l' = (LA-LTA+a+b) / (N+2), and the final optimized effect is as follows: Figure 7 As shown in c;

[0173] 9) After the optimization is completed, save the optimization results for mapping, record the mapping relationship between the environmental parking spaces, actual parking spaces, and perceived parking spaces, and start using the memory parking function.

[0174] Taking the car n and the parking space m as an example, the confidence setting of the parking space can be as follows:

[0175] 1) For parking spaces n and m, the confidence interval (n1, σ1) is set for line n1. If m1∈(n1, σ1), the confidence of parking space m is increased and a new confidence interval (n1, σ2) is synthesized;

[0176] 2) For parking spaces n and m, the angle between the markings of the same parking space is set. For example, the angle between the perpendicular line of marking n1 and marking n2 is γ, and the confidence interval is set (γ1, σ1). For example, the angle between the perpendicular line of marking n1 and marking m3 of parking space m is γ2, and γ2∈(γ1, σ1), then the confidence of parking space m is increased, and a new confidence interval (γ1, σ2) is synthesized;

[0177] 3) For parking space n, the angle θ1 between the extended line of line segment AB and the edge of the lane line Lg is set as the confidence interval (θ1, σ1). If the angle θ2 between parking space m, the extended line of line segment CD and the edge of the lane line Lg is θ2∈(θ1, σ1), the confidence of parking space m is increased and a new confidence interval (θ1, σ2) is synthesized;

[0178] In actual applications, due to sensor perception deviation, some parking space corners may be located in the road area, causing intrusion (such as Figure 4 For the parking corner points E and F of the parking space q in the middle, the parking space can be translated and adjusted based on the adjacent parking spaces n and m, so that its distance from Lg is the weighted average value d = (LA*WA+LB*WB+LC*WC+LD*WD) / 4 from the corner points of other parking spaces to Lg, where L is the distance from the corner point to Lg, and W is the confidence of the corner point.

[0179] This embodiment combines the parking space size and parking space category to make a comprehensive judgment when judging whether the new parking space is of the same type as the parking space already recorded in the current parking space area, thereby ensuring that the accuracy of the judgment can be further improved.

[0180] In addition, an embodiment of the present invention further provides a storage medium, on which a map construction program is stored. When the map construction program is executed by a processor, the steps of the map construction method described above are implemented.

[0181] Reference Figure 8 , Figure 8 This is a structural block diagram of the first embodiment of the map construction device of the present invention.

[0182] like Figure 8 As shown, the map construction device proposed in the embodiment of the present invention includes:

[0183] A determination module 10 is used to determine whether the new parking space is of the same type as the parking space recorded in the current parking space area when a new parking space is detected;

[0184] A setting module 20, for setting an area end point for the current parking area according to the parking position corresponding to the new parking area if the parking spaces are not of the same type;

[0185] An optimization module 30, configured to optimize the display of the recorded parking spaces in the current parking space area in the map according to the end point of the area;

[0186] A creation module 40 is used to create a new parking space area in the map, and use the new parking space as the first recorded parking space corresponding to the new parking space area, and detect whether the map construction is completed;

[0187] The control module 50 is used to terminate the detection of the parking space if the map construction is completed.

[0188] This embodiment determines whether the new parking space is of the same type as the recorded parking space in the current parking space area when a new parking space is detected; if they are not of the same type, the area end point is set for the current parking space area according to the parking space position corresponding to the new parking space; the recorded parking spaces in the current parking space area in the map are displayed and optimized according to the area end point; a new parking space area is created in the map, and the new parking space is used as the first recorded parking space corresponding to the new parking space area, and the map construction is detected to be complete; if the map construction is complete, the parking space detection is terminated. Since parking spaces of the same type and close to each other are incorporated into the same parking space area when the map is constructed, it is ensured that the display can be optimized according to the information characteristics of the same type of parking space area, and the parking spaces in the constructed map are in line with the actual situation, which is convenient for automatic parking.

[0189] Furthermore, the determination module 10 is also used to determine whether the new parking space is in a new parking space area when a new parking space is detected; if the new parking space is not in the new parking space area, determine whether the new parking space and the recorded parking space in the current parking space area are of the same type.

[0190] Furthermore, the determination module 10 is also used to obtain the previous recorded parking space corresponding to the new parking space when a new parking space is detected, and the previous recorded parking space is the parking space that is closest to the new parking space and has been recorded; construct a search area based on the parking space far corner point and a preset length of the previous recorded parking space; detect whether the parking space corner point corresponding to the new parking space is within the search area, and determine whether the new parking space is in the new parking space area based on the detection result.

[0191] Furthermore, the determination module 10 is also used to determine the size difference based on the parking space size corresponding to the new parking space and the parking space size corresponding to the recorded parking space in the current parking space area; if the size difference is greater than or equal to a preset difference threshold, it is determined that the new parking space and the recorded parking space in the current parking space area are not the same type of parking space.

[0192] Furthermore, the determination module 10 is also used to detect whether the parking space category of the new parking space is consistent with the parking space recorded in the current parking space area if the size difference is less than a preset difference threshold, and the parking space category is determined according to the angle between the parking space and the driving lane; if they are consistent, it is determined that the new parking space and the parking space recorded in the current parking space area are the same type of parking space.

[0193] Furthermore, the determination module 10 is also used to obtain the parking corner point and parking marking line corresponding to the new parking space when a new parking space is detected; detect whether the new parking space is a valid parking space based on the parking corner point and the parking marking line; if it is a valid parking space, determine whether the new parking space is the same type of parking space as the recorded parking space in the current parking area.

[0194] Furthermore, the optimization module 30 is also used to determine the length of the area according to the end point of the area and the starting point of the area corresponding to the current parking area; determine the edge spacing between the edge parking spaces in the current parking area and the edge of the area based on the area length, and obtain the parking space feature data corresponding to each recorded parking space in the current parking area; generate a unified parking space size, parking space spacing and parking space road distance according to the parking space feature data; and optimize the display of the recorded parking spaces in the current parking area in the map according to the unified parking space size, the parking space spacing, the parking space road distance and the edge spacing.

[0195] It should be understood that the above is only an example and does not constitute any limitation on the technical solution of the present invention. In specific applications, technicians in this field can make settings as needed, and the present invention does not limit this.

[0196] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of the present invention. In practical applications, technicians in this field can select part or all of them according to actual needs to achieve the purpose of the present embodiment, and no limitation is made here.

[0197] In addition, for technical details not fully described in this embodiment, reference can be made to the map construction method provided in any embodiment of the present invention, and will not be repeated here.

[0198] In addition, it should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0199] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0200] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory (ROM) / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0201] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A map construction method, It is characterized in that The map construction method comprises the following steps: When a new parking space is detected, determining whether the new parking space is of the same type as a parking space already recorded in the current parking space area; If they are not the same type of parking spaces, setting an area end point for the current parking area according to the parking space position corresponding to the new parking space; Optimizing the display of the recorded parking spaces in the current parking space area in the map according to the end point of the area; Creating a new parking space area in the map, and using the new parking space as the first recorded parking space corresponding to the new parking space area, and detecting whether the map construction is completed; If the map is built, the detection of parking spaces is terminated.

2. The map construction method according to claim 1, It is characterized in that When a new parking space is detected, the step of determining whether the new parking space and the parking spaces recorded in the current parking space area are of the same type of parking space comprises: When a new parking space is detected, determining whether the new parking space is in a new parking space area; If the new parking space is not in the new parking space area, it is determined whether the new parking space and the recorded parking space in the current parking space area are of the same type.

3. The map construction method according to claim 2, It is characterized in that The step of determining whether the new parking space is in a new parking space area when the new parking space is detected includes: When a new parking space is detected, the previous recorded parking space corresponding to the new parking space is obtained, where the previous recorded parking space is the parking space closest to the new parking space and has been recorded; Constructing a search area based on the far corner point of the previously recorded parking space and a preset length; Detect whether the parking space corner point corresponding to the new parking space is within the search area, and determine whether the new parking space is within the new parking space area according to the detection result.

4. The map construction method according to claim 1, It is characterized in that The step of determining whether the new parking space and the recorded parking space in the current parking space area are of the same type of parking space includes: Determine the size difference according to the parking space size corresponding to the new parking space and the parking space size corresponding to the recorded parking space in the current parking space area; If the size difference is greater than or equal to a preset difference threshold, it is determined that the new parking space and the recorded parking space in the current parking space area are not of the same type.

5. The map construction method according to claim 4, It is characterized in that After the step of determining the size difference according to the parking space size corresponding to the new parking space and the parking space size corresponding to the recorded parking space in the current parking space area, the method further includes: If the size difference is less than a preset difference threshold, then checking whether the new parking space is consistent with the parking space category recorded in the current parking space area, wherein the parking space category is determined according to the angle between the parking space and the driving lane; If they are consistent, it is determined that the new parking space is of the same type as the parking space recorded in the current parking space area.

6. A map construction method according to any one of claims 1 to 5, It is characterized in that When a new parking space is detected, the step of determining whether the new parking space and the parking spaces recorded in the current parking space area are of the same type of parking space comprises: When a new parking space is detected, the parking space corner point and parking space marking line corresponding to the new parking space are obtained; Detecting whether the new parking space is a valid parking space according to the parking space corner point and the parking space marking line; If it is a valid parking space, it is determined whether the new parking space is of the same type as the parking space recorded in the current parking space area.

7. A map construction method according to any one of claims 1 to 5, It is characterized in that The step of optimizing the display of the recorded parking spaces in the current parking space area in the map according to the area end point includes: Determine the length of the area according to the end point of the area and the starting point of the area corresponding to the current parking area; Determine the edge distance between the edge parking spaces in the current parking space area and the edge of the area based on the area length, and obtain parking space feature data corresponding to each recorded parking space in the current parking space area; Generate a uniform parking space size, parking space spacing, and parking space road distance according to the parking space characteristic data; The recorded parking spaces in the current parking space area in the map are displayed in an optimized manner according to the uniform parking space size, the parking space spacing, the parking space road distance and the edge spacing.

8. A map construction device, It is characterized in that The map construction device comprises: A determination module, used to determine whether the new parking space is of the same type as the parking space recorded in the current parking space area when a new parking space is detected; A setting module, for setting an area end point for the current parking area according to the parking position corresponding to the new parking area if the parking spaces are not of the same type; An optimization module, used for optimizing the display of the recorded parking spaces in the current parking space area in the map according to the end point of the area; A creation module, used to create a new parking space area in the map, and use the new parking space as the first recorded parking space corresponding to the new parking space area, and detect whether the map construction is completed; The control module is used to terminate the detection of parking spaces if the map construction is completed.

9. A map building device, It is characterized in that The map construction device comprises: a processor, a memory, and a map construction program stored in the memory and executable on the processor. When the map construction program is executed by the processor, the steps of the map construction method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a map construction program, and when the map construction program is executed, the steps of the map construction method according to any one of claims 1 to 7 are implemented.