Method and device for planning number of parking spaces based on vehicle size data, equipment and medium

By building a parking space division strategy library and vehicle size matching technology, optimizing the parking space layout of parking lots, the problem that parking space planning in the existing technology cannot adapt to different vehicle sizes is solved, and the parking space utilization rate and parking efficiency of parking lots are improved.

CN119274381APending Publication Date: 2025-01-07浪潮智慧科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411374512.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2025-01-07

AI Technical Summary

Technical Problem

The existing parking lot parking space planning cannot effectively adapt to different vehicle sizes, especially large vehicles, resulting in difficulty in parking and low utilization of parking spaces. The lack of parking space signs based on vehicle sizes increases parking time and difficulty.

Method used

By building a parking space division strategy library, calculate its dimension information based on the length and width of the vehicle and the coordinates of the four corner vertices, match it with the preset parking space strategy, optimize the parking space layout and identification, ensure that the vehicle can park smoothly and improve the utilization rate of the parking lot.

Benefits of technology

It realizes flexibility and accuracy of parking space planning, improves parking space utilization in parking lots, ensures that vehicles can be parked smoothly, and reduces parking time and difficulty.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119274381A_ABST
    Figure CN119274381A_ABST
Patent Text Reader

Abstract

The invention provides a method, device and equipment for planning the number of parking spaces based on vehicle size data and a medium, and belongs to the technical field of parking space planning, a parking space division strategy library with a plurality of parking space division strategies is defined, and each parking space division strategy corresponds to the length and width information of one parking space; calling a parking space division strategy in a parking space division strategy library, and setting the parking space division strategy as a current parking space division strategy; scanning the shape of the vehicle and obtaining the length, the width and vertex coordinates corresponding to four corners; calculating the size information of the vehicle shape according to the scanned length and width and the vertex coordinates corresponding to the four corners, and comparing the size information with the parking space length and width information corresponding to the current parking space division strategy; and when the size information is matched with the parking space length and width information corresponding to the current parking space division strategy, planning the parking space length and width information corresponding to the vehicle shape according to the current parking space division strategy. The parking space can be accurately and automatically planned, and the planning requirement is met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of parking space planning, and in particular relates to a method, device, equipment and medium for planning the number of parking spaces based on vehicle size data. Background Art

[0002] As the number and types of cars increase, the size of vehicles also shows a diversified development. In order to meet the demand for parking, it is generally necessary to set up parking lots in areas where vehicles are concentrated.

[0003] When planning parking spaces, parking space dimensions are often fixed and cannot effectively accommodate vehicles of varying sizes, especially large SUVs and MPVs. This can make these vehicles difficult to park or occupy excessive space after parking, reducing parking space utilization. Furthermore, parking space layouts are often made without considering the actual size of the vehicle, and the lack of size-based parking space markings makes it difficult for drivers to quickly find a space suitable for their vehicle, increasing parking time and difficulty. Summary of the Invention

[0004] The present invention provides a method for planning the number of parking spaces based on vehicle size data, which can optimize the layout and identification of parking spaces and improve the utilization rate of parking spaces in a parking lot.

[0005] Methods include:

[0006] S101, defining a parking space division strategy library having multiple parking space division strategies, where each parking space division strategy corresponds to a parking space length and width information;

[0007] S102: Calling a parking space division strategy from a parking space division strategy library and setting it as the current parking space division strategy;

[0008] S103, scanning the vehicle shape and obtaining the length, width, and coordinates of the vertices corresponding to the four corners;

[0009] S104: Calculate the size information of the vehicle shape based on the length and width obtained by scanning and the coordinates of the vertices corresponding to the four corners, and compare it with the length and width information of the parking space corresponding to the current parking space division strategy;

[0010] S105 : When the size information matches the parking space length and width information corresponding to the current parking space division strategy, the parking space length and width information corresponding to the vehicle shape is planned according to the current parking space division strategy.

[0011] It should be further explained that the method further includes:

[0012] Preset parking space threshold range;

[0013] When the size information of the vehicle shape is smaller than the length and width information of the parking space corresponding to the current parking space division strategy, determine whether the size information is smaller than the actual margin value of the length and width information of the parking space according to the current parking space division strategy;

[0014] When the actual margin value is not greater than the parking space threshold range, the vehicle shape is planned according to the current parking space division strategy;

[0015] When the actual margin value is greater than the parking space threshold range, a prompt is triggered to ask whether to continue planning.

[0016] It should be further explained that the method further includes: scanning the shape of the vehicle and obtaining its length, width and the coordinates of the vertices corresponding to the four corners of its four sides.

[0017] It should be further explained that the first scanning starting point coordinates are preset, and the vehicle shape is scanned for the first time based on the first scanning starting point coordinates to obtain the length and width of the vehicle shape and the coordinates of the vertices corresponding to the four corners of a length side and a width side;

[0018] Perform a second scan on the vehicle shape to obtain the coordinates of the four corners corresponding to the other length side and the other width side;

[0019] The actual width value is calculated based on the coordinates of the four corners of the two length sides obtained by two scans and the length and width of the vehicle; and the actual length value is calculated based on the coordinates of the four corners of the two width sides obtained by two scans and the length and width of the vehicle.

[0020] It should be further explained that, in the method, the second scanning starting point coordinates of the second scanning are obtained based on the coordinates of the vertices corresponding to the four corners of the length side and the width side obtained by the first scanning; and the vehicle shape is scanned a second time based on the second scanning starting point coordinates;

[0021] The scanning starting point of the second scan is obtained by translating the coordinates of the four corners corresponding to the vertices obtained in the first scan. The coordinates of the four corners corresponding to the vertices of the other length side obtained in the second scan are in the same X-axis direction or the same Y-axis direction as the coordinates of the four corners corresponding to the vertices of the previous length side obtained in the previous scan.

[0022] It should be further explained that, in the method, a geometric calculation method is used to calculate the actual length and width of the vehicle.

[0023] It should be further explained that, assuming that the length of a vehicle is carLength, the width is carWidth, the width of the parking lot is width, and the length is length, and the length of the two-way aisle is at least twice the width of the vehicle, that is, 2carWidth, then the number of parking spaces in the current area is calculated as:

[0024] The number of rows y + (y - 1)2carWidth < length, and the number of each row x*carWidth < width.

[0025] The present application also provides a device for planning the number of parking spaces based on vehicle size data, and the device includes:

[0026] A policy definition module, which is used to define a parking space division policy library with multiple parking space division policies, and each parking space division policy corresponds to a parking space length and width information;

[0027] An extraction and call module, which is used to call the parking space division policy in the parking space division policy library and set it as the current parking space division policy;

[0028] An information scanning module, which is used to scan the vehicle shape and obtain the length, width and the corresponding vertex coordinates of the four corners;

[0029] An information comparison module, which is used to calculate the size information of the vehicle shape according to the length, width and the corresponding vertex coordinates of the four corners obtained by scanning, and compare it with the parking space length and width information corresponding to the current parking space division policy;

[0030] A planning matching module, which is used to plan the parking space length and width information corresponding to the vehicle shape according to the current parking space division policy when the vehicle shape size information matches the parking space length and width information corresponding to the current parking space division policy.

[0031] According to another embodiment of the present application, there is provided an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the program, the steps of the method for planning the number of parking spaces based on vehicle size data are implemented.

[0032] According to still another embodiment of the present application, there is also provided a storage medium, on which a computer program is stored, and characterized in that when the computer program is executed by a processor, the steps of the method for planning the number of parking spaces based on vehicle size data are implemented.

[0033] From the above technical solutions, it can be seen that the present invention has the following advantages:

[0034] The method for planning the number of parking spaces based on vehicle size data provided by the present application can first construct a parking space division policy library. Based on the collected data, a parking space division policy library containing multiple parking space division policies is constructed. Each policy corresponds to specific parking space length and width information. Integrate the data of the parking space division policy library into a queryable and callable terminal for subsequent steps to call.

[0035] This application ensures that the selected parking space division strategy meets the current vehicle parking needs. Based on the current parking space division strategy and vehicle size information, parking spaces are planned and laid out in the parking lot. Parking space markings, numbers, and other markers are drawn to ensure the accuracy and legibility of parking space planning. Through reasonable parking space planning, parking space utilization is improved. Vehicles are parked in the planned spaces in an orderly manner. Parking space layout and markings are optimized to improve parking space utilization. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solution of the present invention, the following is a brief introduction to the drawings required for the description. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0037] Figure 1 A flow chart of a method for planning the number of parking spaces based on vehicle size data;

[0038] Figure 2 A flow chart of an embodiment of a method for planning the number of parking spaces based on vehicle size data;

[0039] Figure 3 A flow chart of another embodiment of a method for planning the number of parking spaces based on vehicle size data;

[0040] Figure 4 Schematic diagram of a device for planning the number of parking spaces based on vehicle size data. DETAILED DESCRIPTION

[0041] The following describes in detail the implementation of a method for planning the number of parking spaces based on vehicle size data. Specific details, such as specific system structures and technologies, are provided for illustrative purposes, not for limitation, to facilitate a thorough understanding of the embodiments of this application. However, those skilled in the art will appreciate that the present application may also be implemented in other embodiments without these specific details.

[0042] It should be understood that when used in this specification, the term "comprising" indicates the presence of the described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or their collections. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.

[0043] It should be understood that the "one or more" mentioned in this application refers to one, two or more, and the "multiple" mentioned in this application refers to two or more. In the description of this application, unless otherwise specified, " / " means or, for example, A / B can mean A or B. The "and / or" in this article is only a way to describe the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0044] To facilitate the clear description of the technical solutions of this application, the words "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art will understand that the words "first" and "second" do not limit the quantity or order of execution, and the words "first" and "second" do not necessarily mean different.

[0045] The phrases "one embodiment" or "some embodiments" described in this application mean that the specific features, structures, or characteristics described in the embodiment are included in one or more embodiments of the application. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in other embodiments," etc. that appear in different places in this application do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized.

[0046] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0047] See also Figure 1 FIG. 1 is a flow chart of a method for planning the number of parking spaces based on vehicle size data in a specific embodiment. The method includes:

[0048] S1. Define a parking space division strategy library having multiple parking space division strategies, where each parking space division strategy corresponds to the length and width information of a parking space.

[0049] In some embodiments, standard size data of types such as small cars, large cars, and SUVs, as well as parking space length and width information under different parking space division strategies are collected.

[0050] Optionally, this embodiment can first construct a parking space division strategy library. Based on the collected data, a parking space division strategy library is constructed that includes multiple parking space division strategies. Each strategy corresponds to specific parking space length and width information. The data in the parking space division strategy library is integrated into a queryable and callable terminal for subsequent invocation.

[0051] As can be seen, this embodiment builds a parking space allocation strategy library, making parking space planning more flexible. Appropriate parking space allocation strategies can be selected based on different needs and scenarios. This ensures consistent and standardized parking space allocation and improves parking lot utilization. Furthermore, the strategy library can be easily updated and expanded as vehicle types and parking needs change.

[0052] As an implementation of this embodiment, the parking spaces can be arranged into vertical, parallel and oblique types according to actual needs.

[0053] Vertical parking spaces are perpendicular to the direction of travel. Parallel parking spaces are parallel to the direction of travel, making it easier for vehicles to enter and exit. Diagonal parking spaces are at a certain angle to the direction of travel, allowing more vehicles to be parked within a limited space.

[0054] S2. Call the parking space division strategy in the parking space division strategy library and set it as the current parking space division strategy.

[0055] In some embodiments, the desired parking space allocation strategy can be selected or input through a user interface configured on the device, or the device can automatically retrieve the strategy from a strategy library and set it as the current strategy. This improves the efficiency of parking space planning and reduces the complexity of manual strategy selection. It ensures that the selected strategy matches the current parking needs and vehicle types, providing clear guidance and basis for subsequent parking space planning.

[0056] S3. Scan the vehicle shape and obtain the length, width and coordinates of the vertices corresponding to the four corners.

[0057] In some embodiments, a laser scanner can be used to perform a three-dimensional scan of the vehicle to obtain point cloud data of the vehicle surface. The scanned point cloud data is processed and analyzed to extract the length, width, and coordinates of the vertices corresponding to the four corners of the vehicle.

[0058] Optionally, a coordinate measuring machine (CMM) can be used to precisely measure the vehicle. This can provide precise dimensional information about the vehicle's shape, providing an accurate basis for parking space planning. This not only captures the length and width, but also the coordinates of the four corners, facilitating subsequent parking space planning and adjustments.

[0059] S4. Calculate the size information of the vehicle shape based on the length and width obtained by scanning and the coordinates of the vertices corresponding to the four corners, and compare it with the length and width information of the parking space corresponding to the current parking space division strategy.

[0060] In some embodiments, the scanned vehicle dimension information is calculated and analyzed to obtain the vehicle's length, width, and other information. The calculated vehicle dimension information is compared with the length and width information of the parking space corresponding to the current parking space division strategy to determine whether the vehicle is suitable for the parking space under the strategy.

[0061] It can be seen that this embodiment ensures that the selected parking space division strategy can meet the current vehicle parking needs. If the current strategy does not meet the needs, the strategy can be adjusted based on the comparison results to meet the parking space planning requirements.

[0062] S5. When the size information matches the parking space length and width information corresponding to the current parking space division strategy, the parking space length and width information corresponding to the vehicle shape is planned according to the current parking space division strategy.

[0063] In some embodiments, parking spaces are planned and laid out in the parking lot based on the current parking space allocation strategy and vehicle size information. Parking space markings, numbers, and other markers are drawn to ensure the accuracy and legibility of parking space planning. This improves parking lot space utilization through reasonable parking space planning, ensuring that vehicles can be parked in the planned spaces in an orderly manner. Optimizing parking space layout and markings improves parking space utilization.

[0064] In some specific embodiments, a parking space division strategy library with multiple parking space division strategies is defined, and each parking space division strategy is suitable for planning parking spaces with its corresponding length and width information, wherein the parking space length and width information corresponding to the parking space division strategies in the parking space division strategy library is the parking space length and width information calculated based on the size of the parking space map to be planned in the current system and the set parking space length and width information.

[0065] The parking space division strategy of this embodiment can be used to plan a specific planning method with parking space length and width information. After the parking space to be planned is placed in the planning area, the vehicle shape is first scanned, and the vertex of the vehicle is parsed and the coordinates of the vertex are recorded. The purpose of the scanning operation is to confirm the length, width and vertex of the vehicle in order to obtain the planning target point.

[0066] In order to obtain the vertex coordinates of the vehicle, the vehicle shape is compared with the current parking space division strategy. The dimensional information of the vehicle shape is calculated by scanning the vertex coordinates obtained. Then, the dimensional information of the vehicle shape is compared with the length and width information of the parking space corresponding to the current parking space division strategy. When the dimensional information of the vehicle shape matches the length and width information of the parking space corresponding to the current parking space division strategy, it means that the vehicle shape is suitable for the current parking space division strategy, and the vehicle shape can be planned according to the current parking space division strategy.

[0067] In this embodiment, the area ratio of the parking lot can also be allocated according to the ratio of each vehicle size.

[0068] Specifically, let the length of the vehicle be carLength, the width be carWidth, the width of the parking lot be width, the length be length, and the length of the two-way aisle be at least twice the width of the vehicle, i.e., 2carWidth. Then the calculation method for the number of parked vehicles in the current area is as follows:

[0069] The number of rows y + (y - 1)2carWidth < length, and the number of vehicles in each row x * carWidth < width.

[0070] Based on the data of the length, width of each area and the vehicle size, the maximum number of parked vehicles in each area is obtained, and vehicles of different sizes are allocated to different areas in descending order.

[0071] As an example, the parking lot reserves dynamically adjustable parking spaces for use when the number of parking spaces does not meet the current parking demand. Upon receiving a request instruction to park, obtaining the available parking information in the parking area, determining whether there are parking spaces available for the vehicle in the parking area, sending a marking instruction to the controllable marking device installed in the parking area, and updating the parking area information according to the recorded request instruction. This method can dynamically adjust the parking spaces according to the existing parking situation, improving the flexibility and utilization efficiency of the parking lot. When a car enters the electronic fence area of the parking lot, the electronic display screen will prompt the vehicle to park in the specified area according to the size of the current vehicle.

[0072] Based on the above embodiments, in order to further improve the reliability of the method for planning the number of parking spaces based on vehicle size data provided in the above embodiments, the following is a feasible method. In one embodiment, the planning method further includes the following steps:

[0073] When the size information of the vehicle shape is greater than the length and width information of the parking space corresponding to the current parking space division strategy, a prompt message is sent.

[0074] Specifically, when the size information of the vehicle shape is greater than the length and width information of the parking space corresponding to the current parking space division strategy, it means that the vehicle shape is not suitable for the current parking space division strategy, and the planning is stopped.

[0075] The device will automatically stop the planning and remind the planner, which can effectively screen the parking spaces to be planned under the current parking space division strategy, effectively avoiding the parking spaces that are not suitable for the current parking space division strategy, ensuring that the parking spaces to be planned are all planned according to the most suitable parking space division strategy, and ensuring the reasonable and effective parking space planning.

[0076] In this embodiment, when the size information is equal to the length and width information of the parking space corresponding to the current parking space division strategy, the vehicle shape is planned according to the current parking space division strategy.

[0077] Furthermore, as a refinement and expansion of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process of this embodiment, as shown below: Figure 2 As shown, the method for planning the number of parking spaces based on vehicle size data further includes the following steps:

[0078] S301. Preset a parking space threshold range.

[0079] S302: When the size information of the vehicle shape is smaller than the length and width information of the parking space corresponding to the current parking space division strategy, determine whether the size information is smaller than the actual margin value of the length and width information of the parking space corresponding to the current parking space division strategy.

[0080] S303: When the actual margin value is not greater than the parking space threshold range, plan the vehicle shape according to the current parking space division strategy.

[0081] S304: When the actual margin value is greater than the parking space threshold range, a prompt is triggered to determine whether to continue planning.

[0082] In some embodiments, each parking space division strategy corresponds to a corresponding parking space length and width information. When any parking space division strategy is called and set as the current parking space division strategy, the corresponding parking space length and width information is a fixed value.

[0083] The current parking space division strategy may allow a certain parking space threshold range in the planned parking space size, and parking spaces within the threshold range are all applicable to the current parking space division strategy.

[0084] When the size information is smaller than the length and width information of the parking space corresponding to the current parking space division strategy, and the actual margin value is not greater than the parking space threshold range, it means that the size information of the vehicle shape meets the parking space planning requirements under the current parking space division strategy.

[0085] In some embodiments, the vehicle shape is applicable to the current parking space division strategy, and the vehicle shape is planned according to the current parking space division strategy; when the actual margin value of the vehicle shape is greater than the parking space threshold range, it means that the size information of the vehicle shape is too large, and a prompt will be triggered as to whether to continue planning.

[0086] When the planner sees this prompt, he or she can choose to continue planning or stop planning. When the planner chooses to continue planning, the device plans the vehicle shape based on the current parking space division strategy. When the planner chooses to stop planning, the system stops planning.

[0087] In this embodiment, the parking space and vehicle shapes corresponding to the parking space division strategy are both rectangular. The length and width information of the parking space and the dimensions of the vehicle shape specifically refer to the corresponding length values ​​and width values. The comparison of the sizes actually specifically refers to the comparison of the numerical sizes of the length values ​​and width values.

[0088] According to an embodiment of the present application, the planning method further includes scanning the vehicle shape and obtaining its length, width, and the coordinates of the vertices corresponding to the four corners of its four sides. The scanning of the vehicle shape specifically includes the following steps: Figure 3 As shown,

[0089] S401: Preset the first scanning starting point coordinates, perform a first scan on the vehicle shape according to the first scanning starting point coordinates, and obtain the length, width, and four corner vertex coordinates corresponding to a length side and a width side of the vehicle shape.

[0090] In some embodiments, a 3D camera is used to capture point cloud data in three-dimensional space. A suitable starting point position is selected around the vehicle, and the coordinates of the position are preset in the scanning device as the first scanning starting point coordinates.

[0091] The scanning device starts scanning the vehicle from a preset starting point. During the scanning process, the device records point cloud data of the vehicle's surface. The resulting point cloud data is processed. Using techniques such as image recognition and edge detection, the length and width of the vehicle's shape, as well as the coordinates of the vertices corresponding to the four corners of a length edge and a width edge, are extracted.

[0092] As can be seen, high-precision scanning equipment can accurately capture the length and width of the vehicle, as well as the coordinates of key vertices, providing accurate data support for subsequent parking space planning. Presetting the scanning starting point and automating the scanning process can improve the efficiency of parking space planning.

[0093] S402: Scan the vehicle shape for the second time to obtain the coordinates of the four corners corresponding to the other length side and the other width side.

[0094] In some embodiments, the starting point of the second scan is determined by selecting a suitable starting point as the starting point of the second scan based on the coordinates of the four corners of the length side and the width side obtained by the first scan.

[0095] The starting point of this embodiment may be a point after translation along the X-axis or the Y-axis, so as to quickly obtain the vertex coordinates of the other length side and the width side.

[0096] This embodiment can scan the vehicle starting from the starting point of the second scan. The scanning process is similar to the first scan, where the vertex coordinates of the other length side and width side are used.

[0097] Similarly, the scanned point cloud data is imported into the software for processing to extract the required vertex coordinate information.

[0098] As can be seen, through two scans, the vertex coordinates of all key edges of the vehicle can be fully obtained, providing more comprehensive data support for parking space planning. By properly selecting the starting point of the second scan, the scanning range and time can be reduced, and the scanning efficiency can be improved.

[0099] S403: Calculate the actual width value based on the coordinates of the four corners of the two length sides obtained by two scans and the length and width of the vehicle; and calculate the actual length value based on the coordinates of the four corners of the two width sides obtained by two scans and the length and width of the vehicle.

[0100] In some embodiments, the vertex coordinate data obtained from the two scans are sorted to extract the vertex coordinates of the two length sides and the two width sides respectively.

[0101] This embodiment uses the distance formula between two points and calculates the actual length and width of the vehicle based on the vertex coordinates. Combined with the length and width information of the vehicle, comparison and adjustment are performed.

[0102] This embodiment can calculate the actual length and width of the vehicle, providing accurate data basis for parking space planning. Based on the actual size of the vehicle and the length and width information of the parking space, the parking space layout and size can be planned more reasonably, improving space utilization and parking efficiency.

[0103] In some specific embodiments, the method for planning the number of parking spaces based on vehicle size data involved in this application further includes the following steps:

[0104] S501: Obtain the second scanning starting point coordinates of the second scanning according to the coordinates of the four corners corresponding to the vertices of the length side and the width side obtained by the first scanning.

[0105] Here, we analyze the vertex coordinates obtained from the first scan to determine the approximate position and orientation of the vehicle shape on the 2D plane. Based on the vehicle's shape and scanning requirements, we select an appropriate translation direction and distance to calculate the starting coordinates for the second scan. This starting coordinate can be a point after a translation along the X or Y axis.

[0106] S502: Scan the vehicle shape for the second time according to the second scanning starting point coordinates.

[0107] In this embodiment, the scanning device sets parameters such as the starting point coordinates, scanning range, and scanning accuracy for the second scan. The scanning device is then activated and scans the vehicle a second time, starting from the preset starting point. During the scan, the device records point cloud data of the vehicle's surface.

[0108] This second scan can further supplement and improve the vehicle shape data, providing data support for parking space planning. Based on vehicle shape data, parking space layout and size can be accurately planned, improving the overall efficiency of the parking lot.

[0109] In some specific embodiments, the first scanning starting point coordinate is the starting point coordinate when the scanning action starts. The first scan is performed based on the starting point coordinate to obtain the length and width of the vehicle shape and the vertex coordinates corresponding to the four corners of one length side and one width side of the vehicle shape.

[0110] Furthermore, the vehicle shape is scanned a second time, and the scanning starting point coordinates of the second scan are obtained by translating the vertices of one of the length sides and one width side obtained in the first scan along the X-axis or along the Y-axis, so as to obtain the coordinates of the four corresponding vertices on the other length side and width side at a faster speed.

[0111] In this embodiment, the scanning starting point of the second scan is obtained by translating the coordinates of the four corners corresponding to the vertices obtained in the first scan, and the coordinates of the four corners corresponding to the vertices of the other length side obtained in the second scan are in the same X-axis direction or the same Y-axis direction as the coordinates of the four corners corresponding to the vertices of the previous length side obtained in the previous scan.

[0112] It should be noted that the X coordinate values ​​or Y coordinate values ​​of the corresponding vertices of the two four corners on the two length edges are the same.

[0113] In this embodiment, the coordinates of the vertices corresponding to the four corners of the other width side are in the same X-axis direction or the same Y-axis direction as the coordinates of the vertices corresponding to the four corners of the previous width side obtained in the previous scan, and the X-coordinate values ​​or Y-coordinate values ​​of the two vertices corresponding to the four corners on the two width sides are the same.

[0114] After obtaining the vertex coordinates corresponding to the four corners of the four sides of the vehicle shape, the distance between the two vertices can be calculated based on the vertex coordinates corresponding to the four corners of the two parallel length sides. Combined with the length and width of the vehicle shape, the actual width value of the vehicle shape can be calculated.

[0115] In this embodiment, the actual length value of the vehicle shape can be calculated based on the coordinates of the four corresponding vertices of the two parallel width sides and the length and width.

[0116] It can be seen that by properly selecting the starting coordinates for the second scan, the scanning process can be simplified and unnecessary scanning range and time can be reduced. Ensuring that the starting point of the second scan is coordinated with the results of the first scan helps to improve the accuracy and consistency of the overall scan data.

[0117] The following is an embodiment of a device for planning the number of parking spaces based on vehicle size data provided in an embodiment of the present disclosure. The device and the method for planning the number of parking spaces based on vehicle size data of the above-mentioned embodiments belong to the same inventive concept. For details not fully described in the embodiment of the device for planning the number of parking spaces based on vehicle size data, please refer to the embodiment of the method for planning the number of parking spaces based on vehicle size data.

[0118] like Figure 4 As shown, the device includes:

[0119] A strategy definition module is used to define a parking space division strategy library with multiple parking space division strategies, each parking space division strategy corresponds to the length and width information of a parking space;

[0120] Extraction calling module, used to call the parking space division strategy in the parking space division strategy library and set it as the current parking space division strategy;

[0121] The information scanning module is used to scan the vehicle shape and obtain the length, width and coordinates of the corresponding vertices of the four corners;

[0122] An information comparison module is used to calculate the size information of the vehicle shape based on the length, width and coordinates of the four corners corresponding to the scanned image, and compare it with the length and width information of the parking space corresponding to the current parking space division strategy;

[0123] The planning and matching module is used to plan the parking space length and width information corresponding to the vehicle shape according to the current parking space division strategy when the vehicle shape and size information matches the parking space length and width information corresponding to the current parking space division strategy.

[0124] The parking space planning device based on vehicle size data in this embodiment can plan and layout parking spaces in a parking lot based on the current parking space allocation strategy and vehicle size information. It draws markings, numbers, and other indicators to ensure the accuracy and legibility of parking space planning. Through reasonable parking space planning, it improves parking lot space utilization, ensures that vehicles can be parked in planned spaces in an orderly manner, and optimizes parking space layout and markings to improve parking space utilization.

[0125] The device for planning the number of parking spaces based on vehicle size data of this embodiment is a combination of the units and algorithm steps of the various examples described in the embodiments disclosed herein, and can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0126] The present application further provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the steps of the method for planning the number of parking spaces based on vehicle size data are implemented.

[0127] The specific steps are but not limited to the following manner: Define a parking space division strategy library with multiple parking space division strategies, and each parking space division strategy corresponds to a parking space length and width information; Call the parking space division strategy in the parking space division strategy library and set it as the current parking space division strategy; Scan the vehicle shape and obtain the length, width, and the coordinates of the corresponding vertices at the four corners; Calculate the size information of the vehicle shape based on the scanned length, width, and the coordinates of the corresponding vertices at the four corners, and compare it with the parking space length and width information corresponding to the current parking space division strategy; When the size information matches the parking space length and width information corresponding to the current parking space division strategy, plan the parking space length and width information corresponding to the vehicle shape according to the current parking space division strategy.

[0128] According to the proportion of each vehicle size, allocate the proportion of the area of the parking lot. Let the length of the vehicle be carLength, the width be carWidth, the width of the parking lot be width, the length be length, and the length of the two-way aisle be at least twice the vehicle width, that is, 2carWidth. Then the calculation method for the number of parked vehicles in the current area is:

[0129] The number of rows y+(y - 1)2carWidth < length, and the number of each row x*carWidth < width. Thus, the parking spaces can be accurately and automatically planned to meet the planning requirements.

[0130] In the storage medium provided by the present application, there is a program product capable of implementing the above method of the present specification. In some possible implementation manners, various aspects of the present disclosure can also be implemented in the form of a program product, which includes program code. When the program product runs on a terminal device, the program code is used to cause the terminal device to execute the steps described in the above "Exemplary Method" part of the present specification according to various exemplary embodiments of the present disclosure.

[0131] The storage medium can be any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or component, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0132] The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention is not limited to the embodiments shown herein but is intended to conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for planning the number of parking spaces based on vehicle size data, characterized in that: The method includes: S101. Define a parking space division strategy library with multiple parking space division strategies, and each parking space division strategy corresponds to a parking space length and width information; S102. Invoke the parking space division strategy in the parking space division strategy library and set it as the current parking space division strategy; S103. Scan the vehicle shape and obtain the length, width, and the corresponding vertex coordinates of the four corners; S104. Calculate the size information of the vehicle shape based on the scanned length, width, and the corresponding vertex coordinates of the four corners, and compare it with the parking space length and width information corresponding to the current parking space division strategy; S105. When the size information matches the parking space length and width information corresponding to the current parking space division strategy, plan the parking space length and width information corresponding to the vehicle shape according to the current parking space division strategy.

2. The method for planning the number of parking spaces based on vehicle size data according to claim 1, characterized in that: The method further includes: Preset a parking space threshold range; When the size information of the vehicle shape is smaller than the parking space length and width information corresponding to the current parking space division strategy, determine whether the size information is smaller than the actual allowance value of the parking space length and width information of the current parking space division strategy; When the actual allowance value is not greater than the parking space threshold range, plan the vehicle shape according to the current parking space division strategy; When the actual allowance value is greater than the parking space threshold range, trigger a prompt for whether to continue planning.

3. The method for planning the number of parking spaces based on vehicle size data according to claim 1, characterized in that: The method further includes: Scanning the vehicle shape and obtaining its length, width, and the corresponding vertex coordinates of the four corners of its four sides.

4. The method for planning the number of parking spaces based on vehicle size data according to claim 3, wherein Preset a first scanning starting coordinate, and perform a first scan on the vehicle shape according to the first scanning starting coordinate to obtain the length, width of the vehicle shape, and the corresponding vertex coordinates of the four corners of a length side and a width side; Perform a second scan on the vehicle shape to obtain the corresponding vertex coordinates of the four corners of the other length side and the other width side; Calculate the actual width value based on the corresponding vertex coordinates of the four corners of the two length sides obtained from the two scans and the vehicle length and width; and calculate the actual length value based on the corresponding vertex coordinates of the four corners of the two width sides obtained from the two scans and the vehicle length and width.

5. The method for planning the number of parking spaces based on vehicle size data according to claim 4, characterized in that: In the method, obtain the second scanning starting coordinate of the second scan according to the corresponding vertex coordinates of the length side and the width side obtained from the first scan; perform the second scan on the vehicle shape according to the second scanning starting coordinate; The scanning starting point of the second scan is obtained by translating the corresponding vertex coordinates obtained from the first scan, and the corresponding vertex coordinates of the other length side obtained from the second scan and the corresponding vertex coordinates of the previous length side obtained from the previous scan are on the same X-axis or the same Y-axis.

6. The method for planning the number of parking spaces based on vehicle size data according to claim 3, characterized in that: In the method, use geometric calculation methods to calculate the actual length and width of the vehicle.

7. The method for planning the number of parking spaces based on vehicle size data according to claim 6, wherein Let the length of the vehicle be carLength, the width be carWidth, the width of the parking lot be width, the length be length, and the two-way aisle length is at least 2 times the vehicle width, i.e., 2carWidth. Then the calculation method for the number of parked vehicles in the current area is: The number of rows y+(y - 1)2carWidth < length, and the number of each row x*carWidth < width.

8. A device for planning the number of parking spaces based on vehicle size data, characterized in that: The device is used to implement the method for planning the number of parking spaces based on vehicle size data as described in any one of claims 1 to 7; The device includes: A strategy definition module is used to define a parking space division strategy library having multiple parking space division strategies, each parking space division strategy corresponds to the length and width information of a parking space; An extraction calling module is used to call a parking space division strategy in a parking space division strategy library and set it as the current parking space division strategy; An information scanning module is used to scan the shape of the vehicle and obtain the length, width and coordinates of the vertices corresponding to the four corners; An information comparison module is used to calculate the size information of the vehicle shape based on the length and width obtained by scanning and the coordinates of the vertices corresponding to the four corners, and compare it with the length and width information of the parking space corresponding to the current parking space division strategy; The planning and matching module is used to plan the parking space length and width information corresponding to the vehicle shape according to the current parking space division strategy when the vehicle shape and size information matches the parking space length and width information corresponding to the current parking space division strategy.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the method for planning the number of parking spaces based on vehicle size data as described in any one of claims 1 to 7 are implemented.

10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for planning the number of parking spaces based on vehicle size data as claimed in any one of claims 1 to 7 are implemented.