Lane rendering method, device, electronic device and storage medium

By adding texture coordinates to the lane line area and rendering according to the virtual-to-real ratio and color, the problem of low performance of dashed lines in lane-level map rendering is solved and more efficient rendering performance is achieved.

CN114485716BActive Publication Date: 2024-09-20BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111629980.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-28
Publication Date
2024-09-20
Estimated Expiration
2041-12-28

AI Technical Summary

Technical Problem

When rendering lane-level maps with the existing technology, the rendering performance of dashed line types is low, resulting in increased resource consumption and overburdened graphics processors. In particular, the number of endpoints increases sharply after solid lines are broken into dotted lines, resulting in a decrease in rendering performance.

Method used

By creating a lane line area and adding texture abscissas and texture ordinates to it, rendering is performed based on the virtual-to-real ratio and color to avoid increasing the number of endpoints, thus reducing the burden on the graphics processor and resource consumption, and improving rendering performance.

Benefits of technology

Without increasing the number of endpoints of the lane line area, multiple lane line areas are organized into a batch for rendering, which reduces the burden and resource consumption of the graphics processor and improves rendering performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114485716B
    Figure CN114485716B
Patent Text Reader

Abstract

The present disclosure proposes a lane rendering method, device, electronic device and storage medium, which relate to the field of artificial intelligence technology, and specifically to the field of computer vision and intelligent transportation technology. The scheme is: according to multiple points of the lane line and the set width of the lane line, a lane line area corresponding to the lane line is created; according to the length of the lane line area and the set virtual-real ratio of the lane line area, the texture horizontal coordinates of the endpoints of the lane line area are determined; according to the color of the lane line area, the texture vertical coordinates of the endpoints of the lane line area are determined; according to the texture horizontal coordinates of the endpoints of the lane line area and the texture vertical coordinates of the corresponding endpoints, the lane line area is rendered. In this way, multiple lane line areas can be organized into a batch for rendering without increasing the number of endpoints of the lane line area, which reduces the burden on the graphics processor and related resource consumption and improves rendering performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of artificial intelligence technology, specifically to the field of computer vision and intelligent transportation technology, and in particular to a lane rendering method, device, electronic device and storage medium. Background Art

[0002] With the development of computer vision, the display methods of maps are becoming more and more diverse. Especially in the field of vehicle navigation, people need to obtain lane area information on lane-level maps so that vehicles can drive normally on the geographical locations indicated by the maps. Therefore, how to render lane areas on maps is very important. Summary of the invention

[0003] The present disclosure provides a lane rendering method, device, electronic device and storage medium.

[0004] According to one aspect of the present disclosure, a lane rendering method is provided, comprising: creating a lane line area corresponding to the lane line according to multiple points of the lane line and a set width of the lane line; determining the texture horizontal coordinates of the endpoints of the lane line area according to the length of the lane line area and a set virtual-to-real ratio of the lane line area; determining the texture vertical coordinates of the endpoints of the lane line area according to the color of the lane line area; and rendering the lane line area according to the texture horizontal coordinates of the endpoints of the lane line area and the texture vertical coordinates of the corresponding endpoints.

[0005] According to another aspect of the present disclosure, a lane rendering device is provided, including: a creation module, used to create a lane line area corresponding to the lane line according to multiple points of the lane line and a set width of the lane line; a first determination module, used to determine the texture horizontal coordinates of the endpoints of the lane line area according to the length of the lane line area and the set virtual-to-real ratio of the lane line area; a second determination module, used to determine the texture vertical coordinates of the endpoints of the lane line area according to the color of the lane line area; and a rendering module, used to render the lane line area according to the texture horizontal coordinates of the endpoints of the lane line area and the texture vertical coordinates of the corresponding endpoints.

[0006] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the lane rendering method described in the embodiment of the first aspect of the present disclosure.

[0007] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the lane rendering method described in the embodiment of the first aspect of the present disclosure.

[0008] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the lane rendering method described in the embodiment of the first aspect of the present disclosure is implemented.

[0009] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0011] Figure 1 A schematic diagram of the interval between real and virtual lane lines provided in an embodiment of the present disclosure;

[0012] Figure 2 A schematic diagram of the process of the lane rendering method provided in the first embodiment of the present disclosure;

[0013] Figure 3 A schematic diagram of the virtual-real ratio provided by an embodiment of the present disclosure;

[0014] Figure 4 A flowchart of a lane rendering method provided in Embodiment 2 of the present disclosure;

[0015] Figure 5 A schematic diagram of the matching between the lane line area endpoints and the color set texture provided in the embodiment of the present disclosure;

[0016] Figure 6 A flowchart of a lane rendering method provided in Embodiment 3 of the present disclosure;

[0017] Figure 7 A flowchart of a lane rendering method provided in Embodiment 4 of the present disclosure;

[0018] Figure 8 A flowchart of a lane rendering method provided in Embodiment 5 of the present disclosure;

[0019] Fig. 9 A schematic diagram of the process of a lane rendering method according to an embodiment of the present disclosure;

[0020] Fig.10 A schematic diagram of the structure of a lane rendering device provided in Embodiment 6 of the present disclosure;

[0021] Fig.11 A schematic block diagram of an example electronic device that can be used to implement an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0022] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0023] Currently, when rendering lane-level maps, for dashed line types, such as Figure 1 As shown in the figure, a solid line of the same length and width is first created, and then it is interrupted according to the interval between the real and the virtual lines; and for lane lines of different colors, they are organized into multiple batches according to color for rendering. However, interrupting the solid line into dotted lines will greatly increase the number of endpoints (such as Figure 1 In the example above, the number of vertices increases from 4 to 16), the increase in the number of endpoints and multiple drawing by color will increase resource consumption and the burden on the graphics processor, resulting in a decrease in rendering performance.

[0024] In view of the above problems, the present disclosure proposes a lane rendering method, device, electronic device and storage medium.

[0025] The lane rendering method, device, electronic device, and storage medium of the embodiments of the present disclosure are described below with reference to the accompanying drawings.

[0026] Figure 2 A flowchart of a lane rendering method provided in Embodiment 1 of the present disclosure.

[0027] The embodiment of the present disclosure takes the lane rendering method being configured in a lane rendering device as an example. The lane rendering device can be applied to any electronic device so that the electronic device can perform a lane rendering function.

[0028] Among them, the electronic device can be any device with computing capabilities, such as a personal computer (PC), a mobile terminal, etc. The mobile terminal can be, for example, a mobile phone, a tablet computer, a personal digital assistant, a wearable device, and other hardware devices with various operating systems, touch screens and / or display screens.

[0029] like Figure 2 As shown, the lane rendering method may include the following steps:

[0030] Step 201, creating a lane line area corresponding to the lane line according to multiple points of the lane line and a set width of the lane line.

[0031] In the disclosed embodiment, multiple lane line sub-areas corresponding to the lane line may be created based on multiple points of the lane line and a set width of the lane line, and a lane line area corresponding to the lane line may be determined based on the multiple lane line sub-areas.

[0032] Step 202: Determine the texture horizontal coordinates of the endpoints of the lane line area according to the length of the lane line area and the set virtual-real ratio of the lane line area.

[0033] In the embodiments of the present disclosure, in order not to increase the number of endpoints of the lane line area and to reduce the burden and resource consumption of the graphics processor, texture horizontal coordinates may be added to the endpoints of the lane line area, and the lane line area may be rendered virtual and real based on the texture horizontal coordinates corresponding to each point in the lane line area, wherein the texture horizontal coordinates of the endpoints of the lane line area may be determined based on the length of the lane line area and the set virtual-to-real ratio of the lane line area, and the set virtual-to-real ratio of the lane line area may be the ratio of the unit filled sub-area to the unit transparent sub-area in the lane line area, or the ratio of the unit transparent sub-area to the unit filled sub-area in the lane line area. In the present disclosure, the set virtual-to-real ratio may be the ratio of the unit filled sub-area to the unit transparent sub-area in the lane line area for exemplary description. For example, Figure 3 As shown, it is assumed that the length of the unit filled sub-area in the lane line area is 9m, the length of the unit transparent sub-area is 6m, and the virtual-to-real ratio is 3:2.

[0034] Step 203, determining the texture ordinate of the endpoint of the lane line area according to the color of the lane line area.

[0035] In the disclosed embodiment, according to the color of the lane line area, the texture ordinates corresponding to the color are set for the endpoints of the lane line area. For example, if the lane line area is white, the texture ordinates of the endpoints at both ends of the lane line area are set to 0.2; if the lane line area is yellow, the texture ordinates of the endpoints at both ends of the lane line area are set to 0.4; if the lane line area is orange, the texture ordinates of the endpoints at both ends of the lane line area are set to 0.6; if the lane line area is gray, the texture ordinates of the endpoints at both ends of the lane line area are set to 0.8; if the lane line area is blue, the texture ordinates of the endpoints at both ends of the lane line area are set to 1.

[0036] Step 204 , rendering the lane line area according to the texture horizontal coordinates of the endpoints of the lane line area and the texture vertical coordinates of the corresponding endpoints.

[0037] Furthermore, the lane line region is rendered virtual and real according to the texture horizontal coordinates of the endpoints of the lane line region, and the lane line region is rendered color according to the texture vertical coordinates of the endpoints of the lane line region.

[0038] In summary, by adding texture horizontal coordinates and texture vertical coordinates to the endpoints of the lane line area, and rendering the lane line area according to the texture horizontal coordinates and texture vertical coordinates, multiple lane line areas can be organized into a batch for rendering without increasing the number of lane line area endpoints, thereby reducing the burden and resource consumption of the graphics processor and improving rendering performance.

[0039] In order to organize multiple lane line areas into a batch for rendering without increasing the number of lane line area endpoints, such as Figure 4 As shown, Figure 4 This is a flow chart of a lane rendering method provided by Embodiment 2 of the present disclosure. In the embodiment of the present disclosure, the fill type corresponding to the texture horizontal coordinates of multiple points in the lane line area and the color corresponding to the texture vertical coordinates of multiple points in the lane line area can be determined. Then, according to the fill type corresponding to the texture horizontal coordinates of the multiple points in the lane line area and the color corresponding to the texture vertical coordinates of the corresponding points, the lane line area is rendered. Figure 4 The illustrated embodiment may include the following steps:

[0040] Step 401, creating a lane line area corresponding to the lane line according to multiple points of the lane line and a set width of the lane line.

[0041] Step 402, determining the texture horizontal coordinates of the endpoints of the lane line area according to the length of the lane line area and the set virtual-real ratio of the lane line area.

[0042] Step 403: Determine the texture ordinate of the endpoint of the lane line area according to the color of the lane line area.

[0043] Step 404 , determining the texture horizontal coordinates of a plurality of points in the lane line area according to the texture horizontal coordinates of the endpoints of the lane line area.

[0044] In the embodiment of the present disclosure, the texture coordinates of the multiple points between the two ends of the lane line region can be determined according to the texture coordinates of the two ends of the lane line region. For example, if the texture coordinates of the two ends of the lane line region are 0 and 4 respectively, then the texture coordinates of the multiple points between the two ends of the lane line region are between 0 and 4.

[0045] Step 405, matching the texture horizontal coordinates of multiple points in the lane line area with a set texture virtual-real reference template to determine the filling type corresponding to the texture horizontal coordinates of the multiple points in the lane line area; wherein the texture virtual-real reference template is used to indicate the filling type corresponding to each texture horizontal coordinate within the set texture horizontal coordinate range.

[0046] In order to accurately determine the filling type of the texture horizontal coordinates of multiple points in the lane line area, in the embodiment of the present disclosure, a texture virtual-real reference template can be set in advance, and the texture virtual-real reference template is used to indicate the filling type corresponding to each texture horizontal coordinate within the set texture horizontal coordinate range.

[0047] Furthermore, the texture horizontal coordinates of the plurality of points in the lane line area are matched with a set texture virtual-real reference template, so that the filling types corresponding to the texture horizontal coordinates of the plurality of points in the lane line area can be determined.

[0048] As an example, for the texture coordinate of any point among the multiple points, the texture coordinate of the arbitrary point is sampled in a set texture virtual-real reference template to determine the filling type corresponding to the texture coordinate of the arbitrary point. The filling type is used to indicate that the corresponding point is in a filled sub-area or a transparent sub-area in the lane line area.

[0049] That is to say, the texture horizontal coordinate of any point among the multiple points in the lane line area is sampled in the set texture virtual-real reference template, and the filling type corresponding to the texture horizontal coordinate of the arbitrary point can be accurately determined according to the sampling result.

[0050] It should be noted that the range of the texture horizontal coordinate corresponding to the texture virtual-real reference template is [0,1]. The texture horizontal coordinate of the lane line area can be repeatedly matched within the range of [0,1]. For example, when the texture horizontal coordinate of the lane line area is greater than 1, the integer value of the texture horizontal coordinate of the lane line area can be removed, and the texture horizontal coordinate can be matched with the texture virtual-real reference template after removing the integer value. For example, if the texture horizontal coordinate in the lane line area is 2.5, the 0.5 obtained by removing the integer value of the texture horizontal coordinate can be matched with the texture virtual-real reference template.

[0051] Step 406, matching the texture ordinates of the endpoints of the lane line area with the set color set texture to determine the colors corresponding to the texture ordinates of multiple points in the lane line area; wherein the color set texture is used to indicate the colors corresponding to each texture ordinate.

[0052] In order to improve rendering efficiency, in the embodiment of the present disclosure, multiple lane line areas can be organized into a batch for color rendering. As an example, a color set texture can be pre-set. The color set texture contains all the colors of the lane lines and can be used to indicate the color corresponding to each texture vertical coordinate.

[0053] In the disclosed embodiment, the texture ordinates of the endpoints of the lane line area are matched with a set color set texture, and the colors corresponding to the texture ordinates of multiple points in the lane line area can be determined based on the matching results.

[0054] For example, Figure 5As shown, different colors in the color set texture correspond to different texture ordinates. The texture ordinate of the endpoint of the lane area is matched with the set color set texture. For example, the texture ordinate of the endpoint of the lane line area is 0.4 or 0.6. The color set texture can be queried based on the texture ordinate to determine the color corresponding to the texture ordinate.

[0055] It should be noted that, according to the texture ordinates at both ends of the lane line area, the texture ordinates of multiple points between the two ends in the lane line area can be determined. For example, if the texture ordinates at both ends of the lane line area are 1, then the texture abscissas of multiple points between the two ends in the lane line area are also 1.

[0056] Step 407 , rendering the lane line area according to the fill types corresponding to the texture horizontal coordinates of the plurality of points in the lane line area and the colors corresponding to the texture vertical coordinates of the corresponding points.

[0057] Furthermore, virtual and real rendering of the lane line area is performed according to the filling type corresponding to the texture horizontal coordinates of multiple points in the lane line area, and color rendering of the lane line area is performed according to the color corresponding to the texture vertical coordinates of the corresponding points.

[0058] It should be noted that the execution process of steps 401 to 403 can refer to the execution process of the above embodiment, and will not be described in detail here.

[0059] In summary, according to the texture horizontal coordinates of the endpoints of the lane line area and the set texture virtual-real reference template, the fill type corresponding to the texture horizontal coordinates of multiple points in the lane line area can be determined, and according to the texture vertical coordinates of the endpoints of the lane line area and the set color set texture, the colors corresponding to the texture vertical coordinates of multiple points in the lane line area can be determined. Furthermore, according to the fill type corresponding to the texture horizontal coordinates of multiple points in the lane line area, and the colors corresponding to the texture vertical coordinates of the corresponding points, multiple lane line areas can be organized into a batch for rendering without increasing the number of endpoints of the lane line area, thereby reducing the burden on the graphics processor and related resource consumption and improving rendering efficiency.

[0060] In order to accurately render the lane line area according to the fill type corresponding to the texture horizontal coordinates of multiple points in the lane line area and the color corresponding to the texture vertical coordinates of the corresponding points, such as Figure 6 As shown, Figure 6 This is a flow chart of the lane rendering method provided in the third embodiment of the present disclosure. In the embodiment of the present disclosure, the lane line area can be rendered in different ways according to different fill types corresponding to the texture horizontal coordinates of multiple points in the lane line area. Figure 6 The illustrated embodiment may include the following steps:

[0061] Step 601, creating a lane line area corresponding to the lane line according to multiple points of the lane line and a set width of the lane line.

[0062] Step 602: Determine the texture horizontal coordinates of the endpoints of the lane line area according to the length of the lane line area and the set virtual-real ratio of the lane line area.

[0063] Step 603: Determine the texture ordinate of the endpoint of the lane line area according to the color of the lane line area.

[0064] Step 604: Determine the texture horizontal coordinates of a plurality of points in the corresponding lane line area according to the texture horizontal coordinates of the endpoints of the lane line area.

[0065] Step 605, matching the texture horizontal coordinates of multiple points in the lane line area with a set texture virtual-real reference template to determine the filling type corresponding to the texture horizontal coordinates of the multiple points in the lane line area; wherein the texture virtual-real reference template is used to indicate the filling type corresponding to each texture horizontal coordinate within the set texture horizontal coordinate range.

[0066] Step 606, matching the texture ordinates of the endpoints of the lane line area with the set color set texture to determine the colors corresponding to the texture ordinates of multiple points in the lane line area; wherein the color set texture is used to indicate the colors corresponding to each texture ordinate.

[0067] Step 607, when the fill type of the texture horizontal coordinate of any point indicates that the arbitrary point is in a filling sub-area in the corresponding lane line area, the lane line area is rendered according to the filling sub-areas corresponding to the texture horizontal coordinates of multiple points in the lane line area and the colors corresponding to the texture vertical coordinates of the corresponding points.

[0068] As an example, when the fill type of the texture horizontal coordinate of any point indicates that the arbitrary point is in the filling sub-area of ​​the corresponding lane line area, that is, the arbitrary point is in the solid line area of ​​the lane line area, the arbitrary point can be retained and the lane line area can be rendered according to the color corresponding to the texture horizontal coordinate of the arbitrary point.

[0069] Step 608 , when the filling type of the texture horizontal coordinate of any point indicates that the arbitrary point is in a transparent sub-region in the corresponding lane line region, the arbitrary point is removed from the lane line region corresponding to the arbitrary point.

[0070] As another example, when the filling type of the texture horizontal coordinate of any point indicates that the arbitrary point is in the transparent sub-area of ​​the corresponding lane line area, that is, the arbitrary point is in the dotted area of ​​the lane line area, the arbitrary point can be eliminated in the lane line area corresponding to the arbitrary point.

[0071] It should be noted that the execution process of steps 601 to 604 can refer to the execution process of the above embodiment, and will not be described in detail here.

[0072] In summary, when the fill type of the texture horizontal coordinate of any point indicates that the arbitrary point is in the filled sub-region of the corresponding lane line area, the lane line area is rendered according to the filled sub-regions corresponding to the texture horizontal coordinates of multiple points in the lane line area and the colors corresponding to the texture vertical coordinates of the corresponding points; when the fill type of the texture horizontal coordinate of any point indicates that the arbitrary point is in the transparent sub-region of the corresponding lane line area, the arbitrary point is removed from the lane line area corresponding to the arbitrary point. Therefore, according to the fill types corresponding to the texture horizontal coordinates of multiple points in the lane line area and the colors corresponding to the texture vertical coordinates of the corresponding points, the rendering of the lane line area can be accurately achieved.

[0073] In order to accurately determine the texture coordinates of the endpoints of the lane line area, such as Figure 7 As shown, Figure 7 Schematic diagram of the process of lane rendering method provided by the fourth embodiment of the present disclosure. In the embodiment of the present disclosure, according to the set virtual-real ratio of the lane line area, the length of the unit sub-area corresponding to the virtual-real ratio in the lane line area can be determined, and the texture horizontal coordinate of the endpoint of the lane line area is determined according to the length of the lane line area and the length of the unit sub-area. Figure 7 The illustrated embodiment may include the following steps:

[0074] Step 701, creating a lane line area corresponding to the lane line according to multiple points of the lane line and a set width of the lane line.

[0075] Step 702, obtaining the length of the lane line area.

[0076] In the disclosed embodiment, the length of the lane line area may be determined based on the coordinates of the two end points of the lane line area.

[0077] Step 703, determining the length of the unit sub-region of the lane line region according to the length of the transparent sub-region and the length of the filled sub-region corresponding to the set virtual-real ratio of the lane line region.

[0078] For example, if the virtual-to-real ratio is set to 3:2, and it is assumed that the length of the filled sub-area corresponding to the virtual-to-real ratio is 9 meters, and the length of the transparent sub-area is 6 meters, the sum of the length of the filled sub-area corresponding to the virtual-to-real ratio and the length of the transparent sub-area (e.g., 9+6=15 meters) can be used as the length of the unit sub-area of ​​the lane line area.

[0079] Step 704 : Determine the texture horizontal coordinates of the endpoints of the lane line area according to the length of the lane line area and the length of the corresponding unit sub-area.

[0080] In the disclosed embodiment, the texture horizontal coordinate of the starting endpoint of the lane line area can be set to 0, and the comparison result of the length of the lane line area and the length of the corresponding unit sub-area can be used as the texture horizontal coordinate of the ending endpoint of the lane line area.

[0081] Step 705: Determine the texture ordinate of the endpoint of the lane line area according to the color of the lane line area.

[0082] Step 706 , rendering the lane line area according to the texture horizontal coordinates of the endpoints of the lane line area and the texture vertical coordinates of the corresponding endpoints.

[0083] It should be noted that the execution process of step 701 and steps 705 to 706 can refer to the execution process of the above embodiment, and will not be described in detail here.

[0084] In summary, by obtaining the length of the lane line area; determining the length of the unit sub-area of ​​the lane line area according to the length of the transparent sub-area and the length of the filling sub-area corresponding to the set virtual-to-real ratio of the lane line area; and determining the texture horizontal coordinates of the endpoints of the lane line area according to the length of the lane line area and the length of the corresponding unit sub-area. Thus, according to the length of the lane line area and the length of the transparent sub-area and the length of the filling sub-area corresponding to the set virtual-to-real ratio, the texture horizontal coordinates of the endpoints of the lane line area can be accurately determined.

[0085] In order to accurately create the lane line area corresponding to the lane line, such as Figure 8 As shown, Figure 8 Schematic diagram of the process of the lane rendering method provided in the fifth embodiment of the present disclosure. In the embodiment of the present disclosure, multiple sub-areas of the lane line can be determined according to any two adjacent points of the lane line and the set width of the lane line, and the splicing result of the multiple sub-areas is used as the lane line area corresponding to the lane line. Figure 8 The illustrated embodiment may include the following steps:

[0086] Step 801, determining multiple sub-areas of the lane line according to any two adjacent points of the lane line and a set width of the lane line.

[0087] In the disclosed embodiment, the perpendicular bisectors of any two adjacent points among the multiple points of the lane line can be determined based on the coordinates of the arbitrary two adjacent points, and then, multiple sub-areas of the lane line can be constructed based on the perpendicular bisectors of the arbitrary two adjacent points and the set width of the lane line.

[0088] Step 802: The concatenation result of the multiple sub-areas of the lane line is used as the lane line area corresponding to the lane line.

[0089] Furthermore, multiple sub-areas of the lane line are spliced ​​together, and the splicing result is used as the lane line area corresponding to the lane line.

[0090] Step 803, determining the texture horizontal coordinates of the endpoints of the lane line area according to the length of the lane line area and the set virtual-real ratio of the lane line area.

[0091] Step 804: Determine the texture ordinate of the endpoint of the lane line area according to the color of the lane line area.

[0092] Step 805 , rendering the lane line area according to the texture horizontal coordinates of the endpoints of the lane line area and the texture vertical coordinates of the corresponding endpoints.

[0093] It should be noted that the execution process of steps 803 to 805 can refer to the execution process of the above embodiment, and will not be described in detail here.

[0094] In summary, multiple sub-areas of the lane line are determined according to any two adjacent points of the lane line and the set width of the lane line; the splicing results of the multiple sub-areas of the lane line are used as the lane line area corresponding to the lane line. Thus, the lane line area can be accurately created according to the multiple points of the lane line and the set width of the lane line.

[0095] In order to explain the above embodiment more clearly, an example is now given for illustration.

[0096] For example, Fig. 9 As shown, the length of the lane area is 60 meters, the set virtual-real ratio is 3:2, the texture virtual-real reference template is 5*1 pixels, and the virtual-real ratio is 3:2. The length of the corresponding filling sub-area (e.g., 9 meters) and the length of the transparent sub-area (e.g., 6 meters) can be set according to the set virtual-real ratio. The sum of the length of the filling sub-area and the length of the transparent sub-area (e.g., 9+6=15 meters) can be used as the length of the unit sub-area of ​​the lane area. The result of comparing the length of the lane area with the length of the corresponding unit sub-area (e.g., 60 / 15=4) is used as the texture horizontal coordinate of the endpoint of the lane area (e.g., the texture horizontal coordinate range of the endpoint of the lane area is [0, 4]). For the texture horizontal coordinate of any point among the multiple points, the texture horizontal coordinate of the arbitrary point is sampled in the set texture virtual-real reference template to determine the filling type corresponding to the texture horizontal coordinate of the arbitrary point. Furthermore, when the fill type of the texture horizontal coordinate of any point indicates that the arbitrary point is in a filled sub-area of ​​the corresponding lane line area, the arbitrary point can be retained and rendered according to the color corresponding to the texture vertical coordinate of the arbitrary point; when the fill type of the texture horizontal coordinate of any point indicates that the arbitrary point is in a transparent sub-area of ​​the corresponding lane line area, the arbitrary point can be eliminated in the lane line area corresponding to the arbitrary point.

[0097] The lane rendering method of the disclosed embodiment creates a lane line area corresponding to the lane line according to multiple points of the lane line and the set width of the lane line; determines the texture horizontal coordinates of the endpoints of the lane line area according to the length of the lane line area and the set virtual-real ratio of the lane line area; determines the texture vertical coordinates of the endpoints of the lane line area according to the color of the lane line area; and renders the lane line area according to the texture horizontal coordinates of the endpoints of the lane line area and the texture vertical coordinates of the corresponding endpoints. The method adds texture horizontal coordinates and texture vertical coordinates to the endpoints of the lane line area, and renders the lane line area according to the texture horizontal coordinates and texture vertical coordinates. Thus, multiple lane line areas can be organized into a batch for rendering without increasing the number of endpoints of the lane line area, thereby reducing the burden on the graphics processor and related resource consumption and improving rendering performance.

[0098] In order to implement the above embodiment, the present disclosure also proposes a lane rendering device.

[0099] Fig.10 This is a structural diagram of the lane rendering device provided in Example 6 of the present disclosure.

[0100] like Fig.10 As shown, the lane rendering device 1000 includes: a creation module 1010 , a first determination module 1020 , a second determination module 1030 and a rendering module 1040 .

[0101] Among them, the creation module 1010 is used to create a lane line area corresponding to the lane line according to multiple points of the lane line and the set width of the lane line; the first determination module 1020 is used to determine the texture horizontal coordinates of the endpoints of the lane line area according to the length of the lane line area and the set virtual-to-real ratio of the lane line area; the second determination module 1030 is used to determine the texture vertical coordinates of the endpoints of the lane line area according to the color of the lane line area; the rendering module 1040 is used to render the lane line area according to the texture horizontal coordinates of the endpoints of the lane line area and the texture vertical coordinates of the corresponding endpoints.

[0102] As a possible implementation method of the embodiment of the present disclosure, the rendering module 1040 is specifically used to: determine the texture horizontal coordinates of multiple points in the corresponding lane line area according to the texture horizontal coordinates of the endpoints of the lane line area; match the texture horizontal coordinates of the multiple points in the lane line area with a set texture virtual-real reference template to determine the fill type corresponding to the texture horizontal coordinates of the multiple points in the lane line area; wherein the texture virtual-real reference template is used to indicate the fill type corresponding to each texture horizontal coordinate within the set texture horizontal coordinate range; match the texture vertical coordinates of the endpoints of the lane line area with a set color set texture to determine the color corresponding to the texture vertical coordinates of the multiple points in the lane line area; wherein the color set texture is used to indicate the color corresponding to each texture vertical coordinate; render the lane line area according to the fill type corresponding to the texture horizontal coordinates of the multiple points in the lane line area, and the color corresponding to the texture vertical coordinates of the corresponding points.

[0103] As a possible implementation method of the embodiment of the present disclosure, the filling type is used to indicate that the corresponding point is in a filled sub-area or a transparent sub-area in the lane line area, and the rendering module 1040 is also used to: for the texture horizontal coordinate of any point among the multiple points, sample the texture horizontal coordinate of any point in the set texture virtual-real reference template to determine the filling type corresponding to the texture horizontal coordinate of any point.

[0104] As a possible implementation method of the embodiment of the present disclosure, the rendering module 1040 is also used to: when the fill type of the texture horizontal coordinate of any point indicates that the arbitrary point is in a filled sub-area in the corresponding lane line area, render the lane line area according to the filled sub-areas corresponding to the texture horizontal coordinates of multiple points in the lane line area, and the colors corresponding to the texture vertical coordinates of the corresponding points; when the fill type of the texture horizontal coordinate of any point indicates that the arbitrary point is in a transparent sub-area in the corresponding lane line area, remove the arbitrary point in the lane line area corresponding to the arbitrary point.

[0105] As a possible implementation method of the embodiment of the present disclosure, the first determination module 1020 is specifically used to: obtain the length of the lane line area; determine the length of the unit sub-area of ​​the lane line area according to the length of the filled sub-area and the length of the transparent sub-area corresponding to the set virtual-to-real ratio of the lane line area; determine the texture horizontal coordinate of the endpoint of the lane line area according to the length of the lane line area and the length of the corresponding unit sub-area.

[0106] As a possible implementation method of the embodiment of the present disclosure, a module 1010 is created, which is specifically used to: determine multiple sub-areas of the lane line based on any two adjacent points of the lane line and the set width of the lane line; and use the splicing results of the multiple sub-areas of the lane line as the lane line area corresponding to the lane line.

[0107] The lane rendering method of the disclosed embodiment creates a lane line area corresponding to the lane line according to multiple points of the lane line and the set width of the lane line; determines the texture horizontal coordinates of the endpoints of the lane line area according to the length of the lane line area and the set virtual-real ratio of the lane line area; determines the texture vertical coordinates of the endpoints of the lane line area according to the color of the lane line area; and renders the lane line area according to the texture horizontal coordinates of the endpoints of the lane line area and the texture vertical coordinates of the corresponding endpoints. The method adds texture horizontal coordinates and texture vertical coordinates to the endpoints of the lane line area, and renders the lane line area according to the texture horizontal coordinates and texture vertical coordinates. Thus, multiple lane line areas can be organized into a batch for rendering without increasing the number of endpoints of the lane line area, thereby reducing the burden on the graphics processor and related resource consumption and improving rendering performance.

[0108] In order to implement the above embodiments, the present disclosure also proposes an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the lane rendering method of the above embodiments.

[0109] In order to implement the above embodiments, the present disclosure further proposes a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the lane rendering method described in the above embodiments.

[0110] In order to implement the above embodiments, the present disclosure further proposes a computer program product, including a computer program, which implements the lane rendering method described in the above embodiments when executed by a processor.

[0111] It should be noted that in the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information are all carried out with the user's consent, and are in compliance with relevant laws and regulations and do not violate public order and good morals.

[0112] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0113] Fig.11A schematic block diagram of an example electronic device 1100 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0114] like Fig.11 As shown, the device 1100 includes a computing unit 1101, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1102 or a computer program loaded from a storage unit 1108 into a random access memory (RAM) 1103. In the RAM 1103, various programs and data required for the operation of the device 1100 can also be stored. The computing unit 1101, the ROM 1102, and the RAM 1103 are connected to each other via a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.

[0115] A number of components in the device 1100 are connected to the I / O interface 1105, including: an input unit 1106, such as a keyboard, a mouse, etc.; an output unit 1107, such as various types of displays, speakers, etc.; a storage unit 1108, such as a disk, an optical disk, etc.; and a communication unit 1109, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 1109 allows the device 1100 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0116] The computing unit 1101 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1101 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1101 performs the various methods and processes described above, such as the lane rendering method. For example, in some embodiments, the lane rendering method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 1108. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 1100 via the ROM 1102 and / or the communication unit 1109. When the computer program is loaded into the RAM 1103 and executed by the computing unit 1101, one or more steps of the lane rendering method described above may be performed. Alternatively, in other embodiments, the computing unit 1101 may be configured to perform the lane rendering method in any other appropriate manner (e.g., by means of firmware).

[0117] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0118] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0119] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer 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 of the foregoing.

[0120] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0121] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), the Internet, and a blockchain network.

[0122] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other. The server may also be a server of a distributed system, or a server combined with a blockchain.

[0123] It should be noted that artificial intelligence is a discipline that studies how computers can simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), and includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, as well as machine learning / deep learning, big data processing technology, knowledge graph technology, and other major directions.

[0124] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0125] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A lane rendering method, comprising: Creating a lane line area corresponding to the lane line according to a plurality of points of the lane line and a set width of the lane line; Determine the length of the unit sub-region of the lane line region according to the length of the filled sub-region and the length of the transparent sub-region corresponding to the set virtual-to-real ratio of the lane line region, and determine the texture horizontal coordinate of the endpoint of the lane line region according to the length of the lane line region and the length of the corresponding unit sub-region, wherein the set virtual-to-real ratio of the lane line region is the ratio of the unit filled sub-region to the unit transparent sub-region in the lane line region; Determining the texture ordinate of the endpoint of the lane line area according to the color of the lane line area; Rendering the lane line area according to the texture abscissa of the endpoint of the lane line area and the texture ordinate of the corresponding endpoint; The rendering of the lane line area according to the texture abscissa of the endpoint of the lane line area and the texture ordinate of the corresponding endpoint includes: Determine the texture horizontal coordinates of a plurality of points in the corresponding lane line area according to the texture horizontal coordinates of the endpoints of the lane line area; Matching the texture horizontal coordinates of the plurality of points in the lane line area with a set texture virtual-real reference template to determine the filling type corresponding to the texture horizontal coordinates of the plurality of points in the lane line area; wherein the texture virtual-real reference template is used to indicate the filling type corresponding to each texture horizontal coordinate within a set texture horizontal coordinate range; Matching the texture ordinates of the endpoints of the lane line area with a set color set texture to determine the colors corresponding to the texture ordinates of multiple points in the lane line area; wherein the color set texture is used to indicate the color corresponding to each texture ordinate; The lane line area is rendered according to the fill types corresponding to the texture horizontal coordinates of multiple points in the lane line area and the colors corresponding to the texture vertical coordinates of the corresponding points.

2. The method according to claim 1, wherein: The filling type is used to indicate that the corresponding point is in a filled sub-area or a transparent sub-area in the lane line area, and the texture horizontal coordinates of the multiple points in the lane line area are matched with the set texture virtual-real reference template to determine the filling type corresponding to the texture horizontal coordinates of the multiple points in the lane line area, including: For the texture horizontal coordinate of any point among the multiple points, the texture horizontal coordinate of the arbitrary point is sampled in the set texture virtual-real reference template to determine the filling type corresponding to the texture horizontal coordinate of the arbitrary point.

3. The method according to claim 2, wherein: The rendering of the lane line area according to the fill types corresponding to the texture horizontal coordinates of the plurality of points in the lane line area and the colors corresponding to the texture vertical coordinates of the corresponding points includes: When the fill type of the texture abscissa of the arbitrary point indicates that the arbitrary point is in a fill sub-region in the corresponding lane line region, rendering the lane line region according to the fill sub-regions corresponding to the texture abscissas of the plurality of points in the lane line region and the colors corresponding to the texture ordinates of the corresponding points; In a case where the filling type of the texture horizontal coordinate of the arbitrary point indicates that the arbitrary point is in a transparent sub-region in the corresponding lane line region, the arbitrary point is removed in the lane line region corresponding to the arbitrary point.

4. The method according to any one of claims 1 to 3, wherein: The creating a lane line area corresponding to the lane line according to the plurality of points of the lane line and the set width of the lane line comprises: Determining a plurality of sub-areas of the lane line according to any two adjacent points of the lane line and a set width of the lane line; The splicing result of the multiple sub-areas of the lane line is used as the lane line area corresponding to the lane line.

5. A lane rendering device, comprising: A creation module, used to create a lane line area corresponding to the lane line according to multiple points of the lane line and a set width of the lane line; A first determination module is used to determine the length of a unit sub-area of ​​the lane line area according to the length of the filled sub-area and the length of the transparent sub-area corresponding to the set virtual-to-real ratio of the lane line area, and determine the texture horizontal coordinate of the endpoint of the lane line area according to the length of the lane line area and the length of the corresponding unit sub-area, wherein the set virtual-to-real ratio of the lane line area is the ratio of the unit filled sub-area to the unit transparent sub-area in the lane line area; A second determination module, used to determine the texture ordinate of the endpoint of the lane line area according to the color of the lane line area; A rendering module, used for rendering the lane line area according to the texture horizontal coordinates of the endpoints of the lane line area and the texture vertical coordinates of the corresponding endpoints; Wherein, the rendering module is specifically used for: Determine the texture horizontal coordinates of a plurality of points in the corresponding lane line area according to the texture horizontal coordinates of the endpoints of the lane line area; Matching the texture horizontal coordinates of the plurality of points in the lane line area with a set texture virtual-real reference template to determine the filling type corresponding to the texture horizontal coordinates of the plurality of points in the lane line area; wherein the texture virtual-real reference template is used to indicate the filling type corresponding to each texture horizontal coordinate within a set texture horizontal coordinate range; Matching the texture ordinates of the endpoints of the lane line area with a set color set texture to determine the colors corresponding to the texture ordinates of multiple points in the lane line area; wherein the color set texture is used to indicate the colors corresponding to each texture ordinate; The lane line area is rendered according to the fill types corresponding to the texture horizontal coordinates of multiple points in the lane line area and the colors corresponding to the texture vertical coordinates of the corresponding points.

6. The device according to claim 5, wherein: The fill type is used to indicate that the corresponding point is in a filled sub-region or a transparent sub-region in the lane line region, and the rendering module is further used to: For the texture horizontal coordinate of any point among the multiple points, the texture horizontal coordinate of the arbitrary point is sampled in the set texture virtual-real reference template to determine the filling type corresponding to the texture horizontal coordinate of the arbitrary point.

7. The device according to claim 6, wherein: The rendering module is further used for: When the fill type of the texture abscissa of the arbitrary point indicates that the arbitrary point is in a fill sub-region in the corresponding lane line region, rendering the lane line region according to the fill sub-regions corresponding to the texture abscissas of the plurality of points in the lane line region and the colors corresponding to the texture ordinates of the corresponding points; In a case where the filling type of the texture horizontal coordinate of the arbitrary point indicates that the arbitrary point is in a transparent sub-region in the corresponding lane line region, the arbitrary point is removed in the lane line region corresponding to the arbitrary point.

8. The device according to any one of claims 5 to 7, wherein: The creation module is specifically used for: Determining a plurality of sub-areas of the lane line according to any two adjacent points of the lane line and a set width of the lane line; The splicing result of the multiple sub-areas of the lane line is used as the lane line area corresponding to the lane line.

9. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 4.

10. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-4.

11. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 4.