A parking space map generation method, device, equipment and storage medium
By determining the image vertices and parking space direction information from the garage point cloud depth image, combined with the parking space layout and configuration information, the problem of low production efficiency of parking space maps is solved, the accuracy and efficiency of map drawing are improved, the demand for high-precision maps is met, and wisdom is promoted Parking implementation.
Patent Information
- Application Number
- CN202211236083.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-10
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-10-10
AI Technical Summary
The existing technology has low production efficiency in parking space maps, and insufficient data reliability and update frequency, making it difficult to meet the needs of high-precision maps and affecting the realization of smart parking.
By determining the parking space image to be processed from the garage point cloud depth image, determining at least three image vertices, generating a parking space area to be drawn with parking space direction information, and drawing a parking space map in the area based on the parking space layout configuration information to ensure the location and location of the parking space identification. Direction information accuracy.
It improves the accuracy and efficiency of parking space map drawing, realizes batch map drawing, ensures the consistency between parking space maps and actual scenes, and improves the reasonable allocation of parking resources and the convenience of use.
Smart Images

Figure CN115762218B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of digital maps, and in particular to a method, device, equipment and storage medium for generating a parking space map. Background Art
[0002] In today's society, the pain point of parking difficulties needs to be solved urgently. Parking spaces cannot be located, it is difficult to find empty parking spaces, and large-scale and high-frequency parking needs have determined that smart parking has become a rigid demand; and parking space digitization and high-precision maps are the only way to smart parking. In order to achieve the reasonable allocation of parking resources and the convenience of parking, the current solutions on the market such as single-vehicle intelligence, parking lot collaboration, and parking robots need to be based on high-precision maps, that is, parking space digitization and smart parking cannot avoid high-precision maps. However, high-precision maps are currently facing problems such as low production efficiency, data reliability and update frequency that still need to be improved in the process of promotion. Therefore, how to improve the production efficiency of high-precision maps has become an issue that needs to be urgently solved. Summary of the invention
[0003] In order to overcome the shortcomings and deficiencies of the prior art, the present invention discloses a parking map generation method, device, equipment and storage medium, which can improve the drawing accuracy of the parking map while ensuring the drawing speed of the map. The method includes:
[0004] Determine a parking space image to be processed from the garage point cloud depth image; the parking space image to be processed includes a parking space image of at least one target parking space;
[0005] Determine at least three image vertices in the parking space image to be processed; the order of the paths formed by sequentially connecting the at least three image vertices is clockwise; the first image vertex and the second image vertex among the at least three image vertices are located on the same parking space exit line in the parking space image to be processed; the second image vertex and the third image vertex are located on the same parking space side line in the parking space image to be processed; the first image vertex is the starting vertex of the at least three image vertices;
[0006] Based on the position information of the at least three image vertices in the parking space image to be processed, generating a parking space area to be drawn with parking space direction information;
[0007] Based on the parking space layout configuration information, a parking space is drawn in the parking space area to be drawn to generate a parking space map; the parking space layout configuration information is determined based on the parking space image to be processed.
[0008] Furthermore, the parking space map includes a target parking space identifier corresponding to the at least one target parking space;
[0009] Drawing parking spaces in the parking space area to be drawn based on the parking space layout configuration information to generate a parking space map includes:
[0010] Based on the parking space layout configuration information, drawing at least one target parking space area in the parking space area to be drawn;
[0011] A target parking space identifier is added to the at least one target parking space area to obtain a parking space map corresponding to the parking space image to be processed.
[0012] Furthermore, the step of adding a target parking space identifier to the at least one target parking space area to obtain a parking space map corresponding to the parking space image to be processed includes:
[0013] Determine the position information and direction information of the target parking space mark in each target parking space area; the direction information enables the mark to be displayed in a positive direction at a target angle; the target angle is the angle from the exit line of any target parking space area to the area within any target parking space area;
[0014] The target parking space identifier is added based on the position information and the direction information to obtain a parking space map corresponding to the parking space image to be processed.
[0015] Furthermore, the determining of the position information of the target parking space mark in each target parking space area includes:
[0016] Based on the two side lines of each target parking space area, determining a target median line of each target parking space area, wherein the target median line is parallel to the two side lines;
[0017] Based on the target median line corresponding to each target parking space area and the same parking space exit line, the position information of each target parking space mark is determined, the center point of the target parking space mark is located on the target median line, and the distance between the target parking space mark and the same parking space exit line is a preset length.
[0018] Furthermore, the method further comprises:
[0019] When the number of rows of the target parking space in the parking space image to be processed is two, determining the area line in the parking space area to be drawn that is opposite to the same parking space exit line as the relative parking space exit line;
[0020] The step of adding a target parking space identifier in the at least one target parking space area to obtain a parking space map corresponding to the parking space image to be processed includes:
[0021] Based on the same parking space exit line and the relative parking space exit line, determining the target parking space exit line corresponding to each target parking space area;
[0022] Based on the target parking space exit line, the position information and direction information of each target parking space are determined respectively; the direction information enables the target parking space mark to be displayed in a positive direction at a target angle; the target angle is the angle from the exit line of any target parking space area to the area within any target parking space;
[0023] The target parking space identifier is added to the target parking space area based on the position information and the direction information to obtain a parking space map corresponding to the parking space image to be processed.
[0024] Furthermore, the method further comprises:
[0025] When the number of target parking spaces in the parking space image to be processed is greater than two, a parking space line in each target parking space area that is parallel to the same parking space exit line and has the shortest distance thereto is determined as a parallel parking space exit line;
[0026] The step of adding a target parking space identifier in the at least one target parking space area to obtain a parking space map corresponding to the parking space image to be processed includes:
[0027] Based on the parallel parking space exit lines corresponding to each target parking space area, the position information and direction information of each target parking space area are determined; the direction information enables the target parking space mark to be displayed in a positive direction at a target angle; the target angle is the angle at which the same parking space exit line points to any target parking space area;
[0028] The target parking space area is added with the target parking space identifier based on the position information and the direction information to obtain a parking space map corresponding to the parking space image to be processed.
[0029] Furthermore, after determining the parking space image to be processed from the garage point cloud depth image, the method further includes:
[0030] In the case that the parking space image to be processed is not a quadrilateral, dividing the parking space image to be processed into a plurality of target areas, and the plurality of target areas are all quadrilaterals;
[0031] The determining of at least three image vertices in the parking space image to be processed further includes:
[0032] At least three image vertices in each target region are respectively determined.
[0033] On the other hand, the present application also provides a parking space map generating device, comprising:
[0034] A first determination module is used to determine a parking space image to be processed from the garage point cloud depth image; the parking space image to be processed includes a parking space image of at least one target parking space;
[0035] The second determination module is used to determine at least three image vertices in the parking space image to be processed; the path order formed by sequentially connecting the at least three image vertices is clockwise; the first image vertex and the second image vertex of the at least three image vertices are located on the same parking space exit line in the parking space image to be processed; the second image vertex and the third image vertex are located on the same parking space side line in the parking space image to be processed; the first image vertex is the starting vertex of the at least three image vertices;
[0036] A generating module, configured to generate a parking space region to be drawn having parking space direction information based on position information of the at least three image vertices in the parking space image to be processed;
[0037] The drawing module is used to draw parking spaces in the parking space area to be drawn based on the parking space layout configuration information to generate a parking space map; the parking space layout configuration information is determined based on the parking space image to be processed.
[0038] In a third aspect, the present application also provides an electronic device, characterized in that the device includes a processor and a memory, the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement a parking map generation method as described above.
[0039] In a fourth aspect, the present application also provides a computer-readable storage medium, wherein the storage medium stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded by a processor and executed by a parking map generation method as described above.
[0040] The implementation of the present invention has the following beneficial effects:
[0041] The present application determines three image vertices of the parking space image to be processed clockwise, generates a parking space area to be drawn with parking space direction information according to the parallel line theorem, and can ensure the drawing accuracy of the parking space area to be drawn. The three image vertices are determined manually with higher accuracy, and the parking spaces are drawn in the parking space area to be drawn based on the parking space layout configuration information, so as to realize batch drawing of maps and improve map drawing efficiency. Based on the first image vertex and the second image vertex, the same parking space exit line of the parking space image to be processed can be accurately determined, and then the position information and direction information of the subsequent parking space identification number can be determined, thereby improving the parking space drawing accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solution of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 creative work.
[0043] Figure 1 A flow chart of a method for generating a parking space map provided by an embodiment of the present invention;
[0044] Figure 2 A schematic diagram of a first parking space map provided by an embodiment of the present invention;
[0045] Figure 3 A schematic diagram of a second parking space map provided by an embodiment of the present invention;
[0046] Figure 4 A schematic diagram of a third parking space map provided by an embodiment of the present invention;
[0047] Figure 5 A schematic diagram of a fourth parking space map provided by an embodiment of the present invention;
[0048] Figure 6 A schematic diagram of a fifth parking space map provided by an embodiment of the present invention;
[0049] Figure 7 A parking space map generating device is provided for an embodiment of the present invention. DETAILED DESCRIPTION
[0050] In order to enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.
[0051] In this embodiment, the technical problem to be solved by the present invention is to ensure the drawing speed of the map while improving the drawing accuracy of the parking map. Figure 1 , the method comprising:
[0052] S110: Determine a parking space image to be processed from the garage point cloud depth image; the parking space image to be processed includes a parking space image of at least one target parking space;
[0053] The executor of this embodiment is a server or a user terminal. The point cloud data collected by the laser radar is processed and stored in the warehouse to obtain a garage point cloud depth image. The garage point cloud depth image is loaded through a 3D drawing protocol. A basic tool page is built based on javascript (an interpreted scripting language) and react (a Web development framework). The basic tool page can support users to configure the number of rows and columns of parking spaces, and can draw a map with reference to the garage point cloud depth image. A parking space includes multiple images to be processed, and each image to be processed includes a parking space image of at least one target parking space. According to the current existing road scenes, the distribution of target vehicles in each parking space image to be processed is divided into 1 row and 1 column, 2 rows and 2 columns, 1 row and n columns, 1 column and n rows, 2 rows and n columns, 2 columns and n rows, etc., wherein n>2, and the target parking spaces include conventional rectangular parking spaces and inclined parallelogram parking spaces.
[0054] S120: Determine at least three image vertices in the parking space image to be processed; the order of the path formed by sequentially connecting the at least three image vertices is clockwise; the first image vertex and the second image vertex of the at least three image vertices are located on the same parking space exit line in the parking space image to be processed; the second image vertex and the third image vertex are located on the same parking space side line in the parking space image to be processed; the first image vertex is the starting vertex of the at least three image vertices;
[0055] Generally, the parking space image to be processed is a quadrilateral, and at least three image vertices of the quadrilateral are determined. To improve the drawing accuracy of the map, the garage point cloud depth image is displayed on the map drawing interface, and the parking space image to be processed is determined based on the displayed garage point cloud depth image. At least three image vertices are determined on the image edge of the parking space image to be processed. The three image vertices are three consecutive vertices of the quadrilateral in a clockwise direction. The connecting line between the first image vertex and the second image vertex is the same parking space exit line in the parking space image to be processed. The parking space exit line is the area line adjacent to the parking space image to be processed and the road. The same parking space exit line is the first passed by the vehicle when entering and exiting the parking space. To improve the drawing accuracy of the parking space map, image vertices can be added. In addition to the four image vertices in the parking space image to be processed, the edge points of the parking space image to be processed can also be determined.
[0056] S130: generating a parking space region to be drawn having parking space direction information based on position information of at least three image vertices in the parking space image to be processed;
[0057] At least three image vertices are connected to form the same parking space exit line and the same parking space side line. Based on the parallel line theorem, the parking space area to be drawn with parking space direction information is obtained, that is, the quadrilateral boundary line of the parking space image to be processed. Based on the same exit opening line and the same parking space side line defense line, the parking space direction information can be determined. The parking space direction information is the direction pointing to the parking space exit line. Based on the parking space direction information, the relevant numbers in the map can be determined, such as the parking space identification number and the road guide line.
[0058] S140: based on the parking space layout configuration information, draw the parking spaces in the parking space area to be drawn to generate a parking space map; the parking space layout configuration information is determined based on the parking space image to be processed.
[0059] Input parking space layout configuration information, the parking space layout configuration information includes the number of rows and columns of the target parking space in the parking space image to be processed, evenly split each target parking space, draw each target parking space in the parking space area to be drawn, and generate a parking space map. The parking space map has parking space direction information, and can draw relevant labels such as parking space identification and road guide lines in the parking space map based on the parking space direction information. The current automatic recognition algorithm is difficult to accurately identify the vertices of the target parking space due to problems such as data quality and algorithm recognition accuracy, and cannot accurately identify the same parking space exit line, and the drawn parking space map is inconsistent with the actual garage scene. Problems such as manual participation cannot be avoided. This embodiment generates a parking space area to be drawn with parking space direction information, which can ensure the drawing accuracy of the parking space area to be drawn, draws parking spaces in the parking space area to be drawn based on the parking space layout configuration information, realizes batch map drawing, and improves map drawing efficiency. Based on the first image vertex and the second image vertex, the same parking space exit line of the parking space image to be processed can be accurately determined, and then the position information and direction information of the subsequent parking space identification number can be determined, thereby improving the parking space drawing accuracy.
[0060] In one embodiment, the parking space map includes a target parking space identifier corresponding to at least one target parking space;
[0061] Based on the parking space layout configuration information, draw parking spaces in the parking space area to be drawn to generate a parking space map, including:
[0062] Based on the parking space layout configuration information, draw at least one target parking space area in the parking space area to be drawn;
[0063] A target parking space identifier is added to at least one target parking space area to obtain a parking space map corresponding to the parking space image to be processed.
[0064] A corresponding target parking space mark is drawn on each target parking space, and the target parking space mark is the parking space number. Generally, the perspective for querying the target parking space mark is to stand in the direction of the target parking space exit line and look toward the target parking space area. Therefore, the parking space mark is added close to the exit line of the target parking space area so that the user can clearly observe the target parking space mark; this can facilitate users to find target parking spaces and improve user convenience.
[0065] In one implementation, adding a target parking space identifier in at least one target parking space area to obtain a parking space map corresponding to the parking space image to be processed includes:
[0066] Determine the position information and direction information of the target parking space sign in each target parking space area; the direction information enables the sign to be displayed in a positive direction at a target angle; the target angle is the angle from any target parking space area exit line to any target parking space area;
[0067] According to the order of processing the parking space images to be processed, the content of the target parking space mark in the target parking space area is determined in sequence. The content of the target parking space mark can be numbered in a clockwise direction starting from the target parking space area where the vertex of the first image is located, such as Figure 2 In the first parking space image to be processed, the content of the target parking space mark of the target parking space area where the first image vertex is located is "001", and the content of the target parking space mark of the last target parking space area is numbered in a clockwise direction. The number corresponding to the target parking space mark of the first target parking space area in the second parking space image to be processed is "006", and the content of the target parking space mark in each target parking space area in the second parking space image to be processed is determined in turn, so that the content of each target parking space mark is not repeated in the garage.
[0068] The target parking space identification is added based on the position information and direction information to obtain a parking space map corresponding to the parking space image to be processed.
[0069] Reference Figure 2The parking space map with 1 row and n columns shown in the figure determines the parking space area to be drawn with parking space direction information based on the first image vertex, the second image vertex and the third image vertex. The line between the first image vertex and the second image vertex is the same parking space exit line. Correspondingly, the parking space line of each target parking space located at the same parking space exit line is the exit line of the target parking space. When the user stands in the direction of the same parking space exit line and looks at any target parking space area, the target parking space mark is displayed as positive, and the target parking space mark is added in the target parking space area. Generally, the user stands in the direction of the target parking space exit line to query the target parking space mark, so the position where the parking space mark is added is close to the exit line of the target parking space so that the user can clearly observe the target parking space mark; the direction in which the target parking space mark is added is that when the user stands at the exit line of the target parking space and looks at the target parking space mark, the target parking space is positive, which can facilitate the user to find the target parking space. The above is the drawing method of the parking space mark in the actual garage. In the parking space map, the position and direction of the target parking space mark and the parking space mark in the actual parking space should be consistent to ensure the consistency between the parking space map and the actual parking space.
[0070] In one implementation, determining the location information of the target parking space marker in each target parking space area includes:
[0071] Based on the two side lines of each target parking space area, a target median line of each target parking space area is determined, wherein the target median line is parallel to the two side lines;
[0072] Based on the target median line corresponding to each target parking space area and the same parking space exit line, the position information of each target parking space mark is determined, the center point of the target parking space mark is located on the target median line, and the distance between the target parking space mark and the same parking space exit line is a preset length.
[0073] Reference Figure 2 The target parking space mark is generally set in the center of the target parking space area. Based on the two side lines of the target parking space area, the target median line is determined. The target median line is equidistant from the two side lines respectively. The center point of the target parking space mark is located on the target median line. The target parking space mark is parallel to the exit line of the same parking space. The distance between the target parking space mark and the exit line of the same parking space is a preset length, which can be zero. That is, the target parking space mark is located on the exit line of the target parking space. The parking space layout configuration information is input, and then the parking space map corresponding to the parking space area to be drawn can be generated in batches through the first image vertex, the second image vertex and the third image vertex. The parking space map contains the target parking space marks corresponding to each target parking space area. The position information and direction information of the target parking space mark are determined through the first image vertex, the second image vertex and the third image vertex, so as to improve the drawing accuracy of the parking space map and improve the efficiency of map drawing.
[0074] In one embodiment, the method further comprises:
[0075] When the number of rows of the target parking space in the parking space image to be processed is two, a region line in the parking space area to be drawn that is opposite to the exit line of the same parking space is determined as a relative parking space exit line;
[0076] Reference Figure 3 The 2-row n-train parking space map shown in the figure, n>2, the line between the first image vertex and the second image vertex in the figure is the same parking space exit line, and the area line opposite to the same parking space exit line is determined as the relative parking space exit line. Each target parking space area has a corresponding exit line. The exit line of the target parking space area in the lower row is located on the same parking space exit line, and the exit line of the target parking space area in the upper row is located on the relative parking space exit line (shown by the dotted line in the figure).
[0077] Adding a target parking space identifier in at least one target parking space area to obtain a parking space map corresponding to the parking space image to be processed includes:
[0078] Based on the same parking space exit line and the relative parking space exit line, determine the target parking space exit line corresponding to each target parking space area;
[0079] Based on the target parking space exit line, the position information and direction information of each target parking space are determined respectively; the direction information enables the target parking space sign to be displayed in a positive direction at a target angle; the target angle is the angle from the exit line of any target parking space area to any target parking space area;
[0080] Based on the target parking space exit line corresponding to each target parking space area, the position information and direction information of the target parking space mark are determined. The position information is determined in the following way: the two side lines of the target parking space area determine the target median line, the center point of the target parking space mark is located on the target median line, the target parking space line is parallel to the same parking space exit line, the distance between the target parking space mark and the target parking space exit line is a preset length, the preset length can be zero, and the target parking space mark is located on the exit line of the target parking space; the direction information makes the target parking space mark displayed positively at the target angle; the target angle is the angle from the target parking space exit line corresponding to any target parking space area to any target parking space area; the content of the target parking space mark can be based on the target parking space area where the vertex of the first image is located, and numbered in sequence in a clockwise direction, that is, Figure 3 In the figure, the target parking space mark of the target parking space area where the first image vertex is located is "001", and the target parking space mark of the last target parking space area in the same row as "001" is "005", and the target parking space mark above "005" is "006", and the target parking space mark of the last target parking space area in the parking map is "010".
[0081] A target parking space mark is added to the target parking space area based on the position information and the direction information to obtain a parking space map corresponding to the parking space image to be processed.
[0082] The location information and direction information are added to the target parking space mark in the target parking space area. When there are two rows in the target parking space area, two rows of target parking space marks with opposite display directions can be automatically generated with reference to the actual parking space situation to obtain a parking space map corresponding to the parking space image to be processed, thereby improving the drawing accuracy of the parking space map and improving the efficiency of map drawing.
[0083] In one embodiment, the method further comprises:
[0084] When the number of target parking spaces in the parking space image to be processed is greater than two, the parking space line that is parallel to the same parking space exit line and has the shortest distance in each target parking space area is determined as a parallel parking space exit line;
[0085] Reference Figure 4 The 2-column n-row parking map shown, Figure 4 For the side position situation, it can also be applied to the 1-column n-row parking map, where n>2. In each target parking area, the parking line that is parallel to the same parking exit line and has the shortest distance is determined as the parallel parking exit line, that is, the exit line of each target parking area.
[0086] Adding a target parking space identifier in at least one target parking space area to obtain a parking space map corresponding to the parking space image to be processed includes:
[0087] Based on the parallel parking space exit lines corresponding to each target parking space area, the position information and direction information of each target parking space area are determined; the direction information enables the target parking space mark to be displayed positively at the target angle; the target angle is the angle at which the same parking space exit line points to any target parking space area; the method of determining the position information: the two side lines of the target parking space area determine the target median line, the center point of the target parking space mark is located on the target median line, the target parking space mark is parallel to the same parking space exit line, the distance between the target parking space mark and the same parking space exit line is a preset length, the preset length can be zero, and the target parking space mark is located on the exit line of the target parking space area; the direction information enables the target parking space mark to be displayed positively at the target angle; the target angle is the angle at which the same parking space exit line points to any target parking space area; when the parking space is in a side position, the content of the target parking space mark can be based on the target parking space area where the vertex of the first image is located, and numbered in sequence in a counterclockwise direction, such as Figure 4In the figure, the target parking space mark of the target parking space area where the first image vertex is located is "001", and the target parking space mark of the last target parking space area in the same column as "001" is "003", and the target parking space mark of the last target parking space area in the parking map is "006" in the counterclockwise direction of "003".
[0088] The target parking space area is marked with a target parking space based on the position information and the direction information, so as to obtain a parking space map corresponding to the parking space image to be processed.
[0089] The location information and direction information are added to the target parking space identification in the target parking space area. When there are multiple columns in the target parking space area, all target parking space identifications with the same display direction can be automatically generated to obtain a parking space map corresponding to the parking space image to be processed, thereby improving the drawing accuracy of the parking space map and improving the efficiency of map drawing.
[0090] In a special case, the target parking space area in the parking space map is in 2 rows and 2 columns. It is necessary to determine whether the direction information of the target parking space marks in the two rows is in the same direction or in the opposite direction. If the direction information of the target parking space marks in the two rows is in the same direction, such as Figure 5 As shown, the parking space map with 2 rows and 2 columns is processed as 2 columns n rows or 1 column n rows, that is, in each target parking space area, the parking space line that is parallel to the same parking space exit line and has the shortest distance is determined as the exit line of the target parking space area, and then the position information and direction information of the target parking space mark are determined; if the direction information of the target parking space marks in the two rows is the same direction, such as Figure 6 As shown, the parking space map with 2 rows and 2 columns is processed in the manner of 2 rows and n columns, that is, the area line opposite to the same parking space exit line in the parking space area to be drawn is determined as the relative parking space exit line, and the target parking space exit line of each target parking space area is determined, thereby determining the position information and direction information of the target parking space mark.
[0091] In one embodiment, after determining the parking space image to be processed from the garage point cloud depth image, the method further includes:
[0092] When the parking space image to be processed is not a quadrilateral, the parking space image to be processed is divided into a plurality of target areas, and the plurality of target areas are all quadrilaterals;
[0093] Determining at least three image vertices in the parking space image to be processed also includes:
[0094] At least three image vertices in each target region are respectively determined.
[0095] In the case where the parking space image to be processed is non-quadrilateral, that is, in the parking space image to be processed, the number of target parking space areas in each row and / or each column is different, or the target parking space areas in each row and / or each column are misplaced, such as when the parking space image to be processed includes two rows and two columns of target parking space areas, and there are three target parking spaces in total, the parking space image to be processed is divided into multiple target areas, and the multiple target areas are all quadrilaterals. Each target area forms a parking space image to be processed, and at least three image vertices are determined on each target area. Based on the at least three image vertices, a parking space map corresponding to the target area is drawn to achieve diversified drawing of the parking space map.
[0096] This embodiment also provides a parking map generation device, which can implement all the above method steps, such as Figure 7 As shown, the device comprises:
[0097] The first determination module 710 is used to determine a parking space image to be processed from the garage point cloud depth image; the parking space image to be processed includes a parking space image of at least one target parking space;
[0098] The second determination module 720 is used to determine at least three image vertices in the parking space image to be processed; the path order formed by connecting the at least three image vertices in sequence is clockwise; the first image vertex and the second image vertex of the at least three image vertices are located on the same parking space exit line in the parking space image to be processed; the second image vertex and the third image vertex are located on the same parking space side line in the parking space image to be processed; the first image vertex is the starting vertex of the at least three image vertices;
[0099] A generating module 730, configured to generate a parking space region to be drawn having parking space direction information based on position information of at least three image vertices in the parking space image to be processed;
[0100] The drawing module 740 is used to draw parking spaces in the parking space area to be drawn based on the parking space layout configuration information to generate a parking space map; the parking space layout configuration information is determined based on the parking space image to be processed.
[0101] The device also includes:
[0102] A first drawing module is used to draw at least one target parking space area in the parking space area to be drawn based on the parking space layout configuration information; the parking space map includes a target parking space identifier corresponding to the at least one target parking space;
[0103] The first adding module is used to add a target parking space identifier in the at least one target parking space area to obtain a parking space map corresponding to the parking space image to be processed.
[0104] The third determination module is used to determine the position information and direction information of the target parking space mark in each target parking space area; the direction information enables the mark to be displayed in a positive direction at a target angle; the target angle is the angle from the exit line of any target parking space area to the area within any target parking space area;
[0105] The second adding module is used to add the target parking space identification based on the position information and the direction information to obtain a parking space map corresponding to the parking space image to be processed.
[0106] A fourth determination module, configured to determine a target median line of each target parking space area based on the two side lines of each target parking space area, wherein the target median line is parallel to the two side lines;
[0107] The fifth determination module is used to determine the position information of each target parking space mark based on the target median line corresponding to each target parking space area and the same parking space exit line, the center point of the target parking space mark is located on the target median line, and the distance between the target parking space mark and the same parking space exit line is a preset length.
[0108] A sixth determining module, configured to determine, when the number of rows of the target parking space in the parking space image to be processed is two, a region line in the parking space area to be drawn that is opposite to the same parking space exit line as a relative parking space exit line;
[0109] A seventh determination module, configured to determine the target parking space exit line corresponding to each target parking space area based on the same parking space exit line and the relative parking space exit line;
[0110] An eighth determination module is used to determine the position information and direction information of each target parking space based on the target parking space exit line; the direction information enables the target parking space mark to be displayed in a positive direction at a target angle; the target angle is an angle from the exit line of any target parking space area to the area within any target parking space;
[0111] The third adding module is used to add the target parking space identification to the target parking space area based on the position information and the direction information to obtain a parking space map corresponding to the parking space image to be processed.
[0112] a ninth determination module, configured to determine, when the number of rows of target parking spaces in the parking space image to be processed is greater than two rows, a parking space line in each target parking space area that is parallel to the same parking space exit line and has the shortest distance thereto as a parallel parking space exit line;
[0113] A tenth determination module is used to determine the position information and direction information of each target parking space area based on the parallel parking space exit lines corresponding to each target parking space area; the direction information enables the target parking space mark to be displayed in a positive direction at a target angle; the target angle is the angle at which the same parking space exit line points to any target parking space area;
[0114] A fourth adding module is used to add the target parking space identification to the target parking space area based on the position information and the direction information to obtain a parking space map corresponding to the parking space image to be processed.
[0115] A division module, used for dividing the parking space image to be processed into a plurality of target areas when the parking space image to be processed is not a quadrilateral, wherein the plurality of target areas are all quadrilaterals;
[0116] The eleventh determination module is used to respectively determine at least three image vertices in each target area.
[0117] Implementing this embodiment has the following effects:
[0118] 1. In this embodiment, three image vertices of the parking space image to be processed are determined clockwise, and a parking space area to be drawn with parking space direction information is generated according to the parallel line theorem, so as to ensure the drawing accuracy of the parking space area to be drawn. The three image vertices are determined manually with higher accuracy. Parking spaces are drawn in the parking space area to be drawn based on the parking space layout configuration information, so as to realize batch drawing of maps and improve map drawing efficiency. Based on the first image vertex and the second image vertex, the same parking space exit line of the parking space image to be processed can be accurately determined, and then the position information and direction information of the subsequent parking space identification number can be determined, so as to improve the parking space drawing accuracy.
[0119] 2. For the images to be processed in different arrangements, the exit lines of the target parking area are determined in different ways, so as to determine the position information and direction information of the target parking space logo, so as to batch draw various types of parking space maps and improve the applicability of the map generation device.
[0120] An embodiment of the present invention also provides an electronic device, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, at least one program, a code set or an instruction set is loaded and executed by the processor to implement a parking map generation method as in a method embodiment.
[0121] An embodiment of the present invention also provides a storage medium, which can be set in a server to store at least one instruction, at least one program, a code set or an instruction set for implementing a parking map generation method in a method embodiment. The at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement a parking map generation method provided in the above method embodiment.
[0122] Optionally, in this embodiment, the storage medium may be located in at least one of the multiple network servers of the computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.
[0123] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0124] The above description has fully disclosed the specific embodiments of the present invention. It should be pointed out that any changes made by those skilled in the art to the specific embodiments of the present invention do not deviate from the scope of the claims of the present invention. Accordingly, the scope of the claims of the present invention is not limited to the above specific embodiments.
Claims
1. A method for generating a parking space map, characterized in that: include: Determine a parking space image to be processed from a garage point cloud depth image; The parking space image to be processed includes a parking space image of at least one target parking space; Determine at least three image vertices in the parking space image to be processed; the order of the paths formed by sequentially connecting the at least three image vertices is clockwise; The first image vertex and the second image vertex of the at least three image vertices are located on the same parking space exit line in the parking space image to be processed; The second image vertex and the third image vertex are located on the same parking space side line in the parking space image to be processed; The first image vertex is a starting vertex of the at least three image vertices; Based on the position information of the at least three image vertices in the parking space image to be processed, generating a parking space area to be drawn with parking space direction information; The parking space direction information is the direction pointing to the parking space exit line; Based on the parking space layout configuration information, at least one target parking space area is drawn in the parking space area to be drawn; the parking space layout configuration information is determined based on the parking space image to be processed; the parking space layout configuration information includes the number of rows and columns of the target parking space in the parking space image to be processed; Determine the position information and direction information of the target parking space mark in each of the target parking space areas; The direction information enables the sign to be displayed in a positive direction at a target angle; the target angle is an angle from an exit line of any target parking space area to within the area of any target parking space; The target parking space identifier is added based on the position information and the direction information to obtain a parking space map corresponding to the parking space image to be processed; the parking space map includes the target parking space identifier corresponding to the at least one target parking space.
2. A parking space map generation method according to claim 1, characterized in that: Determining the position information of the target parking space mark in each target parking space area includes: Based on the two side lines of each target parking space area, determining a target median line of each target parking space area, wherein the target median line is parallel to the two side lines; Based on the target median line corresponding to each target parking space area and the same parking space exit line, the position information of each target parking space mark is determined, the center point of the target parking space mark is located on the target median line, and the distance between the target parking space mark and the same parking space exit line is a preset length.
3. The method for generating a parking space map according to claim 1, characterized in that: The method further comprises: When the number of rows of the target parking space in the parking space image to be processed is two, determining the area line in the parking space area to be drawn that is opposite to the same parking space exit line as the relative parking space exit line; The step of adding a target parking space identifier in the at least one target parking space area to obtain a parking space map corresponding to the parking space image to be processed includes: Based on the same parking space exit line and the relative parking space exit line, determining the target parking space exit line corresponding to each target parking space area; Based on the target parking space exit line, the position information and direction information of each target parking space are determined respectively; the direction information enables the target parking space mark to be displayed in a positive direction at a target angle; the target angle is the angle from the exit line of any target parking space area to the area within any target parking space; The target parking space identifier is added to the target parking space area based on the position information and the direction information to obtain a parking space map corresponding to the parking space image to be processed.
4. The method for generating a parking space map according to claim 1, characterized in that: The method further comprises: When the number of target parking spaces in the parking space image to be processed is greater than two, a parking space line in each target parking space area that is parallel to the same parking space exit line and has the shortest distance thereto is determined as a parallel parking space exit line; The step of adding a target parking space identifier in the at least one target parking space area to obtain a parking space map corresponding to the parking space image to be processed includes: Based on the parallel parking space exit lines corresponding to each target parking space area, the position information and direction information of each target parking space area are determined; the direction information enables the target parking space mark to be displayed in a positive direction at a target angle; the target angle is the angle at which the same parking space exit line points to any target parking space area; The target parking space area is added with the target parking space identifier based on the position information and the direction information to obtain a parking space map corresponding to the parking space image to be processed.
5. The method for generating a parking space map according to claim 1, characterized in that: After determining the parking space image to be processed from the garage point cloud depth image, the method further includes: In the case that the parking space image to be processed is not a quadrilateral, dividing the parking space image to be processed into a plurality of target areas, and the plurality of target areas are all quadrilaterals; The determining of at least three image vertices in the parking space image to be processed further includes: At least three image vertices in each target region are respectively determined.
6. A parking space map generating device, characterized in that: include: A first determination module is used to determine a parking space image to be processed from a garage point cloud depth image; The parking space image to be processed includes a parking space image of at least one target parking space; The second determination module is used to determine at least three image vertices in the parking space image to be processed; the order of the path formed by sequentially connecting the at least three image vertices is clockwise; The first image vertex and the second image vertex of the at least three image vertices are located on the same parking space exit line in the parking space image to be processed; The second image vertex and the third image vertex are located on the same parking space side line in the parking space image to be processed; The first image vertex is a starting vertex of the at least three image vertices; A generating module, configured to generate a parking space region to be drawn having parking space direction information based on position information of the at least three image vertices in the parking space image to be processed; The parking space direction information is the direction pointing to the parking space exit line; A first drawing module, configured to draw at least one target parking space area in the parking space area to be drawn based on parking space layout configuration information; the parking space layout configuration information is determined based on the parking space image to be processed; the parking space layout configuration information includes the number of rows and columns of the target parking space in the parking space image to be processed; A third determination module is used to determine the position information and direction information of the target parking space mark in each of the target parking space areas; The direction information enables the sign to be displayed in a positive direction at a target angle; the target angle is an angle from an exit line of any target parking space area to within the area of any target parking space; The second adding module is used to add the target parking space identification based on the position information and the direction information to obtain a parking space map corresponding to the parking space image to be processed; the parking space map includes the target parking space identification corresponding to the at least one target parking space.
7. An electronic device, characterized in that: The device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement a parking map generation method as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor according to a parking map generation method as described in any one of claims 1 to 5.
